Class VectorResponse.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VectorResponseOrBuilder, java.lang.Cloneable
    Enclosing class:
    VectorResponse

    public static final class VectorResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<VectorResponse.Builder>
    implements VectorResponseOrBuilder
     Container object that includes vectors for all levels specified in `embedding_levels`.
     
    Protobuf type arg_services.nlp.v1.VectorResponse
    • 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<VectorResponse.Builder>
      • clear

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

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

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

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

        public VectorResponse.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<VectorResponse.Builder>
      • isInitialized

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

        public VectorResponse.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<VectorResponse.Builder>
        Throws:
        java.io.IOException
      • hasDocument

        public boolean hasDocument()
         One vector for the whole string.
         
        .arg_services.nlp.v1.Vector document = 1 [json_name = "document"];
        Specified by:
        hasDocument in interface VectorResponseOrBuilder
        Returns:
        Whether the document field is set.
      • getDocument

        public Vector getDocument()
         One vector for the whole string.
         
        .arg_services.nlp.v1.Vector document = 1 [json_name = "document"];
        Specified by:
        getDocument in interface VectorResponseOrBuilder
        Returns:
        The document.
      • setDocument

        public VectorResponse.Builder setDocument​(Vector value)
         One vector for the whole string.
         
        .arg_services.nlp.v1.Vector document = 1 [json_name = "document"];
      • setDocument

        public VectorResponse.Builder setDocument​(Vector.Builder builderForValue)
         One vector for the whole string.
         
        .arg_services.nlp.v1.Vector document = 1 [json_name = "document"];
      • mergeDocument

        public VectorResponse.Builder mergeDocument​(Vector value)
         One vector for the whole string.
         
        .arg_services.nlp.v1.Vector document = 1 [json_name = "document"];
      • clearDocument

        public VectorResponse.Builder clearDocument()
         One vector for the whole string.
         
        .arg_services.nlp.v1.Vector document = 1 [json_name = "document"];
      • getDocumentBuilder

        public Vector.Builder getDocumentBuilder()
         One vector for the whole string.
         
        .arg_services.nlp.v1.Vector document = 1 [json_name = "document"];
      • getTokensList

        public java.util.List<Vector> getTokensList()
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
        Specified by:
        getTokensList in interface VectorResponseOrBuilder
      • getTokensCount

        public int getTokensCount()
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
        Specified by:
        getTokensCount in interface VectorResponseOrBuilder
      • getTokens

        public Vector getTokens​(int index)
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
        Specified by:
        getTokens in interface VectorResponseOrBuilder
      • setTokens

        public VectorResponse.Builder setTokens​(int index,
                                                Vector value)
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      • setTokens

        public VectorResponse.Builder setTokens​(int index,
                                                Vector.Builder builderForValue)
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      • addTokens

        public VectorResponse.Builder addTokens​(Vector value)
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      • addTokens

        public VectorResponse.Builder addTokens​(int index,
                                                Vector value)
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      • addTokens

        public VectorResponse.Builder addTokens​(Vector.Builder builderForValue)
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      • addTokens

        public VectorResponse.Builder addTokens​(int index,
                                                Vector.Builder builderForValue)
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      • addAllTokens

        public VectorResponse.Builder addAllTokens​(java.lang.Iterable<? extends Vector> values)
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      • clearTokens

        public VectorResponse.Builder clearTokens()
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      • removeTokens

        public VectorResponse.Builder removeTokens​(int index)
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      • getTokensBuilder

        public Vector.Builder getTokensBuilder​(int index)
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      • addTokensBuilder

        public Vector.Builder addTokensBuilder()
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      • addTokensBuilder

        public Vector.Builder addTokensBuilder​(int index)
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      • getTokensBuilderList

        public java.util.List<Vector.Builder> getTokensBuilderList()
         Vectors for all tokens in the string.
         
        repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      • getSentencesList

        public java.util.List<Vector> getSentencesList()
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
        Specified by:
        getSentencesList in interface VectorResponseOrBuilder
      • getSentencesCount

        public int getSentencesCount()
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
        Specified by:
        getSentencesCount in interface VectorResponseOrBuilder
      • getSentences

        public Vector getSentences​(int index)
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
        Specified by:
        getSentences in interface VectorResponseOrBuilder
      • setSentences

        public VectorResponse.Builder setSentences​(int index,
                                                   Vector value)
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      • setSentences

        public VectorResponse.Builder setSentences​(int index,
                                                   Vector.Builder builderForValue)
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      • addSentences

        public VectorResponse.Builder addSentences​(Vector value)
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      • addSentences

        public VectorResponse.Builder addSentences​(int index,
                                                   Vector value)
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      • addSentences

        public VectorResponse.Builder addSentences​(Vector.Builder builderForValue)
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      • addSentences

        public VectorResponse.Builder addSentences​(int index,
                                                   Vector.Builder builderForValue)
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      • addAllSentences

        public VectorResponse.Builder addAllSentences​(java.lang.Iterable<? extends Vector> values)
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      • clearSentences

        public VectorResponse.Builder clearSentences()
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      • removeSentences

        public VectorResponse.Builder removeSentences​(int index)
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      • getSentencesBuilder

        public Vector.Builder getSentencesBuilder​(int index)
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      • addSentencesBuilder

        public Vector.Builder addSentencesBuilder()
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      • addSentencesBuilder

        public Vector.Builder addSentencesBuilder​(int index)
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      • getSentencesBuilderList

        public java.util.List<Vector.Builder> getSentencesBuilderList()
         Vectors for all sentences found in the string.
         
        repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      • hasExtras

        public boolean hasExtras()
         Implementation-specific information can be encoded here
         
        .google.protobuf.Struct extras = 15 [json_name = "extras"];
        Specified by:
        hasExtras in interface VectorResponseOrBuilder
        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 VectorResponseOrBuilder
        Returns:
        The extras.
      • setExtras

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

        public VectorResponse.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 VectorResponse.Builder mergeExtras​(com.google.protobuf.Struct value)
         Implementation-specific information can be encoded here
         
        .google.protobuf.Struct extras = 15 [json_name = "extras"];
      • clearExtras

        public VectorResponse.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 VectorResponseOrBuilder
      • setUnknownFields

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

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