com.aerospike.vector.client.proto.HnswParams 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;
/**
*
* Params for the HNSW index
*
*
* Protobuf type {@code aerospike.vector.HnswParams}
*/
public final class HnswParams extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:aerospike.vector.HnswParams)
HnswParamsOrBuilder {
private static final long serialVersionUID = 0L;
// Use HnswParams.newBuilder() to construct.
private HnswParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HnswParams() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HnswParams();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aerospike.vector.client.proto.HnswParams.class, com.aerospike.vector.client.proto.HnswParams.Builder.class);
}
private int bitField0_;
public static final int M_FIELD_NUMBER = 1;
private int m_ = 0;
/**
*
* Maximum number bi-directional links per HNSW vertex. Greater values of
* 'm' in general provide better recall for data with high dimensionality, while
* lower values work well for data with lower dimensionality.
* The storage space required for the index increases proportionally with 'm'.
* The default value is 16.
*
*
* optional uint32 m = 1;
* @return Whether the m field is set.
*/
@java.lang.Override
public boolean hasM() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Maximum number bi-directional links per HNSW vertex. Greater values of
* 'm' in general provide better recall for data with high dimensionality, while
* lower values work well for data with lower dimensionality.
* The storage space required for the index increases proportionally with 'm'.
* The default value is 16.
*
*
* optional uint32 m = 1;
* @return The m.
*/
@java.lang.Override
public int getM() {
return m_;
}
public static final int EFCONSTRUCTION_FIELD_NUMBER = 2;
private int efConstruction_ = 0;
/**
*
* The number of candidate nearest neighbors shortlisted during index creation.
* Larger values provide better recall at the cost of longer index update times.
* The default is 100.
*
*
* optional uint32 efConstruction = 2;
* @return Whether the efConstruction field is set.
*/
@java.lang.Override
public boolean hasEfConstruction() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The number of candidate nearest neighbors shortlisted during index creation.
* Larger values provide better recall at the cost of longer index update times.
* The default is 100.
*
*
* optional uint32 efConstruction = 2;
* @return The efConstruction.
*/
@java.lang.Override
public int getEfConstruction() {
return efConstruction_;
}
public static final int EF_FIELD_NUMBER = 3;
private int ef_ = 0;
/**
*
* The default number of candidate nearest neighbors shortlisted during search.
* Larger values provide better recall at the cost of longer search times.
* The default is 100.
*
*
* optional uint32 ef = 3;
* @return Whether the ef field is set.
*/
@java.lang.Override
public boolean hasEf() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The default number of candidate nearest neighbors shortlisted during search.
* Larger values provide better recall at the cost of longer search times.
* The default is 100.
*
*
* optional uint32 ef = 3;
* @return The ef.
*/
@java.lang.Override
public int getEf() {
return ef_;
}
public static final int BATCHINGPARAMS_FIELD_NUMBER = 4;
private com.aerospike.vector.client.proto.HnswBatchingParams batchingParams_;
/**
*
* Configures batching behaviour for batch based index update.
*
*
* .aerospike.vector.HnswBatchingParams batchingParams = 4;
* @return Whether the batchingParams field is set.
*/
@java.lang.Override
public boolean hasBatchingParams() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* .aerospike.vector.HnswBatchingParams batchingParams = 4;
* @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.
*
*
* .aerospike.vector.HnswBatchingParams batchingParams = 4;
*/
@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 = 5;
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 = 5;
* @return Whether the maxMemQueueSize field is set.
*/
@java.lang.Override
public boolean hasMaxMemQueueSize() {
return ((bitField0_ & 0x00000010) != 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 = 5;
* @return The maxMemQueueSize.
*/
@java.lang.Override
public int getMaxMemQueueSize() {
return maxMemQueueSize_;
}
public static final int INDEXCACHINGPARAMS_FIELD_NUMBER = 6;
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.
*
*
* .aerospike.vector.HnswCachingParams indexCachingParams = 6;
* @return Whether the indexCachingParams field is set.
*/
@java.lang.Override
public boolean hasIndexCachingParams() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* .aerospike.vector.HnswCachingParams indexCachingParams = 6;
* @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.
*
*
* .aerospike.vector.HnswCachingParams indexCachingParams = 6;
*/
@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 = 7;
private com.aerospike.vector.client.proto.HnswHealerParams healerParams_;
/**
*
* Configures index healer params.
*
*
* .aerospike.vector.HnswHealerParams healerParams = 7;
* @return Whether the healerParams field is set.
*/
@java.lang.Override
public boolean hasHealerParams() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Configures index healer params.
*
*
* .aerospike.vector.HnswHealerParams healerParams = 7;
* @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.
*
*
* .aerospike.vector.HnswHealerParams healerParams = 7;
*/
@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 = 8;
private com.aerospike.vector.client.proto.HnswIndexMergeParams mergeParams_;
/**
*
* Configures merge of batch indices to main index.
*
*
* .aerospike.vector.HnswIndexMergeParams mergeParams = 8;
* @return Whether the mergeParams field is set.
*/
@java.lang.Override
public boolean hasMergeParams() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Configures merge of batch indices to main index.
*
*
* .aerospike.vector.HnswIndexMergeParams mergeParams = 8;
* @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.
*
*
* .aerospike.vector.HnswIndexMergeParams mergeParams = 8;
*/
@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 = 9;
private boolean enableVectorIntegrityCheck_ = false;
/**
*
* Verify whether the underlying vector has changed before returning the kAnn
* result. Defaults to true.
*
*
* optional bool enableVectorIntegrityCheck = 9;
* @return Whether the enableVectorIntegrityCheck field is set.
*/
@java.lang.Override
public boolean hasEnableVectorIntegrityCheck() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Verify whether the underlying vector has changed before returning the kAnn
* result. Defaults to true.
*
*
* optional bool enableVectorIntegrityCheck = 9;
* @return The enableVectorIntegrityCheck.
*/
@java.lang.Override
public boolean getEnableVectorIntegrityCheck() {
return enableVectorIntegrityCheck_;
}
public static final int RECORDCACHINGPARAMS_FIELD_NUMBER = 10;
private com.aerospike.vector.client.proto.HnswCachingParams recordCachingParams_;
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 10;
* @return Whether the recordCachingParams field is set.
*/
@java.lang.Override
public boolean hasRecordCachingParams() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 10;
* @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 = 10;
*/
@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.writeUInt32(1, m_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(2, efConstruction_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, ef_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getBatchingParams());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt32(5, maxMemQueueSize_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(6, getIndexCachingParams());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(7, getHealerParams());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(8, getMergeParams());
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeBool(9, enableVectorIntegrityCheck_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(10, 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
.computeUInt32Size(1, m_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, efConstruction_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, ef_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getBatchingParams());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, maxMemQueueSize_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getIndexCachingParams());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getHealerParams());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getMergeParams());
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, enableVectorIntegrityCheck_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, 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.HnswParams)) {
return super.equals(obj);
}
com.aerospike.vector.client.proto.HnswParams other = (com.aerospike.vector.client.proto.HnswParams) obj;
if (hasM() != other.hasM()) return false;
if (hasM()) {
if (getM()
!= other.getM()) return false;
}
if (hasEfConstruction() != other.hasEfConstruction()) return false;
if (hasEfConstruction()) {
if (getEfConstruction()
!= other.getEfConstruction()) return false;
}
if (hasEf() != other.hasEf()) return false;
if (hasEf()) {
if (getEf()
!= other.getEf()) return false;
}
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 (hasM()) {
hash = (37 * hash) + M_FIELD_NUMBER;
hash = (53 * hash) + getM();
}
if (hasEfConstruction()) {
hash = (37 * hash) + EFCONSTRUCTION_FIELD_NUMBER;
hash = (53 * hash) + getEfConstruction();
}
if (hasEf()) {
hash = (37 * hash) + EF_FIELD_NUMBER;
hash = (53 * hash) + getEf();
}
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.HnswParams parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aerospike.vector.client.proto.HnswParams 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.HnswParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aerospike.vector.client.proto.HnswParams 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.HnswParams parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.aerospike.vector.client.proto.HnswParams 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.HnswParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.aerospike.vector.client.proto.HnswParams 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.HnswParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.aerospike.vector.client.proto.HnswParams 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.HnswParams 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.HnswParams 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.HnswParams 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;
}
/**
*
* Params for the HNSW index
*
*
* Protobuf type {@code aerospike.vector.HnswParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:aerospike.vector.HnswParams)
com.aerospike.vector.client.proto.HnswParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.aerospike.vector.client.proto.HnswParams.class, com.aerospike.vector.client.proto.HnswParams.Builder.class);
}
// Construct using com.aerospike.vector.client.proto.HnswParams.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;
m_ = 0;
efConstruction_ = 0;
ef_ = 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_HnswParams_descriptor;
}
@java.lang.Override
public com.aerospike.vector.client.proto.HnswParams getDefaultInstanceForType() {
return com.aerospike.vector.client.proto.HnswParams.getDefaultInstance();
}
@java.lang.Override
public com.aerospike.vector.client.proto.HnswParams build() {
com.aerospike.vector.client.proto.HnswParams result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.aerospike.vector.client.proto.HnswParams buildPartial() {
com.aerospike.vector.client.proto.HnswParams result = new com.aerospike.vector.client.proto.HnswParams(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.aerospike.vector.client.proto.HnswParams result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.m_ = m_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.efConstruction_ = efConstruction_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.ef_ = ef_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.batchingParams_ = batchingParamsBuilder_ == null
? batchingParams_
: batchingParamsBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.maxMemQueueSize_ = maxMemQueueSize_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.indexCachingParams_ = indexCachingParamsBuilder_ == null
? indexCachingParams_
: indexCachingParamsBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.healerParams_ = healerParamsBuilder_ == null
? healerParams_
: healerParamsBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.mergeParams_ = mergeParamsBuilder_ == null
? mergeParams_
: mergeParamsBuilder_.build();
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.enableVectorIntegrityCheck_ = enableVectorIntegrityCheck_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.recordCachingParams_ = recordCachingParamsBuilder_ == null
? recordCachingParams_
: recordCachingParamsBuilder_.build();
to_bitField0_ |= 0x00000200;
}
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.HnswParams) {
return mergeFrom((com.aerospike.vector.client.proto.HnswParams)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.aerospike.vector.client.proto.HnswParams other) {
if (other == com.aerospike.vector.client.proto.HnswParams.getDefaultInstance()) return this;
if (other.hasM()) {
setM(other.getM());
}
if (other.hasEfConstruction()) {
setEfConstruction(other.getEfConstruction());
}
if (other.hasEf()) {
setEf(other.getEf());
}
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 8: {
m_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
efConstruction_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
ef_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
input.readMessage(
getBatchingParamsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
maxMemQueueSize_ = input.readUInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
input.readMessage(
getIndexCachingParamsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getHealerParamsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getMergeParamsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 72: {
enableVectorIntegrityCheck_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
case 82: {
input.readMessage(
getRecordCachingParamsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 82
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 int m_ ;
/**
*
* Maximum number bi-directional links per HNSW vertex. Greater values of
* 'm' in general provide better recall for data with high dimensionality, while
* lower values work well for data with lower dimensionality.
* The storage space required for the index increases proportionally with 'm'.
* The default value is 16.
*
*
* optional uint32 m = 1;
* @return Whether the m field is set.
*/
@java.lang.Override
public boolean hasM() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Maximum number bi-directional links per HNSW vertex. Greater values of
* 'm' in general provide better recall for data with high dimensionality, while
* lower values work well for data with lower dimensionality.
* The storage space required for the index increases proportionally with 'm'.
* The default value is 16.
*
*
* optional uint32 m = 1;
* @return The m.
*/
@java.lang.Override
public int getM() {
return m_;
}
/**
*
* Maximum number bi-directional links per HNSW vertex. Greater values of
* 'm' in general provide better recall for data with high dimensionality, while
* lower values work well for data with lower dimensionality.
* The storage space required for the index increases proportionally with 'm'.
* The default value is 16.
*
*
* optional uint32 m = 1;
* @param value The m to set.
* @return This builder for chaining.
*/
public Builder setM(int value) {
m_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Maximum number bi-directional links per HNSW vertex. Greater values of
* 'm' in general provide better recall for data with high dimensionality, while
* lower values work well for data with lower dimensionality.
* The storage space required for the index increases proportionally with 'm'.
* The default value is 16.
*
*
* optional uint32 m = 1;
* @return This builder for chaining.
*/
public Builder clearM() {
bitField0_ = (bitField0_ & ~0x00000001);
m_ = 0;
onChanged();
return this;
}
private int efConstruction_ ;
/**
*
* The number of candidate nearest neighbors shortlisted during index creation.
* Larger values provide better recall at the cost of longer index update times.
* The default is 100.
*
*
* optional uint32 efConstruction = 2;
* @return Whether the efConstruction field is set.
*/
@java.lang.Override
public boolean hasEfConstruction() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The number of candidate nearest neighbors shortlisted during index creation.
* Larger values provide better recall at the cost of longer index update times.
* The default is 100.
*
*
* optional uint32 efConstruction = 2;
* @return The efConstruction.
*/
@java.lang.Override
public int getEfConstruction() {
return efConstruction_;
}
/**
*
* The number of candidate nearest neighbors shortlisted during index creation.
* Larger values provide better recall at the cost of longer index update times.
* The default is 100.
*
*
* optional uint32 efConstruction = 2;
* @param value The efConstruction to set.
* @return This builder for chaining.
*/
public Builder setEfConstruction(int value) {
efConstruction_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The number of candidate nearest neighbors shortlisted during index creation.
* Larger values provide better recall at the cost of longer index update times.
* The default is 100.
*
*
* optional uint32 efConstruction = 2;
* @return This builder for chaining.
*/
public Builder clearEfConstruction() {
bitField0_ = (bitField0_ & ~0x00000002);
efConstruction_ = 0;
onChanged();
return this;
}
private int ef_ ;
/**
*
* The default number of candidate nearest neighbors shortlisted during search.
* Larger values provide better recall at the cost of longer search times.
* The default is 100.
*
*
* optional uint32 ef = 3;
* @return Whether the ef field is set.
*/
@java.lang.Override
public boolean hasEf() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The default number of candidate nearest neighbors shortlisted during search.
* Larger values provide better recall at the cost of longer search times.
* The default is 100.
*
*
* optional uint32 ef = 3;
* @return The ef.
*/
@java.lang.Override
public int getEf() {
return ef_;
}
/**
*
* The default number of candidate nearest neighbors shortlisted during search.
* Larger values provide better recall at the cost of longer search times.
* The default is 100.
*
*
* optional uint32 ef = 3;
* @param value The ef to set.
* @return This builder for chaining.
*/
public Builder setEf(int value) {
ef_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The default number of candidate nearest neighbors shortlisted during search.
* Larger values provide better recall at the cost of longer search times.
* The default is 100.
*
*
* optional uint32 ef = 3;
* @return This builder for chaining.
*/
public Builder clearEf() {
bitField0_ = (bitField0_ & ~0x00000004);
ef_ = 0;
onChanged();
return this;
}
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.
*
*
* .aerospike.vector.HnswBatchingParams batchingParams = 4;
* @return Whether the batchingParams field is set.
*/
public boolean hasBatchingParams() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* .aerospike.vector.HnswBatchingParams batchingParams = 4;
* @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.
*
*
* .aerospike.vector.HnswBatchingParams batchingParams = 4;
*/
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_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* .aerospike.vector.HnswBatchingParams batchingParams = 4;
*/
public Builder setBatchingParams(
com.aerospike.vector.client.proto.HnswBatchingParams.Builder builderForValue) {
if (batchingParamsBuilder_ == null) {
batchingParams_ = builderForValue.build();
} else {
batchingParamsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* .aerospike.vector.HnswBatchingParams batchingParams = 4;
*/
public Builder mergeBatchingParams(com.aerospike.vector.client.proto.HnswBatchingParams value) {
if (batchingParamsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 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_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* .aerospike.vector.HnswBatchingParams batchingParams = 4;
*/
public Builder clearBatchingParams() {
bitField0_ = (bitField0_ & ~0x00000008);
batchingParams_ = null;
if (batchingParamsBuilder_ != null) {
batchingParamsBuilder_.dispose();
batchingParamsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* .aerospike.vector.HnswBatchingParams batchingParams = 4;
*/
public com.aerospike.vector.client.proto.HnswBatchingParams.Builder getBatchingParamsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getBatchingParamsFieldBuilder().getBuilder();
}
/**
*
* Configures batching behaviour for batch based index update.
*
*
* .aerospike.vector.HnswBatchingParams batchingParams = 4;
*/
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.
*
*
* .aerospike.vector.HnswBatchingParams batchingParams = 4;
*/
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 = 5;
* @return Whether the maxMemQueueSize field is set.
*/
@java.lang.Override
public boolean hasMaxMemQueueSize() {
return ((bitField0_ & 0x00000010) != 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 = 5;
* @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 = 5;
* @param value The maxMemQueueSize to set.
* @return This builder for chaining.
*/
public Builder setMaxMemQueueSize(int value) {
maxMemQueueSize_ = value;
bitField0_ |= 0x00000010;
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 = 5;
* @return This builder for chaining.
*/
public Builder clearMaxMemQueueSize() {
bitField0_ = (bitField0_ & ~0x00000010);
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.
*
*
* .aerospike.vector.HnswCachingParams indexCachingParams = 6;
* @return Whether the indexCachingParams field is set.
*/
public boolean hasIndexCachingParams() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* .aerospike.vector.HnswCachingParams indexCachingParams = 6;
* @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.
*
*
* .aerospike.vector.HnswCachingParams indexCachingParams = 6;
*/
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_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* .aerospike.vector.HnswCachingParams indexCachingParams = 6;
*/
public Builder setIndexCachingParams(
com.aerospike.vector.client.proto.HnswCachingParams.Builder builderForValue) {
if (indexCachingParamsBuilder_ == null) {
indexCachingParams_ = builderForValue.build();
} else {
indexCachingParamsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* .aerospike.vector.HnswCachingParams indexCachingParams = 6;
*/
public Builder mergeIndexCachingParams(com.aerospike.vector.client.proto.HnswCachingParams value) {
if (indexCachingParamsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 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_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* .aerospike.vector.HnswCachingParams indexCachingParams = 6;
*/
public Builder clearIndexCachingParams() {
bitField0_ = (bitField0_ & ~0x00000020);
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.
*
*
* .aerospike.vector.HnswCachingParams indexCachingParams = 6;
*/
public com.aerospike.vector.client.proto.HnswCachingParams.Builder getIndexCachingParamsBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getIndexCachingParamsFieldBuilder().getBuilder();
}
/**
*
* Configures caching for Hnsw Index. It is turned on by default with maximum
* 2 million entries and 1 hour expiry.
*
*
* .aerospike.vector.HnswCachingParams indexCachingParams = 6;
*/
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.
*
*
* .aerospike.vector.HnswCachingParams indexCachingParams = 6;
*/
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.
*
*
* .aerospike.vector.HnswHealerParams healerParams = 7;
* @return Whether the healerParams field is set.
*/
public boolean hasHealerParams() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Configures index healer params.
*
*
* .aerospike.vector.HnswHealerParams healerParams = 7;
* @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.
*
*
* .aerospike.vector.HnswHealerParams healerParams = 7;
*/
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_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Configures index healer params.
*
*
* .aerospike.vector.HnswHealerParams healerParams = 7;
*/
public Builder setHealerParams(
com.aerospike.vector.client.proto.HnswHealerParams.Builder builderForValue) {
if (healerParamsBuilder_ == null) {
healerParams_ = builderForValue.build();
} else {
healerParamsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Configures index healer params.
*
*
* .aerospike.vector.HnswHealerParams healerParams = 7;
*/
public Builder mergeHealerParams(com.aerospike.vector.client.proto.HnswHealerParams value) {
if (healerParamsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 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_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
* Configures index healer params.
*
*
* .aerospike.vector.HnswHealerParams healerParams = 7;
*/
public Builder clearHealerParams() {
bitField0_ = (bitField0_ & ~0x00000040);
healerParams_ = null;
if (healerParamsBuilder_ != null) {
healerParamsBuilder_.dispose();
healerParamsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Configures index healer params.
*
*
* .aerospike.vector.HnswHealerParams healerParams = 7;
*/
public com.aerospike.vector.client.proto.HnswHealerParams.Builder getHealerParamsBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getHealerParamsFieldBuilder().getBuilder();
}
/**
*
* Configures index healer params.
*
*
* .aerospike.vector.HnswHealerParams healerParams = 7;
*/
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.
*
*
* .aerospike.vector.HnswHealerParams healerParams = 7;
*/
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.
*
*
* .aerospike.vector.HnswIndexMergeParams mergeParams = 8;
* @return Whether the mergeParams field is set.
*/
public boolean hasMergeParams() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Configures merge of batch indices to main index.
*
*
* .aerospike.vector.HnswIndexMergeParams mergeParams = 8;
* @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.
*
*
* .aerospike.vector.HnswIndexMergeParams mergeParams = 8;
*/
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_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Configures merge of batch indices to main index.
*
*
* .aerospike.vector.HnswIndexMergeParams mergeParams = 8;
*/
public Builder setMergeParams(
com.aerospike.vector.client.proto.HnswIndexMergeParams.Builder builderForValue) {
if (mergeParamsBuilder_ == null) {
mergeParams_ = builderForValue.build();
} else {
mergeParamsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Configures merge of batch indices to main index.
*
*
* .aerospike.vector.HnswIndexMergeParams mergeParams = 8;
*/
public Builder mergeMergeParams(com.aerospike.vector.client.proto.HnswIndexMergeParams value) {
if (mergeParamsBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 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_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
* Configures merge of batch indices to main index.
*
*
* .aerospike.vector.HnswIndexMergeParams mergeParams = 8;
*/
public Builder clearMergeParams() {
bitField0_ = (bitField0_ & ~0x00000080);
mergeParams_ = null;
if (mergeParamsBuilder_ != null) {
mergeParamsBuilder_.dispose();
mergeParamsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Configures merge of batch indices to main index.
*
*
* .aerospike.vector.HnswIndexMergeParams mergeParams = 8;
*/
public com.aerospike.vector.client.proto.HnswIndexMergeParams.Builder getMergeParamsBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getMergeParamsFieldBuilder().getBuilder();
}
/**
*
* Configures merge of batch indices to main index.
*
*
* .aerospike.vector.HnswIndexMergeParams mergeParams = 8;
*/
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.
*
*
* .aerospike.vector.HnswIndexMergeParams mergeParams = 8;
*/
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 = 9;
* @return Whether the enableVectorIntegrityCheck field is set.
*/
@java.lang.Override
public boolean hasEnableVectorIntegrityCheck() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Verify whether the underlying vector has changed before returning the kAnn
* result. Defaults to true.
*
*
* optional bool enableVectorIntegrityCheck = 9;
* @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 = 9;
* @param value The enableVectorIntegrityCheck to set.
* @return This builder for chaining.
*/
public Builder setEnableVectorIntegrityCheck(boolean value) {
enableVectorIntegrityCheck_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Verify whether the underlying vector has changed before returning the kAnn
* result. Defaults to true.
*
*
* optional bool enableVectorIntegrityCheck = 9;
* @return This builder for chaining.
*/
public Builder clearEnableVectorIntegrityCheck() {
bitField0_ = (bitField0_ & ~0x00000100);
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 = 10;
* @return Whether the recordCachingParams field is set.
*/
public boolean hasRecordCachingParams() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 10;
* @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 = 10;
*/
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_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 10;
*/
public Builder setRecordCachingParams(
com.aerospike.vector.client.proto.HnswCachingParams.Builder builderForValue) {
if (recordCachingParamsBuilder_ == null) {
recordCachingParams_ = builderForValue.build();
} else {
recordCachingParamsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 10;
*/
public Builder mergeRecordCachingParams(com.aerospike.vector.client.proto.HnswCachingParams value) {
if (recordCachingParamsBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 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_ |= 0x00000200;
onChanged();
}
return this;
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 10;
*/
public Builder clearRecordCachingParams() {
bitField0_ = (bitField0_ & ~0x00000200);
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 = 10;
*/
public com.aerospike.vector.client.proto.HnswCachingParams.Builder getRecordCachingParamsBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getRecordCachingParamsFieldBuilder().getBuilder();
}
/**
*
* Configures caching for vector records. It is turned off by default.
*
*
* optional .aerospike.vector.HnswCachingParams recordCachingParams = 10;
*/
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 = 10;
*/
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.HnswParams)
}
// @@protoc_insertion_point(class_scope:aerospike.vector.HnswParams)
private static final com.aerospike.vector.client.proto.HnswParams DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.aerospike.vector.client.proto.HnswParams();
}
public static com.aerospike.vector.client.proto.HnswParams getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HnswParams 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.HnswParams getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy