Class: Google::Cloud::Dialogflow::V2::Intent::TrainingPhrase::Part

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/v2/intent.rb

Overview

Represents a part of a training phrase.

Instance Attribute Summary collapse

Instance Attribute Details

#alias::String

Returns 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.

Returns:

  • (::String)

    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.



204
205
206
207
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 204

class Part
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#entity_type::String

Returns Optional. The entity type name prefixed with @. This field is required for annotated parts of the training phrase.

Returns:

  • (::String)

    Optional. The entity type name prefixed with @. This field is required for annotated parts of the training phrase.



204
205
206
207
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 204

class Part
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#text::String

Returns Required. The text for this part.

Returns:

  • (::String)

    Required. The text for this part.



204
205
206
207
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 204

class Part
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#user_defined::Boolean

Returns 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.

Returns:

  • (::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.



204
205
206
207
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 204

class Part
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end