Package io.etcd.jetcd.api
Interface CampaignRequestOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CampaignRequest,CampaignRequest.Builder
public interface CampaignRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetLease()lease is the ID of the lease attached to leadership of the election.com.google.protobuf.ByteStringgetName()name is the election's identifier for the campaign.com.google.protobuf.ByteStringgetValue()value is the initial proclaimed value set when the campaigner wins the election.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
com.google.protobuf.ByteString getName()
name is the election's identifier for the campaign.
bytes name = 1;- Returns:
- The name.
-
getLease
long getLease()
lease is the ID of the lease attached to leadership of the election. If the lease expires or is revoked before resigning leadership, then the leadership is transferred to the next campaigner, if any.
int64 lease = 2;- Returns:
- The lease.
-
getValue
com.google.protobuf.ByteString getValue()
value is the initial proclaimed value set when the campaigner wins the election.
bytes value = 3;- Returns:
- The value.
-
-