public interface AnnotatedMessagePartOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
String |
getEntityType()
Optional.
|
ByteString |
getEntityTypeBytes()
Optional.
|
Value |
getFormattedValue()
Optional.
|
ValueOrBuilder |
getFormattedValueOrBuilder()
Optional.
|
String |
getText()
Required.
|
ByteString |
getTextBytes()
Required.
|
boolean |
hasFormattedValue()
Optional.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
String getText()
Required. A part of a message possibly annotated with an entity.
string text = 1;
ByteString getTextBytes()
Required. A part of a message possibly annotated with an entity.
string text = 1;
String getEntityType()
Optional. The [Dialogflow system entity type](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.
string entity_type = 2;
ByteString getEntityTypeBytes()
Optional. The [Dialogflow system entity type](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.
string entity_type = 2;
boolean hasFormattedValue()
Optional. The [Dialogflow system entity formatted value ](https://cloud.google.com/dialogflow/docs/reference/system-entities) 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;
Value getFormattedValue()
Optional. The [Dialogflow system entity formatted value ](https://cloud.google.com/dialogflow/docs/reference/system-entities) 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;
ValueOrBuilder getFormattedValueOrBuilder()
Optional. The [Dialogflow system entity formatted value ](https://cloud.google.com/dialogflow/docs/reference/system-entities) 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;
Copyright © 2022 Google LLC. All rights reserved.