Interface AnnotatedMessagePartOrBuilder (4.3.1)

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ValueOrBuilder

getText()

public abstract String getText()

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

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

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

string text = 1;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the formattedValue field is set.