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
ReplicaGroupProtobuf type
milvus.proto.milvus.ReplicaInfo- See Also:
-
Nested Class Summary
Nested ClassesNested 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 Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanoutbound access rg -> node numbooleanlongint64 collectionID = 2;static ReplicaInfostatic final com.google.protobuf.Descriptors.DescriptorlonggetNodeIds(int index) include leadersintinclude leadersinclude leadersDeprecated.intoutbound access rg -> node numoutbound access rg -> node numintgetNumOutboundNodeOrDefault(String key, int defaultValue) outbound access rg -> node numintoutbound access rg -> node numcom.google.protobuf.Parser<ReplicaInfo> longgetPartitionIds(int index) empty indicates to load collectionintempty indicates to load collectionempty indicates to load collectionlongint64 replicaID = 1;string resource_group_name = 6;com.google.protobuf.ByteStringstring resource_group_name = 6;intgetShardReplicas(int index) repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;intrepeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;getShardReplicasOrBuilder(int index) repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;List<? extends ShardReplicaOrBuilder> repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic ReplicaInfo.Builderstatic ReplicaInfo.BuildernewBuilder(ReplicaInfo prototype) 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()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, internalGetMapField, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
REPLICAID_FIELD_NUMBER
public static final int REPLICAID_FIELD_NUMBER- See Also:
-
COLLECTIONID_FIELD_NUMBER
public static final int COLLECTIONID_FIELD_NUMBER- See Also:
-
PARTITION_IDS_FIELD_NUMBER
public static final int PARTITION_IDS_FIELD_NUMBER- See Also:
-
SHARD_REPLICAS_FIELD_NUMBER
public static final int SHARD_REPLICAS_FIELD_NUMBER- See Also:
-
NODE_IDS_FIELD_NUMBER
public static final int NODE_IDS_FIELD_NUMBER- See Also:
-
RESOURCE_GROUP_NAME_FIELD_NUMBER
public static final int RESOURCE_GROUP_NAME_FIELD_NUMBER- See Also:
-
NUM_OUTBOUND_NODE_FIELD_NUMBER
public static final int NUM_OUTBOUND_NODE_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin 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
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
repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;- Specified by:
getShardReplicasListin interfaceReplicaInfoOrBuilder
-
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
repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;- Specified by:
getShardReplicasin interfaceReplicaInfoOrBuilder
-
getShardReplicasOrBuilder
repeated .milvus.proto.milvus.ShardReplica shard_replicas = 4;- Specified by:
getShardReplicasOrBuilderin interfaceReplicaInfoOrBuilder
-
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
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
outbound access rg -> node num
map<string, int32> num_outbound_node = 7;- Specified by:
containsNumOutboundNodein interfaceReplicaInfoOrBuilder
-
getNumOutboundNode
Deprecated.UsegetNumOutboundNodeMap()instead.- Specified by:
getNumOutboundNodein interfaceReplicaInfoOrBuilder
-
getNumOutboundNodeMap
outbound access rg -> node num
map<string, int32> num_outbound_node = 7;- Specified by:
getNumOutboundNodeMapin interfaceReplicaInfoOrBuilder
-
getNumOutboundNodeOrDefault
outbound access rg -> node num
map<string, int32> num_outbound_node = 7;- Specified by:
getNumOutboundNodeOrDefaultin interfaceReplicaInfoOrBuilder
-
getNumOutboundNodeOrThrow
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
- 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
- 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
- Throws:
IOException
-
parseFrom
public static ReplicaInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ReplicaInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ReplicaInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
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
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-