class Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
Represents a part of a training phrase.
Attributes
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]
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]
Required. The text for this part. Corresponds to the JSON property `text` @return [String]
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]
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
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 12094 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 12099 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