com.aerospike.vector.client.proto.HnswIndexUpdate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avs-client-java Show documentation
Show all versions of avs-client-java Show documentation
This project includes the Java client for Aerospike Vector Search for high-performance data interactions.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: types.proto
// Protobuf Java Version: 3.25.5
package com.aerospike.vector.client.proto;
/**
*
* Message to update a HNSW index parameters.
*
*
* Protobuf type {@code aerospike.vector.HnswIndexUpdate}
*/
public final class HnswIndexUpdate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:aerospike.vector.HnswIndexUpdate)
HnswIndexUpdateOrBuilder {
private static final long serialVersionUID = 0L;
// Use HnswIndexUpdate.newBuilder() to construct.
private HnswIndexUpdate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HnswIndexUpdate() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HnswIndexUpdate();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswIndexUpdate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswIndexUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aerospike.vector.client.proto.HnswIndexUpdate.class, com.aerospike.vector.client.proto.HnswIndexUpdate.Builder.class);
}
private int bitField0_;
public static final int BATCHINGPARAMS_FIELD_NUMBER = 1;
private com.aerospike.vector.client.proto.HnswBatchingParams batchingParams_;
/**
*
* Configures batching behaviour for batch based index update.
*
*
* optional .aerospike.vector.HnswBatchingParams batchingParams = 1;
* @return Whether the batchingParams field is set.
*/
@java.lang.Override
public boolean hasBatchingParams() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* optional .aerospike.vector.HnswBatchingParams batchingParams = 1;
* @return The batchingParams.
*/
@java.lang.Override
public com.aerospike.vector.client.proto.HnswBatchingParams getBatchingParams() {
return batchingParams_ == null ? com.aerospike.vector.client.proto.HnswBatchingParams.getDefaultInstance() : batchingParams_;
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* optional .aerospike.vector.HnswBatchingParams batchingParams = 1;
*/
@java.lang.Override
public com.aerospike.vector.client.proto.HnswBatchingParamsOrBuilder getBatchingParamsOrBuilder() {
return batchingParams_ == null ? com.aerospike.vector.client.proto.HnswBatchingParams.getDefaultInstance() : batchingParams_;
}
public static final int MAXMEMQUEUESIZE_FIELD_NUMBER = 2;
private int maxMemQueueSize_ = 0;
/**
*
* Maximum size of in-memory queue for inserted/updated vector records.
* If the queue is full the record upsert will either be rejected with
* a RESOURCE_EXHAUSTED error or written to storage for index healer to
* later pick the record for indexing based on the put option.
* Defaults to global indexing config configured for the VectorDB.
*
*
* optional uint32 maxMemQueueSize = 2;
* @return Whether the maxMemQueueSize field is set.
*/
@java.lang.Override
public boolean hasMaxMemQueueSize() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Maximum size of in-memory queue for inserted/updated vector records.
* If the queue is full the record upsert will either be rejected with
* a RESOURCE_EXHAUSTED error or written to storage for index healer to
* later pick the record for indexing based on the put option.
* Defaults to global indexing config configured for the VectorDB.
*
*
* optional uint32 maxMemQueueSize = 2;
* @return The maxMemQueueSize.
*/
@java.lang.Override
public int getMaxMemQueueSize() {
return maxMemQueueSize_;
}
public static final int INDEXCACHINGPARAMS_FIELD_NUMBER = 3;
private com.aerospike.vector.client.proto.HnswCachingParams indexCachingParams_;
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* optional .aerospike.vector.HnswCachingParams indexCachingParams = 3;
* @return Whether the indexCachingParams field is set.
*/
@java.lang.Override
public boolean hasIndexCachingParams() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* optional .aerospike.vector.HnswCachingParams indexCachingParams = 3;
* @return The indexCachingParams.
*/
@java.lang.Override
public com.aerospike.vector.client.proto.HnswCachingParams getIndexCachingParams() {
return indexCachingParams_ == null ? com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance() : indexCachingParams_;
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* optional .aerospike.vector.HnswCachingParams indexCachingParams = 3;
*/
@java.lang.Override
public com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder getIndexCachingParamsOrBuilder() {
return indexCachingParams_ == null ? com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance() : indexCachingParams_;
}
public static final int HEALERPARAMS_FIELD_NUMBER = 4;
private com.aerospike.vector.client.proto.HnswHealerParams healerParams_;
/**
*
* Configures index healer params.
*
*
* optional .aerospike.vector.HnswHealerParams healerParams = 4;
* @return Whether the healerParams field is set.
*/
@java.lang.Override
public boolean hasHealerParams() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Configures index healer params.
*
*
* optional .aerospike.vector.HnswHealerParams healerParams = 4;
* @return The healerParams.
*/
@java.lang.Override
public com.aerospike.vector.client.proto.HnswHealerParams getHealerParams() {
return healerParams_ == null ? com.aerospike.vector.client.proto.HnswHealerParams.getDefaultInstance() : healerParams_;
}
/**
*
* Configures index healer params.
*
*
* optional .aerospike.vector.HnswHealerParams healerParams = 4;
*/
@java.lang.Override
public com.aerospike.vector.client.proto.HnswHealerParamsOrBuilder getHealerParamsOrBuilder() {
return healerParams_ == null ? com.aerospike.vector.client.proto.HnswHealerParams.getDefaultInstance() : healerParams_;
}
public static final int MERGEPARAMS_FIELD_NUMBER = 5;
private com.aerospike.vector.client.proto.HnswIndexMergeParams mergeParams_;
/**
*
* Configures merge of batch indices to main index.
*
*
* optional .aerospike.vector.HnswIndexMergeParams mergeParams = 5;
* @return Whether the mergeParams field is set.
*/
@java.lang.Override
public boolean hasMergeParams() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Configures merge of batch indices to main index.
*
*
* optional .aerospike.vector.HnswIndexMergeParams mergeParams = 5;
* @return The mergeParams.
*/
@java.lang.Override
public com.aerospike.vector.client.proto.HnswIndexMergeParams getMergeParams() {
return mergeParams_ == null ? com.aerospike.vector.client.proto.HnswIndexMergeParams.getDefaultInstance() : mergeParams_;
}
/**
*
* Configures merge of batch indices to main index.
*
*
* optional .aerospike.vector.HnswIndexMergeParams mergeParams = 5;
*/
@java.lang.Override
public com.aerospike.vector.client.proto.HnswIndexMergeParamsOrBuilder getMergeParamsOrBuilder() {
return mergeParams_ == null ? com.aerospike.vector.client.proto.HnswIndexMergeParams.getDefaultInstance() : mergeParams_;
}
public static final int ENABLEVECTORINTEGRITYCHECK_FIELD_NUMBER = 6;
private boolean enableVectorIntegrityCheck_ = false;
/**
*
* Verify whether the underlying vector has changed before returning the kAnn
* result. Defaults to true.
*
*
* optional bool enableVectorIntegrityCheck = 6;
* @return Whether the enableVectorIntegrityCheck field is set.
*/
@java.lang.Override
public boolean hasEnableVectorIntegrityCheck() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Verify whether the underlying vector has changed before returning the kAnn
* result. Defaults to true.
*
*
* optional bool enableVectorIntegrityCheck = 6;
* @return The enableVectorIntegrityCheck.
*/
@java.lang.Override
public boolean getEnableVectorIntegrityCheck() {
return enableVectorIntegrityCheck_;
}
public static final int RECORDCACHINGPARAMS_FIELD_NUMBER = 7;
private com.aerospike.vector.client.proto.HnswCachingParams recordCachingParams_;
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 7;
* @return Whether the recordCachingParams field is set.
*/
@java.lang.Override
public boolean hasRecordCachingParams() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 7;
* @return The recordCachingParams.
*/
@java.lang.Override
public com.aerospike.vector.client.proto.HnswCachingParams getRecordCachingParams() {
return recordCachingParams_ == null ? com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance() : recordCachingParams_;
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 7;
*/
@java.lang.Override
public com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder getRecordCachingParamsOrBuilder() {
return recordCachingParams_ == null ? com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance() : recordCachingParams_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getBatchingParams());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(2, maxMemQueueSize_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getIndexCachingParams());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getHealerParams());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getMergeParams());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(6, enableVectorIntegrityCheck_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(7, getRecordCachingParams());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBatchingParams());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, maxMemQueueSize_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getIndexCachingParams());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getHealerParams());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getMergeParams());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, enableVectorIntegrityCheck_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getRecordCachingParams());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.aerospike.vector.client.proto.HnswIndexUpdate)) {
return super.equals(obj);
}
com.aerospike.vector.client.proto.HnswIndexUpdate other = (com.aerospike.vector.client.proto.HnswIndexUpdate) obj;
if (hasBatchingParams() != other.hasBatchingParams()) return false;
if (hasBatchingParams()) {
if (!getBatchingParams()
.equals(other.getBatchingParams())) return false;
}
if (hasMaxMemQueueSize() != other.hasMaxMemQueueSize()) return false;
if (hasMaxMemQueueSize()) {
if (getMaxMemQueueSize()
!= other.getMaxMemQueueSize()) return false;
}
if (hasIndexCachingParams() != other.hasIndexCachingParams()) return false;
if (hasIndexCachingParams()) {
if (!getIndexCachingParams()
.equals(other.getIndexCachingParams())) return false;
}
if (hasHealerParams() != other.hasHealerParams()) return false;
if (hasHealerParams()) {
if (!getHealerParams()
.equals(other.getHealerParams())) return false;
}
if (hasMergeParams() != other.hasMergeParams()) return false;
if (hasMergeParams()) {
if (!getMergeParams()
.equals(other.getMergeParams())) return false;
}
if (hasEnableVectorIntegrityCheck() != other.hasEnableVectorIntegrityCheck()) return false;
if (hasEnableVectorIntegrityCheck()) {
if (getEnableVectorIntegrityCheck()
!= other.getEnableVectorIntegrityCheck()) return false;
}
if (hasRecordCachingParams() != other.hasRecordCachingParams()) return false;
if (hasRecordCachingParams()) {
if (!getRecordCachingParams()
.equals(other.getRecordCachingParams())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasBatchingParams()) {
hash = (37 * hash) + BATCHINGPARAMS_FIELD_NUMBER;
hash = (53 * hash) + getBatchingParams().hashCode();
}
if (hasMaxMemQueueSize()) {
hash = (37 * hash) + MAXMEMQUEUESIZE_FIELD_NUMBER;
hash = (53 * hash) + getMaxMemQueueSize();
}
if (hasIndexCachingParams()) {
hash = (37 * hash) + INDEXCACHINGPARAMS_FIELD_NUMBER;
hash = (53 * hash) + getIndexCachingParams().hashCode();
}
if (hasHealerParams()) {
hash = (37 * hash) + HEALERPARAMS_FIELD_NUMBER;
hash = (53 * hash) + getHealerParams().hashCode();
}
if (hasMergeParams()) {
hash = (37 * hash) + MERGEPARAMS_FIELD_NUMBER;
hash = (53 * hash) + getMergeParams().hashCode();
}
if (hasEnableVectorIntegrityCheck()) {
hash = (37 * hash) + ENABLEVECTORINTEGRITYCHECK_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnableVectorIntegrityCheck());
}
if (hasRecordCachingParams()) {
hash = (37 * hash) + RECORDCACHINGPARAMS_FIELD_NUMBER;
hash = (53 * hash) + getRecordCachingParams().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.aerospike.vector.client.proto.HnswIndexUpdate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aerospike.vector.client.proto.HnswIndexUpdate parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aerospike.vector.client.proto.HnswIndexUpdate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aerospike.vector.client.proto.HnswIndexUpdate parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aerospike.vector.client.proto.HnswIndexUpdate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aerospike.vector.client.proto.HnswIndexUpdate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.aerospike.vector.client.proto.HnswIndexUpdate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aerospike.vector.client.proto.HnswIndexUpdate parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.aerospike.vector.client.proto.HnswIndexUpdate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aerospike.vector.client.proto.HnswIndexUpdate parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.aerospike.vector.client.proto.HnswIndexUpdate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aerospike.vector.client.proto.HnswIndexUpdate parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.aerospike.vector.client.proto.HnswIndexUpdate prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Message to update a HNSW index parameters.
*
*
* Protobuf type {@code aerospike.vector.HnswIndexUpdate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:aerospike.vector.HnswIndexUpdate)
com.aerospike.vector.client.proto.HnswIndexUpdateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswIndexUpdate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswIndexUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aerospike.vector.client.proto.HnswIndexUpdate.class, com.aerospike.vector.client.proto.HnswIndexUpdate.Builder.class);
}
// Construct using com.aerospike.vector.client.proto.HnswIndexUpdate.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBatchingParamsFieldBuilder();
getIndexCachingParamsFieldBuilder();
getHealerParamsFieldBuilder();
getMergeParamsFieldBuilder();
getRecordCachingParamsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
batchingParams_ = null;
if (batchingParamsBuilder_ != null) {
batchingParamsBuilder_.dispose();
batchingParamsBuilder_ = null;
}
maxMemQueueSize_ = 0;
indexCachingParams_ = null;
if (indexCachingParamsBuilder_ != null) {
indexCachingParamsBuilder_.dispose();
indexCachingParamsBuilder_ = null;
}
healerParams_ = null;
if (healerParamsBuilder_ != null) {
healerParamsBuilder_.dispose();
healerParamsBuilder_ = null;
}
mergeParams_ = null;
if (mergeParamsBuilder_ != null) {
mergeParamsBuilder_.dispose();
mergeParamsBuilder_ = null;
}
enableVectorIntegrityCheck_ = false;
recordCachingParams_ = null;
if (recordCachingParamsBuilder_ != null) {
recordCachingParamsBuilder_.dispose();
recordCachingParamsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswIndexUpdate_descriptor;
}
@java.lang.Override
public com.aerospike.vector.client.proto.HnswIndexUpdate getDefaultInstanceForType() {
return com.aerospike.vector.client.proto.HnswIndexUpdate.getDefaultInstance();
}
@java.lang.Override
public com.aerospike.vector.client.proto.HnswIndexUpdate build() {
com.aerospike.vector.client.proto.HnswIndexUpdate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aerospike.vector.client.proto.HnswIndexUpdate buildPartial() {
com.aerospike.vector.client.proto.HnswIndexUpdate result = new com.aerospike.vector.client.proto.HnswIndexUpdate(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.aerospike.vector.client.proto.HnswIndexUpdate result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.batchingParams_ = batchingParamsBuilder_ == null
? batchingParams_
: batchingParamsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.maxMemQueueSize_ = maxMemQueueSize_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.indexCachingParams_ = indexCachingParamsBuilder_ == null
? indexCachingParams_
: indexCachingParamsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.healerParams_ = healerParamsBuilder_ == null
? healerParams_
: healerParamsBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.mergeParams_ = mergeParamsBuilder_ == null
? mergeParams_
: mergeParamsBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.enableVectorIntegrityCheck_ = enableVectorIntegrityCheck_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.recordCachingParams_ = recordCachingParamsBuilder_ == null
? recordCachingParams_
: recordCachingParamsBuilder_.build();
to_bitField0_ |= 0x00000040;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.aerospike.vector.client.proto.HnswIndexUpdate) {
return mergeFrom((com.aerospike.vector.client.proto.HnswIndexUpdate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aerospike.vector.client.proto.HnswIndexUpdate other) {
if (other == com.aerospike.vector.client.proto.HnswIndexUpdate.getDefaultInstance()) return this;
if (other.hasBatchingParams()) {
mergeBatchingParams(other.getBatchingParams());
}
if (other.hasMaxMemQueueSize()) {
setMaxMemQueueSize(other.getMaxMemQueueSize());
}
if (other.hasIndexCachingParams()) {
mergeIndexCachingParams(other.getIndexCachingParams());
}
if (other.hasHealerParams()) {
mergeHealerParams(other.getHealerParams());
}
if (other.hasMergeParams()) {
mergeMergeParams(other.getMergeParams());
}
if (other.hasEnableVectorIntegrityCheck()) {
setEnableVectorIntegrityCheck(other.getEnableVectorIntegrityCheck());
}
if (other.hasRecordCachingParams()) {
mergeRecordCachingParams(other.getRecordCachingParams());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getBatchingParamsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
maxMemQueueSize_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getIndexCachingParamsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getHealerParamsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getMergeParamsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
enableVectorIntegrityCheck_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
input.readMessage(
getRecordCachingParamsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.aerospike.vector.client.proto.HnswBatchingParams batchingParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswBatchingParams, com.aerospike.vector.client.proto.HnswBatchingParams.Builder, com.aerospike.vector.client.proto.HnswBatchingParamsOrBuilder> batchingParamsBuilder_;
/**
*
* Configures batching behaviour for batch based index update.
*
*
* optional .aerospike.vector.HnswBatchingParams batchingParams = 1;
* @return Whether the batchingParams field is set.
*/
public boolean hasBatchingParams() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* optional .aerospike.vector.HnswBatchingParams batchingParams = 1;
* @return The batchingParams.
*/
public com.aerospike.vector.client.proto.HnswBatchingParams getBatchingParams() {
if (batchingParamsBuilder_ == null) {
return batchingParams_ == null ? com.aerospike.vector.client.proto.HnswBatchingParams.getDefaultInstance() : batchingParams_;
} else {
return batchingParamsBuilder_.getMessage();
}
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* optional .aerospike.vector.HnswBatchingParams batchingParams = 1;
*/
public Builder setBatchingParams(com.aerospike.vector.client.proto.HnswBatchingParams value) {
if (batchingParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
batchingParams_ = value;
} else {
batchingParamsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* optional .aerospike.vector.HnswBatchingParams batchingParams = 1;
*/
public Builder setBatchingParams(
com.aerospike.vector.client.proto.HnswBatchingParams.Builder builderForValue) {
if (batchingParamsBuilder_ == null) {
batchingParams_ = builderForValue.build();
} else {
batchingParamsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* optional .aerospike.vector.HnswBatchingParams batchingParams = 1;
*/
public Builder mergeBatchingParams(com.aerospike.vector.client.proto.HnswBatchingParams value) {
if (batchingParamsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
batchingParams_ != null &&
batchingParams_ != com.aerospike.vector.client.proto.HnswBatchingParams.getDefaultInstance()) {
getBatchingParamsBuilder().mergeFrom(value);
} else {
batchingParams_ = value;
}
} else {
batchingParamsBuilder_.mergeFrom(value);
}
if (batchingParams_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* optional .aerospike.vector.HnswBatchingParams batchingParams = 1;
*/
public Builder clearBatchingParams() {
bitField0_ = (bitField0_ & ~0x00000001);
batchingParams_ = null;
if (batchingParamsBuilder_ != null) {
batchingParamsBuilder_.dispose();
batchingParamsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* optional .aerospike.vector.HnswBatchingParams batchingParams = 1;
*/
public com.aerospike.vector.client.proto.HnswBatchingParams.Builder getBatchingParamsBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBatchingParamsFieldBuilder().getBuilder();
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* optional .aerospike.vector.HnswBatchingParams batchingParams = 1;
*/
public com.aerospike.vector.client.proto.HnswBatchingParamsOrBuilder getBatchingParamsOrBuilder() {
if (batchingParamsBuilder_ != null) {
return batchingParamsBuilder_.getMessageOrBuilder();
} else {
return batchingParams_ == null ?
com.aerospike.vector.client.proto.HnswBatchingParams.getDefaultInstance() : batchingParams_;
}
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* optional .aerospike.vector.HnswBatchingParams batchingParams = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswBatchingParams, com.aerospike.vector.client.proto.HnswBatchingParams.Builder, com.aerospike.vector.client.proto.HnswBatchingParamsOrBuilder>
getBatchingParamsFieldBuilder() {
if (batchingParamsBuilder_ == null) {
batchingParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswBatchingParams, com.aerospike.vector.client.proto.HnswBatchingParams.Builder, com.aerospike.vector.client.proto.HnswBatchingParamsOrBuilder>(
getBatchingParams(),
getParentForChildren(),
isClean());
batchingParams_ = null;
}
return batchingParamsBuilder_;
}
private int maxMemQueueSize_ ;
/**
*
* Maximum size of in-memory queue for inserted/updated vector records.
* If the queue is full the record upsert will either be rejected with
* a RESOURCE_EXHAUSTED error or written to storage for index healer to
* later pick the record for indexing based on the put option.
* Defaults to global indexing config configured for the VectorDB.
*
*
* optional uint32 maxMemQueueSize = 2;
* @return Whether the maxMemQueueSize field is set.
*/
@java.lang.Override
public boolean hasMaxMemQueueSize() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Maximum size of in-memory queue for inserted/updated vector records.
* If the queue is full the record upsert will either be rejected with
* a RESOURCE_EXHAUSTED error or written to storage for index healer to
* later pick the record for indexing based on the put option.
* Defaults to global indexing config configured for the VectorDB.
*
*
* optional uint32 maxMemQueueSize = 2;
* @return The maxMemQueueSize.
*/
@java.lang.Override
public int getMaxMemQueueSize() {
return maxMemQueueSize_;
}
/**
*
* Maximum size of in-memory queue for inserted/updated vector records.
* If the queue is full the record upsert will either be rejected with
* a RESOURCE_EXHAUSTED error or written to storage for index healer to
* later pick the record for indexing based on the put option.
* Defaults to global indexing config configured for the VectorDB.
*
*
* optional uint32 maxMemQueueSize = 2;
* @param value The maxMemQueueSize to set.
* @return This builder for chaining.
*/
public Builder setMaxMemQueueSize(int value) {
maxMemQueueSize_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Maximum size of in-memory queue for inserted/updated vector records.
* If the queue is full the record upsert will either be rejected with
* a RESOURCE_EXHAUSTED error or written to storage for index healer to
* later pick the record for indexing based on the put option.
* Defaults to global indexing config configured for the VectorDB.
*
*
* optional uint32 maxMemQueueSize = 2;
* @return This builder for chaining.
*/
public Builder clearMaxMemQueueSize() {
bitField0_ = (bitField0_ & ~0x00000002);
maxMemQueueSize_ = 0;
onChanged();
return this;
}
private com.aerospike.vector.client.proto.HnswCachingParams indexCachingParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswCachingParams, com.aerospike.vector.client.proto.HnswCachingParams.Builder, com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder> indexCachingParamsBuilder_;
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* optional .aerospike.vector.HnswCachingParams indexCachingParams = 3;
* @return Whether the indexCachingParams field is set.
*/
public boolean hasIndexCachingParams() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* optional .aerospike.vector.HnswCachingParams indexCachingParams = 3;
* @return The indexCachingParams.
*/
public com.aerospike.vector.client.proto.HnswCachingParams getIndexCachingParams() {
if (indexCachingParamsBuilder_ == null) {
return indexCachingParams_ == null ? com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance() : indexCachingParams_;
} else {
return indexCachingParamsBuilder_.getMessage();
}
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* optional .aerospike.vector.HnswCachingParams indexCachingParams = 3;
*/
public Builder setIndexCachingParams(com.aerospike.vector.client.proto.HnswCachingParams value) {
if (indexCachingParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
indexCachingParams_ = value;
} else {
indexCachingParamsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* optional .aerospike.vector.HnswCachingParams indexCachingParams = 3;
*/
public Builder setIndexCachingParams(
com.aerospike.vector.client.proto.HnswCachingParams.Builder builderForValue) {
if (indexCachingParamsBuilder_ == null) {
indexCachingParams_ = builderForValue.build();
} else {
indexCachingParamsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* optional .aerospike.vector.HnswCachingParams indexCachingParams = 3;
*/
public Builder mergeIndexCachingParams(com.aerospike.vector.client.proto.HnswCachingParams value) {
if (indexCachingParamsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
indexCachingParams_ != null &&
indexCachingParams_ != com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance()) {
getIndexCachingParamsBuilder().mergeFrom(value);
} else {
indexCachingParams_ = value;
}
} else {
indexCachingParamsBuilder_.mergeFrom(value);
}
if (indexCachingParams_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* optional .aerospike.vector.HnswCachingParams indexCachingParams = 3;
*/
public Builder clearIndexCachingParams() {
bitField0_ = (bitField0_ & ~0x00000004);
indexCachingParams_ = null;
if (indexCachingParamsBuilder_ != null) {
indexCachingParamsBuilder_.dispose();
indexCachingParamsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* optional .aerospike.vector.HnswCachingParams indexCachingParams = 3;
*/
public com.aerospike.vector.client.proto.HnswCachingParams.Builder getIndexCachingParamsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getIndexCachingParamsFieldBuilder().getBuilder();
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* optional .aerospike.vector.HnswCachingParams indexCachingParams = 3;
*/
public com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder getIndexCachingParamsOrBuilder() {
if (indexCachingParamsBuilder_ != null) {
return indexCachingParamsBuilder_.getMessageOrBuilder();
} else {
return indexCachingParams_ == null ?
com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance() : indexCachingParams_;
}
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* optional .aerospike.vector.HnswCachingParams indexCachingParams = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswCachingParams, com.aerospike.vector.client.proto.HnswCachingParams.Builder, com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder>
getIndexCachingParamsFieldBuilder() {
if (indexCachingParamsBuilder_ == null) {
indexCachingParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswCachingParams, com.aerospike.vector.client.proto.HnswCachingParams.Builder, com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder>(
getIndexCachingParams(),
getParentForChildren(),
isClean());
indexCachingParams_ = null;
}
return indexCachingParamsBuilder_;
}
private com.aerospike.vector.client.proto.HnswHealerParams healerParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswHealerParams, com.aerospike.vector.client.proto.HnswHealerParams.Builder, com.aerospike.vector.client.proto.HnswHealerParamsOrBuilder> healerParamsBuilder_;
/**
*
* Configures index healer params.
*
*
* optional .aerospike.vector.HnswHealerParams healerParams = 4;
* @return Whether the healerParams field is set.
*/
public boolean hasHealerParams() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Configures index healer params.
*
*
* optional .aerospike.vector.HnswHealerParams healerParams = 4;
* @return The healerParams.
*/
public com.aerospike.vector.client.proto.HnswHealerParams getHealerParams() {
if (healerParamsBuilder_ == null) {
return healerParams_ == null ? com.aerospike.vector.client.proto.HnswHealerParams.getDefaultInstance() : healerParams_;
} else {
return healerParamsBuilder_.getMessage();
}
}
/**
*
* Configures index healer params.
*
*
* optional .aerospike.vector.HnswHealerParams healerParams = 4;
*/
public Builder setHealerParams(com.aerospike.vector.client.proto.HnswHealerParams value) {
if (healerParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
healerParams_ = value;
} else {
healerParamsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Configures index healer params.
*
*
* optional .aerospike.vector.HnswHealerParams healerParams = 4;
*/
public Builder setHealerParams(
com.aerospike.vector.client.proto.HnswHealerParams.Builder builderForValue) {
if (healerParamsBuilder_ == null) {
healerParams_ = builderForValue.build();
} else {
healerParamsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Configures index healer params.
*
*
* optional .aerospike.vector.HnswHealerParams healerParams = 4;
*/
public Builder mergeHealerParams(com.aerospike.vector.client.proto.HnswHealerParams value) {
if (healerParamsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
healerParams_ != null &&
healerParams_ != com.aerospike.vector.client.proto.HnswHealerParams.getDefaultInstance()) {
getHealerParamsBuilder().mergeFrom(value);
} else {
healerParams_ = value;
}
} else {
healerParamsBuilder_.mergeFrom(value);
}
if (healerParams_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Configures index healer params.
*
*
* optional .aerospike.vector.HnswHealerParams healerParams = 4;
*/
public Builder clearHealerParams() {
bitField0_ = (bitField0_ & ~0x00000008);
healerParams_ = null;
if (healerParamsBuilder_ != null) {
healerParamsBuilder_.dispose();
healerParamsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Configures index healer params.
*
*
* optional .aerospike.vector.HnswHealerParams healerParams = 4;
*/
public com.aerospike.vector.client.proto.HnswHealerParams.Builder getHealerParamsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getHealerParamsFieldBuilder().getBuilder();
}
/**
*
* Configures index healer params.
*
*
* optional .aerospike.vector.HnswHealerParams healerParams = 4;
*/
public com.aerospike.vector.client.proto.HnswHealerParamsOrBuilder getHealerParamsOrBuilder() {
if (healerParamsBuilder_ != null) {
return healerParamsBuilder_.getMessageOrBuilder();
} else {
return healerParams_ == null ?
com.aerospike.vector.client.proto.HnswHealerParams.getDefaultInstance() : healerParams_;
}
}
/**
*
* Configures index healer params.
*
*
* optional .aerospike.vector.HnswHealerParams healerParams = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswHealerParams, com.aerospike.vector.client.proto.HnswHealerParams.Builder, com.aerospike.vector.client.proto.HnswHealerParamsOrBuilder>
getHealerParamsFieldBuilder() {
if (healerParamsBuilder_ == null) {
healerParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswHealerParams, com.aerospike.vector.client.proto.HnswHealerParams.Builder, com.aerospike.vector.client.proto.HnswHealerParamsOrBuilder>(
getHealerParams(),
getParentForChildren(),
isClean());
healerParams_ = null;
}
return healerParamsBuilder_;
}
private com.aerospike.vector.client.proto.HnswIndexMergeParams mergeParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswIndexMergeParams, com.aerospike.vector.client.proto.HnswIndexMergeParams.Builder, com.aerospike.vector.client.proto.HnswIndexMergeParamsOrBuilder> mergeParamsBuilder_;
/**
*
* Configures merge of batch indices to main index.
*
*
* optional .aerospike.vector.HnswIndexMergeParams mergeParams = 5;
* @return Whether the mergeParams field is set.
*/
public boolean hasMergeParams() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Configures merge of batch indices to main index.
*
*
* optional .aerospike.vector.HnswIndexMergeParams mergeParams = 5;
* @return The mergeParams.
*/
public com.aerospike.vector.client.proto.HnswIndexMergeParams getMergeParams() {
if (mergeParamsBuilder_ == null) {
return mergeParams_ == null ? com.aerospike.vector.client.proto.HnswIndexMergeParams.getDefaultInstance() : mergeParams_;
} else {
return mergeParamsBuilder_.getMessage();
}
}
/**
*
* Configures merge of batch indices to main index.
*
*
* optional .aerospike.vector.HnswIndexMergeParams mergeParams = 5;
*/
public Builder setMergeParams(com.aerospike.vector.client.proto.HnswIndexMergeParams value) {
if (mergeParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
mergeParams_ = value;
} else {
mergeParamsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Configures merge of batch indices to main index.
*
*
* optional .aerospike.vector.HnswIndexMergeParams mergeParams = 5;
*/
public Builder setMergeParams(
com.aerospike.vector.client.proto.HnswIndexMergeParams.Builder builderForValue) {
if (mergeParamsBuilder_ == null) {
mergeParams_ = builderForValue.build();
} else {
mergeParamsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Configures merge of batch indices to main index.
*
*
* optional .aerospike.vector.HnswIndexMergeParams mergeParams = 5;
*/
public Builder mergeMergeParams(com.aerospike.vector.client.proto.HnswIndexMergeParams value) {
if (mergeParamsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
mergeParams_ != null &&
mergeParams_ != com.aerospike.vector.client.proto.HnswIndexMergeParams.getDefaultInstance()) {
getMergeParamsBuilder().mergeFrom(value);
} else {
mergeParams_ = value;
}
} else {
mergeParamsBuilder_.mergeFrom(value);
}
if (mergeParams_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Configures merge of batch indices to main index.
*
*
* optional .aerospike.vector.HnswIndexMergeParams mergeParams = 5;
*/
public Builder clearMergeParams() {
bitField0_ = (bitField0_ & ~0x00000010);
mergeParams_ = null;
if (mergeParamsBuilder_ != null) {
mergeParamsBuilder_.dispose();
mergeParamsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Configures merge of batch indices to main index.
*
*
* optional .aerospike.vector.HnswIndexMergeParams mergeParams = 5;
*/
public com.aerospike.vector.client.proto.HnswIndexMergeParams.Builder getMergeParamsBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getMergeParamsFieldBuilder().getBuilder();
}
/**
*
* Configures merge of batch indices to main index.
*
*
* optional .aerospike.vector.HnswIndexMergeParams mergeParams = 5;
*/
public com.aerospike.vector.client.proto.HnswIndexMergeParamsOrBuilder getMergeParamsOrBuilder() {
if (mergeParamsBuilder_ != null) {
return mergeParamsBuilder_.getMessageOrBuilder();
} else {
return mergeParams_ == null ?
com.aerospike.vector.client.proto.HnswIndexMergeParams.getDefaultInstance() : mergeParams_;
}
}
/**
*
* Configures merge of batch indices to main index.
*
*
* optional .aerospike.vector.HnswIndexMergeParams mergeParams = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswIndexMergeParams, com.aerospike.vector.client.proto.HnswIndexMergeParams.Builder, com.aerospike.vector.client.proto.HnswIndexMergeParamsOrBuilder>
getMergeParamsFieldBuilder() {
if (mergeParamsBuilder_ == null) {
mergeParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswIndexMergeParams, com.aerospike.vector.client.proto.HnswIndexMergeParams.Builder, com.aerospike.vector.client.proto.HnswIndexMergeParamsOrBuilder>(
getMergeParams(),
getParentForChildren(),
isClean());
mergeParams_ = null;
}
return mergeParamsBuilder_;
}
private boolean enableVectorIntegrityCheck_ ;
/**
*
* Verify whether the underlying vector has changed before returning the kAnn
* result. Defaults to true.
*
*
* optional bool enableVectorIntegrityCheck = 6;
* @return Whether the enableVectorIntegrityCheck field is set.
*/
@java.lang.Override
public boolean hasEnableVectorIntegrityCheck() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Verify whether the underlying vector has changed before returning the kAnn
* result. Defaults to true.
*
*
* optional bool enableVectorIntegrityCheck = 6;
* @return The enableVectorIntegrityCheck.
*/
@java.lang.Override
public boolean getEnableVectorIntegrityCheck() {
return enableVectorIntegrityCheck_;
}
/**
*
* Verify whether the underlying vector has changed before returning the kAnn
* result. Defaults to true.
*
*
* optional bool enableVectorIntegrityCheck = 6;
* @param value The enableVectorIntegrityCheck to set.
* @return This builder for chaining.
*/
public Builder setEnableVectorIntegrityCheck(boolean value) {
enableVectorIntegrityCheck_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Verify whether the underlying vector has changed before returning the kAnn
* result. Defaults to true.
*
*
* optional bool enableVectorIntegrityCheck = 6;
* @return This builder for chaining.
*/
public Builder clearEnableVectorIntegrityCheck() {
bitField0_ = (bitField0_ & ~0x00000020);
enableVectorIntegrityCheck_ = false;
onChanged();
return this;
}
private com.aerospike.vector.client.proto.HnswCachingParams recordCachingParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswCachingParams, com.aerospike.vector.client.proto.HnswCachingParams.Builder, com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder> recordCachingParamsBuilder_;
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 7;
* @return Whether the recordCachingParams field is set.
*/
public boolean hasRecordCachingParams() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 7;
* @return The recordCachingParams.
*/
public com.aerospike.vector.client.proto.HnswCachingParams getRecordCachingParams() {
if (recordCachingParamsBuilder_ == null) {
return recordCachingParams_ == null ? com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance() : recordCachingParams_;
} else {
return recordCachingParamsBuilder_.getMessage();
}
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 7;
*/
public Builder setRecordCachingParams(com.aerospike.vector.client.proto.HnswCachingParams value) {
if (recordCachingParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
recordCachingParams_ = value;
} else {
recordCachingParamsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 7;
*/
public Builder setRecordCachingParams(
com.aerospike.vector.client.proto.HnswCachingParams.Builder builderForValue) {
if (recordCachingParamsBuilder_ == null) {
recordCachingParams_ = builderForValue.build();
} else {
recordCachingParamsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 7;
*/
public Builder mergeRecordCachingParams(com.aerospike.vector.client.proto.HnswCachingParams value) {
if (recordCachingParamsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
recordCachingParams_ != null &&
recordCachingParams_ != com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance()) {
getRecordCachingParamsBuilder().mergeFrom(value);
} else {
recordCachingParams_ = value;
}
} else {
recordCachingParamsBuilder_.mergeFrom(value);
}
if (recordCachingParams_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 7;
*/
public Builder clearRecordCachingParams() {
bitField0_ = (bitField0_ & ~0x00000040);
recordCachingParams_ = null;
if (recordCachingParamsBuilder_ != null) {
recordCachingParamsBuilder_.dispose();
recordCachingParamsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 7;
*/
public com.aerospike.vector.client.proto.HnswCachingParams.Builder getRecordCachingParamsBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getRecordCachingParamsFieldBuilder().getBuilder();
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 7;
*/
public com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder getRecordCachingParamsOrBuilder() {
if (recordCachingParamsBuilder_ != null) {
return recordCachingParamsBuilder_.getMessageOrBuilder();
} else {
return recordCachingParams_ == null ?
com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance() : recordCachingParams_;
}
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswCachingParams, com.aerospike.vector.client.proto.HnswCachingParams.Builder, com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder>
getRecordCachingParamsFieldBuilder() {
if (recordCachingParamsBuilder_ == null) {
recordCachingParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.aerospike.vector.client.proto.HnswCachingParams, com.aerospike.vector.client.proto.HnswCachingParams.Builder, com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder>(
getRecordCachingParams(),
getParentForChildren(),
isClean());
recordCachingParams_ = null;
}
return recordCachingParamsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:aerospike.vector.HnswIndexUpdate)
}
// @@protoc_insertion_point(class_scope:aerospike.vector.HnswIndexUpdate)
private static final com.aerospike.vector.client.proto.HnswIndexUpdate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aerospike.vector.client.proto.HnswIndexUpdate();
}
public static com.aerospike.vector.client.proto.HnswIndexUpdate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HnswIndexUpdate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.aerospike.vector.client.proto.HnswIndexUpdate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy