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

Represents a part of a message possibly annotated with an entity. The part can be an entity or purely a part of the message between two entities or message start/end.

Attributes

  • entityType (type: String.t, default: nil) - Optional. The Dialogflow system entity type of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.
  • formattedValue (type: any(), default: nil) - Optional. The Dialogflow system entity formatted value of this message part. For example for a system entity of type @sys.unit-currency, this may contain: { "amount": 5, "currency": "USD" }
  • text (type: String.t, default: nil) - Required. A part of a message possibly annotated with an entity.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2beta1AnnotatedMessagePart{
    entityType: String.t() | nil,
    formattedValue: any() | nil,
    text: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.