Package org.apache.bookkeeper.proto
Interface BookkeeperProtocol.BKPacketHeaderOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
BookkeeperProtocol.BKPacketHeader,BookkeeperProtocol.BKPacketHeader.Builder
- Enclosing class:
- BookkeeperProtocol
public static interface BookkeeperProtocol.BKPacketHeaderOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BookkeeperProtocol.OperationTypegetOperation()required .OperationType operation = 2;intgetPriority()optional uint32 priority = 4 [default = 0];longgetTxnId()required uint64 txnId = 3;BookkeeperProtocol.ProtocolVersiongetVersion()required .ProtocolVersion version = 1;booleanhasOperation()required .OperationType operation = 2;booleanhasPriority()optional uint32 priority = 4 [default = 0];booleanhasTxnId()required uint64 txnId = 3;booleanhasVersion()required .ProtocolVersion version = 1;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasVersion
boolean hasVersion()
required .ProtocolVersion version = 1;- Returns:
- Whether the version field is set.
-
getVersion
BookkeeperProtocol.ProtocolVersion getVersion()
required .ProtocolVersion version = 1;- Returns:
- The version.
-
hasOperation
boolean hasOperation()
required .OperationType operation = 2;- Returns:
- Whether the operation field is set.
-
getOperation
BookkeeperProtocol.OperationType getOperation()
required .OperationType operation = 2;- Returns:
- The operation.
-
hasTxnId
boolean hasTxnId()
required uint64 txnId = 3;- Returns:
- Whether the txnId field is set.
-
getTxnId
long getTxnId()
required uint64 txnId = 3;- Returns:
- The txnId.
-
hasPriority
boolean hasPriority()
optional uint32 priority = 4 [default = 0];- Returns:
- Whether the priority field is set.
-
getPriority
int getPriority()
optional uint32 priority = 4 [default = 0];- Returns:
- The priority.
-
-