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<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, 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 intNUM_OUTBOUND_NODE_FIELD_NUMBERstatic intPARTITION_IDS_FIELD_NUMBERstatic intREPLICAID_FIELD_NUMBERstatic intRESOURCE_GROUP_NAME_FIELD_NUMBERstatic intSHARD_REPLICAS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsNumOutboundNode(String key)outbound access rg -> node numbooleanequals(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 leadersMap<String,Integer>getNumOutboundNode()Deprecated.intgetNumOutboundNodeCount()outbound access rg -> node numMap<String,Integer>getNumOutboundNodeMap()outbound access rg -> node numintgetNumOutboundNodeOrDefault(String key, int defaultValue)outbound access rg -> node numintgetNumOutboundNodeOrThrow(String key)outbound access rg -> node numcom.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;StringgetResourceGroupName()string resource_group_name = 6;com.google.protobuf.ByteStringgetResourceGroupNameBytes()string resource_group_name = 6;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;inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)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, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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
-
RESOURCE_GROUP_NAME_FIELD_NUMBER
public static final int RESOURCE_GROUP_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NUM_OUTBOUND_NODE_FIELD_NUMBER
public static final int NUM_OUTBOUND_NODE_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
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
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.
-
getResourceGroupName
public String getResourceGroupName()
string resource_group_name = 6;- Specified by:
getResourceGroupNamein interfaceReplicaInfoOrBuilder- Returns:
- The resourceGroupName.
-
getResourceGroupNameBytes
public com.google.protobuf.ByteString getResourceGroupNameBytes()
string resource_group_name = 6;- Specified by:
getResourceGroupNameBytesin interfaceReplicaInfoOrBuilder- Returns:
- The bytes for resourceGroupName.
-
getNumOutboundNodeCount
public int getNumOutboundNodeCount()
Description copied from interface:ReplicaInfoOrBuilderoutbound access rg -> node num
map<string, int32> num_outbound_node = 7;- Specified by:
getNumOutboundNodeCountin interfaceReplicaInfoOrBuilder
-
containsNumOutboundNode
public boolean containsNumOutboundNode(String key)
outbound access rg -> node num
map<string, int32> num_outbound_node = 7;- Specified by:
containsNumOutboundNodein interfaceReplicaInfoOrBuilder
-
getNumOutboundNode
@Deprecated public Map<String,Integer> getNumOutboundNode()
Deprecated.UsegetNumOutboundNodeMap()instead.- Specified by:
getNumOutboundNodein interfaceReplicaInfoOrBuilder
-
getNumOutboundNodeMap
public Map<String,Integer> getNumOutboundNodeMap()
outbound access rg -> node num
map<string, int32> num_outbound_node = 7;- Specified by:
getNumOutboundNodeMapin interfaceReplicaInfoOrBuilder
-
getNumOutboundNodeOrDefault
public int getNumOutboundNodeOrDefault(String key, int defaultValue)
outbound access rg -> node num
map<string, int32> num_outbound_node = 7;- Specified by:
getNumOutboundNodeOrDefaultin interfaceReplicaInfoOrBuilder
-
getNumOutboundNodeOrThrow
public int getNumOutboundNodeOrThrow(String key)
outbound access rg -> node num
map<string, int32> num_outbound_node = 7;- Specified by:
getNumOutboundNodeOrThrowin interfaceReplicaInfoOrBuilder
-
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
-
-