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

com.aerospike.vector.client.proto.HnswHealerParams 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;

/**
 * 
 * Params to configure Hnsw index cache
 * 
* * Protobuf type {@code aerospike.vector.HnswHealerParams} */ public final class HnswHealerParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:aerospike.vector.HnswHealerParams) HnswHealerParamsOrBuilder { private static final long serialVersionUID = 0L; // Use HnswHealerParams.newBuilder() to construct. private HnswHealerParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HnswHealerParams() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HnswHealerParams(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswHealerParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswHealerParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aerospike.vector.client.proto.HnswHealerParams.class, com.aerospike.vector.client.proto.HnswHealerParams.Builder.class); } private int bitField0_; public static final int MAXSCANRATEPERNODE_FIELD_NUMBER = 1; private int maxScanRatePerNode_ = 0; /** *
   * Maximum allowed record scan rate per vector db node.
   * Defaults to the global healer config configured for the VectorDB.
   * 
* * optional uint32 maxScanRatePerNode = 1; * @return Whether the maxScanRatePerNode field is set. */ @java.lang.Override public boolean hasMaxScanRatePerNode() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Maximum allowed record scan rate per vector db node.
   * Defaults to the global healer config configured for the VectorDB.
   * 
* * optional uint32 maxScanRatePerNode = 1; * @return The maxScanRatePerNode. */ @java.lang.Override public int getMaxScanRatePerNode() { return maxScanRatePerNode_; } public static final int MAXSCANPAGESIZE_FIELD_NUMBER = 2; private int maxScanPageSize_ = 0; /** *
   * Maximum number of records in a single scanned page.
   * Defaults to the global healer config configured for the VectorDB.
   * 
* * optional uint32 maxScanPageSize = 2; * @return Whether the maxScanPageSize field is set. */ @java.lang.Override public boolean hasMaxScanPageSize() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Maximum number of records in a single scanned page.
   * Defaults to the global healer config configured for the VectorDB.
   * 
* * optional uint32 maxScanPageSize = 2; * @return The maxScanPageSize. */ @java.lang.Override public int getMaxScanPageSize() { return maxScanPageSize_; } public static final int REINDEXPERCENT_FIELD_NUMBER = 3; private float reindexPercent_ = 0F; /** *
   * Percentage of good records randomly selected for reindexing in a healer cycle.
   * Defaults to the global healer config configured for the VectorDB.
   * 
* * optional float reindexPercent = 3; * @return Whether the reindexPercent field is set. */ @java.lang.Override public boolean hasReindexPercent() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Percentage of good records randomly selected for reindexing in a healer cycle.
   * Defaults to the global healer config configured for the VectorDB.
   * 
* * optional float reindexPercent = 3; * @return The reindexPercent. */ @java.lang.Override public float getReindexPercent() { return reindexPercent_; } public static final int SCHEDULEDELAY_FIELD_NUMBER = 4; private long scheduleDelay_ = 0L; /** *
   * The time delay, in milliseconds, between the termination of a healer run
   * and the commencement of the next one for an index. It only guarantees
   * that the next index healer run for an index will not be scheduled before
   * this time delay.
   * Defaults to the global healer config configured for the VectorDB.
   * 
* * optional uint64 scheduleDelay = 4; * @return Whether the scheduleDelay field is set. */ @java.lang.Override public boolean hasScheduleDelay() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * The time delay, in milliseconds, between the termination of a healer run
   * and the commencement of the next one for an index. It only guarantees
   * that the next index healer run for an index will not be scheduled before
   * this time delay.
   * Defaults to the global healer config configured for the VectorDB.
   * 
* * optional uint64 scheduleDelay = 4; * @return The scheduleDelay. */ @java.lang.Override public long getScheduleDelay() { return scheduleDelay_; } public static final int PARALLELISM_FIELD_NUMBER = 5; private int parallelism_ = 0; /** *
   * Maximum number of records to heal in parallel.
   * Defaults to the global healer config configured for the VectorDB.
   * 
* * optional uint32 parallelism = 5; * @return Whether the parallelism field is set. */ @java.lang.Override public boolean hasParallelism() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Maximum number of records to heal in parallel.
   * Defaults to the global healer config configured for the VectorDB.
   * 
* * optional uint32 parallelism = 5; * @return The parallelism. */ @java.lang.Override public int getParallelism() { return parallelism_; } 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, maxScanRatePerNode_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, maxScanPageSize_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeFloat(3, reindexPercent_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt64(4, scheduleDelay_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(5, parallelism_); } 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, maxScanRatePerNode_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, maxScanPageSize_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(3, reindexPercent_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, scheduleDelay_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, parallelism_); } 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.HnswHealerParams)) { return super.equals(obj); } com.aerospike.vector.client.proto.HnswHealerParams other = (com.aerospike.vector.client.proto.HnswHealerParams) obj; if (hasMaxScanRatePerNode() != other.hasMaxScanRatePerNode()) return false; if (hasMaxScanRatePerNode()) { if (getMaxScanRatePerNode() != other.getMaxScanRatePerNode()) return false; } if (hasMaxScanPageSize() != other.hasMaxScanPageSize()) return false; if (hasMaxScanPageSize()) { if (getMaxScanPageSize() != other.getMaxScanPageSize()) return false; } if (hasReindexPercent() != other.hasReindexPercent()) return false; if (hasReindexPercent()) { if (java.lang.Float.floatToIntBits(getReindexPercent()) != java.lang.Float.floatToIntBits( other.getReindexPercent())) return false; } if (hasScheduleDelay() != other.hasScheduleDelay()) return false; if (hasScheduleDelay()) { if (getScheduleDelay() != other.getScheduleDelay()) return false; } if (hasParallelism() != other.hasParallelism()) return false; if (hasParallelism()) { if (getParallelism() != other.getParallelism()) 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 (hasMaxScanRatePerNode()) { hash = (37 * hash) + MAXSCANRATEPERNODE_FIELD_NUMBER; hash = (53 * hash) + getMaxScanRatePerNode(); } if (hasMaxScanPageSize()) { hash = (37 * hash) + MAXSCANPAGESIZE_FIELD_NUMBER; hash = (53 * hash) + getMaxScanPageSize(); } if (hasReindexPercent()) { hash = (37 * hash) + REINDEXPERCENT_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getReindexPercent()); } if (hasScheduleDelay()) { hash = (37 * hash) + SCHEDULEDELAY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getScheduleDelay()); } if (hasParallelism()) { hash = (37 * hash) + PARALLELISM_FIELD_NUMBER; hash = (53 * hash) + getParallelism(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.aerospike.vector.client.proto.HnswHealerParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.HnswHealerParams 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.HnswHealerParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.HnswHealerParams 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.HnswHealerParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.HnswHealerParams 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.HnswHealerParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aerospike.vector.client.proto.HnswHealerParams 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.HnswHealerParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.aerospike.vector.client.proto.HnswHealerParams 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.HnswHealerParams 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.HnswHealerParams 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.HnswHealerParams 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 to configure Hnsw index cache
   * 
* * Protobuf type {@code aerospike.vector.HnswHealerParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aerospike.vector.HnswHealerParams) com.aerospike.vector.client.proto.HnswHealerParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswHealerParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswHealerParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aerospike.vector.client.proto.HnswHealerParams.class, com.aerospike.vector.client.proto.HnswHealerParams.Builder.class); } // Construct using com.aerospike.vector.client.proto.HnswHealerParams.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; maxScanRatePerNode_ = 0; maxScanPageSize_ = 0; reindexPercent_ = 0F; scheduleDelay_ = 0L; parallelism_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.aerospike.vector.client.proto.Types.internal_static_aerospike_vector_HnswHealerParams_descriptor; } @java.lang.Override public com.aerospike.vector.client.proto.HnswHealerParams getDefaultInstanceForType() { return com.aerospike.vector.client.proto.HnswHealerParams.getDefaultInstance(); } @java.lang.Override public com.aerospike.vector.client.proto.HnswHealerParams build() { com.aerospike.vector.client.proto.HnswHealerParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.aerospike.vector.client.proto.HnswHealerParams buildPartial() { com.aerospike.vector.client.proto.HnswHealerParams result = new com.aerospike.vector.client.proto.HnswHealerParams(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.aerospike.vector.client.proto.HnswHealerParams result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.maxScanRatePerNode_ = maxScanRatePerNode_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.maxScanPageSize_ = maxScanPageSize_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.reindexPercent_ = reindexPercent_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.scheduleDelay_ = scheduleDelay_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.parallelism_ = parallelism_; 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.HnswHealerParams) { return mergeFrom((com.aerospike.vector.client.proto.HnswHealerParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.aerospike.vector.client.proto.HnswHealerParams other) { if (other == com.aerospike.vector.client.proto.HnswHealerParams.getDefaultInstance()) return this; if (other.hasMaxScanRatePerNode()) { setMaxScanRatePerNode(other.getMaxScanRatePerNode()); } if (other.hasMaxScanPageSize()) { setMaxScanPageSize(other.getMaxScanPageSize()); } if (other.hasReindexPercent()) { setReindexPercent(other.getReindexPercent()); } if (other.hasScheduleDelay()) { setScheduleDelay(other.getScheduleDelay()); } if (other.hasParallelism()) { setParallelism(other.getParallelism()); } 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: { maxScanRatePerNode_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { maxScanPageSize_ = input.readUInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 29: { reindexPercent_ = input.readFloat(); bitField0_ |= 0x00000004; break; } // case 29 case 32: { scheduleDelay_ = input.readUInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { parallelism_ = input.readUInt32(); bitField0_ |= 0x00000010; break; } // case 40 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 maxScanRatePerNode_ ; /** *
     * Maximum allowed record scan rate per vector db node.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint32 maxScanRatePerNode = 1; * @return Whether the maxScanRatePerNode field is set. */ @java.lang.Override public boolean hasMaxScanRatePerNode() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Maximum allowed record scan rate per vector db node.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint32 maxScanRatePerNode = 1; * @return The maxScanRatePerNode. */ @java.lang.Override public int getMaxScanRatePerNode() { return maxScanRatePerNode_; } /** *
     * Maximum allowed record scan rate per vector db node.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint32 maxScanRatePerNode = 1; * @param value The maxScanRatePerNode to set. * @return This builder for chaining. */ public Builder setMaxScanRatePerNode(int value) { maxScanRatePerNode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Maximum allowed record scan rate per vector db node.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint32 maxScanRatePerNode = 1; * @return This builder for chaining. */ public Builder clearMaxScanRatePerNode() { bitField0_ = (bitField0_ & ~0x00000001); maxScanRatePerNode_ = 0; onChanged(); return this; } private int maxScanPageSize_ ; /** *
     * Maximum number of records in a single scanned page.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint32 maxScanPageSize = 2; * @return Whether the maxScanPageSize field is set. */ @java.lang.Override public boolean hasMaxScanPageSize() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Maximum number of records in a single scanned page.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint32 maxScanPageSize = 2; * @return The maxScanPageSize. */ @java.lang.Override public int getMaxScanPageSize() { return maxScanPageSize_; } /** *
     * Maximum number of records in a single scanned page.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint32 maxScanPageSize = 2; * @param value The maxScanPageSize to set. * @return This builder for chaining. */ public Builder setMaxScanPageSize(int value) { maxScanPageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Maximum number of records in a single scanned page.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint32 maxScanPageSize = 2; * @return This builder for chaining. */ public Builder clearMaxScanPageSize() { bitField0_ = (bitField0_ & ~0x00000002); maxScanPageSize_ = 0; onChanged(); return this; } private float reindexPercent_ ; /** *
     * Percentage of good records randomly selected for reindexing in a healer cycle.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional float reindexPercent = 3; * @return Whether the reindexPercent field is set. */ @java.lang.Override public boolean hasReindexPercent() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Percentage of good records randomly selected for reindexing in a healer cycle.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional float reindexPercent = 3; * @return The reindexPercent. */ @java.lang.Override public float getReindexPercent() { return reindexPercent_; } /** *
     * Percentage of good records randomly selected for reindexing in a healer cycle.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional float reindexPercent = 3; * @param value The reindexPercent to set. * @return This builder for chaining. */ public Builder setReindexPercent(float value) { reindexPercent_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Percentage of good records randomly selected for reindexing in a healer cycle.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional float reindexPercent = 3; * @return This builder for chaining. */ public Builder clearReindexPercent() { bitField0_ = (bitField0_ & ~0x00000004); reindexPercent_ = 0F; onChanged(); return this; } private long scheduleDelay_ ; /** *
     * The time delay, in milliseconds, between the termination of a healer run
     * and the commencement of the next one for an index. It only guarantees
     * that the next index healer run for an index will not be scheduled before
     * this time delay.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint64 scheduleDelay = 4; * @return Whether the scheduleDelay field is set. */ @java.lang.Override public boolean hasScheduleDelay() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The time delay, in milliseconds, between the termination of a healer run
     * and the commencement of the next one for an index. It only guarantees
     * that the next index healer run for an index will not be scheduled before
     * this time delay.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint64 scheduleDelay = 4; * @return The scheduleDelay. */ @java.lang.Override public long getScheduleDelay() { return scheduleDelay_; } /** *
     * The time delay, in milliseconds, between the termination of a healer run
     * and the commencement of the next one for an index. It only guarantees
     * that the next index healer run for an index will not be scheduled before
     * this time delay.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint64 scheduleDelay = 4; * @param value The scheduleDelay to set. * @return This builder for chaining. */ public Builder setScheduleDelay(long value) { scheduleDelay_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The time delay, in milliseconds, between the termination of a healer run
     * and the commencement of the next one for an index. It only guarantees
     * that the next index healer run for an index will not be scheduled before
     * this time delay.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint64 scheduleDelay = 4; * @return This builder for chaining. */ public Builder clearScheduleDelay() { bitField0_ = (bitField0_ & ~0x00000008); scheduleDelay_ = 0L; onChanged(); return this; } private int parallelism_ ; /** *
     * Maximum number of records to heal in parallel.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint32 parallelism = 5; * @return Whether the parallelism field is set. */ @java.lang.Override public boolean hasParallelism() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Maximum number of records to heal in parallel.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint32 parallelism = 5; * @return The parallelism. */ @java.lang.Override public int getParallelism() { return parallelism_; } /** *
     * Maximum number of records to heal in parallel.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint32 parallelism = 5; * @param value The parallelism to set. * @return This builder for chaining. */ public Builder setParallelism(int value) { parallelism_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Maximum number of records to heal in parallel.
     * Defaults to the global healer config configured for the VectorDB.
     * 
* * optional uint32 parallelism = 5; * @return This builder for chaining. */ public Builder clearParallelism() { bitField0_ = (bitField0_ & ~0x00000010); parallelism_ = 0; onChanged(); return this; } @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.HnswHealerParams) } // @@protoc_insertion_point(class_scope:aerospike.vector.HnswHealerParams) private static final com.aerospike.vector.client.proto.HnswHealerParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.aerospike.vector.client.proto.HnswHealerParams(); } public static com.aerospike.vector.client.proto.HnswHealerParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HnswHealerParams 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.HnswHealerParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy