com.aerospike.vector.client.proto.HnswHealerParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avs-client-java Show documentation
Show all versions of avs-client-java Show documentation
This project includes the Java client for Aerospike Vector Search for high-performance data interactions.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: types.proto
// Protobuf Java Version: 3.25.5
package com.aerospike.vector.client.proto;
/**
*
* Params 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() {
schedule_ = "";
}
@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 SCHEDULE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object schedule_ = "";
/**
*
* The quartz cron expression defining schedule at which the healer cycle is
* invoked.
* Defaults to the global healer config configured for the VectorDB.
*
*
* optional string schedule = 4;
* @return Whether the schedule field is set.
*/
@java.lang.Override
public boolean hasSchedule() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The quartz cron expression defining schedule at which the healer cycle is
* invoked.
* Defaults to the global healer config configured for the VectorDB.
*
*
* optional string schedule = 4;
* @return The schedule.
*/
@java.lang.Override
public java.lang.String getSchedule() {
java.lang.Object ref = schedule_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
schedule_ = s;
return s;
}
}
/**
*
* The quartz cron expression defining schedule at which the healer cycle is
* invoked.
* Defaults to the global healer config configured for the VectorDB.
*
*
* optional string schedule = 4;
* @return The bytes for schedule.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScheduleBytes() {
java.lang.Object ref = schedule_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schedule_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, schedule_);
}
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.GeneratedMessageV3.computeStringSize(4, schedule_);
}
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 (hasSchedule() != other.hasSchedule()) return false;
if (hasSchedule()) {
if (!getSchedule()
.equals(other.getSchedule())) 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 (hasSchedule()) {
hash = (37 * hash) + SCHEDULE_FIELD_NUMBER;
hash = (53 * hash) + getSchedule().hashCode();
}
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;
schedule_ = "";
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.schedule_ = schedule_;
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.hasSchedule()) {
schedule_ = other.schedule_;
bitField0_ |= 0x00000008;
onChanged();
}
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 34: {
schedule_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
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 java.lang.Object schedule_ = "";
/**
*
* The quartz cron expression defining schedule at which the healer cycle is
* invoked.
* Defaults to the global healer config configured for the VectorDB.
*
*
* optional string schedule = 4;
* @return Whether the schedule field is set.
*/
public boolean hasSchedule() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The quartz cron expression defining schedule at which the healer cycle is
* invoked.
* Defaults to the global healer config configured for the VectorDB.
*
*
* optional string schedule = 4;
* @return The schedule.
*/
public java.lang.String getSchedule() {
java.lang.Object ref = schedule_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
schedule_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The quartz cron expression defining schedule at which the healer cycle is
* invoked.
* Defaults to the global healer config configured for the VectorDB.
*
*
* optional string schedule = 4;
* @return The bytes for schedule.
*/
public com.google.protobuf.ByteString
getScheduleBytes() {
java.lang.Object ref = schedule_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schedule_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The quartz cron expression defining schedule at which the healer cycle is
* invoked.
* Defaults to the global healer config configured for the VectorDB.
*
*
* optional string schedule = 4;
* @param value The schedule to set.
* @return This builder for chaining.
*/
public Builder setSchedule(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
schedule_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The quartz cron expression defining schedule at which the healer cycle is
* invoked.
* Defaults to the global healer config configured for the VectorDB.
*
*
* optional string schedule = 4;
* @return This builder for chaining.
*/
public Builder clearSchedule() {
schedule_ = getDefaultInstance().getSchedule();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* The quartz cron expression defining schedule at which the healer cycle is
* invoked.
* Defaults to the global healer config configured for the VectorDB.
*
*
* optional string schedule = 4;
* @param value The bytes for schedule to set.
* @return This builder for chaining.
*/
public Builder setScheduleBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
schedule_ = value;
bitField0_ |= 0x00000008;
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