Struct google_api_proto::google::cloud::speech::v2::CustomClass
source · pub struct CustomClass {Show 14 fields
pub name: String,
pub uid: String,
pub display_name: String,
pub items: Vec<ClassItem>,
pub state: i32,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub delete_time: Option<Timestamp>,
pub expire_time: Option<Timestamp>,
pub annotations: BTreeMap<String, String>,
pub etag: String,
pub reconciling: bool,
pub kms_key_name: String,
pub kms_key_version_name: String,
}
Expand description
CustomClass for biasing in speech recognition. Used to define a set of words or phrases that represents a common concept or theme likely to appear in your audio, for example a list of passenger ship names.
Fields§
§name: String
Output only. Identifier. The resource name of the CustomClass.
Format:
projects/{project}/locations/{location}/customClasses/{custom_class}
.
uid: String
Output only. System-assigned unique identifier for the CustomClass.
display_name: String
Optional. User-settable, human-readable name for the CustomClass. Must be 63 characters or less.
items: Vec<ClassItem>
A collection of class items.
state: i32
Output only. The CustomClass lifecycle state.
create_time: Option<Timestamp>
Output only. Creation time.
update_time: Option<Timestamp>
Output only. The most recent time this resource was modified.
delete_time: Option<Timestamp>
Output only. The time at which this resource was requested for deletion.
expire_time: Option<Timestamp>
Output only. The time at which this resource will be purged.
annotations: BTreeMap<String, String>
Optional. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations.
etag: String
Output only. This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding.
reconciling: bool
Output only. Whether or not this CustomClass is in the process of being updated.
kms_key_name: String
Output only. The KMS key
name with which
the CustomClass is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
.
kms_key_version_name: String
Output only. The KMS key version
name
with which the CustomClass is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
.
Implementations§
Trait Implementations§
source§impl Clone for CustomClass
impl Clone for CustomClass
source§fn clone(&self) -> CustomClass
fn clone(&self) -> CustomClass
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomClass
impl Debug for CustomClass
source§impl Default for CustomClass
impl Default for CustomClass
source§impl Message for CustomClass
impl Message for CustomClass
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CustomClass
impl PartialEq for CustomClass
source§fn eq(&self, other: &CustomClass) -> bool
fn eq(&self, other: &CustomClass) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomClass
Auto Trait Implementations§
impl Freeze for CustomClass
impl RefUnwindSafe for CustomClass
impl Send for CustomClass
impl Sync for CustomClass
impl Unpin for CustomClass
impl UnwindSafe for CustomClass
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request