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.OperationType
getOperation()
required .OperationType operation = 2;
int
getPriority()
optional uint32 priority = 4 [default = 0];
long
getTxnId()
required uint64 txnId = 3;
BookkeeperProtocol.ProtocolVersion
getVersion()
required .ProtocolVersion version = 1;
boolean
hasOperation()
required .OperationType operation = 2;
boolean
hasPriority()
optional uint32 priority = 4 [default = 0];
boolean
hasTxnId()
required uint64 txnId = 3;
boolean
hasVersion()
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.
-
-