Struct gapi_grpc::google::cloud::dialogflow::cx::v3::intent::TrainingPhrase [−][src]
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
impl Clone for TrainingPhrase
[src][+]
impl Debug for TrainingPhrase
[src][+]
impl Default for TrainingPhrase
[src][+]
impl Message for TrainingPhrase
[src][+]
impl PartialEq<TrainingPhrase> for TrainingPhrase
[src][+]
impl StructuralPartialEq for TrainingPhrase
[src]
Auto Trait Implementations
impl RefUnwindSafe for TrainingPhrase
impl Send for TrainingPhrase
impl Sync for TrainingPhrase
impl Unpin for TrainingPhrase
impl UnwindSafe for TrainingPhrase
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,