Class VectorsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.Cloneable
- Enclosing class:
- VectorsRequest
public static final class VectorsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder> implements VectorsRequestOrBuilder
Protobuf typearg_services.nlp.v1.VectorsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorsRequest.BuilderaddAllEmbeddingLevels(java.lang.Iterable<? extends EmbeddingLevel> values)List of vectors that shall be returned.VectorsRequest.BuilderaddAllEmbeddingLevelsValue(java.lang.Iterable<java.lang.Integer> values)List of vectors that shall be returned.VectorsRequest.BuilderaddAllTexts(java.lang.Iterable<java.lang.String> values)List of strings that shall be embedded (i.e., converted to vectors).VectorsRequest.BuilderaddEmbeddingLevels(EmbeddingLevel value)List of vectors that shall be returned.VectorsRequest.BuilderaddEmbeddingLevelsValue(int value)List of vectors that shall be returned.VectorsRequest.BuilderaddTexts(java.lang.String value)List of strings that shall be embedded (i.e., converted to vectors).VectorsRequest.BuilderaddTextsBytes(com.google.protobuf.ByteString value)List of strings that shall be embedded (i.e., converted to vectors).VectorsRequestbuild()VectorsRequestbuildPartial()VectorsRequest.Builderclear()VectorsRequest.BuilderclearConfig()Spacy config.VectorsRequest.BuilderclearEmbeddingLevels()List of vectors that shall be returned.VectorsRequest.BuilderclearExtras()Implementation-specific information can be encoded hereVectorsRequest.BuilderclearTexts()List of strings that shall be embedded (i.e., converted to vectors).NlpConfiggetConfig()Spacy config.NlpConfig.BuildergetConfigBuilder()Spacy config.NlpConfigOrBuildergetConfigOrBuilder()Spacy config.VectorsRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()EmbeddingLevelgetEmbeddingLevels(int index)List of vectors that shall be returned.intgetEmbeddingLevelsCount()List of vectors that shall be returned.java.util.List<EmbeddingLevel>getEmbeddingLevelsList()List of vectors that shall be returned.intgetEmbeddingLevelsValue(int index)List of vectors that shall be returned.java.util.List<java.lang.Integer>getEmbeddingLevelsValueList()List of vectors that shall be returned.com.google.protobuf.StructgetExtras()Implementation-specific information can be encoded herecom.google.protobuf.Struct.BuildergetExtrasBuilder()Implementation-specific information can be encoded herecom.google.protobuf.StructOrBuildergetExtrasOrBuilder()Implementation-specific information can be encoded herejava.lang.StringgetTexts(int index)List of strings that shall be embedded (i.e., converted to vectors).com.google.protobuf.ByteStringgetTextsBytes(int index)List of strings that shall be embedded (i.e., converted to vectors).intgetTextsCount()List of strings that shall be embedded (i.e., converted to vectors).com.google.protobuf.ProtocolStringListgetTextsList()List of strings that shall be embedded (i.e., converted to vectors).booleanhasConfig()Spacy config.booleanhasExtras()Implementation-specific information can be encoded hereprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()VectorsRequest.BuildermergeConfig(NlpConfig value)Spacy config.VectorsRequest.BuildermergeExtras(com.google.protobuf.Struct value)Implementation-specific information can be encoded hereVectorsRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VectorsRequest.BuildermergeFrom(com.google.protobuf.Message other)VectorsRequest.BuildermergeFrom(VectorsRequest other)VectorsRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VectorsRequest.BuildersetConfig(NlpConfig value)Spacy config.VectorsRequest.BuildersetConfig(NlpConfig.Builder builderForValue)Spacy config.VectorsRequest.BuildersetEmbeddingLevels(int index, EmbeddingLevel value)List of vectors that shall be returned.VectorsRequest.BuildersetEmbeddingLevelsValue(int index, int value)List of vectors that shall be returned.VectorsRequest.BuildersetExtras(com.google.protobuf.Struct value)Implementation-specific information can be encoded hereVectorsRequest.BuildersetExtras(com.google.protobuf.Struct.Builder builderForValue)Implementation-specific information can be encoded hereVectorsRequest.BuildersetTexts(int index, java.lang.String value)List of strings that shall be embedded (i.e., converted to vectors).VectorsRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder>
-
clear
public VectorsRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder>
-
getDefaultInstanceForType
public VectorsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VectorsRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VectorsRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public VectorsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VectorsRequest.Builder>
-
mergeFrom
public VectorsRequest.Builder mergeFrom(VectorsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder>
-
mergeFrom
public VectorsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VectorsRequest.Builder>- Throws:
java.io.IOException
-
hasConfig
public boolean hasConfig()
Spacy config.
.arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"];- Specified by:
hasConfigin interfaceVectorsRequestOrBuilder- 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:
getConfigin interfaceVectorsRequestOrBuilder- 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:
getConfigOrBuilderin interfaceVectorsRequestOrBuilder
-
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:
getTextsListin interfaceVectorsRequestOrBuilder- 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:
getTextsCountin interfaceVectorsRequestOrBuilder- Returns:
- The count of texts.
-
getTexts
public java.lang.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:
getTextsin interfaceVectorsRequestOrBuilder- 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:
getTextsBytesin interfaceVectorsRequestOrBuilder- 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, java.lang.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(java.lang.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(java.lang.Iterable<java.lang.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 java.util.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:
getEmbeddingLevelsListin interfaceVectorsRequestOrBuilder- 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:
getEmbeddingLevelsCountin interfaceVectorsRequestOrBuilder- 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:
getEmbeddingLevelsin interfaceVectorsRequestOrBuilder- 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(java.lang.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 java.util.List<java.lang.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:
getEmbeddingLevelsValueListin interfaceVectorsRequestOrBuilder- 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:
getEmbeddingLevelsValuein interfaceVectorsRequestOrBuilder- 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(java.lang.Iterable<java.lang.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:
hasExtrasin interfaceVectorsRequestOrBuilder- 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:
getExtrasin interfaceVectorsRequestOrBuilder- 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:
getExtrasOrBuilderin interfaceVectorsRequestOrBuilder
-
setUnknownFields
public final VectorsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder>
-
mergeUnknownFields
public final VectorsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder>
-
-