Class MessageAnnotation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MessageAnnotation.Builder>
com.google.cloud.dialogflow.v2.MessageAnnotation.Builder
All Implemented Interfaces:
MessageAnnotationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MessageAnnotation

public static final class MessageAnnotation.Builder extends com.google.protobuf.GeneratedMessage.Builder<MessageAnnotation.Builder> implements MessageAnnotationOrBuilder
 Represents the result of annotation for the message.
 
Protobuf type google.cloud.dialogflow.v2.MessageAnnotation
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MessageAnnotation.Builder>
    • clear

      public MessageAnnotation.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<MessageAnnotation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MessageAnnotation.Builder>
    • getDefaultInstanceForType

      public MessageAnnotation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public MessageAnnotation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public MessageAnnotation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public MessageAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MessageAnnotation.Builder>
    • mergeFrom

      public MessageAnnotation.Builder mergeFrom(MessageAnnotation other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<MessageAnnotation.Builder>
    • mergeFrom

      public MessageAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MessageAnnotation.Builder>
      Throws:
      IOException
    • getPartsList

      public List<AnnotatedMessagePart> getPartsList()
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
      Specified by:
      getPartsList in interface MessageAnnotationOrBuilder
    • getPartsCount

      public int getPartsCount()
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
      Specified by:
      getPartsCount in interface MessageAnnotationOrBuilder
    • getParts

      public AnnotatedMessagePart getParts(int index)
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
      Specified by:
      getParts in interface MessageAnnotationOrBuilder
    • setParts

      public MessageAnnotation.Builder setParts(int index, AnnotatedMessagePart value)
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
    • setParts

      public MessageAnnotation.Builder setParts(int index, AnnotatedMessagePart.Builder builderForValue)
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
    • addParts

       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
    • addParts

      public MessageAnnotation.Builder addParts(int index, AnnotatedMessagePart value)
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
    • addParts

      public MessageAnnotation.Builder addParts(AnnotatedMessagePart.Builder builderForValue)
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
    • addParts

      public MessageAnnotation.Builder addParts(int index, AnnotatedMessagePart.Builder builderForValue)
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
    • addAllParts

      public MessageAnnotation.Builder addAllParts(Iterable<? extends AnnotatedMessagePart> values)
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
    • clearParts

      public MessageAnnotation.Builder clearParts()
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
    • removeParts

      public MessageAnnotation.Builder removeParts(int index)
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
    • getPartsBuilder

      public AnnotatedMessagePart.Builder getPartsBuilder(int index)
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
    • getPartsOrBuilder

      public AnnotatedMessagePartOrBuilder getPartsOrBuilder(int index)
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
      Specified by:
      getPartsOrBuilder in interface MessageAnnotationOrBuilder
    • getPartsOrBuilderList

      public List<? extends AnnotatedMessagePartOrBuilder> getPartsOrBuilderList()
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
      Specified by:
      getPartsOrBuilderList in interface MessageAnnotationOrBuilder
    • addPartsBuilder

      public AnnotatedMessagePart.Builder addPartsBuilder()
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
    • addPartsBuilder

      public AnnotatedMessagePart.Builder addPartsBuilder(int index)
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
    • getPartsBuilderList

      public List<AnnotatedMessagePart.Builder> getPartsBuilderList()
       The collection of annotated message parts ordered by their
       position in the message. You can recover the annotated message by
       concatenating [AnnotatedMessagePart.text].
       
      repeated .google.cloud.dialogflow.v2.AnnotatedMessagePart parts = 1;
    • getContainEntities

      public boolean getContainEntities()
       Indicates whether the text message contains entities.
       
      bool contain_entities = 2;
      Specified by:
      getContainEntities in interface MessageAnnotationOrBuilder
      Returns:
      The containEntities.
    • setContainEntities

      public MessageAnnotation.Builder setContainEntities(boolean value)
       Indicates whether the text message contains entities.
       
      bool contain_entities = 2;
      Parameters:
      value - The containEntities to set.
      Returns:
      This builder for chaining.
    • clearContainEntities

      public MessageAnnotation.Builder clearContainEntities()
       Indicates whether the text message contains entities.
       
      bool contain_entities = 2;
      Returns:
      This builder for chaining.