Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::Intent::TrainingPhrase::Part (v1.0.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Intent::TrainingPhrase::Part.

Represents a part of a training phrase.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#alias

def alias() -> ::String
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.

#alias=

def alias=(value) -> ::String
Parameter
  • value (::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.
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.

#entity_type

def entity_type() -> ::String
Returns
  • (::String) — Optional. The entity type name prefixed with @. This field is required for annotated parts of the training phrase.

#entity_type=

def entity_type=(value) -> ::String
Parameter
  • value (::String) — 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.

#text

def text() -> ::String
Returns
  • (::String) — Required. The text for this part.

#text=

def text=(value) -> ::String
Parameter
  • value (::String) — Required. The text for this part.
Returns
  • (::String) — Required. The text for this part.

#user_defined

def user_defined() -> ::Boolean
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.

#user_defined=

def user_defined=(value) -> ::Boolean
Parameter
  • value (::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.
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.