Interface AnnotatedMessagePartOrBuilder (4.54.0)

public interface AnnotatedMessagePartOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEntityType()

public abstract String getEntityType()

Optional. The Dialogflow system entity type of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.

string entity_type = 2;

Returns
Type Description
String

The entityType.

getEntityTypeBytes()

public abstract ByteString getEntityTypeBytes()

Optional. The Dialogflow system entity type of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.

string entity_type = 2;

Returns
Type Description
ByteString

The bytes for entityType.

getFormattedValue()

public abstract Value getFormattedValue()

Optional. The Dialogflow system entity formatted value of this message part. For example for a system entity of type @sys.unit-currency, this may contain: <pre> { "amount": 5, "currency": "USD" } </pre>

.google.protobuf.Value formatted_value = 3;

Returns
Type Description
Value

The formattedValue.

getFormattedValueOrBuilder()

public abstract ValueOrBuilder getFormattedValueOrBuilder()

Optional. The Dialogflow system entity formatted value of this message part. For example for a system entity of type @sys.unit-currency, this may contain: <pre> { "amount": 5, "currency": "USD" } </pre>

.google.protobuf.Value formatted_value = 3;

Returns
Type Description
ValueOrBuilder

getText()

public abstract String getText()

Required. A part of a message possibly annotated with an entity.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

Required. A part of a message possibly annotated with an entity.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

hasFormattedValue()

public abstract boolean hasFormattedValue()

Optional. The Dialogflow system entity formatted value of this message part. For example for a system entity of type @sys.unit-currency, this may contain: <pre> { "amount": 5, "currency": "USD" } </pre>

.google.protobuf.Value formatted_value = 3;

Returns
Type Description
boolean

Whether the formattedValue field is set.