Package io.milvus.grpc
Class ReplicaInfo
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.milvus.grpc.ReplicaInfo
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ReplicaInfoOrBuilder,Serializable
public final class ReplicaInfo extends com.google.protobuf.GeneratedMessageV3 implements ReplicaInfoOrBuilder
ReplicaGroup
Protobuf typemilvus.proto.milvus.ReplicaInfo- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReplicaInfo.BuilderReplicaGroup-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLLECTIONID_FIELD_NUMBERstatic intNODE_IDS_FIELD_NUMBERstatic intPARTITION_IDS_FIELD_NUMBERstatic intREPLICAID_FIELD_NUMBERstatic intSHARD_REPLICAS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)longgetCollectionID()int64 collectionID = 2;static ReplicaInfogetDefaultInstance()ReplicaInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()longgetNodeIds(int index)include leadersintgetNodeIdsCount()include leadersList<Long>getNodeIdsList()include leaderscom.google.protobuf.Parser<ReplicaInfo>getParserForType()longgetPartitionIds(int index)empty indicates to load collectionintgetPartitionIdsCount()empty indicates to load collectionList<Long>getPartitionIdsList()empty indicates to load collectionlonggetReplicaID()int64 replicaID = 1;intgetSerializedSize()ShardReplicagetShardReplicas(int index)repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;intgetShardReplicasCount()repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;List<ShardReplica>getShardReplicasList()repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;ShardReplicaOrBuildergetShardReplicasOrBuilder(int index)repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;List<? extends ShardReplicaOrBuilder>getShardReplicasOrBuilderList()repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ReplicaInfo.BuildernewBuilder()static ReplicaInfo.BuildernewBuilder(ReplicaInfo prototype)ReplicaInfo.BuildernewBuilderForType()protected ReplicaInfo.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ReplicaInfoparseDelimitedFrom(InputStream input)static ReplicaInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ReplicaInfoparseFrom(byte[] data)static ReplicaInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ReplicaInfoparseFrom(com.google.protobuf.ByteString data)static ReplicaInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ReplicaInfoparseFrom(com.google.protobuf.CodedInputStream input)static ReplicaInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ReplicaInfoparseFrom(InputStream input)static ReplicaInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ReplicaInfoparseFrom(ByteBuffer data)static ReplicaInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ReplicaInfo>parser()ReplicaInfo.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
REPLICAID_FIELD_NUMBER
public static final int REPLICAID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COLLECTIONID_FIELD_NUMBER
public static final int COLLECTIONID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARTITION_IDS_FIELD_NUMBER
public static final int PARTITION_IDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHARD_REPLICAS_FIELD_NUMBER
public static final int SHARD_REPLICAS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NODE_IDS_FIELD_NUMBER
public static final int NODE_IDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getReplicaID
public long getReplicaID()
int64 replicaID = 1;- Specified by:
getReplicaIDin interfaceReplicaInfoOrBuilder- Returns:
- The replicaID.
-
getCollectionID
public long getCollectionID()
int64 collectionID = 2;- Specified by:
getCollectionIDin interfaceReplicaInfoOrBuilder- Returns:
- The collectionID.
-
getPartitionIdsList
public List<Long> getPartitionIdsList()
empty indicates to load collection
repeated int64 partition_ids = 3;- Specified by:
getPartitionIdsListin interfaceReplicaInfoOrBuilder- Returns:
- A list containing the partitionIds.
-
getPartitionIdsCount
public int getPartitionIdsCount()
empty indicates to load collection
repeated int64 partition_ids = 3;- Specified by:
getPartitionIdsCountin interfaceReplicaInfoOrBuilder- Returns:
- The count of partitionIds.
-
getPartitionIds
public long getPartitionIds(int index)
empty indicates to load collection
repeated int64 partition_ids = 3;- Specified by:
getPartitionIdsin interfaceReplicaInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The partitionIds at the given index.
-
getShardReplicasList
public List<ShardReplica> getShardReplicasList()
repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;- Specified by:
getShardReplicasListin interfaceReplicaInfoOrBuilder
-
getShardReplicasOrBuilderList
public List<? extends ShardReplicaOrBuilder> getShardReplicasOrBuilderList()
repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;- Specified by:
getShardReplicasOrBuilderListin interfaceReplicaInfoOrBuilder
-
getShardReplicasCount
public int getShardReplicasCount()
repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;- Specified by:
getShardReplicasCountin interfaceReplicaInfoOrBuilder
-
getShardReplicas
public ShardReplica getShardReplicas(int index)
repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;- Specified by:
getShardReplicasin interfaceReplicaInfoOrBuilder
-
getShardReplicasOrBuilder
public ShardReplicaOrBuilder getShardReplicasOrBuilder(int index)
repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;- Specified by:
getShardReplicasOrBuilderin interfaceReplicaInfoOrBuilder
-
getNodeIdsList
public List<Long> getNodeIdsList()
include leaders
repeated int64 node_ids = 5;- Specified by:
getNodeIdsListin interfaceReplicaInfoOrBuilder- Returns:
- A list containing the nodeIds.
-
getNodeIdsCount
public int getNodeIdsCount()
include leaders
repeated int64 node_ids = 5;- Specified by:
getNodeIdsCountin interfaceReplicaInfoOrBuilder- Returns:
- The count of nodeIds.
-
getNodeIds
public long getNodeIds(int index)
include leaders
repeated int64 node_ids = 5;- Specified by:
getNodeIdsin interfaceReplicaInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The nodeIds at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ReplicaInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ReplicaInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ReplicaInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ReplicaInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ReplicaInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ReplicaInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ReplicaInfo parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ReplicaInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ReplicaInfo parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ReplicaInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ReplicaInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ReplicaInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ReplicaInfo.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ReplicaInfo.Builder newBuilder()
-
newBuilder
public static ReplicaInfo.Builder newBuilder(ReplicaInfo prototype)
-
toBuilder
public ReplicaInfo.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ReplicaInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ReplicaInfo getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ReplicaInfo> parser()
-
getParserForType
public com.google.protobuf.Parser<ReplicaInfo> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ReplicaInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-