Package io.dingodb.diskann
Class Diskann.VectorPushDataRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Diskann.VectorPushDataRequest.Builder>
io.dingodb.diskann.Diskann.VectorPushDataRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Diskann.VectorPushDataRequestOrBuilder,Cloneable
- Enclosing class:
- Diskann.VectorPushDataRequest
public static final class Diskann.VectorPushDataRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Diskann.VectorPushDataRequest.Builder>
implements Diskann.VectorPushDataRequestOrBuilder
Protobuf type
dingodb.pb.diskann.VectorPushDataRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllVectorIds(Iterable<? extends Long> values) vector idaddAllVectors(Iterable<? extends Common.Vector> values) vector dataaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addVectorIds(long value) vector idaddVectors(int index, Common.Vector value) vector dataaddVectors(int index, Common.Vector.Builder builderForValue) vector dataaddVectors(Common.Vector value) vector dataaddVectors(Common.Vector.Builder builderForValue) vector datavector dataaddVectorsBuilder(int index) vector databuild()clear()The number of vectors already sent in this round of data transmission.If an error occurs, cancel this round of data transmission.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If true, force to load data even if file already exist.Is there any data behind.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) .dingodb.pb.common.RequestInfo request_info = 1;clearTs()data versionclearTso()unique transaction idvector idvector index ID is equivalent to region_idvector dataclone()longThe number of vectors already sent in this round of data transmission.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetError()If an error occurs, cancel this round of data transmission.intIf an error occurs, cancel this round of data transmission.booleanIf true, force to load data even if file already exist.booleanIs there any data behind..dingodb.pb.common.RequestInfo request_info = 1;.dingodb.pb.common.RequestInfo request_info = 1;.dingodb.pb.common.RequestInfo request_info = 1;longgetTs()data versionlonggetTso()unique transaction idlonggetVectorIds(int index) vector idintvector idvector idlongvector index ID is equivalent to region_idgetVectors(int index) vector datagetVectorsBuilder(int index) vector datavector dataintvector datavector datagetVectorsOrBuilder(int index) vector dataList<? extends Common.VectorOrBuilder>vector databoolean.dingodb.pb.common.RequestInfo request_info = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) .dingodb.pb.common.RequestInfo request_info = 1;mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeVectors(int index) vector datasetAlreadySendVectorCount(long value) The number of vectors already sent in this round of data transmission.setError(ErrorOuterClass.Errno value) If an error occurs, cancel this round of data transmission.setErrorValue(int value) If an error occurs, cancel this round of data transmission.setForceToLoadDataIfExist(boolean value) If true, force to load data even if file already exist.setHasMore(boolean value) Is there any data behind.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequestInfo(Common.RequestInfo value) .dingodb.pb.common.RequestInfo request_info = 1;setRequestInfo(Common.RequestInfo.Builder builderForValue) .dingodb.pb.common.RequestInfo request_info = 1;setTs(long value) data versionsetTso(long value) unique transaction idsetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVectorIds(int index, long value) vector idsetVectorIndexId(long value) vector index ID is equivalent to region_idsetVectors(int index, Common.Vector value) vector datasetVectors(int index, Common.Vector.Builder builderForValue) vector dataMethods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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<Diskann.VectorPushDataRequest.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<Diskann.VectorPushDataRequest.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<Diskann.VectorPushDataRequest.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<Diskann.VectorPushDataRequest.Builder>
-
setField
public Diskann.VectorPushDataRequest.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<Diskann.VectorPushDataRequest.Builder>
-
clearField
public Diskann.VectorPushDataRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Diskann.VectorPushDataRequest.Builder>
-
clearOneof
public Diskann.VectorPushDataRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Diskann.VectorPushDataRequest.Builder>
-
setRepeatedField
public Diskann.VectorPushDataRequest.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<Diskann.VectorPushDataRequest.Builder>
-
addRepeatedField
public Diskann.VectorPushDataRequest.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<Diskann.VectorPushDataRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Diskann.VectorPushDataRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Diskann.VectorPushDataRequest.Builder>
-
mergeFrom
public Diskann.VectorPushDataRequest.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<Diskann.VectorPushDataRequest.Builder>- Throws:
IOException
-
hasRequestInfo
public boolean hasRequestInfo().dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
hasRequestInfoin interfaceDiskann.VectorPushDataRequestOrBuilder- Returns:
- Whether the requestInfo field is set.
-
getRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
getRequestInfoin interfaceDiskann.VectorPushDataRequestOrBuilder- Returns:
- The requestInfo.
-
setRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1; -
setRequestInfo
public Diskann.VectorPushDataRequest.Builder setRequestInfo(Common.RequestInfo.Builder builderForValue) .dingodb.pb.common.RequestInfo request_info = 1; -
mergeRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1; -
clearRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1; -
getRequestInfoBuilder
.dingodb.pb.common.RequestInfo request_info = 1; -
getRequestInfoOrBuilder
.dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
getRequestInfoOrBuilderin interfaceDiskann.VectorPushDataRequestOrBuilder
-
getVectorIndexId
public long getVectorIndexId()vector index ID is equivalent to region_id
int64 vector_index_id = 2;- Specified by:
getVectorIndexIdin interfaceDiskann.VectorPushDataRequestOrBuilder- Returns:
- The vectorIndexId.
-
setVectorIndexId
vector index ID is equivalent to region_id
int64 vector_index_id = 2;- Parameters:
value- The vectorIndexId to set.- Returns:
- This builder for chaining.
-
clearVectorIndexId
vector index ID is equivalent to region_id
int64 vector_index_id = 2;- Returns:
- This builder for chaining.
-
getVectorsList
vector data
repeated .dingodb.pb.common.Vector vectors = 3;- Specified by:
getVectorsListin interfaceDiskann.VectorPushDataRequestOrBuilder
-
getVectorsCount
public int getVectorsCount()vector data
repeated .dingodb.pb.common.Vector vectors = 3;- Specified by:
getVectorsCountin interfaceDiskann.VectorPushDataRequestOrBuilder
-
getVectors
vector data
repeated .dingodb.pb.common.Vector vectors = 3;- Specified by:
getVectorsin interfaceDiskann.VectorPushDataRequestOrBuilder
-
setVectors
vector data
repeated .dingodb.pb.common.Vector vectors = 3; -
setVectors
public Diskann.VectorPushDataRequest.Builder setVectors(int index, Common.Vector.Builder builderForValue) vector data
repeated .dingodb.pb.common.Vector vectors = 3; -
addVectors
vector data
repeated .dingodb.pb.common.Vector vectors = 3; -
addVectors
vector data
repeated .dingodb.pb.common.Vector vectors = 3; -
addVectors
vector data
repeated .dingodb.pb.common.Vector vectors = 3; -
addVectors
public Diskann.VectorPushDataRequest.Builder addVectors(int index, Common.Vector.Builder builderForValue) vector data
repeated .dingodb.pb.common.Vector vectors = 3; -
addAllVectors
public Diskann.VectorPushDataRequest.Builder addAllVectors(Iterable<? extends Common.Vector> values) vector data
repeated .dingodb.pb.common.Vector vectors = 3; -
clearVectors
vector data
repeated .dingodb.pb.common.Vector vectors = 3; -
removeVectors
vector data
repeated .dingodb.pb.common.Vector vectors = 3; -
getVectorsBuilder
vector data
repeated .dingodb.pb.common.Vector vectors = 3; -
getVectorsOrBuilder
vector data
repeated .dingodb.pb.common.Vector vectors = 3;- Specified by:
getVectorsOrBuilderin interfaceDiskann.VectorPushDataRequestOrBuilder
-
getVectorsOrBuilderList
vector data
repeated .dingodb.pb.common.Vector vectors = 3;- Specified by:
getVectorsOrBuilderListin interfaceDiskann.VectorPushDataRequestOrBuilder
-
addVectorsBuilder
vector data
repeated .dingodb.pb.common.Vector vectors = 3; -
addVectorsBuilder
vector data
repeated .dingodb.pb.common.Vector vectors = 3; -
getVectorsBuilderList
vector data
repeated .dingodb.pb.common.Vector vectors = 3; -
getVectorIdsList
vector id
repeated int64 vector_ids = 4;- Specified by:
getVectorIdsListin interfaceDiskann.VectorPushDataRequestOrBuilder- Returns:
- A list containing the vectorIds.
-
getVectorIdsCount
public int getVectorIdsCount()vector id
repeated int64 vector_ids = 4;- Specified by:
getVectorIdsCountin interfaceDiskann.VectorPushDataRequestOrBuilder- Returns:
- The count of vectorIds.
-
getVectorIds
public long getVectorIds(int index) vector id
repeated int64 vector_ids = 4;- Specified by:
getVectorIdsin interfaceDiskann.VectorPushDataRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The vectorIds at the given index.
-
setVectorIds
vector id
repeated int64 vector_ids = 4;- Parameters:
index- The index to set the value at.value- The vectorIds to set.- Returns:
- This builder for chaining.
-
addVectorIds
vector id
repeated int64 vector_ids = 4;- Parameters:
value- The vectorIds to add.- Returns:
- This builder for chaining.
-
addAllVectorIds
vector id
repeated int64 vector_ids = 4;- Parameters:
values- The vectorIds to add.- Returns:
- This builder for chaining.
-
clearVectorIds
vector id
repeated int64 vector_ids = 4;- Returns:
- This builder for chaining.
-
getHasMore
public boolean getHasMore()Is there any data behind. ture : has data ; false : no data
bool has_more = 5;- Specified by:
getHasMorein interfaceDiskann.VectorPushDataRequestOrBuilder- Returns:
- The hasMore.
-
setHasMore
Is there any data behind. ture : has data ; false : no data
bool has_more = 5;- Parameters:
value- The hasMore to set.- Returns:
- This builder for chaining.
-
clearHasMore
Is there any data behind. ture : has data ; false : no data
bool has_more = 5;- Returns:
- This builder for chaining.
-
getErrorValue
public int getErrorValue()If an error occurs, cancel this round of data transmission.
.dingodb.pb.error.Errno error = 6;- Specified by:
getErrorValuein interfaceDiskann.VectorPushDataRequestOrBuilder- Returns:
- The enum numeric value on the wire for error.
-
setErrorValue
If an error occurs, cancel this round of data transmission.
.dingodb.pb.error.Errno error = 6;- Parameters:
value- The enum numeric value on the wire for error to set.- Returns:
- This builder for chaining.
-
getError
If an error occurs, cancel this round of data transmission.
.dingodb.pb.error.Errno error = 6;- Specified by:
getErrorin interfaceDiskann.VectorPushDataRequestOrBuilder- Returns:
- The error.
-
setError
If an error occurs, cancel this round of data transmission.
.dingodb.pb.error.Errno error = 6;- Parameters:
value- The error to set.- Returns:
- This builder for chaining.
-
clearError
If an error occurs, cancel this round of data transmission.
.dingodb.pb.error.Errno error = 6;- Returns:
- This builder for chaining.
-
getForceToLoadDataIfExist
public boolean getForceToLoadDataIfExist()If true, force to load data even if file already exist.
bool force_to_load_data_if_exist = 7;- Specified by:
getForceToLoadDataIfExistin interfaceDiskann.VectorPushDataRequestOrBuilder- Returns:
- The forceToLoadDataIfExist.
-
setForceToLoadDataIfExist
If true, force to load data even if file already exist.
bool force_to_load_data_if_exist = 7;- Parameters:
value- The forceToLoadDataIfExist to set.- Returns:
- This builder for chaining.
-
clearForceToLoadDataIfExist
If true, force to load data even if file already exist.
bool force_to_load_data_if_exist = 7;- Returns:
- This builder for chaining.
-
getAlreadySendVectorCount
public long getAlreadySendVectorCount()The number of vectors already sent in this round of data transmission. (Not including this)
int64 already_send_vector_count = 8;- Specified by:
getAlreadySendVectorCountin interfaceDiskann.VectorPushDataRequestOrBuilder- Returns:
- The alreadySendVectorCount.
-
setAlreadySendVectorCount
The number of vectors already sent in this round of data transmission. (Not including this)
int64 already_send_vector_count = 8;- Parameters:
value- The alreadySendVectorCount to set.- Returns:
- This builder for chaining.
-
clearAlreadySendVectorCount
The number of vectors already sent in this round of data transmission. (Not including this)
int64 already_send_vector_count = 8;- Returns:
- This builder for chaining.
-
getTs
public long getTs()data version
int64 ts = 9;- Specified by:
getTsin interfaceDiskann.VectorPushDataRequestOrBuilder- Returns:
- The ts.
-
setTs
data version
int64 ts = 9;- Parameters:
value- The ts to set.- Returns:
- This builder for chaining.
-
clearTs
data version
int64 ts = 9;- Returns:
- This builder for chaining.
-
getTso
public long getTso()unique transaction id
int64 tso = 10;- Specified by:
getTsoin interfaceDiskann.VectorPushDataRequestOrBuilder- Returns:
- The tso.
-
setTso
unique transaction id
int64 tso = 10;- Parameters:
value- The tso to set.- Returns:
- This builder for chaining.
-
clearTso
unique transaction id
int64 tso = 10;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Diskann.VectorPushDataRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Diskann.VectorPushDataRequest.Builder>
-
mergeUnknownFields
public final Diskann.VectorPushDataRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Diskann.VectorPushDataRequest.Builder>
-