Package org.apache.bookkeeper.proto
Class BookkeeperProtocol.AddRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.AddRequest.Builder>
-
- org.apache.bookkeeper.proto.BookkeeperProtocol.AddRequest.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.AddRequestOrBuilder
- Enclosing class:
- BookkeeperProtocol.AddRequest
public static final class BookkeeperProtocol.AddRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.AddRequest.Builder> implements BookkeeperProtocol.AddRequestOrBuilder
Protobuf typeAddRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BookkeeperProtocol.AddRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BookkeeperProtocol.AddRequest
build()
BookkeeperProtocol.AddRequest
buildPartial()
BookkeeperProtocol.AddRequest.Builder
clear()
BookkeeperProtocol.AddRequest.Builder
clearBody()
required bytes body = 4;
BookkeeperProtocol.AddRequest.Builder
clearEntryId()
required int64 entryId = 2;
BookkeeperProtocol.AddRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BookkeeperProtocol.AddRequest.Builder
clearFlag()
optional .AddRequest.Flag flag = 100;
BookkeeperProtocol.AddRequest.Builder
clearLedgerId()
required int64 ledgerId = 1;
BookkeeperProtocol.AddRequest.Builder
clearMasterKey()
required bytes masterKey = 3;
BookkeeperProtocol.AddRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BookkeeperProtocol.AddRequest.Builder
clearWriteFlags()
optional int32 writeFlags = 5;
BookkeeperProtocol.AddRequest.Builder
clone()
com.google.protobuf.ByteString
getBody()
required bytes body = 4;
BookkeeperProtocol.AddRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getEntryId()
required int64 entryId = 2;
BookkeeperProtocol.AddRequest.Flag
getFlag()
optional .AddRequest.Flag flag = 100;
long
getLedgerId()
required int64 ledgerId = 1;
com.google.protobuf.ByteString
getMasterKey()
required bytes masterKey = 3;
int
getWriteFlags()
optional int32 writeFlags = 5;
boolean
hasBody()
required bytes body = 4;
boolean
hasEntryId()
required int64 entryId = 2;
boolean
hasFlag()
optional .AddRequest.Flag flag = 100;
boolean
hasLedgerId()
required int64 ledgerId = 1;
boolean
hasMasterKey()
required bytes masterKey = 3;
boolean
hasWriteFlags()
optional int32 writeFlags = 5;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BookkeeperProtocol.AddRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BookkeeperProtocol.AddRequest.Builder
mergeFrom(com.google.protobuf.Message other)
BookkeeperProtocol.AddRequest.Builder
mergeFrom(BookkeeperProtocol.AddRequest other)
BookkeeperProtocol.AddRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BookkeeperProtocol.AddRequest.Builder
setBody(com.google.protobuf.ByteString value)
required bytes body = 4;
BookkeeperProtocol.AddRequest.Builder
setEntryId(long value)
required int64 entryId = 2;
BookkeeperProtocol.AddRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BookkeeperProtocol.AddRequest.Builder
setFlag(BookkeeperProtocol.AddRequest.Flag value)
optional .AddRequest.Flag flag = 100;
BookkeeperProtocol.AddRequest.Builder
setLedgerId(long value)
required int64 ledgerId = 1;
BookkeeperProtocol.AddRequest.Builder
setMasterKey(com.google.protobuf.ByteString value)
required bytes masterKey = 3;
BookkeeperProtocol.AddRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
BookkeeperProtocol.AddRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BookkeeperProtocol.AddRequest.Builder
setWriteFlags(int value)
optional int32 writeFlags = 5;
-
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.AddRequest.Builder>
-
clear
public BookkeeperProtocol.AddRequest.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.AddRequest.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.AddRequest.Builder>
-
getDefaultInstanceForType
public BookkeeperProtocol.AddRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BookkeeperProtocol.AddRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BookkeeperProtocol.AddRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BookkeeperProtocol.AddRequest.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.AddRequest.Builder>
-
setField
public BookkeeperProtocol.AddRequest.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.AddRequest.Builder>
-
clearField
public BookkeeperProtocol.AddRequest.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.AddRequest.Builder>
-
clearOneof
public BookkeeperProtocol.AddRequest.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.AddRequest.Builder>
-
setRepeatedField
public BookkeeperProtocol.AddRequest.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.AddRequest.Builder>
-
addRepeatedField
public BookkeeperProtocol.AddRequest.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.AddRequest.Builder>
-
mergeFrom
public BookkeeperProtocol.AddRequest.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.AddRequest.Builder>
-
mergeFrom
public BookkeeperProtocol.AddRequest.Builder mergeFrom(BookkeeperProtocol.AddRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.AddRequest.Builder>
-
mergeFrom
public BookkeeperProtocol.AddRequest.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.AddRequest.Builder>
- Throws:
java.io.IOException
-
hasFlag
public boolean hasFlag()
optional .AddRequest.Flag flag = 100;
- Specified by:
hasFlag
in interfaceBookkeeperProtocol.AddRequestOrBuilder
- Returns:
- Whether the flag field is set.
-
getFlag
public BookkeeperProtocol.AddRequest.Flag getFlag()
optional .AddRequest.Flag flag = 100;
- Specified by:
getFlag
in interfaceBookkeeperProtocol.AddRequestOrBuilder
- Returns:
- The flag.
-
setFlag
public BookkeeperProtocol.AddRequest.Builder setFlag(BookkeeperProtocol.AddRequest.Flag value)
optional .AddRequest.Flag flag = 100;
- Parameters:
value
- The flag to set.- Returns:
- This builder for chaining.
-
clearFlag
public BookkeeperProtocol.AddRequest.Builder clearFlag()
optional .AddRequest.Flag flag = 100;
- Returns:
- This builder for chaining.
-
hasLedgerId
public boolean hasLedgerId()
required int64 ledgerId = 1;
- Specified by:
hasLedgerId
in interfaceBookkeeperProtocol.AddRequestOrBuilder
- Returns:
- Whether the ledgerId field is set.
-
getLedgerId
public long getLedgerId()
required int64 ledgerId = 1;
- Specified by:
getLedgerId
in interfaceBookkeeperProtocol.AddRequestOrBuilder
- Returns:
- The ledgerId.
-
setLedgerId
public BookkeeperProtocol.AddRequest.Builder setLedgerId(long value)
required int64 ledgerId = 1;
- Parameters:
value
- The ledgerId to set.- Returns:
- This builder for chaining.
-
clearLedgerId
public BookkeeperProtocol.AddRequest.Builder clearLedgerId()
required int64 ledgerId = 1;
- Returns:
- This builder for chaining.
-
hasEntryId
public boolean hasEntryId()
required int64 entryId = 2;
- Specified by:
hasEntryId
in interfaceBookkeeperProtocol.AddRequestOrBuilder
- Returns:
- Whether the entryId field is set.
-
getEntryId
public long getEntryId()
required int64 entryId = 2;
- Specified by:
getEntryId
in interfaceBookkeeperProtocol.AddRequestOrBuilder
- Returns:
- The entryId.
-
setEntryId
public BookkeeperProtocol.AddRequest.Builder setEntryId(long value)
required int64 entryId = 2;
- Parameters:
value
- The entryId to set.- Returns:
- This builder for chaining.
-
clearEntryId
public BookkeeperProtocol.AddRequest.Builder clearEntryId()
required int64 entryId = 2;
- Returns:
- This builder for chaining.
-
hasMasterKey
public boolean hasMasterKey()
required bytes masterKey = 3;
- Specified by:
hasMasterKey
in interfaceBookkeeperProtocol.AddRequestOrBuilder
- Returns:
- Whether the masterKey field is set.
-
getMasterKey
public com.google.protobuf.ByteString getMasterKey()
required bytes masterKey = 3;
- Specified by:
getMasterKey
in interfaceBookkeeperProtocol.AddRequestOrBuilder
- Returns:
- The masterKey.
-
setMasterKey
public BookkeeperProtocol.AddRequest.Builder setMasterKey(com.google.protobuf.ByteString value)
required bytes masterKey = 3;
- Parameters:
value
- The masterKey to set.- Returns:
- This builder for chaining.
-
clearMasterKey
public BookkeeperProtocol.AddRequest.Builder clearMasterKey()
required bytes masterKey = 3;
- Returns:
- This builder for chaining.
-
hasBody
public boolean hasBody()
required bytes body = 4;
- Specified by:
hasBody
in interfaceBookkeeperProtocol.AddRequestOrBuilder
- Returns:
- Whether the body field is set.
-
getBody
public com.google.protobuf.ByteString getBody()
required bytes body = 4;
- Specified by:
getBody
in interfaceBookkeeperProtocol.AddRequestOrBuilder
- Returns:
- The body.
-
setBody
public BookkeeperProtocol.AddRequest.Builder setBody(com.google.protobuf.ByteString value)
required bytes body = 4;
- Parameters:
value
- The body to set.- Returns:
- This builder for chaining.
-
clearBody
public BookkeeperProtocol.AddRequest.Builder clearBody()
required bytes body = 4;
- Returns:
- This builder for chaining.
-
hasWriteFlags
public boolean hasWriteFlags()
optional int32 writeFlags = 5;
- Specified by:
hasWriteFlags
in interfaceBookkeeperProtocol.AddRequestOrBuilder
- Returns:
- Whether the writeFlags field is set.
-
getWriteFlags
public int getWriteFlags()
optional int32 writeFlags = 5;
- Specified by:
getWriteFlags
in interfaceBookkeeperProtocol.AddRequestOrBuilder
- Returns:
- The writeFlags.
-
setWriteFlags
public BookkeeperProtocol.AddRequest.Builder setWriteFlags(int value)
optional int32 writeFlags = 5;
- Parameters:
value
- The writeFlags to set.- Returns:
- This builder for chaining.
-
clearWriteFlags
public BookkeeperProtocol.AddRequest.Builder clearWriteFlags()
optional int32 writeFlags = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final BookkeeperProtocol.AddRequest.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.AddRequest.Builder>
-
mergeUnknownFields
public final BookkeeperProtocol.AddRequest.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.AddRequest.Builder>
-
-