View Source GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentTrainingPhrasePart (google_api_dialogflow v0.78.0)

Represents a part of a training phrase.

Attributes

  • alias (type: String.t, default: nil) - Optional. The parameter name for the value extracted from the annotated part of the example. This field is required for annotated parts of the training phrase.
  • entityType (type: String.t, default: nil) - Optional. The entity type name prefixed with @. This field is required for annotated parts of the training phrase.
  • text (type: String.t, default: nil) - Required. The text for this part.
  • userDefined (type: boolean(), default: nil) - Optional. Indicates whether the text was manually annotated. This field is set to true when the Dialogflow Console is used to manually annotate the part. When creating an annotated part with the API, you must set this to true.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentTrainingPhrasePart{
    alias: String.t() | nil,
    entityType: String.t() | nil,
    text: String.t() | nil,
    userDefined: boolean() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.