All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aerospike.vector.client.proto.HnswIndexUpdate Maven / Gradle / Ivy

Go to download

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.1
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 CACHINGPARAMS_FIELD_NUMBER = 3; private com.aerospike.vector.client.proto.HnswCachingParams cachingParams_; /** *
   * Configures caching for Hnsw Index.
   * 
* * optional .aerospike.vector.HnswCachingParams cachingParams = 3; * @return Whether the cachingParams field is set. */ @java.lang.Override public boolean hasCachingParams() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Configures caching for Hnsw Index.
   * 
* * optional .aerospike.vector.HnswCachingParams cachingParams = 3; * @return The cachingParams. */ @java.lang.Override public com.aerospike.vector.client.proto.HnswCachingParams getCachingParams() { return cachingParams_ == null ? com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance() : cachingParams_; } /** *
   * Configures caching for Hnsw Index.
   * 
* * optional .aerospike.vector.HnswCachingParams cachingParams = 3; */ @java.lang.Override public com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder getCachingParamsOrBuilder() { return cachingParams_ == null ? com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance() : cachingParams_; } 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_; } 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, getCachingParams()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getHealerParams()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(5, getMergeParams()); } 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, getCachingParams()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getHealerParams()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMergeParams()); } 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 (hasCachingParams() != other.hasCachingParams()) return false; if (hasCachingParams()) { if (!getCachingParams() .equals(other.getCachingParams())) 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 (!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 (hasCachingParams()) { hash = (37 * hash) + CACHINGPARAMS_FIELD_NUMBER; hash = (53 * hash) + getCachingParams().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(); } 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(); getCachingParamsFieldBuilder(); getHealerParamsFieldBuilder(); getMergeParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; batchingParams_ = null; if (batchingParamsBuilder_ != null) { batchingParamsBuilder_.dispose(); batchingParamsBuilder_ = null; } maxMemQueueSize_ = 0; cachingParams_ = null; if (cachingParamsBuilder_ != null) { cachingParamsBuilder_.dispose(); cachingParamsBuilder_ = null; } healerParams_ = null; if (healerParamsBuilder_ != null) { healerParamsBuilder_.dispose(); healerParamsBuilder_ = null; } mergeParams_ = null; if (mergeParamsBuilder_ != null) { mergeParamsBuilder_.dispose(); mergeParamsBuilder_ = 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.cachingParams_ = cachingParamsBuilder_ == null ? cachingParams_ : cachingParamsBuilder_.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; } 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.hasCachingParams()) { mergeCachingParams(other.getCachingParams()); } if (other.hasHealerParams()) { mergeHealerParams(other.getHealerParams()); } if (other.hasMergeParams()) { mergeMergeParams(other.getMergeParams()); } 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( getCachingParamsFieldBuilder().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 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 cachingParams_; private com.google.protobuf.SingleFieldBuilderV3< com.aerospike.vector.client.proto.HnswCachingParams, com.aerospike.vector.client.proto.HnswCachingParams.Builder, com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder> cachingParamsBuilder_; /** *
     * Configures caching for Hnsw Index.
     * 
* * optional .aerospike.vector.HnswCachingParams cachingParams = 3; * @return Whether the cachingParams field is set. */ public boolean hasCachingParams() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Configures caching for Hnsw Index.
     * 
* * optional .aerospike.vector.HnswCachingParams cachingParams = 3; * @return The cachingParams. */ public com.aerospike.vector.client.proto.HnswCachingParams getCachingParams() { if (cachingParamsBuilder_ == null) { return cachingParams_ == null ? com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance() : cachingParams_; } else { return cachingParamsBuilder_.getMessage(); } } /** *
     * Configures caching for Hnsw Index.
     * 
* * optional .aerospike.vector.HnswCachingParams cachingParams = 3; */ public Builder setCachingParams(com.aerospike.vector.client.proto.HnswCachingParams value) { if (cachingParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cachingParams_ = value; } else { cachingParamsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Configures caching for Hnsw Index.
     * 
* * optional .aerospike.vector.HnswCachingParams cachingParams = 3; */ public Builder setCachingParams( com.aerospike.vector.client.proto.HnswCachingParams.Builder builderForValue) { if (cachingParamsBuilder_ == null) { cachingParams_ = builderForValue.build(); } else { cachingParamsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Configures caching for Hnsw Index.
     * 
* * optional .aerospike.vector.HnswCachingParams cachingParams = 3; */ public Builder mergeCachingParams(com.aerospike.vector.client.proto.HnswCachingParams value) { if (cachingParamsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && cachingParams_ != null && cachingParams_ != com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance()) { getCachingParamsBuilder().mergeFrom(value); } else { cachingParams_ = value; } } else { cachingParamsBuilder_.mergeFrom(value); } if (cachingParams_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * Configures caching for Hnsw Index.
     * 
* * optional .aerospike.vector.HnswCachingParams cachingParams = 3; */ public Builder clearCachingParams() { bitField0_ = (bitField0_ & ~0x00000004); cachingParams_ = null; if (cachingParamsBuilder_ != null) { cachingParamsBuilder_.dispose(); cachingParamsBuilder_ = null; } onChanged(); return this; } /** *
     * Configures caching for Hnsw Index.
     * 
* * optional .aerospike.vector.HnswCachingParams cachingParams = 3; */ public com.aerospike.vector.client.proto.HnswCachingParams.Builder getCachingParamsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCachingParamsFieldBuilder().getBuilder(); } /** *
     * Configures caching for Hnsw Index.
     * 
* * optional .aerospike.vector.HnswCachingParams cachingParams = 3; */ public com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder getCachingParamsOrBuilder() { if (cachingParamsBuilder_ != null) { return cachingParamsBuilder_.getMessageOrBuilder(); } else { return cachingParams_ == null ? com.aerospike.vector.client.proto.HnswCachingParams.getDefaultInstance() : cachingParams_; } } /** *
     * Configures caching for Hnsw Index.
     * 
* * optional .aerospike.vector.HnswCachingParams cachingParams = 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> getCachingParamsFieldBuilder() { if (cachingParamsBuilder_ == null) { cachingParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.aerospike.vector.client.proto.HnswCachingParams, com.aerospike.vector.client.proto.HnswCachingParams.Builder, com.aerospike.vector.client.proto.HnswCachingParamsOrBuilder>( getCachingParams(), getParentForChildren(), isClean()); cachingParams_ = null; } return cachingParamsBuilder_; } 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_; } @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