Package org.apache.bookkeeper.proto
Class BookkeeperProtocol.ReadLacResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ReadLacResponse.Builder>
-
- org.apache.bookkeeper.proto.BookkeeperProtocol.ReadLacResponse.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.ReadLacResponseOrBuilder
- Enclosing class:
- BookkeeperProtocol.ReadLacResponse
public static final class BookkeeperProtocol.ReadLacResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ReadLacResponse.Builder> implements BookkeeperProtocol.ReadLacResponseOrBuilder
Protobuf typeReadLacResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BookkeeperProtocol.ReadLacResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BookkeeperProtocol.ReadLacResponse
build()
BookkeeperProtocol.ReadLacResponse
buildPartial()
BookkeeperProtocol.ReadLacResponse.Builder
clear()
BookkeeperProtocol.ReadLacResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BookkeeperProtocol.ReadLacResponse.Builder
clearLacBody()
lac sent by PutLacRequestBookkeeperProtocol.ReadLacResponse.Builder
clearLastEntryBody()
Actual last entry on the diskBookkeeperProtocol.ReadLacResponse.Builder
clearLedgerId()
required int64 ledgerId = 2;
BookkeeperProtocol.ReadLacResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BookkeeperProtocol.ReadLacResponse.Builder
clearStatus()
required .StatusCode status = 1;
BookkeeperProtocol.ReadLacResponse.Builder
clone()
BookkeeperProtocol.ReadLacResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.ByteString
getLacBody()
lac sent by PutLacRequestcom.google.protobuf.ByteString
getLastEntryBody()
Actual last entry on the disklong
getLedgerId()
required int64 ledgerId = 2;
BookkeeperProtocol.StatusCode
getStatus()
required .StatusCode status = 1;
boolean
hasLacBody()
lac sent by PutLacRequestboolean
hasLastEntryBody()
Actual last entry on the diskboolean
hasLedgerId()
required int64 ledgerId = 2;
boolean
hasStatus()
required .StatusCode status = 1;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BookkeeperProtocol.ReadLacResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BookkeeperProtocol.ReadLacResponse.Builder
mergeFrom(com.google.protobuf.Message other)
BookkeeperProtocol.ReadLacResponse.Builder
mergeFrom(BookkeeperProtocol.ReadLacResponse other)
BookkeeperProtocol.ReadLacResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BookkeeperProtocol.ReadLacResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BookkeeperProtocol.ReadLacResponse.Builder
setLacBody(com.google.protobuf.ByteString value)
lac sent by PutLacRequestBookkeeperProtocol.ReadLacResponse.Builder
setLastEntryBody(com.google.protobuf.ByteString value)
Actual last entry on the diskBookkeeperProtocol.ReadLacResponse.Builder
setLedgerId(long value)
required int64 ledgerId = 2;
BookkeeperProtocol.ReadLacResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
BookkeeperProtocol.ReadLacResponse.Builder
setStatus(BookkeeperProtocol.StatusCode value)
required .StatusCode status = 1;
BookkeeperProtocol.ReadLacResponse.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.ReadLacResponse.Builder>
-
clear
public BookkeeperProtocol.ReadLacResponse.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.ReadLacResponse.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.ReadLacResponse.Builder>
-
getDefaultInstanceForType
public BookkeeperProtocol.ReadLacResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BookkeeperProtocol.ReadLacResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BookkeeperProtocol.ReadLacResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BookkeeperProtocol.ReadLacResponse.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.ReadLacResponse.Builder>
-
setField
public BookkeeperProtocol.ReadLacResponse.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.ReadLacResponse.Builder>
-
clearField
public BookkeeperProtocol.ReadLacResponse.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.ReadLacResponse.Builder>
-
clearOneof
public BookkeeperProtocol.ReadLacResponse.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.ReadLacResponse.Builder>
-
setRepeatedField
public BookkeeperProtocol.ReadLacResponse.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.ReadLacResponse.Builder>
-
addRepeatedField
public BookkeeperProtocol.ReadLacResponse.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.ReadLacResponse.Builder>
-
mergeFrom
public BookkeeperProtocol.ReadLacResponse.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.ReadLacResponse.Builder>
-
mergeFrom
public BookkeeperProtocol.ReadLacResponse.Builder mergeFrom(BookkeeperProtocol.ReadLacResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ReadLacResponse.Builder>
-
mergeFrom
public BookkeeperProtocol.ReadLacResponse.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.ReadLacResponse.Builder>
- Throws:
java.io.IOException
-
hasStatus
public boolean hasStatus()
required .StatusCode status = 1;
- Specified by:
hasStatus
in interfaceBookkeeperProtocol.ReadLacResponseOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
public BookkeeperProtocol.StatusCode getStatus()
required .StatusCode status = 1;
- Specified by:
getStatus
in interfaceBookkeeperProtocol.ReadLacResponseOrBuilder
- Returns:
- The status.
-
setStatus
public BookkeeperProtocol.ReadLacResponse.Builder setStatus(BookkeeperProtocol.StatusCode value)
required .StatusCode status = 1;
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public BookkeeperProtocol.ReadLacResponse.Builder clearStatus()
required .StatusCode status = 1;
- Returns:
- This builder for chaining.
-
hasLedgerId
public boolean hasLedgerId()
required int64 ledgerId = 2;
- Specified by:
hasLedgerId
in interfaceBookkeeperProtocol.ReadLacResponseOrBuilder
- Returns:
- Whether the ledgerId field is set.
-
getLedgerId
public long getLedgerId()
required int64 ledgerId = 2;
- Specified by:
getLedgerId
in interfaceBookkeeperProtocol.ReadLacResponseOrBuilder
- Returns:
- The ledgerId.
-
setLedgerId
public BookkeeperProtocol.ReadLacResponse.Builder setLedgerId(long value)
required int64 ledgerId = 2;
- Parameters:
value
- The ledgerId to set.- Returns:
- This builder for chaining.
-
clearLedgerId
public BookkeeperProtocol.ReadLacResponse.Builder clearLedgerId()
required int64 ledgerId = 2;
- Returns:
- This builder for chaining.
-
hasLacBody
public boolean hasLacBody()
lac sent by PutLacRequest
optional bytes lacBody = 3;
- Specified by:
hasLacBody
in interfaceBookkeeperProtocol.ReadLacResponseOrBuilder
- Returns:
- Whether the lacBody field is set.
-
getLacBody
public com.google.protobuf.ByteString getLacBody()
lac sent by PutLacRequest
optional bytes lacBody = 3;
- Specified by:
getLacBody
in interfaceBookkeeperProtocol.ReadLacResponseOrBuilder
- Returns:
- The lacBody.
-
setLacBody
public BookkeeperProtocol.ReadLacResponse.Builder setLacBody(com.google.protobuf.ByteString value)
lac sent by PutLacRequest
optional bytes lacBody = 3;
- Parameters:
value
- The lacBody to set.- Returns:
- This builder for chaining.
-
clearLacBody
public BookkeeperProtocol.ReadLacResponse.Builder clearLacBody()
lac sent by PutLacRequest
optional bytes lacBody = 3;
- Returns:
- This builder for chaining.
-
hasLastEntryBody
public boolean hasLastEntryBody()
Actual last entry on the disk
optional bytes lastEntryBody = 4;
- Specified by:
hasLastEntryBody
in interfaceBookkeeperProtocol.ReadLacResponseOrBuilder
- Returns:
- Whether the lastEntryBody field is set.
-
getLastEntryBody
public com.google.protobuf.ByteString getLastEntryBody()
Actual last entry on the disk
optional bytes lastEntryBody = 4;
- Specified by:
getLastEntryBody
in interfaceBookkeeperProtocol.ReadLacResponseOrBuilder
- Returns:
- The lastEntryBody.
-
setLastEntryBody
public BookkeeperProtocol.ReadLacResponse.Builder setLastEntryBody(com.google.protobuf.ByteString value)
Actual last entry on the disk
optional bytes lastEntryBody = 4;
- Parameters:
value
- The lastEntryBody to set.- Returns:
- This builder for chaining.
-
clearLastEntryBody
public BookkeeperProtocol.ReadLacResponse.Builder clearLastEntryBody()
Actual last entry on the disk
optional bytes lastEntryBody = 4;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final BookkeeperProtocol.ReadLacResponse.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.ReadLacResponse.Builder>
-
mergeUnknownFields
public final BookkeeperProtocol.ReadLacResponse.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.ReadLacResponse.Builder>
-
-