Package org.apache.bookkeeper.proto
Class BookkeeperProtocol.ReadResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ReadResponse.Builder>
-
- org.apache.bookkeeper.proto.BookkeeperProtocol.ReadResponse.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.ReadResponseOrBuilder
- Enclosing class:
- BookkeeperProtocol.ReadResponse
public static final class BookkeeperProtocol.ReadResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ReadResponse.Builder> implements BookkeeperProtocol.ReadResponseOrBuilder
Protobuf typeReadResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BookkeeperProtocol.ReadResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BookkeeperProtocol.ReadResponse
build()
BookkeeperProtocol.ReadResponse
buildPartial()
BookkeeperProtocol.ReadResponse.Builder
clear()
BookkeeperProtocol.ReadResponse.Builder
clearBody()
optional bytes body = 4;
BookkeeperProtocol.ReadResponse.Builder
clearEntryId()
required int64 entryId = 3;
BookkeeperProtocol.ReadResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BookkeeperProtocol.ReadResponse.Builder
clearLacUpdateTimestamp()
optional int64 lacUpdateTimestamp = 6;
BookkeeperProtocol.ReadResponse.Builder
clearLedgerId()
required int64 ledgerId = 2;
BookkeeperProtocol.ReadResponse.Builder
clearMaxLAC()
Piggyback LACBookkeeperProtocol.ReadResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BookkeeperProtocol.ReadResponse.Builder
clearStatus()
required .StatusCode status = 1;
BookkeeperProtocol.ReadResponse.Builder
clone()
com.google.protobuf.ByteString
getBody()
optional bytes body = 4;
BookkeeperProtocol.ReadResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getEntryId()
required int64 entryId = 3;
long
getLacUpdateTimestamp()
optional int64 lacUpdateTimestamp = 6;
long
getLedgerId()
required int64 ledgerId = 2;
long
getMaxLAC()
Piggyback LACBookkeeperProtocol.StatusCode
getStatus()
required .StatusCode status = 1;
boolean
hasBody()
optional bytes body = 4;
boolean
hasEntryId()
required int64 entryId = 3;
boolean
hasLacUpdateTimestamp()
optional int64 lacUpdateTimestamp = 6;
boolean
hasLedgerId()
required int64 ledgerId = 2;
boolean
hasMaxLAC()
Piggyback LACboolean
hasStatus()
required .StatusCode status = 1;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BookkeeperProtocol.ReadResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BookkeeperProtocol.ReadResponse.Builder
mergeFrom(com.google.protobuf.Message other)
BookkeeperProtocol.ReadResponse.Builder
mergeFrom(BookkeeperProtocol.ReadResponse other)
BookkeeperProtocol.ReadResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BookkeeperProtocol.ReadResponse.Builder
setBody(com.google.protobuf.ByteString value)
optional bytes body = 4;
BookkeeperProtocol.ReadResponse.Builder
setEntryId(long value)
required int64 entryId = 3;
BookkeeperProtocol.ReadResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BookkeeperProtocol.ReadResponse.Builder
setLacUpdateTimestamp(long value)
optional int64 lacUpdateTimestamp = 6;
BookkeeperProtocol.ReadResponse.Builder
setLedgerId(long value)
required int64 ledgerId = 2;
BookkeeperProtocol.ReadResponse.Builder
setMaxLAC(long value)
Piggyback LACBookkeeperProtocol.ReadResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
BookkeeperProtocol.ReadResponse.Builder
setStatus(BookkeeperProtocol.StatusCode value)
required .StatusCode status = 1;
BookkeeperProtocol.ReadResponse.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.ReadResponse.Builder>
-
clear
public BookkeeperProtocol.ReadResponse.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.ReadResponse.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.ReadResponse.Builder>
-
getDefaultInstanceForType
public BookkeeperProtocol.ReadResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BookkeeperProtocol.ReadResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BookkeeperProtocol.ReadResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BookkeeperProtocol.ReadResponse.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.ReadResponse.Builder>
-
setField
public BookkeeperProtocol.ReadResponse.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.ReadResponse.Builder>
-
clearField
public BookkeeperProtocol.ReadResponse.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.ReadResponse.Builder>
-
clearOneof
public BookkeeperProtocol.ReadResponse.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.ReadResponse.Builder>
-
setRepeatedField
public BookkeeperProtocol.ReadResponse.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.ReadResponse.Builder>
-
addRepeatedField
public BookkeeperProtocol.ReadResponse.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.ReadResponse.Builder>
-
mergeFrom
public BookkeeperProtocol.ReadResponse.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.ReadResponse.Builder>
-
mergeFrom
public BookkeeperProtocol.ReadResponse.Builder mergeFrom(BookkeeperProtocol.ReadResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ReadResponse.Builder>
-
mergeFrom
public BookkeeperProtocol.ReadResponse.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.ReadResponse.Builder>
- Throws:
java.io.IOException
-
hasStatus
public boolean hasStatus()
required .StatusCode status = 1;
- Specified by:
hasStatus
in interfaceBookkeeperProtocol.ReadResponseOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
public BookkeeperProtocol.StatusCode getStatus()
required .StatusCode status = 1;
- Specified by:
getStatus
in interfaceBookkeeperProtocol.ReadResponseOrBuilder
- Returns:
- The status.
-
setStatus
public BookkeeperProtocol.ReadResponse.Builder setStatus(BookkeeperProtocol.StatusCode value)
required .StatusCode status = 1;
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public BookkeeperProtocol.ReadResponse.Builder clearStatus()
required .StatusCode status = 1;
- Returns:
- This builder for chaining.
-
hasLedgerId
public boolean hasLedgerId()
required int64 ledgerId = 2;
- Specified by:
hasLedgerId
in interfaceBookkeeperProtocol.ReadResponseOrBuilder
- Returns:
- Whether the ledgerId field is set.
-
getLedgerId
public long getLedgerId()
required int64 ledgerId = 2;
- Specified by:
getLedgerId
in interfaceBookkeeperProtocol.ReadResponseOrBuilder
- Returns:
- The ledgerId.
-
setLedgerId
public BookkeeperProtocol.ReadResponse.Builder setLedgerId(long value)
required int64 ledgerId = 2;
- Parameters:
value
- The ledgerId to set.- Returns:
- This builder for chaining.
-
clearLedgerId
public BookkeeperProtocol.ReadResponse.Builder clearLedgerId()
required int64 ledgerId = 2;
- Returns:
- This builder for chaining.
-
hasEntryId
public boolean hasEntryId()
required int64 entryId = 3;
- Specified by:
hasEntryId
in interfaceBookkeeperProtocol.ReadResponseOrBuilder
- Returns:
- Whether the entryId field is set.
-
getEntryId
public long getEntryId()
required int64 entryId = 3;
- Specified by:
getEntryId
in interfaceBookkeeperProtocol.ReadResponseOrBuilder
- Returns:
- The entryId.
-
setEntryId
public BookkeeperProtocol.ReadResponse.Builder setEntryId(long value)
required int64 entryId = 3;
- Parameters:
value
- The entryId to set.- Returns:
- This builder for chaining.
-
clearEntryId
public BookkeeperProtocol.ReadResponse.Builder clearEntryId()
required int64 entryId = 3;
- Returns:
- This builder for chaining.
-
hasBody
public boolean hasBody()
optional bytes body = 4;
- Specified by:
hasBody
in interfaceBookkeeperProtocol.ReadResponseOrBuilder
- Returns:
- Whether the body field is set.
-
getBody
public com.google.protobuf.ByteString getBody()
optional bytes body = 4;
- Specified by:
getBody
in interfaceBookkeeperProtocol.ReadResponseOrBuilder
- Returns:
- The body.
-
setBody
public BookkeeperProtocol.ReadResponse.Builder setBody(com.google.protobuf.ByteString value)
optional bytes body = 4;
- Parameters:
value
- The body to set.- Returns:
- This builder for chaining.
-
clearBody
public BookkeeperProtocol.ReadResponse.Builder clearBody()
optional bytes body = 4;
- Returns:
- This builder for chaining.
-
hasMaxLAC
public boolean hasMaxLAC()
Piggyback LAC
optional int64 maxLAC = 5;
- Specified by:
hasMaxLAC
in interfaceBookkeeperProtocol.ReadResponseOrBuilder
- Returns:
- Whether the maxLAC field is set.
-
getMaxLAC
public long getMaxLAC()
Piggyback LAC
optional int64 maxLAC = 5;
- Specified by:
getMaxLAC
in interfaceBookkeeperProtocol.ReadResponseOrBuilder
- Returns:
- The maxLAC.
-
setMaxLAC
public BookkeeperProtocol.ReadResponse.Builder setMaxLAC(long value)
Piggyback LAC
optional int64 maxLAC = 5;
- Parameters:
value
- The maxLAC to set.- Returns:
- This builder for chaining.
-
clearMaxLAC
public BookkeeperProtocol.ReadResponse.Builder clearMaxLAC()
Piggyback LAC
optional int64 maxLAC = 5;
- Returns:
- This builder for chaining.
-
hasLacUpdateTimestamp
public boolean hasLacUpdateTimestamp()
optional int64 lacUpdateTimestamp = 6;
- Specified by:
hasLacUpdateTimestamp
in interfaceBookkeeperProtocol.ReadResponseOrBuilder
- Returns:
- Whether the lacUpdateTimestamp field is set.
-
getLacUpdateTimestamp
public long getLacUpdateTimestamp()
optional int64 lacUpdateTimestamp = 6;
- Specified by:
getLacUpdateTimestamp
in interfaceBookkeeperProtocol.ReadResponseOrBuilder
- Returns:
- The lacUpdateTimestamp.
-
setLacUpdateTimestamp
public BookkeeperProtocol.ReadResponse.Builder setLacUpdateTimestamp(long value)
optional int64 lacUpdateTimestamp = 6;
- Parameters:
value
- The lacUpdateTimestamp to set.- Returns:
- This builder for chaining.
-
clearLacUpdateTimestamp
public BookkeeperProtocol.ReadResponse.Builder clearLacUpdateTimestamp()
optional int64 lacUpdateTimestamp = 6;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final BookkeeperProtocol.ReadResponse.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.ReadResponse.Builder>
-
mergeUnknownFields
public final BookkeeperProtocol.ReadResponse.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.ReadResponse.Builder>
-
-