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