pub struct GoogleCloudDialogflowCxV3IntentTrainingPhrase {
pub id: Option<String>,
pub parts: Option<Vec<GoogleCloudDialogflowCxV3IntentTrainingPhrasePart>>,
pub repeat_count: Option<i32>,
}Expand description
Represents an example that the agent is trained on to identify the intent.
This type is not used in any activity, and only used as part of another schema.
Fields§
§id: Option<String>Output only. The unique identifier of the training phrase.
parts: Option<Vec<GoogleCloudDialogflowCxV3IntentTrainingPhrasePart>>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 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 the parameter_id field is set.
repeat_count: Option<i32>Indicates how many times this example was added to the intent.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowCxV3IntentTrainingPhrase
impl Clone for GoogleCloudDialogflowCxV3IntentTrainingPhrase
Source§fn clone(&self) -> GoogleCloudDialogflowCxV3IntentTrainingPhrase
fn clone(&self) -> GoogleCloudDialogflowCxV3IntentTrainingPhrase
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudDialogflowCxV3IntentTrainingPhrase
impl Default for GoogleCloudDialogflowCxV3IntentTrainingPhrase
Source§fn default() -> GoogleCloudDialogflowCxV3IntentTrainingPhrase
fn default() -> GoogleCloudDialogflowCxV3IntentTrainingPhrase
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3IntentTrainingPhrase
impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3IntentTrainingPhrase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudDialogflowCxV3IntentTrainingPhrase
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowCxV3IntentTrainingPhrase
impl RefUnwindSafe for GoogleCloudDialogflowCxV3IntentTrainingPhrase
impl Send for GoogleCloudDialogflowCxV3IntentTrainingPhrase
impl Sync for GoogleCloudDialogflowCxV3IntentTrainingPhrase
impl Unpin for GoogleCloudDialogflowCxV3IntentTrainingPhrase
impl UnwindSafe for GoogleCloudDialogflowCxV3IntentTrainingPhrase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more