Class ClassificationRequest.Builder

    • 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<ClassificationRequest.Builder>
      • clear

        public ClassificationRequest.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<ClassificationRequest.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<ClassificationRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public ClassificationRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws java.io.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<ClassificationRequest.Builder>
        Throws:
        java.io.IOException
      • getLanguageBytes

        public com.google.protobuf.ByteString getLanguageBytes()
        string language = 1 [json_name = "language"];
        Specified by:
        getLanguageBytes in interface ClassificationRequestOrBuilder
        Returns:
        The bytes for language.
      • setLanguage

        public ClassificationRequest.Builder setLanguage​(java.lang.String value)
        string language = 1 [json_name = "language"];
        Parameters:
        value - The language to set.
        Returns:
        This builder for chaining.
      • clearLanguage

        public ClassificationRequest.Builder clearLanguage()
        string language = 1 [json_name = "language"];
        Returns:
        This builder for chaining.
      • setLanguageBytes

        public ClassificationRequest.Builder setLanguageBytes​(com.google.protobuf.ByteString value)
        string language = 1 [json_name = "language"];
        Parameters:
        value - The bytes for language to set.
        Returns:
        This builder for chaining.
      • getSegmentsList

        public com.google.protobuf.ProtocolStringList getSegmentsList()
        repeated string segments = 2 [json_name = "segments"];
        Specified by:
        getSegmentsList in interface ClassificationRequestOrBuilder
        Returns:
        A list containing the segments.
      • getSegments

        public java.lang.String getSegments​(int index)
        repeated string segments = 2 [json_name = "segments"];
        Specified by:
        getSegments in interface ClassificationRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The segments at the given index.
      • getSegmentsBytes

        public com.google.protobuf.ByteString getSegmentsBytes​(int index)
        repeated string segments = 2 [json_name = "segments"];
        Specified by:
        getSegmentsBytes in interface ClassificationRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the segments at the given index.
      • setSegments

        public ClassificationRequest.Builder setSegments​(int index,
                                                         java.lang.String value)
        repeated string segments = 2 [json_name = "segments"];
        Parameters:
        index - The index to set the value at.
        value - The segments to set.
        Returns:
        This builder for chaining.
      • addSegments

        public ClassificationRequest.Builder addSegments​(java.lang.String value)
        repeated string segments = 2 [json_name = "segments"];
        Parameters:
        value - The segments to add.
        Returns:
        This builder for chaining.
      • addAllSegments

        public ClassificationRequest.Builder addAllSegments​(java.lang.Iterable<java.lang.String> values)
        repeated string segments = 2 [json_name = "segments"];
        Parameters:
        values - The segments to add.
        Returns:
        This builder for chaining.
      • clearSegments

        public ClassificationRequest.Builder clearSegments()
        repeated string segments = 2 [json_name = "segments"];
        Returns:
        This builder for chaining.
      • addSegmentsBytes

        public ClassificationRequest.Builder addSegmentsBytes​(com.google.protobuf.ByteString value)
        repeated string segments = 2 [json_name = "segments"];
        Parameters:
        value - The bytes of the segments to add.
        Returns:
        This builder for chaining.
      • hasExtras

        public boolean hasExtras()
         Implementation-specific information can be encoded here
         
        .google.protobuf.Struct extras = 15 [json_name = "extras"];
        Specified by:
        hasExtras in interface ClassificationRequestOrBuilder
        Returns:
        Whether the extras field is set.
      • getExtras

        public com.google.protobuf.Struct getExtras()
         Implementation-specific information can be encoded here
         
        .google.protobuf.Struct extras = 15 [json_name = "extras"];
        Specified by:
        getExtras in interface ClassificationRequestOrBuilder
        Returns:
        The extras.
      • setExtras

        public ClassificationRequest.Builder setExtras​(com.google.protobuf.Struct value)
         Implementation-specific information can be encoded here
         
        .google.protobuf.Struct extras = 15 [json_name = "extras"];
      • setExtras

        public ClassificationRequest.Builder setExtras​(com.google.protobuf.Struct.Builder builderForValue)
         Implementation-specific information can be encoded here
         
        .google.protobuf.Struct extras = 15 [json_name = "extras"];
      • mergeExtras

        public ClassificationRequest.Builder mergeExtras​(com.google.protobuf.Struct value)
         Implementation-specific information can be encoded here
         
        .google.protobuf.Struct extras = 15 [json_name = "extras"];
      • clearExtras

        public ClassificationRequest.Builder clearExtras()
         Implementation-specific information can be encoded here
         
        .google.protobuf.Struct extras = 15 [json_name = "extras"];
      • getExtrasBuilder

        public com.google.protobuf.Struct.Builder getExtrasBuilder()
         Implementation-specific information can be encoded here
         
        .google.protobuf.Struct extras = 15 [json_name = "extras"];
      • getExtrasOrBuilder

        public com.google.protobuf.StructOrBuilder getExtrasOrBuilder()
         Implementation-specific information can be encoded here
         
        .google.protobuf.Struct extras = 15 [json_name = "extras"];
        Specified by:
        getExtrasOrBuilder in interface ClassificationRequestOrBuilder
      • setUnknownFields

        public final ClassificationRequest.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<ClassificationRequest.Builder>
      • mergeUnknownFields

        public final ClassificationRequest.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<ClassificationRequest.Builder>