Class VectorsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder>
de.uni_trier.recap.arg_services.nlp.v1.VectorsRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VectorsRequestOrBuilder, Cloneable
Enclosing class:
VectorsRequest

public static final class VectorsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder> implements VectorsRequestOrBuilder
Protobuf type arg_services.nlp.v1.VectorsRequest
  • 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<VectorsRequest.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public VectorsRequest.Builder mergeFrom(VectorsRequest other)
    • isInitialized

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

      public VectorsRequest.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<VectorsRequest.Builder>
      Throws:
      IOException
    • hasConfig

      public boolean hasConfig()
       Spacy config.
       
      .arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"];
      Specified by:
      hasConfig in interface VectorsRequestOrBuilder
      Returns:
      Whether the config field is set.
    • getConfig

      public NlpConfig getConfig()
       Spacy config.
       
      .arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"];
      Specified by:
      getConfig in interface VectorsRequestOrBuilder
      Returns:
      The config.
    • setConfig

      public VectorsRequest.Builder setConfig(NlpConfig value)
       Spacy config.
       
      .arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"];
    • setConfig

      public VectorsRequest.Builder setConfig(NlpConfig.Builder builderForValue)
       Spacy config.
       
      .arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"];
    • mergeConfig

      public VectorsRequest.Builder mergeConfig(NlpConfig value)
       Spacy config.
       
      .arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"];
    • clearConfig

      public VectorsRequest.Builder clearConfig()
       Spacy config.
       
      .arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"];
    • getConfigBuilder

      public NlpConfig.Builder getConfigBuilder()
       Spacy config.
       
      .arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"];
    • getConfigOrBuilder

      public NlpConfigOrBuilder getConfigOrBuilder()
       Spacy config.
       
      .arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"];
      Specified by:
      getConfigOrBuilder in interface VectorsRequestOrBuilder
    • getTextsList

      public com.google.protobuf.ProtocolStringList getTextsList()
       List of strings that shall be embedded (i.e., converted to vectors).
       
      repeated string texts = 2 [json_name = "texts"];
      Specified by:
      getTextsList in interface VectorsRequestOrBuilder
      Returns:
      A list containing the texts.
    • getTextsCount

      public int getTextsCount()
       List of strings that shall be embedded (i.e., converted to vectors).
       
      repeated string texts = 2 [json_name = "texts"];
      Specified by:
      getTextsCount in interface VectorsRequestOrBuilder
      Returns:
      The count of texts.
    • getTexts

      public String getTexts(int index)
       List of strings that shall be embedded (i.e., converted to vectors).
       
      repeated string texts = 2 [json_name = "texts"];
      Specified by:
      getTexts in interface VectorsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The texts at the given index.
    • getTextsBytes

      public com.google.protobuf.ByteString getTextsBytes(int index)
       List of strings that shall be embedded (i.e., converted to vectors).
       
      repeated string texts = 2 [json_name = "texts"];
      Specified by:
      getTextsBytes in interface VectorsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the texts at the given index.
    • setTexts

      public VectorsRequest.Builder setTexts(int index, String value)
       List of strings that shall be embedded (i.e., converted to vectors).
       
      repeated string texts = 2 [json_name = "texts"];
      Parameters:
      index - The index to set the value at.
      value - The texts to set.
      Returns:
      This builder for chaining.
    • addTexts

      public VectorsRequest.Builder addTexts(String value)
       List of strings that shall be embedded (i.e., converted to vectors).
       
      repeated string texts = 2 [json_name = "texts"];
      Parameters:
      value - The texts to add.
      Returns:
      This builder for chaining.
    • addAllTexts

      public VectorsRequest.Builder addAllTexts(Iterable<String> values)
       List of strings that shall be embedded (i.e., converted to vectors).
       
      repeated string texts = 2 [json_name = "texts"];
      Parameters:
      values - The texts to add.
      Returns:
      This builder for chaining.
    • clearTexts

      public VectorsRequest.Builder clearTexts()
       List of strings that shall be embedded (i.e., converted to vectors).
       
      repeated string texts = 2 [json_name = "texts"];
      Returns:
      This builder for chaining.
    • addTextsBytes

      public VectorsRequest.Builder addTextsBytes(com.google.protobuf.ByteString value)
       List of strings that shall be embedded (i.e., converted to vectors).
       
      repeated string texts = 2 [json_name = "texts"];
      Parameters:
      value - The bytes of the texts to add.
      Returns:
      This builder for chaining.
    • getEmbeddingLevelsList

      public List<EmbeddingLevel> getEmbeddingLevelsList()
       List of vectors that shall be returned.
       The computation is time-consuming, so you should only specify the embeddings you actually use!
       
      repeated .arg_services.nlp.v1.EmbeddingLevel embedding_levels = 3 [json_name = "embeddingLevels"];
      Specified by:
      getEmbeddingLevelsList in interface VectorsRequestOrBuilder
      Returns:
      A list containing the embeddingLevels.
    • getEmbeddingLevelsCount

      public int getEmbeddingLevelsCount()
       List of vectors that shall be returned.
       The computation is time-consuming, so you should only specify the embeddings you actually use!
       
      repeated .arg_services.nlp.v1.EmbeddingLevel embedding_levels = 3 [json_name = "embeddingLevels"];
      Specified by:
      getEmbeddingLevelsCount in interface VectorsRequestOrBuilder
      Returns:
      The count of embeddingLevels.
    • getEmbeddingLevels

      public EmbeddingLevel getEmbeddingLevels(int index)
       List of vectors that shall be returned.
       The computation is time-consuming, so you should only specify the embeddings you actually use!
       
      repeated .arg_services.nlp.v1.EmbeddingLevel embedding_levels = 3 [json_name = "embeddingLevels"];
      Specified by:
      getEmbeddingLevels in interface VectorsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The embeddingLevels at the given index.
    • setEmbeddingLevels

      public VectorsRequest.Builder setEmbeddingLevels(int index, EmbeddingLevel value)
       List of vectors that shall be returned.
       The computation is time-consuming, so you should only specify the embeddings you actually use!
       
      repeated .arg_services.nlp.v1.EmbeddingLevel embedding_levels = 3 [json_name = "embeddingLevels"];
      Parameters:
      index - The index to set the value at.
      value - The embeddingLevels to set.
      Returns:
      This builder for chaining.
    • addEmbeddingLevels

      public VectorsRequest.Builder addEmbeddingLevels(EmbeddingLevel value)
       List of vectors that shall be returned.
       The computation is time-consuming, so you should only specify the embeddings you actually use!
       
      repeated .arg_services.nlp.v1.EmbeddingLevel embedding_levels = 3 [json_name = "embeddingLevels"];
      Parameters:
      value - The embeddingLevels to add.
      Returns:
      This builder for chaining.
    • addAllEmbeddingLevels

      public VectorsRequest.Builder addAllEmbeddingLevels(Iterable<? extends EmbeddingLevel> values)
       List of vectors that shall be returned.
       The computation is time-consuming, so you should only specify the embeddings you actually use!
       
      repeated .arg_services.nlp.v1.EmbeddingLevel embedding_levels = 3 [json_name = "embeddingLevels"];
      Parameters:
      values - The embeddingLevels to add.
      Returns:
      This builder for chaining.
    • clearEmbeddingLevels

      public VectorsRequest.Builder clearEmbeddingLevels()
       List of vectors that shall be returned.
       The computation is time-consuming, so you should only specify the embeddings you actually use!
       
      repeated .arg_services.nlp.v1.EmbeddingLevel embedding_levels = 3 [json_name = "embeddingLevels"];
      Returns:
      This builder for chaining.
    • getEmbeddingLevelsValueList

      public List<Integer> getEmbeddingLevelsValueList()
       List of vectors that shall be returned.
       The computation is time-consuming, so you should only specify the embeddings you actually use!
       
      repeated .arg_services.nlp.v1.EmbeddingLevel embedding_levels = 3 [json_name = "embeddingLevels"];
      Specified by:
      getEmbeddingLevelsValueList in interface VectorsRequestOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for embeddingLevels.
    • getEmbeddingLevelsValue

      public int getEmbeddingLevelsValue(int index)
       List of vectors that shall be returned.
       The computation is time-consuming, so you should only specify the embeddings you actually use!
       
      repeated .arg_services.nlp.v1.EmbeddingLevel embedding_levels = 3 [json_name = "embeddingLevels"];
      Specified by:
      getEmbeddingLevelsValue in interface VectorsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of embeddingLevels at the given index.
    • setEmbeddingLevelsValue

      public VectorsRequest.Builder setEmbeddingLevelsValue(int index, int value)
       List of vectors that shall be returned.
       The computation is time-consuming, so you should only specify the embeddings you actually use!
       
      repeated .arg_services.nlp.v1.EmbeddingLevel embedding_levels = 3 [json_name = "embeddingLevels"];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for embeddingLevels to set.
      Returns:
      This builder for chaining.
    • addEmbeddingLevelsValue

      public VectorsRequest.Builder addEmbeddingLevelsValue(int value)
       List of vectors that shall be returned.
       The computation is time-consuming, so you should only specify the embeddings you actually use!
       
      repeated .arg_services.nlp.v1.EmbeddingLevel embedding_levels = 3 [json_name = "embeddingLevels"];
      Parameters:
      value - The enum numeric value on the wire for embeddingLevels to add.
      Returns:
      This builder for chaining.
    • addAllEmbeddingLevelsValue

      public VectorsRequest.Builder addAllEmbeddingLevelsValue(Iterable<Integer> values)
       List of vectors that shall be returned.
       The computation is time-consuming, so you should only specify the embeddings you actually use!
       
      repeated .arg_services.nlp.v1.EmbeddingLevel embedding_levels = 3 [json_name = "embeddingLevels"];
      Parameters:
      values - The enum numeric values on the wire for embeddingLevels 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 VectorsRequestOrBuilder
      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 VectorsRequestOrBuilder
      Returns:
      The extras.
    • setExtras

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

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

      public VectorsRequest.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 VectorsRequestOrBuilder
    • setUnknownFields

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

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