Package org.apache.bookkeeper.proto
Class BookkeeperProtocol.ReadRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ReadRequest.Builder>
-
- org.apache.bookkeeper.proto.BookkeeperProtocol.ReadRequest.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.ReadRequestOrBuilder
- Enclosing class:
- BookkeeperProtocol.ReadRequest
public static final class BookkeeperProtocol.ReadRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ReadRequest.Builder> implements BookkeeperProtocol.ReadRequestOrBuilder
Protobuf typeReadRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BookkeeperProtocol.ReadRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BookkeeperProtocol.ReadRequest
build()
BookkeeperProtocol.ReadRequest
buildPartial()
BookkeeperProtocol.ReadRequest.Builder
clear()
BookkeeperProtocol.ReadRequest.Builder
clearEntryId()
entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.BookkeeperProtocol.ReadRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BookkeeperProtocol.ReadRequest.Builder
clearFlag()
optional .ReadRequest.Flag flag = 100;
BookkeeperProtocol.ReadRequest.Builder
clearLedgerId()
required int64 ledgerId = 1;
BookkeeperProtocol.ReadRequest.Builder
clearMasterKey()
Used while fencing a ledger.BookkeeperProtocol.ReadRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BookkeeperProtocol.ReadRequest.Builder
clearPreviousLAC()
Used for waiting on last add confirmed updateBookkeeperProtocol.ReadRequest.Builder
clearTimeOut()
Used as a timeout (in milliseconds) for the long polling requestBookkeeperProtocol.ReadRequest.Builder
clone()
BookkeeperProtocol.ReadRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getEntryId()
entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.BookkeeperProtocol.ReadRequest.Flag
getFlag()
optional .ReadRequest.Flag flag = 100;
long
getLedgerId()
required int64 ledgerId = 1;
com.google.protobuf.ByteString
getMasterKey()
Used while fencing a ledger.long
getPreviousLAC()
Used for waiting on last add confirmed updatelong
getTimeOut()
Used as a timeout (in milliseconds) for the long polling requestboolean
hasEntryId()
entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.boolean
hasFlag()
optional .ReadRequest.Flag flag = 100;
boolean
hasLedgerId()
required int64 ledgerId = 1;
boolean
hasMasterKey()
Used while fencing a ledger.boolean
hasPreviousLAC()
Used for waiting on last add confirmed updateboolean
hasTimeOut()
Used as a timeout (in milliseconds) for the long polling requestprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BookkeeperProtocol.ReadRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BookkeeperProtocol.ReadRequest.Builder
mergeFrom(com.google.protobuf.Message other)
BookkeeperProtocol.ReadRequest.Builder
mergeFrom(BookkeeperProtocol.ReadRequest other)
BookkeeperProtocol.ReadRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BookkeeperProtocol.ReadRequest.Builder
setEntryId(long value)
entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.BookkeeperProtocol.ReadRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BookkeeperProtocol.ReadRequest.Builder
setFlag(BookkeeperProtocol.ReadRequest.Flag value)
optional .ReadRequest.Flag flag = 100;
BookkeeperProtocol.ReadRequest.Builder
setLedgerId(long value)
required int64 ledgerId = 1;
BookkeeperProtocol.ReadRequest.Builder
setMasterKey(com.google.protobuf.ByteString value)
Used while fencing a ledger.BookkeeperProtocol.ReadRequest.Builder
setPreviousLAC(long value)
Used for waiting on last add confirmed updateBookkeeperProtocol.ReadRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
BookkeeperProtocol.ReadRequest.Builder
setTimeOut(long value)
Used as a timeout (in milliseconds) for the long polling requestBookkeeperProtocol.ReadRequest.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.ReadRequest.Builder>
-
clear
public BookkeeperProtocol.ReadRequest.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.ReadRequest.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.ReadRequest.Builder>
-
getDefaultInstanceForType
public BookkeeperProtocol.ReadRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BookkeeperProtocol.ReadRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BookkeeperProtocol.ReadRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BookkeeperProtocol.ReadRequest.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.ReadRequest.Builder>
-
setField
public BookkeeperProtocol.ReadRequest.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.ReadRequest.Builder>
-
clearField
public BookkeeperProtocol.ReadRequest.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.ReadRequest.Builder>
-
clearOneof
public BookkeeperProtocol.ReadRequest.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.ReadRequest.Builder>
-
setRepeatedField
public BookkeeperProtocol.ReadRequest.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.ReadRequest.Builder>
-
addRepeatedField
public BookkeeperProtocol.ReadRequest.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.ReadRequest.Builder>
-
mergeFrom
public BookkeeperProtocol.ReadRequest.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.ReadRequest.Builder>
-
mergeFrom
public BookkeeperProtocol.ReadRequest.Builder mergeFrom(BookkeeperProtocol.ReadRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ReadRequest.Builder>
-
mergeFrom
public BookkeeperProtocol.ReadRequest.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.ReadRequest.Builder>
- Throws:
java.io.IOException
-
hasFlag
public boolean hasFlag()
optional .ReadRequest.Flag flag = 100;
- Specified by:
hasFlag
in interfaceBookkeeperProtocol.ReadRequestOrBuilder
- Returns:
- Whether the flag field is set.
-
getFlag
public BookkeeperProtocol.ReadRequest.Flag getFlag()
optional .ReadRequest.Flag flag = 100;
- Specified by:
getFlag
in interfaceBookkeeperProtocol.ReadRequestOrBuilder
- Returns:
- The flag.
-
setFlag
public BookkeeperProtocol.ReadRequest.Builder setFlag(BookkeeperProtocol.ReadRequest.Flag value)
optional .ReadRequest.Flag flag = 100;
- Parameters:
value
- The flag to set.- Returns:
- This builder for chaining.
-
clearFlag
public BookkeeperProtocol.ReadRequest.Builder clearFlag()
optional .ReadRequest.Flag flag = 100;
- Returns:
- This builder for chaining.
-
hasLedgerId
public boolean hasLedgerId()
required int64 ledgerId = 1;
- Specified by:
hasLedgerId
in interfaceBookkeeperProtocol.ReadRequestOrBuilder
- Returns:
- Whether the ledgerId field is set.
-
getLedgerId
public long getLedgerId()
required int64 ledgerId = 1;
- Specified by:
getLedgerId
in interfaceBookkeeperProtocol.ReadRequestOrBuilder
- Returns:
- The ledgerId.
-
setLedgerId
public BookkeeperProtocol.ReadRequest.Builder setLedgerId(long value)
required int64 ledgerId = 1;
- Parameters:
value
- The ledgerId to set.- Returns:
- This builder for chaining.
-
clearLedgerId
public BookkeeperProtocol.ReadRequest.Builder clearLedgerId()
required int64 ledgerId = 1;
- Returns:
- This builder for chaining.
-
hasEntryId
public boolean hasEntryId()
entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.
required int64 entryId = 2;
- Specified by:
hasEntryId
in interfaceBookkeeperProtocol.ReadRequestOrBuilder
- Returns:
- Whether the entryId field is set.
-
getEntryId
public long getEntryId()
entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.
required int64 entryId = 2;
- Specified by:
getEntryId
in interfaceBookkeeperProtocol.ReadRequestOrBuilder
- Returns:
- The entryId.
-
setEntryId
public BookkeeperProtocol.ReadRequest.Builder setEntryId(long value)
entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.
required int64 entryId = 2;
- Parameters:
value
- The entryId to set.- Returns:
- This builder for chaining.
-
clearEntryId
public BookkeeperProtocol.ReadRequest.Builder clearEntryId()
entryId will be -1 for reading the LAST_ADD_CONFIRMED entry.
required int64 entryId = 2;
- Returns:
- This builder for chaining.
-
hasMasterKey
public boolean hasMasterKey()
Used while fencing a ledger.
optional bytes masterKey = 3;
- Specified by:
hasMasterKey
in interfaceBookkeeperProtocol.ReadRequestOrBuilder
- Returns:
- Whether the masterKey field is set.
-
getMasterKey
public com.google.protobuf.ByteString getMasterKey()
Used while fencing a ledger.
optional bytes masterKey = 3;
- Specified by:
getMasterKey
in interfaceBookkeeperProtocol.ReadRequestOrBuilder
- Returns:
- The masterKey.
-
setMasterKey
public BookkeeperProtocol.ReadRequest.Builder setMasterKey(com.google.protobuf.ByteString value)
Used while fencing a ledger.
optional bytes masterKey = 3;
- Parameters:
value
- The masterKey to set.- Returns:
- This builder for chaining.
-
clearMasterKey
public BookkeeperProtocol.ReadRequest.Builder clearMasterKey()
Used while fencing a ledger.
optional bytes masterKey = 3;
- Returns:
- This builder for chaining.
-
hasPreviousLAC
public boolean hasPreviousLAC()
Used for waiting on last add confirmed update
optional int64 previousLAC = 4;
- Specified by:
hasPreviousLAC
in interfaceBookkeeperProtocol.ReadRequestOrBuilder
- Returns:
- Whether the previousLAC field is set.
-
getPreviousLAC
public long getPreviousLAC()
Used for waiting on last add confirmed update
optional int64 previousLAC = 4;
- Specified by:
getPreviousLAC
in interfaceBookkeeperProtocol.ReadRequestOrBuilder
- Returns:
- The previousLAC.
-
setPreviousLAC
public BookkeeperProtocol.ReadRequest.Builder setPreviousLAC(long value)
Used for waiting on last add confirmed update
optional int64 previousLAC = 4;
- Parameters:
value
- The previousLAC to set.- Returns:
- This builder for chaining.
-
clearPreviousLAC
public BookkeeperProtocol.ReadRequest.Builder clearPreviousLAC()
Used for waiting on last add confirmed update
optional int64 previousLAC = 4;
- Returns:
- This builder for chaining.
-
hasTimeOut
public boolean hasTimeOut()
Used as a timeout (in milliseconds) for the long polling request
optional int64 timeOut = 5;
- Specified by:
hasTimeOut
in interfaceBookkeeperProtocol.ReadRequestOrBuilder
- Returns:
- Whether the timeOut field is set.
-
getTimeOut
public long getTimeOut()
Used as a timeout (in milliseconds) for the long polling request
optional int64 timeOut = 5;
- Specified by:
getTimeOut
in interfaceBookkeeperProtocol.ReadRequestOrBuilder
- Returns:
- The timeOut.
-
setTimeOut
public BookkeeperProtocol.ReadRequest.Builder setTimeOut(long value)
Used as a timeout (in milliseconds) for the long polling request
optional int64 timeOut = 5;
- Parameters:
value
- The timeOut to set.- Returns:
- This builder for chaining.
-
clearTimeOut
public BookkeeperProtocol.ReadRequest.Builder clearTimeOut()
Used as a timeout (in milliseconds) for the long polling request
optional int64 timeOut = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final BookkeeperProtocol.ReadRequest.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.ReadRequest.Builder>
-
mergeUnknownFields
public final BookkeeperProtocol.ReadRequest.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.ReadRequest.Builder>
-
-