Interface AnnotatedMessagePartOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AnnotatedMessagePart,AnnotatedMessagePart.Builder
@Generated
public interface AnnotatedMessagePartOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.com.google.protobuf.ByteStringOptional.com.google.protobuf.ValueOptional.com.google.protobuf.ValueOrBuilderOptional.getText()Required.com.google.protobuf.ByteStringRequired.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getText
String getText()Required. A part of a message possibly annotated with an entity.
string text = 1;- Returns:
- The text.
-
getTextBytes
com.google.protobuf.ByteString getTextBytes()Required. A part of a message possibly annotated with an entity.
string text = 1;- Returns:
- The bytes for text.
-
getEntityType
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;- Returns:
- The entityType.
-
getEntityTypeBytes
com.google.protobuf.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;- Returns:
- The bytes for entityType.
-
hasFormattedValue
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;- Returns:
- Whether the formattedValue field is set.
-
getFormattedValue
com.google.protobuf.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;- Returns:
- The formattedValue.
-
getFormattedValueOrBuilder
com.google.protobuf.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;
-