
alluxio.grpc.ReadRequest Maven / Gradle / Ivy
// Generated by the protocol buffer alluxio.shaded.client.com.iler. DO NOT EDIT!
// source: grpc/block_worker.proto
package alluxio.grpc;
/**
*
* The read request.
* next available id: 9
*
*
* Protobuf type {@code alluxio.grpc.block.ReadRequest}
*/
public final class ReadRequest extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:alluxio.grpc.block.ReadRequest)
ReadRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReadRequest.newBuilder() to construct.
private ReadRequest(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReadRequest();
}
@java.lang.Override
public final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_ReadRequest_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_ReadRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.ReadRequest.class, alluxio.grpc.ReadRequest.Builder.class);
}
private int bitField0_;
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private long blockId_;
/**
* optional int64 block_id = 1;
* @return Whether the blockId field is set.
*/
@java.lang.Override
public boolean hasBlockId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public long getBlockId() {
return blockId_;
}
public static final int OFFSET_FIELD_NUMBER = 2;
private long offset_;
/**
* optional int64 offset = 2;
* @return Whether the offset field is set.
*/
@java.lang.Override
public boolean hasOffset() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 offset = 2;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
public static final int LENGTH_FIELD_NUMBER = 3;
private long length_;
/**
* optional int64 length = 3;
* @return Whether the length field is set.
*/
@java.lang.Override
public boolean hasLength() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 length = 3;
* @return The length.
*/
@java.lang.Override
public long getLength() {
return length_;
}
public static final int PROMOTE_FIELD_NUMBER = 4;
private boolean promote_;
/**
*
* Whether the block should be promoted before reading
*
*
* optional bool promote = 4;
* @return Whether the promote field is set.
*/
@java.lang.Override
public boolean hasPromote() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Whether the block should be promoted before reading
*
*
* optional bool promote = 4;
* @return The promote.
*/
@java.lang.Override
public boolean getPromote() {
return promote_;
}
public static final int CHUNK_SIZE_FIELD_NUMBER = 5;
private long chunkSize_;
/**
* optional int64 chunk_size = 5;
* @return Whether the chunkSize field is set.
*/
@java.lang.Override
public boolean hasChunkSize() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 chunk_size = 5;
* @return The chunkSize.
*/
@java.lang.Override
public long getChunkSize() {
return chunkSize_;
}
public static final int OPEN_UFS_BLOCK_OPTIONS_FIELD_NUMBER = 6;
private alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions openUfsBlockOptions_;
/**
*
* This is only set for UFS block read.
*
*
* optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
* @return Whether the openUfsBlockOptions field is set.
*/
@java.lang.Override
public boolean hasOpenUfsBlockOptions() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* This is only set for UFS block read.
*
*
* optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
* @return The openUfsBlockOptions.
*/
@java.lang.Override
public alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions getOpenUfsBlockOptions() {
return openUfsBlockOptions_ == null ? alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.getDefaultInstance() : openUfsBlockOptions_;
}
/**
*
* This is only set for UFS block read.
*
*
* optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
*/
@java.lang.Override
public alluxio.proto.dataserver.Protocol.OpenUfsBlockOptionsOrBuilder getOpenUfsBlockOptionsOrBuilder() {
return openUfsBlockOptions_ == null ? alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.getDefaultInstance() : openUfsBlockOptions_;
}
public static final int OFFSET_RECEIVED_FIELD_NUMBER = 7;
private long offsetReceived_;
/**
*
* Read receipt
*
*
* optional int64 offset_received = 7;
* @return Whether the offsetReceived field is set.
*/
@java.lang.Override
public boolean hasOffsetReceived() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Read receipt
*
*
* optional int64 offset_received = 7;
* @return The offsetReceived.
*/
@java.lang.Override
public long getOffsetReceived() {
return offsetReceived_;
}
public static final int POSITION_SHORT_FIELD_NUMBER = 8;
private boolean positionShort_;
/**
*
* Is position read to a small buffer
*
*
* optional bool position_short = 8;
* @return Whether the positionShort field is set.
*/
@java.lang.Override
public boolean hasPositionShort() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Is position read to a small buffer
*
*
* optional bool position_short = 8;
* @return The positionShort.
*/
@java.lang.Override
public boolean getPositionShort() {
return positionShort_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(alluxio.shaded.client.com.google.protobuf.CodedOutputStream output)
throws java.alluxio.shaded.client.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, blockId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, offset_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, length_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(4, promote_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(5, chunkSize_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(6, getOpenUfsBlockOptions());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(7, offsetReceived_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBool(8, positionShort_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(1, blockId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(2, offset_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(3, length_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(4, promote_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(5, chunkSize_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(6, getOpenUfsBlockOptions());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(7, offsetReceived_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(8, positionShort_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof alluxio.grpc.ReadRequest)) {
return super.equals(obj);
}
alluxio.grpc.ReadRequest other = (alluxio.grpc.ReadRequest) obj;
if (hasBlockId() != other.hasBlockId()) return false;
if (hasBlockId()) {
if (getBlockId()
!= other.getBlockId()) return false;
}
if (hasOffset() != other.hasOffset()) return false;
if (hasOffset()) {
if (getOffset()
!= other.getOffset()) return false;
}
if (hasLength() != other.hasLength()) return false;
if (hasLength()) {
if (getLength()
!= other.getLength()) return false;
}
if (hasPromote() != other.hasPromote()) return false;
if (hasPromote()) {
if (getPromote()
!= other.getPromote()) return false;
}
if (hasChunkSize() != other.hasChunkSize()) return false;
if (hasChunkSize()) {
if (getChunkSize()
!= other.getChunkSize()) return false;
}
if (hasOpenUfsBlockOptions() != other.hasOpenUfsBlockOptions()) return false;
if (hasOpenUfsBlockOptions()) {
if (!getOpenUfsBlockOptions()
.equals(other.getOpenUfsBlockOptions())) return false;
}
if (hasOffsetReceived() != other.hasOffsetReceived()) return false;
if (hasOffsetReceived()) {
if (getOffsetReceived()
!= other.getOffsetReceived()) return false;
}
if (hasPositionShort() != other.hasPositionShort()) return false;
if (hasPositionShort()) {
if (getPositionShort()
!= other.getPositionShort()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasBlockId()) {
hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getBlockId());
}
if (hasOffset()) {
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getOffset());
}
if (hasLength()) {
hash = (37 * hash) + LENGTH_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getLength());
}
if (hasPromote()) {
hash = (37 * hash) + PROMOTE_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getPromote());
}
if (hasChunkSize()) {
hash = (37 * hash) + CHUNK_SIZE_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getChunkSize());
}
if (hasOpenUfsBlockOptions()) {
hash = (37 * hash) + OPEN_UFS_BLOCK_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOpenUfsBlockOptions().hashCode();
}
if (hasOffsetReceived()) {
hash = (37 * hash) + OFFSET_RECEIVED_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getOffsetReceived());
}
if (hasPositionShort()) {
hash = (37 * hash) + POSITION_SHORT_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getPositionShort());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static alluxio.grpc.ReadRequest parseFrom(
java.nio.ByteBuffer data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.ReadRequest parseFrom(
java.nio.ByteBuffer data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.ReadRequest parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.ReadRequest parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.ReadRequest parseFrom(byte[] data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.ReadRequest parseFrom(
byte[] data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.ReadRequest parseFrom(java.alluxio.shaded.client.io.InputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static alluxio.grpc.ReadRequest parseFrom(
java.alluxio.shaded.client.io.InputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static alluxio.grpc.ReadRequest parseDelimitedFrom(java.alluxio.shaded.client.io.InputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static alluxio.grpc.ReadRequest parseDelimitedFrom(
java.alluxio.shaded.client.io.InputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static alluxio.grpc.ReadRequest parseFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static alluxio.grpc.ReadRequest parseFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(alluxio.grpc.ReadRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* The read request.
* next available id: 9
*
*
* Protobuf type {@code alluxio.grpc.block.ReadRequest}
*/
public static final class Builder extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:alluxio.grpc.block.ReadRequest)
alluxio.grpc.ReadRequestOrBuilder {
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_ReadRequest_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_ReadRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.ReadRequest.class, alluxio.grpc.ReadRequest.Builder.class);
}
// Construct using alluxio.grpc.ReadRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOpenUfsBlockOptionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
blockId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
offset_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
length_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
promote_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
chunkSize_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
if (openUfsBlockOptionsBuilder_ == null) {
openUfsBlockOptions_ = null;
} else {
openUfsBlockOptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
offsetReceived_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
positionShort_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_ReadRequest_descriptor;
}
@java.lang.Override
public alluxio.grpc.ReadRequest getDefaultInstanceForType() {
return alluxio.grpc.ReadRequest.getDefaultInstance();
}
@java.lang.Override
public alluxio.grpc.ReadRequest build() {
alluxio.grpc.ReadRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public alluxio.grpc.ReadRequest buildPartial() {
alluxio.grpc.ReadRequest result = new alluxio.grpc.ReadRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.blockId_ = blockId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.offset_ = offset_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.length_ = length_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.promote_ = promote_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.chunkSize_ = chunkSize_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
if (openUfsBlockOptionsBuilder_ == null) {
result.openUfsBlockOptions_ = openUfsBlockOptions_;
} else {
result.openUfsBlockOptions_ = openUfsBlockOptionsBuilder_.build();
}
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.offsetReceived_ = offsetReceived_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.positionShort_ = positionShort_;
to_bitField0_ |= 0x00000080;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
alluxio.shaded.client.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(alluxio.shaded.client.com.google.protobuf.Message other) {
if (other instanceof alluxio.grpc.ReadRequest) {
return mergeFrom((alluxio.grpc.ReadRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.grpc.ReadRequest other) {
if (other == alluxio.grpc.ReadRequest.getDefaultInstance()) return this;
if (other.hasBlockId()) {
setBlockId(other.getBlockId());
}
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (other.hasLength()) {
setLength(other.getLength());
}
if (other.hasPromote()) {
setPromote(other.getPromote());
}
if (other.hasChunkSize()) {
setChunkSize(other.getChunkSize());
}
if (other.hasOpenUfsBlockOptions()) {
mergeOpenUfsBlockOptions(other.getOpenUfsBlockOptions());
}
if (other.hasOffsetReceived()) {
setOffsetReceived(other.getOffsetReceived());
}
if (other.hasPositionShort()) {
setPositionShort(other.getPositionShort());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
blockId_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
offset_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
length_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
promote_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
chunkSize_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
input.readMessage(
getOpenUfsBlockOptionsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
offsetReceived_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
positionShort_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long blockId_ ;
/**
* optional int64 block_id = 1;
* @return Whether the blockId field is set.
*/
@java.lang.Override
public boolean hasBlockId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 block_id = 1;
* @return The blockId.
*/
@java.lang.Override
public long getBlockId() {
return blockId_;
}
/**
* optional int64 block_id = 1;
* @param value The blockId to set.
* @return This builder for chaining.
*/
public Builder setBlockId(long value) {
bitField0_ |= 0x00000001;
blockId_ = value;
onChanged();
return this;
}
/**
* optional int64 block_id = 1;
* @return This builder for chaining.
*/
public Builder clearBlockId() {
bitField0_ = (bitField0_ & ~0x00000001);
blockId_ = 0L;
onChanged();
return this;
}
private long offset_ ;
/**
* optional int64 offset = 2;
* @return Whether the offset field is set.
*/
@java.lang.Override
public boolean hasOffset() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 offset = 2;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
/**
* optional int64 offset = 2;
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(long value) {
bitField0_ |= 0x00000002;
offset_ = value;
onChanged();
return this;
}
/**
* optional int64 offset = 2;
* @return This builder for chaining.
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000002);
offset_ = 0L;
onChanged();
return this;
}
private long length_ ;
/**
* optional int64 length = 3;
* @return Whether the length field is set.
*/
@java.lang.Override
public boolean hasLength() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 length = 3;
* @return The length.
*/
@java.lang.Override
public long getLength() {
return length_;
}
/**
* optional int64 length = 3;
* @param value The length to set.
* @return This builder for chaining.
*/
public Builder setLength(long value) {
bitField0_ |= 0x00000004;
length_ = value;
onChanged();
return this;
}
/**
* optional int64 length = 3;
* @return This builder for chaining.
*/
public Builder clearLength() {
bitField0_ = (bitField0_ & ~0x00000004);
length_ = 0L;
onChanged();
return this;
}
private boolean promote_ ;
/**
*
* Whether the block should be promoted before reading
*
*
* optional bool promote = 4;
* @return Whether the promote field is set.
*/
@java.lang.Override
public boolean hasPromote() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Whether the block should be promoted before reading
*
*
* optional bool promote = 4;
* @return The promote.
*/
@java.lang.Override
public boolean getPromote() {
return promote_;
}
/**
*
* Whether the block should be promoted before reading
*
*
* optional bool promote = 4;
* @param value The promote to set.
* @return This builder for chaining.
*/
public Builder setPromote(boolean value) {
bitField0_ |= 0x00000008;
promote_ = value;
onChanged();
return this;
}
/**
*
* Whether the block should be promoted before reading
*
*
* optional bool promote = 4;
* @return This builder for chaining.
*/
public Builder clearPromote() {
bitField0_ = (bitField0_ & ~0x00000008);
promote_ = false;
onChanged();
return this;
}
private long chunkSize_ ;
/**
* optional int64 chunk_size = 5;
* @return Whether the chunkSize field is set.
*/
@java.lang.Override
public boolean hasChunkSize() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 chunk_size = 5;
* @return The chunkSize.
*/
@java.lang.Override
public long getChunkSize() {
return chunkSize_;
}
/**
* optional int64 chunk_size = 5;
* @param value The chunkSize to set.
* @return This builder for chaining.
*/
public Builder setChunkSize(long value) {
bitField0_ |= 0x00000010;
chunkSize_ = value;
onChanged();
return this;
}
/**
* optional int64 chunk_size = 5;
* @return This builder for chaining.
*/
public Builder clearChunkSize() {
bitField0_ = (bitField0_ & ~0x00000010);
chunkSize_ = 0L;
onChanged();
return this;
}
private alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions openUfsBlockOptions_;
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.Builder, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptionsOrBuilder> openUfsBlockOptionsBuilder_;
/**
*
* This is only set for UFS block read.
*
*
* optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
* @return Whether the openUfsBlockOptions field is set.
*/
public boolean hasOpenUfsBlockOptions() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* This is only set for UFS block read.
*
*
* optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
* @return The openUfsBlockOptions.
*/
public alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions getOpenUfsBlockOptions() {
if (openUfsBlockOptionsBuilder_ == null) {
return openUfsBlockOptions_ == null ? alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.getDefaultInstance() : openUfsBlockOptions_;
} else {
return openUfsBlockOptionsBuilder_.getMessage();
}
}
/**
*
* This is only set for UFS block read.
*
*
* optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
*/
public Builder setOpenUfsBlockOptions(alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions value) {
if (openUfsBlockOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
openUfsBlockOptions_ = value;
onChanged();
} else {
openUfsBlockOptionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
*
* This is only set for UFS block read.
*
*
* optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
*/
public Builder setOpenUfsBlockOptions(
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.Builder builderForValue) {
if (openUfsBlockOptionsBuilder_ == null) {
openUfsBlockOptions_ = builderForValue.build();
onChanged();
} else {
openUfsBlockOptionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
*
* This is only set for UFS block read.
*
*
* optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
*/
public Builder mergeOpenUfsBlockOptions(alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions value) {
if (openUfsBlockOptionsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
openUfsBlockOptions_ != null &&
openUfsBlockOptions_ != alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.getDefaultInstance()) {
openUfsBlockOptions_ =
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.newBuilder(openUfsBlockOptions_).mergeFrom(value).buildPartial();
} else {
openUfsBlockOptions_ = value;
}
onChanged();
} else {
openUfsBlockOptionsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
*
* This is only set for UFS block read.
*
*
* optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
*/
public Builder clearOpenUfsBlockOptions() {
if (openUfsBlockOptionsBuilder_ == null) {
openUfsBlockOptions_ = null;
onChanged();
} else {
openUfsBlockOptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
*
* This is only set for UFS block read.
*
*
* optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
*/
public alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.Builder getOpenUfsBlockOptionsBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getOpenUfsBlockOptionsFieldBuilder().getBuilder();
}
/**
*
* This is only set for UFS block read.
*
*
* optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
*/
public alluxio.proto.dataserver.Protocol.OpenUfsBlockOptionsOrBuilder getOpenUfsBlockOptionsOrBuilder() {
if (openUfsBlockOptionsBuilder_ != null) {
return openUfsBlockOptionsBuilder_.getMessageOrBuilder();
} else {
return openUfsBlockOptions_ == null ?
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.getDefaultInstance() : openUfsBlockOptions_;
}
}
/**
*
* This is only set for UFS block read.
*
*
* optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
*/
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.Builder, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptionsOrBuilder>
getOpenUfsBlockOptionsFieldBuilder() {
if (openUfsBlockOptionsBuilder_ == null) {
openUfsBlockOptionsBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.Builder, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptionsOrBuilder>(
getOpenUfsBlockOptions(),
getParentForChildren(),
isClean());
openUfsBlockOptions_ = null;
}
return openUfsBlockOptionsBuilder_;
}
private long offsetReceived_ ;
/**
*
* Read receipt
*
*
* optional int64 offset_received = 7;
* @return Whether the offsetReceived field is set.
*/
@java.lang.Override
public boolean hasOffsetReceived() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Read receipt
*
*
* optional int64 offset_received = 7;
* @return The offsetReceived.
*/
@java.lang.Override
public long getOffsetReceived() {
return offsetReceived_;
}
/**
*
* Read receipt
*
*
* optional int64 offset_received = 7;
* @param value The offsetReceived to set.
* @return This builder for chaining.
*/
public Builder setOffsetReceived(long value) {
bitField0_ |= 0x00000040;
offsetReceived_ = value;
onChanged();
return this;
}
/**
*
* Read receipt
*
*
* optional int64 offset_received = 7;
* @return This builder for chaining.
*/
public Builder clearOffsetReceived() {
bitField0_ = (bitField0_ & ~0x00000040);
offsetReceived_ = 0L;
onChanged();
return this;
}
private boolean positionShort_ ;
/**
*
* Is position read to a small buffer
*
*
* optional bool position_short = 8;
* @return Whether the positionShort field is set.
*/
@java.lang.Override
public boolean hasPositionShort() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Is position read to a small buffer
*
*
* optional bool position_short = 8;
* @return The positionShort.
*/
@java.lang.Override
public boolean getPositionShort() {
return positionShort_;
}
/**
*
* Is position read to a small buffer
*
*
* optional bool position_short = 8;
* @param value The positionShort to set.
* @return This builder for chaining.
*/
public Builder setPositionShort(boolean value) {
bitField0_ |= 0x00000080;
positionShort_ = value;
onChanged();
return this;
}
/**
*
* Is position read to a small buffer
*
*
* optional bool position_short = 8;
* @return This builder for chaining.
*/
public Builder clearPositionShort() {
bitField0_ = (bitField0_ & ~0x00000080);
positionShort_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:alluxio.grpc.block.ReadRequest)
}
// @@protoc_insertion_point(class_scope:alluxio.grpc.block.ReadRequest)
private static final alluxio.grpc.ReadRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new alluxio.grpc.ReadRequest();
}
public static alluxio.grpc.ReadRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final alluxio.shaded.client.com.google.protobuf.Parser
PARSER = new alluxio.shaded.client.com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReadRequest parsePartialFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (alluxio.shaded.client.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.alluxio.shaded.client.io.IOException e) {
throw new alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static alluxio.shaded.client.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public alluxio.grpc.ReadRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy