Struct google_api_proto::google::cloud::contactcenterinsights::v1::PhraseMatcher
source · pub struct PhraseMatcher {
pub name: String,
pub revision_id: String,
pub version_tag: String,
pub revision_create_time: Option<Timestamp>,
pub display_name: String,
pub type: i32,
pub active: bool,
pub phrase_match_rule_groups: Vec<PhraseMatchRuleGroup>,
pub activation_update_time: Option<Timestamp>,
pub role_match: i32,
pub update_time: Option<Timestamp>,
}
Expand description
The phrase matcher resource.
Fields§
§name: String
The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
revision_id: String
Output only. Immutable. The revision ID of the phrase matcher. A new revision is committed whenever the matcher is changed, except when it is activated or deactivated. A server generated random ID will be used. Example: locations/global/phraseMatchers/my-first-matcher@1234567
version_tag: String
The customized version tag to use for the phrase matcher. If not specified,
it will default to revision_id
.
revision_create_time: Option<Timestamp>
Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.
display_name: String
The human-readable name of the phrase matcher.
type: i32
Required. The type of this phrase matcher.
active: bool
Applies the phrase matcher only when it is active.
phrase_match_rule_groups: Vec<PhraseMatchRuleGroup>
A list of phase match rule groups that are included in this matcher.
activation_update_time: Option<Timestamp>
Output only. The most recent time at which the activation status was updated.
role_match: i32
The role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript.
update_time: Option<Timestamp>
Output only. The most recent time at which the phrase matcher was updated.
Implementations§
source§impl PhraseMatcher
impl PhraseMatcher
sourcepub fn type(&self) -> PhraseMatcherType
pub fn type(&self) -> PhraseMatcherType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: PhraseMatcherType)
pub fn set_type(&mut self, value: PhraseMatcherType)
Sets type
to the provided enum value.
sourcepub fn role_match(&self) -> Role
pub fn role_match(&self) -> Role
Returns the enum value of role_match
, or the default if the field is set to an invalid enum value.
sourcepub fn set_role_match(&mut self, value: Role)
pub fn set_role_match(&mut self, value: Role)
Sets role_match
to the provided enum value.
Trait Implementations§
source§impl Clone for PhraseMatcher
impl Clone for PhraseMatcher
source§fn clone(&self) -> PhraseMatcher
fn clone(&self) -> PhraseMatcher
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PhraseMatcher
impl Debug for PhraseMatcher
source§impl Default for PhraseMatcher
impl Default for PhraseMatcher
source§impl Message for PhraseMatcher
impl Message for PhraseMatcher
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 PhraseMatcher
impl PartialEq for PhraseMatcher
source§fn eq(&self, other: &PhraseMatcher) -> bool
fn eq(&self, other: &PhraseMatcher) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PhraseMatcher
Auto Trait Implementations§
impl Freeze for PhraseMatcher
impl RefUnwindSafe for PhraseMatcher
impl Send for PhraseMatcher
impl Sync for PhraseMatcher
impl Unpin for PhraseMatcher
impl UnwindSafe for PhraseMatcher
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