io.milvus.grpc.ShardReplica Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of milvus-sdk-java Show documentation
Show all versions of milvus-sdk-java Show documentation
Java SDK for Milvus, a distributed high-performance vector database.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: milvus.proto
package io.milvus.grpc;
/**
* Protobuf type {@code milvus.proto.milvus.ShardReplica}
*/
public final class ShardReplica extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.milvus.ShardReplica)
ShardReplicaOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShardReplica.newBuilder() to construct.
private ShardReplica(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShardReplica() {
leaderAddr_ = "";
dmChannelName_ = "";
nodeIds_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShardReplica();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ShardReplica_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ShardReplica_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.ShardReplica.class, io.milvus.grpc.ShardReplica.Builder.class);
}
public static final int LEADERID_FIELD_NUMBER = 1;
private long leaderID_ = 0L;
/**
* int64 leaderID = 1;
* @return The leaderID.
*/
@java.lang.Override
public long getLeaderID() {
return leaderID_;
}
public static final int LEADER_ADDR_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object leaderAddr_ = "";
/**
*
* IP:port
*
*
* string leader_addr = 2;
* @return The leaderAddr.
*/
@java.lang.Override
public java.lang.String getLeaderAddr() {
java.lang.Object ref = leaderAddr_;
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();
leaderAddr_ = s;
return s;
}
}
/**
*
* IP:port
*
*
* string leader_addr = 2;
* @return The bytes for leaderAddr.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLeaderAddrBytes() {
java.lang.Object ref = leaderAddr_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
leaderAddr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DM_CHANNEL_NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object dmChannelName_ = "";
/**
* string dm_channel_name = 3;
* @return The dmChannelName.
*/
@java.lang.Override
public java.lang.String getDmChannelName() {
java.lang.Object ref = dmChannelName_;
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();
dmChannelName_ = s;
return s;
}
}
/**
* string dm_channel_name = 3;
* @return The bytes for dmChannelName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDmChannelNameBytes() {
java.lang.Object ref = dmChannelName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dmChannelName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NODE_IDS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList nodeIds_ =
emptyLongList();
/**
*
* optional, DO NOT save it in meta, set it only for GetReplicas()
* if with_shard_nodes is true
*
*
* repeated int64 node_ids = 4;
* @return A list containing the nodeIds.
*/
@java.lang.Override
public java.util.List
getNodeIdsList() {
return nodeIds_;
}
/**
*
* optional, DO NOT save it in meta, set it only for GetReplicas()
* if with_shard_nodes is true
*
*
* repeated int64 node_ids = 4;
* @return The count of nodeIds.
*/
public int getNodeIdsCount() {
return nodeIds_.size();
}
/**
*
* optional, DO NOT save it in meta, set it only for GetReplicas()
* if with_shard_nodes is true
*
*
* repeated int64 node_ids = 4;
* @param index The index of the element to return.
* @return The nodeIds at the given index.
*/
public long getNodeIds(int index) {
return nodeIds_.getLong(index);
}
private int nodeIdsMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (leaderID_ != 0L) {
output.writeInt64(1, leaderID_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(leaderAddr_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, leaderAddr_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dmChannelName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dmChannelName_);
}
if (getNodeIdsList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(nodeIdsMemoizedSerializedSize);
}
for (int i = 0; i < nodeIds_.size(); i++) {
output.writeInt64NoTag(nodeIds_.getLong(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (leaderID_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, leaderID_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(leaderAddr_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, leaderAddr_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dmChannelName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dmChannelName_);
}
{
int dataSize = 0;
for (int i = 0; i < nodeIds_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(nodeIds_.getLong(i));
}
size += dataSize;
if (!getNodeIdsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
nodeIdsMemoizedSerializedSize = dataSize;
}
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 io.milvus.grpc.ShardReplica)) {
return super.equals(obj);
}
io.milvus.grpc.ShardReplica other = (io.milvus.grpc.ShardReplica) obj;
if (getLeaderID()
!= other.getLeaderID()) return false;
if (!getLeaderAddr()
.equals(other.getLeaderAddr())) return false;
if (!getDmChannelName()
.equals(other.getDmChannelName())) return false;
if (!getNodeIdsList()
.equals(other.getNodeIdsList())) 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) + LEADERID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLeaderID());
hash = (37 * hash) + LEADER_ADDR_FIELD_NUMBER;
hash = (53 * hash) + getLeaderAddr().hashCode();
hash = (37 * hash) + DM_CHANNEL_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDmChannelName().hashCode();
if (getNodeIdsCount() > 0) {
hash = (37 * hash) + NODE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getNodeIdsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.milvus.grpc.ShardReplica parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.ShardReplica parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.ShardReplica parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.ShardReplica parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.ShardReplica parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.ShardReplica parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.ShardReplica parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.ShardReplica 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 io.milvus.grpc.ShardReplica parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.ShardReplica 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 io.milvus.grpc.ShardReplica parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.ShardReplica 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(io.milvus.grpc.ShardReplica 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 milvus.proto.milvus.ShardReplica}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.milvus.ShardReplica)
io.milvus.grpc.ShardReplicaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ShardReplica_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ShardReplica_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.ShardReplica.class, io.milvus.grpc.ShardReplica.Builder.class);
}
// Construct using io.milvus.grpc.ShardReplica.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
leaderID_ = 0L;
leaderAddr_ = "";
dmChannelName_ = "";
nodeIds_ = emptyLongList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ShardReplica_descriptor;
}
@java.lang.Override
public io.milvus.grpc.ShardReplica getDefaultInstanceForType() {
return io.milvus.grpc.ShardReplica.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.ShardReplica build() {
io.milvus.grpc.ShardReplica result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.ShardReplica buildPartial() {
io.milvus.grpc.ShardReplica result = new io.milvus.grpc.ShardReplica(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.milvus.grpc.ShardReplica result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.leaderID_ = leaderID_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.leaderAddr_ = leaderAddr_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.dmChannelName_ = dmChannelName_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
nodeIds_.makeImmutable();
result.nodeIds_ = nodeIds_;
}
}
@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 io.milvus.grpc.ShardReplica) {
return mergeFrom((io.milvus.grpc.ShardReplica)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.ShardReplica other) {
if (other == io.milvus.grpc.ShardReplica.getDefaultInstance()) return this;
if (other.getLeaderID() != 0L) {
setLeaderID(other.getLeaderID());
}
if (!other.getLeaderAddr().isEmpty()) {
leaderAddr_ = other.leaderAddr_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getDmChannelName().isEmpty()) {
dmChannelName_ = other.dmChannelName_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.nodeIds_.isEmpty()) {
if (nodeIds_.isEmpty()) {
nodeIds_ = other.nodeIds_;
nodeIds_.makeImmutable();
bitField0_ |= 0x00000008;
} else {
ensureNodeIdsIsMutable();
nodeIds_.addAll(other.nodeIds_);
}
onChanged();
}
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: {
leaderID_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
leaderAddr_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
dmChannelName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
long v = input.readInt64();
ensureNodeIdsIsMutable();
nodeIds_.addLong(v);
break;
} // case 32
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureNodeIdsIsMutable();
while (input.getBytesUntilLimit() > 0) {
nodeIds_.addLong(input.readInt64());
}
input.popLimit(limit);
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 long leaderID_ ;
/**
* int64 leaderID = 1;
* @return The leaderID.
*/
@java.lang.Override
public long getLeaderID() {
return leaderID_;
}
/**
* int64 leaderID = 1;
* @param value The leaderID to set.
* @return This builder for chaining.
*/
public Builder setLeaderID(long value) {
leaderID_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int64 leaderID = 1;
* @return This builder for chaining.
*/
public Builder clearLeaderID() {
bitField0_ = (bitField0_ & ~0x00000001);
leaderID_ = 0L;
onChanged();
return this;
}
private java.lang.Object leaderAddr_ = "";
/**
*
* IP:port
*
*
* string leader_addr = 2;
* @return The leaderAddr.
*/
public java.lang.String getLeaderAddr() {
java.lang.Object ref = leaderAddr_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
leaderAddr_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* IP:port
*
*
* string leader_addr = 2;
* @return The bytes for leaderAddr.
*/
public com.google.protobuf.ByteString
getLeaderAddrBytes() {
java.lang.Object ref = leaderAddr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
leaderAddr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* IP:port
*
*
* string leader_addr = 2;
* @param value The leaderAddr to set.
* @return This builder for chaining.
*/
public Builder setLeaderAddr(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
leaderAddr_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* IP:port
*
*
* string leader_addr = 2;
* @return This builder for chaining.
*/
public Builder clearLeaderAddr() {
leaderAddr_ = getDefaultInstance().getLeaderAddr();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* IP:port
*
*
* string leader_addr = 2;
* @param value The bytes for leaderAddr to set.
* @return This builder for chaining.
*/
public Builder setLeaderAddrBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
leaderAddr_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object dmChannelName_ = "";
/**
* string dm_channel_name = 3;
* @return The dmChannelName.
*/
public java.lang.String getDmChannelName() {
java.lang.Object ref = dmChannelName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dmChannelName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string dm_channel_name = 3;
* @return The bytes for dmChannelName.
*/
public com.google.protobuf.ByteString
getDmChannelNameBytes() {
java.lang.Object ref = dmChannelName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dmChannelName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string dm_channel_name = 3;
* @param value The dmChannelName to set.
* @return This builder for chaining.
*/
public Builder setDmChannelName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
dmChannelName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string dm_channel_name = 3;
* @return This builder for chaining.
*/
public Builder clearDmChannelName() {
dmChannelName_ = getDefaultInstance().getDmChannelName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string dm_channel_name = 3;
* @param value The bytes for dmChannelName to set.
* @return This builder for chaining.
*/
public Builder setDmChannelNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
dmChannelName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList nodeIds_ = emptyLongList();
private void ensureNodeIdsIsMutable() {
if (!nodeIds_.isModifiable()) {
nodeIds_ = makeMutableCopy(nodeIds_);
}
bitField0_ |= 0x00000008;
}
/**
*
* optional, DO NOT save it in meta, set it only for GetReplicas()
* if with_shard_nodes is true
*
*
* repeated int64 node_ids = 4;
* @return A list containing the nodeIds.
*/
public java.util.List
getNodeIdsList() {
nodeIds_.makeImmutable();
return nodeIds_;
}
/**
*
* optional, DO NOT save it in meta, set it only for GetReplicas()
* if with_shard_nodes is true
*
*
* repeated int64 node_ids = 4;
* @return The count of nodeIds.
*/
public int getNodeIdsCount() {
return nodeIds_.size();
}
/**
*
* optional, DO NOT save it in meta, set it only for GetReplicas()
* if with_shard_nodes is true
*
*
* repeated int64 node_ids = 4;
* @param index The index of the element to return.
* @return The nodeIds at the given index.
*/
public long getNodeIds(int index) {
return nodeIds_.getLong(index);
}
/**
*
* optional, DO NOT save it in meta, set it only for GetReplicas()
* if with_shard_nodes is true
*
*
* repeated int64 node_ids = 4;
* @param index The index to set the value at.
* @param value The nodeIds to set.
* @return This builder for chaining.
*/
public Builder setNodeIds(
int index, long value) {
ensureNodeIdsIsMutable();
nodeIds_.setLong(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* optional, DO NOT save it in meta, set it only for GetReplicas()
* if with_shard_nodes is true
*
*
* repeated int64 node_ids = 4;
* @param value The nodeIds to add.
* @return This builder for chaining.
*/
public Builder addNodeIds(long value) {
ensureNodeIdsIsMutable();
nodeIds_.addLong(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* optional, DO NOT save it in meta, set it only for GetReplicas()
* if with_shard_nodes is true
*
*
* repeated int64 node_ids = 4;
* @param values The nodeIds to add.
* @return This builder for chaining.
*/
public Builder addAllNodeIds(
java.lang.Iterable extends java.lang.Long> values) {
ensureNodeIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nodeIds_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* optional, DO NOT save it in meta, set it only for GetReplicas()
* if with_shard_nodes is true
*
*
* repeated int64 node_ids = 4;
* @return This builder for chaining.
*/
public Builder clearNodeIds() {
nodeIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000008);
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:milvus.proto.milvus.ShardReplica)
}
// @@protoc_insertion_point(class_scope:milvus.proto.milvus.ShardReplica)
private static final io.milvus.grpc.ShardReplica DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.ShardReplica();
}
public static io.milvus.grpc.ShardReplica getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShardReplica 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 io.milvus.grpc.ShardReplica getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}