Package org.apache.bookkeeper.proto
Class BookkeeperProtocol.BKPacketHeader.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
- org.apache.bookkeeper.proto.BookkeeperProtocol.BKPacketHeader.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,BookkeeperProtocol.BKPacketHeaderOrBuilder
- Enclosing class:
- BookkeeperProtocol.BKPacketHeader
public static final class BookkeeperProtocol.BKPacketHeader.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder> implements BookkeeperProtocol.BKPacketHeaderOrBuilder
Packet header for all requests.
Protobuf typeBKPacketHeader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BookkeeperProtocol.BKPacketHeader.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BookkeeperProtocol.BKPacketHeader
build()
BookkeeperProtocol.BKPacketHeader
buildPartial()
BookkeeperProtocol.BKPacketHeader.Builder
clear()
BookkeeperProtocol.BKPacketHeader.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BookkeeperProtocol.BKPacketHeader.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BookkeeperProtocol.BKPacketHeader.Builder
clearOperation()
required .OperationType operation = 2;
BookkeeperProtocol.BKPacketHeader.Builder
clearPriority()
optional uint32 priority = 4 [default = 0];
BookkeeperProtocol.BKPacketHeader.Builder
clearTxnId()
required uint64 txnId = 3;
BookkeeperProtocol.BKPacketHeader.Builder
clearVersion()
required .ProtocolVersion version = 1;
BookkeeperProtocol.BKPacketHeader.Builder
clone()
BookkeeperProtocol.BKPacketHeader
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BookkeeperProtocol.BKPacketHeader.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BookkeeperProtocol.BKPacketHeader.Builder
mergeFrom(com.google.protobuf.Message other)
BookkeeperProtocol.BKPacketHeader.Builder
mergeFrom(BookkeeperProtocol.BKPacketHeader other)
BookkeeperProtocol.BKPacketHeader.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BookkeeperProtocol.BKPacketHeader.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BookkeeperProtocol.BKPacketHeader.Builder
setOperation(BookkeeperProtocol.OperationType value)
required .OperationType operation = 2;
BookkeeperProtocol.BKPacketHeader.Builder
setPriority(int value)
optional uint32 priority = 4 [default = 0];
BookkeeperProtocol.BKPacketHeader.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
BookkeeperProtocol.BKPacketHeader.Builder
setTxnId(long value)
required uint64 txnId = 3;
BookkeeperProtocol.BKPacketHeader.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BookkeeperProtocol.BKPacketHeader.Builder
setVersion(BookkeeperProtocol.ProtocolVersion value)
required .ProtocolVersion version = 1;
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
clear
public BookkeeperProtocol.BKPacketHeader.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
getDefaultInstanceForType
public BookkeeperProtocol.BKPacketHeader getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BookkeeperProtocol.BKPacketHeader build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BookkeeperProtocol.BKPacketHeader buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BookkeeperProtocol.BKPacketHeader.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
setField
public BookkeeperProtocol.BKPacketHeader.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
clearField
public BookkeeperProtocol.BKPacketHeader.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
clearOneof
public BookkeeperProtocol.BKPacketHeader.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
setRepeatedField
public BookkeeperProtocol.BKPacketHeader.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
addRepeatedField
public BookkeeperProtocol.BKPacketHeader.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
mergeFrom
public BookkeeperProtocol.BKPacketHeader.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
mergeFrom
public BookkeeperProtocol.BKPacketHeader.Builder mergeFrom(BookkeeperProtocol.BKPacketHeader other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
mergeFrom
public BookkeeperProtocol.BKPacketHeader.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
- Throws:
java.io.IOException
-
hasVersion
public boolean hasVersion()
required .ProtocolVersion version = 1;
- Specified by:
hasVersion
in interfaceBookkeeperProtocol.BKPacketHeaderOrBuilder
- Returns:
- Whether the version field is set.
-
getVersion
public BookkeeperProtocol.ProtocolVersion getVersion()
required .ProtocolVersion version = 1;
- Specified by:
getVersion
in interfaceBookkeeperProtocol.BKPacketHeaderOrBuilder
- Returns:
- The version.
-
setVersion
public BookkeeperProtocol.BKPacketHeader.Builder setVersion(BookkeeperProtocol.ProtocolVersion value)
required .ProtocolVersion version = 1;
- Parameters:
value
- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public BookkeeperProtocol.BKPacketHeader.Builder clearVersion()
required .ProtocolVersion version = 1;
- Returns:
- This builder for chaining.
-
hasOperation
public boolean hasOperation()
required .OperationType operation = 2;
- Specified by:
hasOperation
in interfaceBookkeeperProtocol.BKPacketHeaderOrBuilder
- Returns:
- Whether the operation field is set.
-
getOperation
public BookkeeperProtocol.OperationType getOperation()
required .OperationType operation = 2;
- Specified by:
getOperation
in interfaceBookkeeperProtocol.BKPacketHeaderOrBuilder
- Returns:
- The operation.
-
setOperation
public BookkeeperProtocol.BKPacketHeader.Builder setOperation(BookkeeperProtocol.OperationType value)
required .OperationType operation = 2;
- Parameters:
value
- The operation to set.- Returns:
- This builder for chaining.
-
clearOperation
public BookkeeperProtocol.BKPacketHeader.Builder clearOperation()
required .OperationType operation = 2;
- Returns:
- This builder for chaining.
-
hasTxnId
public boolean hasTxnId()
required uint64 txnId = 3;
- Specified by:
hasTxnId
in interfaceBookkeeperProtocol.BKPacketHeaderOrBuilder
- Returns:
- Whether the txnId field is set.
-
getTxnId
public long getTxnId()
required uint64 txnId = 3;
- Specified by:
getTxnId
in interfaceBookkeeperProtocol.BKPacketHeaderOrBuilder
- Returns:
- The txnId.
-
setTxnId
public BookkeeperProtocol.BKPacketHeader.Builder setTxnId(long value)
required uint64 txnId = 3;
- Parameters:
value
- The txnId to set.- Returns:
- This builder for chaining.
-
clearTxnId
public BookkeeperProtocol.BKPacketHeader.Builder clearTxnId()
required uint64 txnId = 3;
- Returns:
- This builder for chaining.
-
hasPriority
public boolean hasPriority()
optional uint32 priority = 4 [default = 0];
- Specified by:
hasPriority
in interfaceBookkeeperProtocol.BKPacketHeaderOrBuilder
- Returns:
- Whether the priority field is set.
-
getPriority
public int getPriority()
optional uint32 priority = 4 [default = 0];
- Specified by:
getPriority
in interfaceBookkeeperProtocol.BKPacketHeaderOrBuilder
- Returns:
- The priority.
-
setPriority
public BookkeeperProtocol.BKPacketHeader.Builder setPriority(int value)
optional uint32 priority = 4 [default = 0];
- Parameters:
value
- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
public BookkeeperProtocol.BKPacketHeader.Builder clearPriority()
optional uint32 priority = 4 [default = 0];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final BookkeeperProtocol.BKPacketHeader.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
mergeUnknownFields
public final BookkeeperProtocol.BKPacketHeader.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.BKPacketHeader.Builder>
-
-