class Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart

Represents a part of a training phrase.

Attributes

alias[RW]

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. Corresponds to the JSON property `alias` @return [String]

entity_type[RW]

Optional. The entity type name prefixed with `@`. This field is required for annotated parts of the training phrase. Corresponds to the JSON property `entityType` @return [String]

text[RW]

Required. The text for this part. Corresponds to the JSON property `text` @return [String]

user_defined[RW]

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. Corresponds to the JSON property `userDefined` @return [Boolean]

user_defined?[RW]

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. Corresponds to the JSON property `userDefined` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v3/classes.rb, line 13775
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v3/classes.rb, line 13780
def update!(**args)
  @alias = args[:alias] if args.key?(:alias)
  @entity_type = args[:entity_type] if args.key?(:entity_type)
  @text = args[:text] if args.key?(:text)
  @user_defined = args[:user_defined] if args.key?(:user_defined)
end