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

com.aerospike.vector.client.HnswParams Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: types.proto

// Protobuf Java Version: 3.25.1
package com.aerospike.vector.client;

/**
 * 
 * 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.Types.internal_static_aerospike_vector_HnswParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aerospike.vector.client.Types.internal_static_aerospike_vector_HnswParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aerospike.vector.client.HnswParams.class, com.aerospike.vector.client.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.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.HnswBatchingParams getBatchingParams() { return batchingParams_ == null ? com.aerospike.vector.client.HnswBatchingParams.getDefaultInstance() : batchingParams_; } /** *
   * Configures batching behaviour for batch based index update.
   * 
* * .aerospike.vector.HnswBatchingParams batchingParams = 4; */ @java.lang.Override public com.aerospike.vector.client.HnswBatchingParamsOrBuilder getBatchingParamsOrBuilder() { return batchingParams_ == null ? com.aerospike.vector.client.HnswBatchingParams.getDefaultInstance() : batchingParams_; } 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()); } 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()); } 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.HnswParams)) { return super.equals(obj); } com.aerospike.vector.client.HnswParams other = (com.aerospike.vector.client.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 (!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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.aerospike.vector.client.HnswParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.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.HnswParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.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.HnswParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.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.HnswParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aerospike.vector.client.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.HnswParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.aerospike.vector.client.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.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.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.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.HnswParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.aerospike.vector.client.Types.internal_static_aerospike_vector_HnswParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aerospike.vector.client.Types.internal_static_aerospike_vector_HnswParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aerospike.vector.client.HnswParams.class, com.aerospike.vector.client.HnswParams.Builder.class); } // Construct using com.aerospike.vector.client.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(); } } @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; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.aerospike.vector.client.Types.internal_static_aerospike_vector_HnswParams_descriptor; } @java.lang.Override public com.aerospike.vector.client.HnswParams getDefaultInstanceForType() { return com.aerospike.vector.client.HnswParams.getDefaultInstance(); } @java.lang.Override public com.aerospike.vector.client.HnswParams build() { com.aerospike.vector.client.HnswParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.aerospike.vector.client.HnswParams buildPartial() { com.aerospike.vector.client.HnswParams result = new com.aerospike.vector.client.HnswParams(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.aerospike.vector.client.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; } 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.HnswParams) { return mergeFrom((com.aerospike.vector.client.HnswParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.aerospike.vector.client.HnswParams other) { if (other == com.aerospike.vector.client.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()); } 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 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.HnswBatchingParams batchingParams_; private com.google.protobuf.SingleFieldBuilderV3< com.aerospike.vector.client.HnswBatchingParams, com.aerospike.vector.client.HnswBatchingParams.Builder, com.aerospike.vector.client.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.HnswBatchingParams getBatchingParams() { if (batchingParamsBuilder_ == null) { return batchingParams_ == null ? com.aerospike.vector.client.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.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.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.HnswBatchingParams value) { if (batchingParamsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && batchingParams_ != null && batchingParams_ != com.aerospike.vector.client.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.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.HnswBatchingParamsOrBuilder getBatchingParamsOrBuilder() { if (batchingParamsBuilder_ != null) { return batchingParamsBuilder_.getMessageOrBuilder(); } else { return batchingParams_ == null ? com.aerospike.vector.client.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.HnswBatchingParams, com.aerospike.vector.client.HnswBatchingParams.Builder, com.aerospike.vector.client.HnswBatchingParamsOrBuilder> getBatchingParamsFieldBuilder() { if (batchingParamsBuilder_ == null) { batchingParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.aerospike.vector.client.HnswBatchingParams, com.aerospike.vector.client.HnswBatchingParams.Builder, com.aerospike.vector.client.HnswBatchingParamsOrBuilder>( getBatchingParams(), getParentForChildren(), isClean()); batchingParams_ = null; } return batchingParamsBuilder_; } @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.HnswParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.aerospike.vector.client.HnswParams(); } public static com.aerospike.vector.client.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.HnswParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy