Class VectorResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<VectorResponse.Builder>
de.uni_trier.recap.arg_services.nlp.v1.VectorResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VectorResponseOrBuilder, 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 Details

    • 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
    • clone

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

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

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

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

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

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

      public VectorResponse.Builder mergeFrom(VectorResponse other)
    • 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 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:
      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"];
    • getDocumentOrBuilder

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

      public 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(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"];
    • getTokensOrBuilder

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

      public List<? extends VectorOrBuilder> getTokensOrBuilderList()
       Vectors for all tokens in the string.
       
      repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
      Specified by:
      getTokensOrBuilderList in interface VectorResponseOrBuilder
    • 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 List<Vector.Builder> getTokensBuilderList()
       Vectors for all tokens in the string.
       
      repeated .arg_services.nlp.v1.Vector tokens = 2 [json_name = "tokens"];
    • getSentencesList

      public 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(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"];
    • getSentencesOrBuilder

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

      public List<? extends VectorOrBuilder> getSentencesOrBuilderList()
       Vectors for all sentences found in the string.
       
      repeated .arg_services.nlp.v1.Vector sentences = 3 [json_name = "sentences"];
      Specified by:
      getSentencesOrBuilderList in interface VectorResponseOrBuilder
    • 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 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>