Interface AnnotatedMessagePartOrBuilder (4.55.0)

public interface AnnotatedMessagePartOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEntityType()

public abstract String getEntityType()

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()

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()

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()

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()

A part of a message possibly annotated with an entity.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

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()

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.