Interface Intent.TrainingPhrase.PartOrBuilder (4.57.0)

public static interface Intent.TrainingPhrase.PartOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAlias()

public abstract String getAlias()

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.

string alias = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The alias.

getAliasBytes()

public abstract ByteString getAliasBytes()

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.

string alias = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for alias.

getEntityType()

public abstract String getEntityType()

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

string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The entityType.

getEntityTypeBytes()

public abstract ByteString getEntityTypeBytes()

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

string entity_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for entityType.

getText()

public abstract String getText()

Required. The text for this part.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

Required. The text for this part.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

getUserDefined()

public abstract boolean getUserDefined()

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.

bool user_defined = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The userDefined.