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 Summary
Modifier and TypeMethodDescriptionaddAllEmbeddingLevels(Iterable<? extends EmbeddingLevel> values) List of vectors that shall be returned.addAllEmbeddingLevelsValue(Iterable<Integer> values) List of vectors that shall be returned.addAllTexts(Iterable<String> values) List of strings that shall be embedded (i.e., converted to vectors).addEmbeddingLevels(EmbeddingLevel value) List of vectors that shall be returned.addEmbeddingLevelsValue(int value) List of vectors that shall be returned.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) List of strings that shall be embedded (i.e., converted to vectors).addTextsBytes(com.google.protobuf.ByteString value) List of strings that shall be embedded (i.e., converted to vectors).build()clear()Spacy config.List of vectors that shall be returned.Implementation-specific information can be encoded hereclearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) List of strings that shall be embedded (i.e., converted to vectors).clone()Spacy config.Spacy config.Spacy config.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEmbeddingLevels(int index) List of vectors that shall be returned.intList of vectors that shall be returned.List of vectors that shall be returned.intgetEmbeddingLevelsValue(int index) List of vectors that shall be returned.List of vectors that shall be returned.com.google.protobuf.StructImplementation-specific information can be encoded herecom.google.protobuf.Struct.BuilderImplementation-specific information can be encoded herecom.google.protobuf.StructOrBuilderImplementation-specific information can be encoded heregetTexts(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).intList of strings that shall be embedded (i.e., converted to vectors).com.google.protobuf.ProtocolStringListList of strings that shall be embedded (i.e., converted to vectors).booleanSpacy config.booleanImplementation-specific information can be encoded hereprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeConfig(NlpConfig value) Spacy config.mergeExtras(com.google.protobuf.Struct value) Implementation-specific information can be encoded heremergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(VectorsRequest other) final VectorsRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Spacy config.setConfig(NlpConfig.Builder builderForValue) Spacy config.setEmbeddingLevels(int index, EmbeddingLevel value) List of vectors that shall be returned.setEmbeddingLevelsValue(int index, int value) List of vectors that shall be returned.setExtras(com.google.protobuf.Struct value) Implementation-specific information can be encoded heresetExtras(com.google.protobuf.Struct.Builder builderForValue) Implementation-specific information can be encoded heresetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) List of strings that shall be embedded (i.e., converted to vectors).final VectorsRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder>
-
setField
public VectorsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder>
-
setRepeatedField
public VectorsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder>
-
addRepeatedField
public VectorsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VectorsRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VectorsRequest.Builder>
-
mergeFrom
-
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 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:
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
Spacy config.
.arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"];- Specified by:
getConfigin interfaceVectorsRequestOrBuilder- Returns:
- The config.
-
setConfig
Spacy config.
.arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"]; -
setConfig
Spacy config.
.arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"]; -
mergeConfig
Spacy config.
.arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"]; -
clearConfig
Spacy config.
.arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"]; -
getConfigBuilder
Spacy config.
.arg_services.nlp.v1.NlpConfig config = 1 [json_name = "config"]; -
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Implementation-specific information can be encoded here
.google.protobuf.Struct extras = 15 [json_name = "extras"]; -
setExtras
Implementation-specific information can be encoded here
.google.protobuf.Struct extras = 15 [json_name = "extras"]; -
mergeExtras
Implementation-specific information can be encoded here
.google.protobuf.Struct extras = 15 [json_name = "extras"]; -
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>
-