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
Modifier and TypeMethodDescriptionrequired .OperationType operation = 2;intoptional uint32 priority = 4 [default = 0];longgetTxnId()required uint64 txnId = 3;required .ProtocolVersion version = 1;booleanrequired .OperationType operation = 2;booleanoptional uint32 priority = 4 [default = 0];booleanhasTxnId()required uint64 txnId = 3;booleanrequired .ProtocolVersion version = 1;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
-
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.
-