public static final class Protocol.ReadRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Protocol.ReadRequest.Builder> implements Protocol.ReadRequestOrBuilder
The read request. next available id: 8Protobuf type
alluxio.proto.dataserver.ReadRequest
Modifier and Type | Method and Description |
---|---|
Protocol.ReadRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Protocol.ReadRequest |
build() |
Protocol.ReadRequest |
buildPartial() |
Protocol.ReadRequest.Builder |
clear() |
Protocol.ReadRequest.Builder |
clearBlockId()
optional int64 block_id = 1; |
Protocol.ReadRequest.Builder |
clearCancel()
If set, this request is to cancel the reading request for the id.
|
Protocol.ReadRequest.Builder |
clearChunkSize()
If set, the server should send packets in the specified packet size.
|
Protocol.ReadRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protocol.ReadRequest.Builder |
clearLength()
optional int64 length = 3; |
Protocol.ReadRequest.Builder |
clearOffset()
optional int64 offset = 2; |
Protocol.ReadRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protocol.ReadRequest.Builder |
clearOpenUfsBlockOptions()
This is only set for UFS block read.
|
Protocol.ReadRequest.Builder |
clearPromote()
Whether the block should be promoted before reading
|
Protocol.ReadRequest.Builder |
clone() |
long |
getBlockId()
optional int64 block_id = 1; |
boolean |
getCancel()
If set, this request is to cancel the reading request for the id.
|
long |
getChunkSize()
If set, the server should send packets in the specified packet size.
|
Protocol.ReadRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getLength()
optional int64 length = 3; |
long |
getOffset()
optional int64 offset = 2; |
Protocol.OpenUfsBlockOptions |
getOpenUfsBlockOptions()
This is only set for UFS block read.
|
Protocol.OpenUfsBlockOptions.Builder |
getOpenUfsBlockOptionsBuilder()
This is only set for UFS block read.
|
Protocol.OpenUfsBlockOptionsOrBuilder |
getOpenUfsBlockOptionsOrBuilder()
This is only set for UFS block read.
|
boolean |
getPromote()
Whether the block should be promoted before reading
|
boolean |
hasBlockId()
optional int64 block_id = 1; |
boolean |
hasCancel()
If set, this request is to cancel the reading request for the id.
|
boolean |
hasChunkSize()
If set, the server should send packets in the specified packet size.
|
boolean |
hasLength()
optional int64 length = 3; |
boolean |
hasOffset()
optional int64 offset = 2; |
boolean |
hasOpenUfsBlockOptions()
This is only set for UFS block read.
|
boolean |
hasPromote()
Whether the block should be promoted before reading
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protocol.ReadRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protocol.ReadRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protocol.ReadRequest.Builder |
mergeFrom(Protocol.ReadRequest other) |
Protocol.ReadRequest.Builder |
mergeOpenUfsBlockOptions(Protocol.OpenUfsBlockOptions value)
This is only set for UFS block read.
|
Protocol.ReadRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protocol.ReadRequest.Builder |
setBlockId(long value)
optional int64 block_id = 1; |
Protocol.ReadRequest.Builder |
setCancel(boolean value)
If set, this request is to cancel the reading request for the id.
|
Protocol.ReadRequest.Builder |
setChunkSize(long value)
If set, the server should send packets in the specified packet size.
|
Protocol.ReadRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Protocol.ReadRequest.Builder |
setLength(long value)
optional int64 length = 3; |
Protocol.ReadRequest.Builder |
setOffset(long value)
optional int64 offset = 2; |
Protocol.ReadRequest.Builder |
setOpenUfsBlockOptions(Protocol.OpenUfsBlockOptions.Builder builderForValue)
This is only set for UFS block read.
|
Protocol.ReadRequest.Builder |
setOpenUfsBlockOptions(Protocol.OpenUfsBlockOptions value)
This is only set for UFS block read.
|
Protocol.ReadRequest.Builder |
setPromote(boolean value)
Whether the block should be promoted before reading
|
Protocol.ReadRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Protocol.ReadRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Protocol.ReadRequest.Builder>
public Protocol.ReadRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Protocol.ReadRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Protocol.ReadRequest.Builder>
public Protocol.ReadRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Protocol.ReadRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Protocol.ReadRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Protocol.ReadRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Protocol.ReadRequest.Builder>
public Protocol.ReadRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protocol.ReadRequest.Builder>
public Protocol.ReadRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protocol.ReadRequest.Builder>
public Protocol.ReadRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Protocol.ReadRequest.Builder>
public Protocol.ReadRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protocol.ReadRequest.Builder>
public Protocol.ReadRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Protocol.ReadRequest.Builder>
public Protocol.ReadRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protocol.ReadRequest.Builder>
public Protocol.ReadRequest.Builder mergeFrom(Protocol.ReadRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Protocol.ReadRequest.Builder>
public Protocol.ReadRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protocol.ReadRequest.Builder>
IOException
public boolean hasBlockId()
optional int64 block_id = 1;
hasBlockId
in interface Protocol.ReadRequestOrBuilder
public long getBlockId()
optional int64 block_id = 1;
getBlockId
in interface Protocol.ReadRequestOrBuilder
public Protocol.ReadRequest.Builder setBlockId(long value)
optional int64 block_id = 1;
value
- The blockId to set.public Protocol.ReadRequest.Builder clearBlockId()
optional int64 block_id = 1;
public boolean hasOffset()
optional int64 offset = 2;
hasOffset
in interface Protocol.ReadRequestOrBuilder
public long getOffset()
optional int64 offset = 2;
getOffset
in interface Protocol.ReadRequestOrBuilder
public Protocol.ReadRequest.Builder setOffset(long value)
optional int64 offset = 2;
value
- The offset to set.public Protocol.ReadRequest.Builder clearOffset()
optional int64 offset = 2;
public boolean hasLength()
optional int64 length = 3;
hasLength
in interface Protocol.ReadRequestOrBuilder
public long getLength()
optional int64 length = 3;
getLength
in interface Protocol.ReadRequestOrBuilder
public Protocol.ReadRequest.Builder setLength(long value)
optional int64 length = 3;
value
- The length to set.public Protocol.ReadRequest.Builder clearLength()
optional int64 length = 3;
public boolean hasCancel()
If set, this request is to cancel the reading request for the id.
optional bool cancel = 4;
hasCancel
in interface Protocol.ReadRequestOrBuilder
public boolean getCancel()
If set, this request is to cancel the reading request for the id.
optional bool cancel = 4;
getCancel
in interface Protocol.ReadRequestOrBuilder
public Protocol.ReadRequest.Builder setCancel(boolean value)
If set, this request is to cancel the reading request for the id.
optional bool cancel = 4;
value
- The cancel to set.public Protocol.ReadRequest.Builder clearCancel()
If set, this request is to cancel the reading request for the id.
optional bool cancel = 4;
public boolean hasPromote()
Whether the block should be promoted before reading
optional bool promote = 7;
hasPromote
in interface Protocol.ReadRequestOrBuilder
public boolean getPromote()
Whether the block should be promoted before reading
optional bool promote = 7;
getPromote
in interface Protocol.ReadRequestOrBuilder
public Protocol.ReadRequest.Builder setPromote(boolean value)
Whether the block should be promoted before reading
optional bool promote = 7;
value
- The promote to set.public Protocol.ReadRequest.Builder clearPromote()
Whether the block should be promoted before reading
optional bool promote = 7;
public boolean hasChunkSize()
If set, the server should send packets in the specified packet size.
optional int64 chunk_size = 5;
hasChunkSize
in interface Protocol.ReadRequestOrBuilder
public long getChunkSize()
If set, the server should send packets in the specified packet size.
optional int64 chunk_size = 5;
getChunkSize
in interface Protocol.ReadRequestOrBuilder
public Protocol.ReadRequest.Builder setChunkSize(long value)
If set, the server should send packets in the specified packet size.
optional int64 chunk_size = 5;
value
- The chunkSize to set.public Protocol.ReadRequest.Builder clearChunkSize()
If set, the server should send packets in the specified packet size.
optional int64 chunk_size = 5;
public boolean hasOpenUfsBlockOptions()
This is only set for UFS block read.
optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
hasOpenUfsBlockOptions
in interface Protocol.ReadRequestOrBuilder
public Protocol.OpenUfsBlockOptions getOpenUfsBlockOptions()
This is only set for UFS block read.
optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
getOpenUfsBlockOptions
in interface Protocol.ReadRequestOrBuilder
public Protocol.ReadRequest.Builder setOpenUfsBlockOptions(Protocol.OpenUfsBlockOptions value)
This is only set for UFS block read.
optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
public Protocol.ReadRequest.Builder setOpenUfsBlockOptions(Protocol.OpenUfsBlockOptions.Builder builderForValue)
This is only set for UFS block read.
optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
public Protocol.ReadRequest.Builder mergeOpenUfsBlockOptions(Protocol.OpenUfsBlockOptions value)
This is only set for UFS block read.
optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
public Protocol.ReadRequest.Builder clearOpenUfsBlockOptions()
This is only set for UFS block read.
optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
public Protocol.OpenUfsBlockOptions.Builder getOpenUfsBlockOptionsBuilder()
This is only set for UFS block read.
optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
public Protocol.OpenUfsBlockOptionsOrBuilder getOpenUfsBlockOptionsOrBuilder()
This is only set for UFS block read.
optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
getOpenUfsBlockOptionsOrBuilder
in interface Protocol.ReadRequestOrBuilder
public final Protocol.ReadRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Protocol.ReadRequest.Builder>
public final Protocol.ReadRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Protocol.ReadRequest.Builder>
Copyright © 2023. All Rights Reserved.