Interface AnnotatedMessagePartOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    AnnotatedMessagePart, AnnotatedMessagePart.Builder

    public interface AnnotatedMessagePartOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getEntityType()
      The [Dialogflow system entity type](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part.
      com.google.protobuf.ByteString getEntityTypeBytes()
      The [Dialogflow system entity type](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part.
      com.google.protobuf.Value getFormattedValue()
      The [Dialogflow system entity formatted value ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part.
      com.google.protobuf.ValueOrBuilder getFormattedValueOrBuilder()
      The [Dialogflow system entity formatted value ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part.
      String getText()
      A part of a message possibly annotated with an entity.
      com.google.protobuf.ByteString getTextBytes()
      A part of a message possibly annotated with an entity.
      boolean hasFormattedValue()
      The [Dialogflow system entity formatted value ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getText

        String getText()
         A part of a message possibly annotated with an entity.
         
        string text = 1;
        Returns:
        The text.
      • getTextBytes

        com.google.protobuf.ByteString getTextBytes()
         A part of a message possibly annotated with an entity.
         
        string text = 1;
        Returns:
        The bytes for text.
      • getEntityType

        String getEntityType()
         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()
         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()
         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()
         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()
         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;