Package io.etcd.jetcd.api
Interface ProclaimRequestOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ProclaimRequest,ProclaimRequest.Builder
public interface ProclaimRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LeaderKeygetLeader()leader is the leadership hold on the election.LeaderKeyOrBuildergetLeaderOrBuilder()leader is the leadership hold on the election.com.google.protobuf.ByteStringgetValue()value is an update meant to overwrite the leader's current value.booleanhasLeader()leader is the leadership hold on the election.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasLeader
boolean hasLeader()
leader is the leadership hold on the election.
.v3electionpb.LeaderKey leader = 1;- Returns:
- Whether the leader field is set.
-
getLeader
LeaderKey getLeader()
leader is the leadership hold on the election.
.v3electionpb.LeaderKey leader = 1;- Returns:
- The leader.
-
getLeaderOrBuilder
LeaderKeyOrBuilder getLeaderOrBuilder()
leader is the leadership hold on the election.
.v3electionpb.LeaderKey leader = 1;
-
getValue
com.google.protobuf.ByteString getValue()
value is an update meant to overwrite the leader's current value.
bytes value = 2;- Returns:
- The value.
-
-