Package io.dingodb.common
Interface Common.PeerOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Common.Peer,Common.Peer.Builder
- Enclosing class:
- Common
public static interface Common.PeerOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescription.dingodb.pb.common.Location raft_location = 4;.dingodb.pb.common.Location raft_location = 4;getRole().dingodb.pb.common.PeerRole role = 2;int.dingodb.pb.common.PeerRole role = 2;.dingodb.pb.common.Location server_location = 3;.dingodb.pb.common.Location server_location = 3;longint64 store_id = 1;boolean.dingodb.pb.common.Location raft_location = 4;boolean.dingodb.pb.common.Location server_location = 3;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getStoreId
long getStoreId()int64 store_id = 1;- Returns:
- The storeId.
-
getRoleValue
int getRoleValue().dingodb.pb.common.PeerRole role = 2;- Returns:
- The enum numeric value on the wire for role.
-
getRole
Common.PeerRole getRole().dingodb.pb.common.PeerRole role = 2;- Returns:
- The role.
-
hasServerLocation
boolean hasServerLocation().dingodb.pb.common.Location server_location = 3;- Returns:
- Whether the serverLocation field is set.
-
getServerLocation
Common.Location getServerLocation().dingodb.pb.common.Location server_location = 3;- Returns:
- The serverLocation.
-
getServerLocationOrBuilder
Common.LocationOrBuilder getServerLocationOrBuilder().dingodb.pb.common.Location server_location = 3; -
hasRaftLocation
boolean hasRaftLocation().dingodb.pb.common.Location raft_location = 4;- Returns:
- Whether the raftLocation field is set.
-
getRaftLocation
Common.Location getRaftLocation().dingodb.pb.common.Location raft_location = 4;- Returns:
- The raftLocation.
-
getRaftLocationOrBuilder
Common.LocationOrBuilder getRaftLocationOrBuilder().dingodb.pb.common.Location raft_location = 4;
-