Class 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.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
    implements MessageAnnotationOrBuilder
     Represents the result of annotation for the message.
     
    Protobuf type google.cloud.dialogflow.v2.MessageAnnotation
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public MessageAnnotation.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
      • setField

        public MessageAnnotation.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
      • clearField

        public MessageAnnotation.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
      • clearOneof

        public MessageAnnotation.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
      • setRepeatedField

        public MessageAnnotation.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
      • addRepeatedField

        public MessageAnnotation.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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

        public MessageAnnotation.Builder addParts​(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​(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.
      • setUnknownFields

        public final MessageAnnotation.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
      • mergeUnknownFields

        public final MessageAnnotation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>