Struct google_api_proto::google::cloud::dialogflow::cx::v3::intent::TrainingPhrase
source · pub struct TrainingPhrase {
pub id: String,
pub parts: Vec<Part>,
pub repeat_count: i32,
}
Expand description
Represents an example that the agent is trained on to identify the intent.
Fields§
§id: String
Output only. The unique identifier of the training phrase.
parts: Vec<Part>
Required. The ordered list of training phrase parts. The parts are concatenated in order to form the training phrase.
Note: The API does not automatically annotate training phrases like the Dialogflow Console does.
Note: Do not forget to include whitespace at part boundaries, so the training phrase is well formatted when the parts are concatenated.
If the training phrase does not need to be annotated with parameters, you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set.
If you want to annotate the training phrase, you must create multiple parts, where the fields of each part are populated in one of two ways:
Part.text
is set to a part of the phrase that has no parameters.Part.text
is set to a part of the phrase that you want to annotate, and theparameter_id
field is set.
repeat_count: i32
Indicates how many times this example was added to the intent.
Trait Implementations§
source§impl Clone for TrainingPhrase
impl Clone for TrainingPhrase
source§fn clone(&self) -> TrainingPhrase
fn clone(&self) -> TrainingPhrase
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TrainingPhrase
impl Debug for TrainingPhrase
source§impl Default for TrainingPhrase
impl Default for TrainingPhrase
source§impl Message for TrainingPhrase
impl Message for TrainingPhrase
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 TrainingPhrase
impl PartialEq for TrainingPhrase
source§fn eq(&self, other: &TrainingPhrase) -> bool
fn eq(&self, other: &TrainingPhrase) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TrainingPhrase
Auto Trait Implementations§
impl Freeze for TrainingPhrase
impl RefUnwindSafe for TrainingPhrase
impl Send for TrainingPhrase
impl Sync for TrainingPhrase
impl Unpin for TrainingPhrase
impl UnwindSafe for TrainingPhrase
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