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

com.aerospike.vector.client.proto.ClusteringState 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: vector-db.proto

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

/**
 * Protobuf type {@code aerospike.vector.ClusteringState}
 */
public final class ClusteringState extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:aerospike.vector.ClusteringState)
    ClusteringStateOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ClusteringState.newBuilder() to construct.
  private ClusteringState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ClusteringState() {
    members_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new ClusteringState();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.aerospike.vector.client.proto.VectorDb.internal_static_aerospike_vector_ClusteringState_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.aerospike.vector.client.proto.VectorDb.internal_static_aerospike_vector_ClusteringState_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.aerospike.vector.client.proto.ClusteringState.class, com.aerospike.vector.client.proto.ClusteringState.Builder.class);
  }

  private int bitField0_;
  public static final int ISINCLUSTER_FIELD_NUMBER = 1;
  private boolean isInCluster_ = false;
  /**
   * 
   * Indicates if this node is in a cluster.
   * 
* * bool isInCluster = 1; * @return The isInCluster. */ @java.lang.Override public boolean getIsInCluster() { return isInCluster_; } public static final int CLUSTERID_FIELD_NUMBER = 2; private com.aerospike.vector.client.proto.ClusterId clusterId_; /** *
   * Unique identifier for the current cluster epoch.
   * Valid only if the node is in cluster.
   * 
* * .aerospike.vector.ClusterId clusterId = 2; * @return Whether the clusterId field is set. */ @java.lang.Override public boolean hasClusterId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Unique identifier for the current cluster epoch.
   * Valid only if the node is in cluster.
   * 
* * .aerospike.vector.ClusterId clusterId = 2; * @return The clusterId. */ @java.lang.Override public com.aerospike.vector.client.proto.ClusterId getClusterId() { return clusterId_ == null ? com.aerospike.vector.client.proto.ClusterId.getDefaultInstance() : clusterId_; } /** *
   * Unique identifier for the current cluster epoch.
   * Valid only if the node is in cluster.
   * 
* * .aerospike.vector.ClusterId clusterId = 2; */ @java.lang.Override public com.aerospike.vector.client.proto.ClusterIdOrBuilder getClusterIdOrBuilder() { return clusterId_ == null ? com.aerospike.vector.client.proto.ClusterId.getDefaultInstance() : clusterId_; } public static final int MEMBERS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List members_; /** *
   * Current cluster members.
   * 
* * repeated .aerospike.vector.NodeId members = 3; */ @java.lang.Override public java.util.List getMembersList() { return members_; } /** *
   * Current cluster members.
   * 
* * repeated .aerospike.vector.NodeId members = 3; */ @java.lang.Override public java.util.List getMembersOrBuilderList() { return members_; } /** *
   * Current cluster members.
   * 
* * repeated .aerospike.vector.NodeId members = 3; */ @java.lang.Override public int getMembersCount() { return members_.size(); } /** *
   * Current cluster members.
   * 
* * repeated .aerospike.vector.NodeId members = 3; */ @java.lang.Override public com.aerospike.vector.client.proto.NodeId getMembers(int index) { return members_.get(index); } /** *
   * Current cluster members.
   * 
* * repeated .aerospike.vector.NodeId members = 3; */ @java.lang.Override public com.aerospike.vector.client.proto.NodeIdOrBuilder getMembersOrBuilder( int index) { return members_.get(index); } 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 (isInCluster_ != false) { output.writeBool(1, isInCluster_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getClusterId()); } for (int i = 0; i < members_.size(); i++) { output.writeMessage(3, members_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (isInCluster_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isInCluster_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getClusterId()); } for (int i = 0; i < members_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, members_.get(i)); } 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.ClusteringState)) { return super.equals(obj); } com.aerospike.vector.client.proto.ClusteringState other = (com.aerospike.vector.client.proto.ClusteringState) obj; if (getIsInCluster() != other.getIsInCluster()) return false; if (hasClusterId() != other.hasClusterId()) return false; if (hasClusterId()) { if (!getClusterId() .equals(other.getClusterId())) return false; } if (!getMembersList() .equals(other.getMembersList())) 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(); hash = (37 * hash) + ISINCLUSTER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsInCluster()); if (hasClusterId()) { hash = (37 * hash) + CLUSTERID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); } if (getMembersCount() > 0) { hash = (37 * hash) + MEMBERS_FIELD_NUMBER; hash = (53 * hash) + getMembersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.aerospike.vector.client.proto.ClusteringState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.ClusteringState 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.ClusteringState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.ClusteringState 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.ClusteringState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.aerospike.vector.client.proto.ClusteringState 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.ClusteringState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.aerospike.vector.client.proto.ClusteringState 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.ClusteringState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.aerospike.vector.client.proto.ClusteringState 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.ClusteringState 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.ClusteringState 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.ClusteringState 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; } /** * Protobuf type {@code aerospike.vector.ClusteringState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:aerospike.vector.ClusteringState) com.aerospike.vector.client.proto.ClusteringStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.aerospike.vector.client.proto.VectorDb.internal_static_aerospike_vector_ClusteringState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.aerospike.vector.client.proto.VectorDb.internal_static_aerospike_vector_ClusteringState_fieldAccessorTable .ensureFieldAccessorsInitialized( com.aerospike.vector.client.proto.ClusteringState.class, com.aerospike.vector.client.proto.ClusteringState.Builder.class); } // Construct using com.aerospike.vector.client.proto.ClusteringState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getClusterIdFieldBuilder(); getMembersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; isInCluster_ = false; clusterId_ = null; if (clusterIdBuilder_ != null) { clusterIdBuilder_.dispose(); clusterIdBuilder_ = null; } if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); } else { members_ = null; membersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.aerospike.vector.client.proto.VectorDb.internal_static_aerospike_vector_ClusteringState_descriptor; } @java.lang.Override public com.aerospike.vector.client.proto.ClusteringState getDefaultInstanceForType() { return com.aerospike.vector.client.proto.ClusteringState.getDefaultInstance(); } @java.lang.Override public com.aerospike.vector.client.proto.ClusteringState build() { com.aerospike.vector.client.proto.ClusteringState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.aerospike.vector.client.proto.ClusteringState buildPartial() { com.aerospike.vector.client.proto.ClusteringState result = new com.aerospike.vector.client.proto.ClusteringState(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.aerospike.vector.client.proto.ClusteringState result) { if (membersBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { members_ = java.util.Collections.unmodifiableList(members_); bitField0_ = (bitField0_ & ~0x00000004); } result.members_ = members_; } else { result.members_ = membersBuilder_.build(); } } private void buildPartial0(com.aerospike.vector.client.proto.ClusteringState result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.isInCluster_ = isInCluster_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.clusterId_ = clusterIdBuilder_ == null ? clusterId_ : clusterIdBuilder_.build(); to_bitField0_ |= 0x00000001; } 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.ClusteringState) { return mergeFrom((com.aerospike.vector.client.proto.ClusteringState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.aerospike.vector.client.proto.ClusteringState other) { if (other == com.aerospike.vector.client.proto.ClusteringState.getDefaultInstance()) return this; if (other.getIsInCluster() != false) { setIsInCluster(other.getIsInCluster()); } if (other.hasClusterId()) { mergeClusterId(other.getClusterId()); } if (membersBuilder_ == null) { if (!other.members_.isEmpty()) { if (members_.isEmpty()) { members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMembersIsMutable(); members_.addAll(other.members_); } onChanged(); } } else { if (!other.members_.isEmpty()) { if (membersBuilder_.isEmpty()) { membersBuilder_.dispose(); membersBuilder_ = null; members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000004); membersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMembersFieldBuilder() : null; } else { membersBuilder_.addAllMessages(other.members_); } } } 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: { isInCluster_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getClusterIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.aerospike.vector.client.proto.NodeId m = input.readMessage( com.aerospike.vector.client.proto.NodeId.parser(), extensionRegistry); if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(m); } else { membersBuilder_.addMessage(m); } break; } // case 26 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 boolean isInCluster_ ; /** *
     * Indicates if this node is in a cluster.
     * 
* * bool isInCluster = 1; * @return The isInCluster. */ @java.lang.Override public boolean getIsInCluster() { return isInCluster_; } /** *
     * Indicates if this node is in a cluster.
     * 
* * bool isInCluster = 1; * @param value The isInCluster to set. * @return This builder for chaining. */ public Builder setIsInCluster(boolean value) { isInCluster_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Indicates if this node is in a cluster.
     * 
* * bool isInCluster = 1; * @return This builder for chaining. */ public Builder clearIsInCluster() { bitField0_ = (bitField0_ & ~0x00000001); isInCluster_ = false; onChanged(); return this; } private com.aerospike.vector.client.proto.ClusterId clusterId_; private com.google.protobuf.SingleFieldBuilderV3< com.aerospike.vector.client.proto.ClusterId, com.aerospike.vector.client.proto.ClusterId.Builder, com.aerospike.vector.client.proto.ClusterIdOrBuilder> clusterIdBuilder_; /** *
     * Unique identifier for the current cluster epoch.
     * Valid only if the node is in cluster.
     * 
* * .aerospike.vector.ClusterId clusterId = 2; * @return Whether the clusterId field is set. */ public boolean hasClusterId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Unique identifier for the current cluster epoch.
     * Valid only if the node is in cluster.
     * 
* * .aerospike.vector.ClusterId clusterId = 2; * @return The clusterId. */ public com.aerospike.vector.client.proto.ClusterId getClusterId() { if (clusterIdBuilder_ == null) { return clusterId_ == null ? com.aerospike.vector.client.proto.ClusterId.getDefaultInstance() : clusterId_; } else { return clusterIdBuilder_.getMessage(); } } /** *
     * Unique identifier for the current cluster epoch.
     * Valid only if the node is in cluster.
     * 
* * .aerospike.vector.ClusterId clusterId = 2; */ public Builder setClusterId(com.aerospike.vector.client.proto.ClusterId value) { if (clusterIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clusterId_ = value; } else { clusterIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Unique identifier for the current cluster epoch.
     * Valid only if the node is in cluster.
     * 
* * .aerospike.vector.ClusterId clusterId = 2; */ public Builder setClusterId( com.aerospike.vector.client.proto.ClusterId.Builder builderForValue) { if (clusterIdBuilder_ == null) { clusterId_ = builderForValue.build(); } else { clusterIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Unique identifier for the current cluster epoch.
     * Valid only if the node is in cluster.
     * 
* * .aerospike.vector.ClusterId clusterId = 2; */ public Builder mergeClusterId(com.aerospike.vector.client.proto.ClusterId value) { if (clusterIdBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && clusterId_ != null && clusterId_ != com.aerospike.vector.client.proto.ClusterId.getDefaultInstance()) { getClusterIdBuilder().mergeFrom(value); } else { clusterId_ = value; } } else { clusterIdBuilder_.mergeFrom(value); } if (clusterId_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * Unique identifier for the current cluster epoch.
     * Valid only if the node is in cluster.
     * 
* * .aerospike.vector.ClusterId clusterId = 2; */ public Builder clearClusterId() { bitField0_ = (bitField0_ & ~0x00000002); clusterId_ = null; if (clusterIdBuilder_ != null) { clusterIdBuilder_.dispose(); clusterIdBuilder_ = null; } onChanged(); return this; } /** *
     * Unique identifier for the current cluster epoch.
     * Valid only if the node is in cluster.
     * 
* * .aerospike.vector.ClusterId clusterId = 2; */ public com.aerospike.vector.client.proto.ClusterId.Builder getClusterIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getClusterIdFieldBuilder().getBuilder(); } /** *
     * Unique identifier for the current cluster epoch.
     * Valid only if the node is in cluster.
     * 
* * .aerospike.vector.ClusterId clusterId = 2; */ public com.aerospike.vector.client.proto.ClusterIdOrBuilder getClusterIdOrBuilder() { if (clusterIdBuilder_ != null) { return clusterIdBuilder_.getMessageOrBuilder(); } else { return clusterId_ == null ? com.aerospike.vector.client.proto.ClusterId.getDefaultInstance() : clusterId_; } } /** *
     * Unique identifier for the current cluster epoch.
     * Valid only if the node is in cluster.
     * 
* * .aerospike.vector.ClusterId clusterId = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.aerospike.vector.client.proto.ClusterId, com.aerospike.vector.client.proto.ClusterId.Builder, com.aerospike.vector.client.proto.ClusterIdOrBuilder> getClusterIdFieldBuilder() { if (clusterIdBuilder_ == null) { clusterIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.aerospike.vector.client.proto.ClusterId, com.aerospike.vector.client.proto.ClusterId.Builder, com.aerospike.vector.client.proto.ClusterIdOrBuilder>( getClusterId(), getParentForChildren(), isClean()); clusterId_ = null; } return clusterIdBuilder_; } private java.util.List members_ = java.util.Collections.emptyList(); private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { members_ = new java.util.ArrayList(members_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.aerospike.vector.client.proto.NodeId, com.aerospike.vector.client.proto.NodeId.Builder, com.aerospike.vector.client.proto.NodeIdOrBuilder> membersBuilder_; /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public java.util.List getMembersList() { if (membersBuilder_ == null) { return java.util.Collections.unmodifiableList(members_); } else { return membersBuilder_.getMessageList(); } } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public int getMembersCount() { if (membersBuilder_ == null) { return members_.size(); } else { return membersBuilder_.getCount(); } } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public com.aerospike.vector.client.proto.NodeId getMembers(int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessage(index); } } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public Builder setMembers( int index, com.aerospike.vector.client.proto.NodeId value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.set(index, value); onChanged(); } else { membersBuilder_.setMessage(index, value); } return this; } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public Builder setMembers( int index, com.aerospike.vector.client.proto.NodeId.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.set(index, builderForValue.build()); onChanged(); } else { membersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public Builder addMembers(com.aerospike.vector.client.proto.NodeId value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(value); onChanged(); } else { membersBuilder_.addMessage(value); } return this; } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public Builder addMembers( int index, com.aerospike.vector.client.proto.NodeId value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(index, value); onChanged(); } else { membersBuilder_.addMessage(index, value); } return this; } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public Builder addMembers( com.aerospike.vector.client.proto.NodeId.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public Builder addMembers( int index, com.aerospike.vector.client.proto.NodeId.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(index, builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public Builder addAllMembers( java.lang.Iterable values) { if (membersBuilder_ == null) { ensureMembersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, members_); onChanged(); } else { membersBuilder_.addAllMessages(values); } return this; } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public Builder clearMembers() { if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { membersBuilder_.clear(); } return this; } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public Builder removeMembers(int index) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.remove(index); onChanged(); } else { membersBuilder_.remove(index); } return this; } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public com.aerospike.vector.client.proto.NodeId.Builder getMembersBuilder( int index) { return getMembersFieldBuilder().getBuilder(index); } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public com.aerospike.vector.client.proto.NodeIdOrBuilder getMembersOrBuilder( int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessageOrBuilder(index); } } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public java.util.List getMembersOrBuilderList() { if (membersBuilder_ != null) { return membersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(members_); } } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public com.aerospike.vector.client.proto.NodeId.Builder addMembersBuilder() { return getMembersFieldBuilder().addBuilder( com.aerospike.vector.client.proto.NodeId.getDefaultInstance()); } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public com.aerospike.vector.client.proto.NodeId.Builder addMembersBuilder( int index) { return getMembersFieldBuilder().addBuilder( index, com.aerospike.vector.client.proto.NodeId.getDefaultInstance()); } /** *
     * Current cluster members.
     * 
* * repeated .aerospike.vector.NodeId members = 3; */ public java.util.List getMembersBuilderList() { return getMembersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.aerospike.vector.client.proto.NodeId, com.aerospike.vector.client.proto.NodeId.Builder, com.aerospike.vector.client.proto.NodeIdOrBuilder> getMembersFieldBuilder() { if (membersBuilder_ == null) { membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.aerospike.vector.client.proto.NodeId, com.aerospike.vector.client.proto.NodeId.Builder, com.aerospike.vector.client.proto.NodeIdOrBuilder>( members_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); members_ = null; } return membersBuilder_; } @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.ClusteringState) } // @@protoc_insertion_point(class_scope:aerospike.vector.ClusteringState) private static final com.aerospike.vector.client.proto.ClusteringState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.aerospike.vector.client.proto.ClusteringState(); } public static com.aerospike.vector.client.proto.ClusteringState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClusteringState 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.ClusteringState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy