pub struct PhraseSet {Show 15 fields
pub name: String,
pub uid: String,
pub phrases: Vec<Phrase>,
pub boost: f32,
pub display_name: String,
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
PhraseSet for biasing in speech recognition. A PhraseSet is used to provide “hints” to the speech recognizer to favor specific words and phrases in the results.
Fields§
§name: String
Output only. Identifier. The resource name of the PhraseSet.
Format: projects/{project}/locations/{location}/phraseSets/{phrase_set}
.
uid: String
Output only. System-assigned unique identifier for the PhraseSet.
phrases: Vec<Phrase>
A list of word and phrases.
boost: f32
Hint Boost. Positive value will increase the probability that a specific
phrase will be recognized over other similar sounding phrases. The higher
the boost, the higher the chance of false positive recognition as well.
Valid boost
values are between 0 (exclusive) and 20. We recommend using a
binary search approach to finding the optimal value for your use case as
well as adding phrases both with and without boost to your requests.
display_name: String
User-settable, human-readable name for the PhraseSet. Must be 63 characters or less.
state: i32
Output only. The PhraseSet 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>
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 PhraseSet is in the process of being updated.
kms_key_name: String
Output only. The KMS key
name with which
the PhraseSet 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 PhraseSet 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 Message for PhraseSet
impl Message for PhraseSet
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 PhraseSet
impl PartialEq for PhraseSet
impl StructuralPartialEq for PhraseSet
Auto Trait Implementations§
impl Freeze for PhraseSet
impl RefUnwindSafe for PhraseSet
impl Send for PhraseSet
impl Sync for PhraseSet
impl Unpin for PhraseSet
impl UnwindSafe for PhraseSet
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