// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: dataserver/protocol.proto
package alluxio.proto.dataserver;
public final class Protocol {
private Protocol() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code alluxio.proto.dataserver.RequestType}
*
* <pre>
* The read/write request type. It can either be an Alluxio block operation or a UFS file operation.
* next available id: 2
* </pre>
*/
public enum RequestType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>ALLUXIO_BLOCK = 0;</code>
*/
ALLUXIO_BLOCK(0, 0),
/**
* <code>UFS_FILE = 1;</code>
*/
UFS_FILE(1, 1),
;
/**
* <code>ALLUXIO_BLOCK = 0;</code>
*/
public static final int ALLUXIO_BLOCK_VALUE = 0;
/**
* <code>UFS_FILE = 1;</code>
*/
public static final int UFS_FILE_VALUE = 1;
public final int getNumber() { return value; }
public static RequestType valueOf(int value) {
switch (value) {
case 0: return ALLUXIO_BLOCK;
case 1: return UFS_FILE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<RequestType>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<RequestType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<RequestType>() {
public RequestType findValueByNumber(int number) {
return RequestType.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.getDescriptor().getEnumTypes().get(0);
}
private static final RequestType[] VALUES = values();
public static RequestType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private RequestType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:alluxio.proto.dataserver.RequestType)
}
public interface ReadRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int64 block_id = 1;
/**
* <code>optional int64 block_id = 1;</code>
*/
boolean hasBlockId();
/**
* <code>optional int64 block_id = 1;</code>
*/
long getBlockId();
// optional int64 offset = 2;
/**
* <code>optional int64 offset = 2;</code>
*/
boolean hasOffset();
/**
* <code>optional int64 offset = 2;</code>
*/
long getOffset();
// optional int64 length = 3;
/**
* <code>optional int64 length = 3;</code>
*/
boolean hasLength();
/**
* <code>optional int64 length = 3;</code>
*/
long getLength();
// optional bool cancel = 4;
/**
* <code>optional bool cancel = 4;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
boolean hasCancel();
/**
* <code>optional bool cancel = 4;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
boolean getCancel();
// optional bool promote = 7;
/**
* <code>optional bool promote = 7;</code>
*
* <pre>
* Whether the block should be promoted before reading
* </pre>
*/
boolean hasPromote();
/**
* <code>optional bool promote = 7;</code>
*
* <pre>
* Whether the block should be promoted before reading
* </pre>
*/
boolean getPromote();
// optional int64 packet_size = 5;
/**
* <code>optional int64 packet_size = 5;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
boolean hasPacketSize();
/**
* <code>optional int64 packet_size = 5;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
long getPacketSize();
// optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
boolean hasOpenUfsBlockOptions();
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions getOpenUfsBlockOptions();
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptionsOrBuilder getOpenUfsBlockOptionsOrBuilder();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.ReadRequest}
*
* <pre>
* The read request.
* next available id: 8
* </pre>
*/
public static final class ReadRequest extends
com.google.protobuf.GeneratedMessage
implements ReadRequestOrBuilder {
// Use ReadRequest.newBuilder() to construct.
private ReadRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ReadRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ReadRequest defaultInstance;
public static ReadRequest getDefaultInstance() {
return defaultInstance;
}
public ReadRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReadRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
blockId_ = input.readInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
offset_ = input.readInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
length_ = input.readInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
cancel_ = input.readBool();
break;
}
case 40: {
bitField0_ |= 0x00000020;
packetSize_ = input.readInt64();
break;
}
case 50: {
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = openUfsBlockOptions_.toBuilder();
}
openUfsBlockOptions_ = input.readMessage(alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(openUfsBlockOptions_);
openUfsBlockOptions_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 56: {
bitField0_ |= 0x00000010;
promote_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_ReadRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_ReadRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.ReadRequest.class, alluxio.proto.dataserver.Protocol.ReadRequest.Builder.class);
}
public static com.google.protobuf.Parser<ReadRequest> PARSER =
new com.google.protobuf.AbstractParser<ReadRequest>() {
public ReadRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReadRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ReadRequest> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int64 block_id = 1;
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private long blockId_;
/**
* <code>optional int64 block_id = 1;</code>
*/
public boolean hasBlockId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public long getBlockId() {
return blockId_;
}
// optional int64 offset = 2;
public static final int OFFSET_FIELD_NUMBER = 2;
private long offset_;
/**
* <code>optional int64 offset = 2;</code>
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int64 offset = 2;</code>
*/
public long getOffset() {
return offset_;
}
// optional int64 length = 3;
public static final int LENGTH_FIELD_NUMBER = 3;
private long length_;
/**
* <code>optional int64 length = 3;</code>
*/
public boolean hasLength() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int64 length = 3;</code>
*/
public long getLength() {
return length_;
}
// optional bool cancel = 4;
public static final int CANCEL_FIELD_NUMBER = 4;
private boolean cancel_;
/**
* <code>optional bool cancel = 4;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
public boolean hasCancel() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool cancel = 4;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
public boolean getCancel() {
return cancel_;
}
// optional bool promote = 7;
public static final int PROMOTE_FIELD_NUMBER = 7;
private boolean promote_;
/**
* <code>optional bool promote = 7;</code>
*
* <pre>
* Whether the block should be promoted before reading
* </pre>
*/
public boolean hasPromote() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional bool promote = 7;</code>
*
* <pre>
* Whether the block should be promoted before reading
* </pre>
*/
public boolean getPromote() {
return promote_;
}
// optional int64 packet_size = 5;
public static final int PACKET_SIZE_FIELD_NUMBER = 5;
private long packetSize_;
/**
* <code>optional int64 packet_size = 5;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
public boolean hasPacketSize() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional int64 packet_size = 5;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
public long getPacketSize() {
return packetSize_;
}
// optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
public static final int OPEN_UFS_BLOCK_OPTIONS_FIELD_NUMBER = 6;
private alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions openUfsBlockOptions_;
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
public boolean hasOpenUfsBlockOptions() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
public alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions getOpenUfsBlockOptions() {
return openUfsBlockOptions_;
}
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
public alluxio.proto.dataserver.Protocol.OpenUfsBlockOptionsOrBuilder getOpenUfsBlockOptionsOrBuilder() {
return openUfsBlockOptions_;
}
private void initFields() {
blockId_ = 0L;
offset_ = 0L;
length_ = 0L;
cancel_ = false;
promote_ = false;
packetSize_ = 0L;
openUfsBlockOptions_ = alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, blockId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, offset_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, length_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, cancel_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt64(5, packetSize_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(6, openUfsBlockOptions_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBool(7, promote_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, blockId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, offset_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, length_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, cancel_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, packetSize_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, openUfsBlockOptions_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, promote_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static alluxio.proto.dataserver.Protocol.ReadRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.ReadRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.ReadRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.ReadRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.ReadRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.ReadRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.ReadRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static alluxio.proto.dataserver.Protocol.ReadRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.ReadRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.ReadRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(alluxio.proto.dataserver.Protocol.ReadRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.proto.dataserver.ReadRequest}
*
* <pre>
* The read request.
* next available id: 8
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements alluxio.proto.dataserver.Protocol.ReadRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_ReadRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_ReadRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.ReadRequest.class, alluxio.proto.dataserver.Protocol.ReadRequest.Builder.class);
}
// Construct using alluxio.proto.dataserver.Protocol.ReadRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getOpenUfsBlockOptionsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
blockId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
offset_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
length_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
cancel_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
promote_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
packetSize_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
if (openUfsBlockOptionsBuilder_ == null) {
openUfsBlockOptions_ = alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.getDefaultInstance();
} else {
openUfsBlockOptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_ReadRequest_descriptor;
}
public alluxio.proto.dataserver.Protocol.ReadRequest getDefaultInstanceForType() {
return alluxio.proto.dataserver.Protocol.ReadRequest.getDefaultInstance();
}
public alluxio.proto.dataserver.Protocol.ReadRequest build() {
alluxio.proto.dataserver.Protocol.ReadRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public alluxio.proto.dataserver.Protocol.ReadRequest buildPartial() {
alluxio.proto.dataserver.Protocol.ReadRequest result = new alluxio.proto.dataserver.Protocol.ReadRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.blockId_ = blockId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.offset_ = offset_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.length_ = length_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.cancel_ = cancel_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.promote_ = promote_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.packetSize_ = packetSize_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
if (openUfsBlockOptionsBuilder_ == null) {
result.openUfsBlockOptions_ = openUfsBlockOptions_;
} else {
result.openUfsBlockOptions_ = openUfsBlockOptionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof alluxio.proto.dataserver.Protocol.ReadRequest) {
return mergeFrom((alluxio.proto.dataserver.Protocol.ReadRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.dataserver.Protocol.ReadRequest other) {
if (other == alluxio.proto.dataserver.Protocol.ReadRequest.getDefaultInstance()) return this;
if (other.hasBlockId()) {
setBlockId(other.getBlockId());
}
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (other.hasLength()) {
setLength(other.getLength());
}
if (other.hasCancel()) {
setCancel(other.getCancel());
}
if (other.hasPromote()) {
setPromote(other.getPromote());
}
if (other.hasPacketSize()) {
setPacketSize(other.getPacketSize());
}
if (other.hasOpenUfsBlockOptions()) {
mergeOpenUfsBlockOptions(other.getOpenUfsBlockOptions());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
alluxio.proto.dataserver.Protocol.ReadRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (alluxio.proto.dataserver.Protocol.ReadRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int64 block_id = 1;
private long blockId_ ;
/**
* <code>optional int64 block_id = 1;</code>
*/
public boolean hasBlockId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public long getBlockId() {
return blockId_;
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public Builder setBlockId(long value) {
bitField0_ |= 0x00000001;
blockId_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public Builder clearBlockId() {
bitField0_ = (bitField0_ & ~0x00000001);
blockId_ = 0L;
onChanged();
return this;
}
// optional int64 offset = 2;
private long offset_ ;
/**
* <code>optional int64 offset = 2;</code>
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int64 offset = 2;</code>
*/
public long getOffset() {
return offset_;
}
/**
* <code>optional int64 offset = 2;</code>
*/
public Builder setOffset(long value) {
bitField0_ |= 0x00000002;
offset_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 offset = 2;</code>
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000002);
offset_ = 0L;
onChanged();
return this;
}
// optional int64 length = 3;
private long length_ ;
/**
* <code>optional int64 length = 3;</code>
*/
public boolean hasLength() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int64 length = 3;</code>
*/
public long getLength() {
return length_;
}
/**
* <code>optional int64 length = 3;</code>
*/
public Builder setLength(long value) {
bitField0_ |= 0x00000004;
length_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 length = 3;</code>
*/
public Builder clearLength() {
bitField0_ = (bitField0_ & ~0x00000004);
length_ = 0L;
onChanged();
return this;
}
// optional bool cancel = 4;
private boolean cancel_ ;
/**
* <code>optional bool cancel = 4;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
public boolean hasCancel() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool cancel = 4;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
public boolean getCancel() {
return cancel_;
}
/**
* <code>optional bool cancel = 4;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
public Builder setCancel(boolean value) {
bitField0_ |= 0x00000008;
cancel_ = value;
onChanged();
return this;
}
/**
* <code>optional bool cancel = 4;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
public Builder clearCancel() {
bitField0_ = (bitField0_ & ~0x00000008);
cancel_ = false;
onChanged();
return this;
}
// optional bool promote = 7;
private boolean promote_ ;
/**
* <code>optional bool promote = 7;</code>
*
* <pre>
* Whether the block should be promoted before reading
* </pre>
*/
public boolean hasPromote() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional bool promote = 7;</code>
*
* <pre>
* Whether the block should be promoted before reading
* </pre>
*/
public boolean getPromote() {
return promote_;
}
/**
* <code>optional bool promote = 7;</code>
*
* <pre>
* Whether the block should be promoted before reading
* </pre>
*/
public Builder setPromote(boolean value) {
bitField0_ |= 0x00000010;
promote_ = value;
onChanged();
return this;
}
/**
* <code>optional bool promote = 7;</code>
*
* <pre>
* Whether the block should be promoted before reading
* </pre>
*/
public Builder clearPromote() {
bitField0_ = (bitField0_ & ~0x00000010);
promote_ = false;
onChanged();
return this;
}
// optional int64 packet_size = 5;
private long packetSize_ ;
/**
* <code>optional int64 packet_size = 5;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
public boolean hasPacketSize() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional int64 packet_size = 5;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
public long getPacketSize() {
return packetSize_;
}
/**
* <code>optional int64 packet_size = 5;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
public Builder setPacketSize(long value) {
bitField0_ |= 0x00000020;
packetSize_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 packet_size = 5;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
public Builder clearPacketSize() {
bitField0_ = (bitField0_ & ~0x00000020);
packetSize_ = 0L;
onChanged();
return this;
}
// optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;
private alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions openUfsBlockOptions_ = alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.Builder, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptionsOrBuilder> openUfsBlockOptionsBuilder_;
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
public boolean hasOpenUfsBlockOptions() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
public alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions getOpenUfsBlockOptions() {
if (openUfsBlockOptionsBuilder_ == null) {
return openUfsBlockOptions_;
} else {
return openUfsBlockOptionsBuilder_.getMessage();
}
}
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
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_ |= 0x00000040;
return this;
}
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
public Builder setOpenUfsBlockOptions(
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.Builder builderForValue) {
if (openUfsBlockOptionsBuilder_ == null) {
openUfsBlockOptions_ = builderForValue.build();
onChanged();
} else {
openUfsBlockOptionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
public Builder mergeOpenUfsBlockOptions(alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions value) {
if (openUfsBlockOptionsBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
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_ |= 0x00000040;
return this;
}
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
public Builder clearOpenUfsBlockOptions() {
if (openUfsBlockOptionsBuilder_ == null) {
openUfsBlockOptions_ = alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.getDefaultInstance();
onChanged();
} else {
openUfsBlockOptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
public alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.Builder getOpenUfsBlockOptionsBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getOpenUfsBlockOptionsFieldBuilder().getBuilder();
}
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
public alluxio.proto.dataserver.Protocol.OpenUfsBlockOptionsOrBuilder getOpenUfsBlockOptionsOrBuilder() {
if (openUfsBlockOptionsBuilder_ != null) {
return openUfsBlockOptionsBuilder_.getMessageOrBuilder();
} else {
return openUfsBlockOptions_;
}
}
/**
* <code>optional .alluxio.proto.dataserver.OpenUfsBlockOptions open_ufs_block_options = 6;</code>
*
* <pre>
* This is only set for UFS block read.
* </pre>
*/
private com.google.protobuf.SingleFieldBuilder<
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.Builder, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptionsOrBuilder>
getOpenUfsBlockOptionsFieldBuilder() {
if (openUfsBlockOptionsBuilder_ == null) {
openUfsBlockOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.Builder, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptionsOrBuilder>(
openUfsBlockOptions_,
getParentForChildren(),
isClean());
openUfsBlockOptions_ = null;
}
return openUfsBlockOptionsBuilder_;
}
// @@protoc_insertion_point(builder_scope:alluxio.proto.dataserver.ReadRequest)
}
static {
defaultInstance = new ReadRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:alluxio.proto.dataserver.ReadRequest)
}
public interface OpenUfsBlockOptionsOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string ufs_path = 1;
/**
* <code>optional string ufs_path = 1;</code>
*/
boolean hasUfsPath();
/**
* <code>optional string ufs_path = 1;</code>
*/
java.lang.String getUfsPath();
/**
* <code>optional string ufs_path = 1;</code>
*/
com.google.protobuf.ByteString
getUfsPathBytes();
// optional int64 offset_in_file = 2;
/**
* <code>optional int64 offset_in_file = 2;</code>
*
* <pre>
* The offset of the block in within the file.
* </pre>
*/
boolean hasOffsetInFile();
/**
* <code>optional int64 offset_in_file = 2;</code>
*
* <pre>
* The offset of the block in within the file.
* </pre>
*/
long getOffsetInFile();
// optional int64 block_size = 3;
/**
* <code>optional int64 block_size = 3;</code>
*
* <pre>
* The block size.
* </pre>
*/
boolean hasBlockSize();
/**
* <code>optional int64 block_size = 3;</code>
*
* <pre>
* The block size.
* </pre>
*/
long getBlockSize();
// optional int32 maxUfsReadConcurrency = 4;
/**
* <code>optional int32 maxUfsReadConcurrency = 4;</code>
*/
boolean hasMaxUfsReadConcurrency();
/**
* <code>optional int32 maxUfsReadConcurrency = 4;</code>
*/
int getMaxUfsReadConcurrency();
// optional int64 mountId = 5;
/**
* <code>optional int64 mountId = 5;</code>
*/
boolean hasMountId();
/**
* <code>optional int64 mountId = 5;</code>
*/
long getMountId();
// optional bool no_cache = 6;
/**
* <code>optional bool no_cache = 6;</code>
*
* <pre>
* If set, do not try to cache the block locally when reading the data from the UFS.
* </pre>
*/
boolean hasNoCache();
/**
* <code>optional bool no_cache = 6;</code>
*
* <pre>
* If set, do not try to cache the block locally when reading the data from the UFS.
* </pre>
*/
boolean getNoCache();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.OpenUfsBlockOptions}
*
* <pre>
* Options to open a UFS block.
* next available id: 7
* </pre>
*/
public static final class OpenUfsBlockOptions extends
com.google.protobuf.GeneratedMessage
implements OpenUfsBlockOptionsOrBuilder {
// Use OpenUfsBlockOptions.newBuilder() to construct.
private OpenUfsBlockOptions(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private OpenUfsBlockOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final OpenUfsBlockOptions defaultInstance;
public static OpenUfsBlockOptions getDefaultInstance() {
return defaultInstance;
}
public OpenUfsBlockOptions getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OpenUfsBlockOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
ufsPath_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
offsetInFile_ = input.readInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
blockSize_ = input.readInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
maxUfsReadConcurrency_ = input.readInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
mountId_ = input.readInt64();
break;
}
case 48: {
bitField0_ |= 0x00000020;
noCache_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_OpenUfsBlockOptions_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_OpenUfsBlockOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.class, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.Builder.class);
}
public static com.google.protobuf.Parser<OpenUfsBlockOptions> PARSER =
new com.google.protobuf.AbstractParser<OpenUfsBlockOptions>() {
public OpenUfsBlockOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OpenUfsBlockOptions(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<OpenUfsBlockOptions> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string ufs_path = 1;
public static final int UFS_PATH_FIELD_NUMBER = 1;
private java.lang.Object ufsPath_;
/**
* <code>optional string ufs_path = 1;</code>
*/
public boolean hasUfsPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public java.lang.String getUfsPath() {
java.lang.Object ref = ufsPath_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
ufsPath_ = s;
}
return s;
}
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public com.google.protobuf.ByteString
getUfsPathBytes() {
java.lang.Object ref = ufsPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ufsPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int64 offset_in_file = 2;
public static final int OFFSET_IN_FILE_FIELD_NUMBER = 2;
private long offsetInFile_;
/**
* <code>optional int64 offset_in_file = 2;</code>
*
* <pre>
* The offset of the block in within the file.
* </pre>
*/
public boolean hasOffsetInFile() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int64 offset_in_file = 2;</code>
*
* <pre>
* The offset of the block in within the file.
* </pre>
*/
public long getOffsetInFile() {
return offsetInFile_;
}
// optional int64 block_size = 3;
public static final int BLOCK_SIZE_FIELD_NUMBER = 3;
private long blockSize_;
/**
* <code>optional int64 block_size = 3;</code>
*
* <pre>
* The block size.
* </pre>
*/
public boolean hasBlockSize() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int64 block_size = 3;</code>
*
* <pre>
* The block size.
* </pre>
*/
public long getBlockSize() {
return blockSize_;
}
// optional int32 maxUfsReadConcurrency = 4;
public static final int MAXUFSREADCONCURRENCY_FIELD_NUMBER = 4;
private int maxUfsReadConcurrency_;
/**
* <code>optional int32 maxUfsReadConcurrency = 4;</code>
*/
public boolean hasMaxUfsReadConcurrency() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int32 maxUfsReadConcurrency = 4;</code>
*/
public int getMaxUfsReadConcurrency() {
return maxUfsReadConcurrency_;
}
// optional int64 mountId = 5;
public static final int MOUNTID_FIELD_NUMBER = 5;
private long mountId_;
/**
* <code>optional int64 mountId = 5;</code>
*/
public boolean hasMountId() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional int64 mountId = 5;</code>
*/
public long getMountId() {
return mountId_;
}
// optional bool no_cache = 6;
public static final int NO_CACHE_FIELD_NUMBER = 6;
private boolean noCache_;
/**
* <code>optional bool no_cache = 6;</code>
*
* <pre>
* If set, do not try to cache the block locally when reading the data from the UFS.
* </pre>
*/
public boolean hasNoCache() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional bool no_cache = 6;</code>
*
* <pre>
* If set, do not try to cache the block locally when reading the data from the UFS.
* </pre>
*/
public boolean getNoCache() {
return noCache_;
}
private void initFields() {
ufsPath_ = "";
offsetInFile_ = 0L;
blockSize_ = 0L;
maxUfsReadConcurrency_ = 0;
mountId_ = 0L;
noCache_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getUfsPathBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, offsetInFile_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, blockSize_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, maxUfsReadConcurrency_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(5, mountId_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(6, noCache_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getUfsPathBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, offsetInFile_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, blockSize_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, maxUfsReadConcurrency_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, mountId_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, noCache_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.proto.dataserver.OpenUfsBlockOptions}
*
* <pre>
* Options to open a UFS block.
* next available id: 7
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements alluxio.proto.dataserver.Protocol.OpenUfsBlockOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_OpenUfsBlockOptions_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_OpenUfsBlockOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.class, alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.Builder.class);
}
// Construct using alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
ufsPath_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
offsetInFile_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
blockSize_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
maxUfsReadConcurrency_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
mountId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
noCache_ = false;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_OpenUfsBlockOptions_descriptor;
}
public alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions getDefaultInstanceForType() {
return alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.getDefaultInstance();
}
public alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions build() {
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions buildPartial() {
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions result = new alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.ufsPath_ = ufsPath_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.offsetInFile_ = offsetInFile_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.blockSize_ = blockSize_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.maxUfsReadConcurrency_ = maxUfsReadConcurrency_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.mountId_ = mountId_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.noCache_ = noCache_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions) {
return mergeFrom((alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions other) {
if (other == alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions.getDefaultInstance()) return this;
if (other.hasUfsPath()) {
bitField0_ |= 0x00000001;
ufsPath_ = other.ufsPath_;
onChanged();
}
if (other.hasOffsetInFile()) {
setOffsetInFile(other.getOffsetInFile());
}
if (other.hasBlockSize()) {
setBlockSize(other.getBlockSize());
}
if (other.hasMaxUfsReadConcurrency()) {
setMaxUfsReadConcurrency(other.getMaxUfsReadConcurrency());
}
if (other.hasMountId()) {
setMountId(other.getMountId());
}
if (other.hasNoCache()) {
setNoCache(other.getNoCache());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (alluxio.proto.dataserver.Protocol.OpenUfsBlockOptions) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string ufs_path = 1;
private java.lang.Object ufsPath_ = "";
/**
* <code>optional string ufs_path = 1;</code>
*/
public boolean hasUfsPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public java.lang.String getUfsPath() {
java.lang.Object ref = ufsPath_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
ufsPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public com.google.protobuf.ByteString
getUfsPathBytes() {
java.lang.Object ref = ufsPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ufsPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public Builder setUfsPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
ufsPath_ = value;
onChanged();
return this;
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public Builder clearUfsPath() {
bitField0_ = (bitField0_ & ~0x00000001);
ufsPath_ = getDefaultInstance().getUfsPath();
onChanged();
return this;
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public Builder setUfsPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
ufsPath_ = value;
onChanged();
return this;
}
// optional int64 offset_in_file = 2;
private long offsetInFile_ ;
/**
* <code>optional int64 offset_in_file = 2;</code>
*
* <pre>
* The offset of the block in within the file.
* </pre>
*/
public boolean hasOffsetInFile() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int64 offset_in_file = 2;</code>
*
* <pre>
* The offset of the block in within the file.
* </pre>
*/
public long getOffsetInFile() {
return offsetInFile_;
}
/**
* <code>optional int64 offset_in_file = 2;</code>
*
* <pre>
* The offset of the block in within the file.
* </pre>
*/
public Builder setOffsetInFile(long value) {
bitField0_ |= 0x00000002;
offsetInFile_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 offset_in_file = 2;</code>
*
* <pre>
* The offset of the block in within the file.
* </pre>
*/
public Builder clearOffsetInFile() {
bitField0_ = (bitField0_ & ~0x00000002);
offsetInFile_ = 0L;
onChanged();
return this;
}
// optional int64 block_size = 3;
private long blockSize_ ;
/**
* <code>optional int64 block_size = 3;</code>
*
* <pre>
* The block size.
* </pre>
*/
public boolean hasBlockSize() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int64 block_size = 3;</code>
*
* <pre>
* The block size.
* </pre>
*/
public long getBlockSize() {
return blockSize_;
}
/**
* <code>optional int64 block_size = 3;</code>
*
* <pre>
* The block size.
* </pre>
*/
public Builder setBlockSize(long value) {
bitField0_ |= 0x00000004;
blockSize_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 block_size = 3;</code>
*
* <pre>
* The block size.
* </pre>
*/
public Builder clearBlockSize() {
bitField0_ = (bitField0_ & ~0x00000004);
blockSize_ = 0L;
onChanged();
return this;
}
// optional int32 maxUfsReadConcurrency = 4;
private int maxUfsReadConcurrency_ ;
/**
* <code>optional int32 maxUfsReadConcurrency = 4;</code>
*/
public boolean hasMaxUfsReadConcurrency() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int32 maxUfsReadConcurrency = 4;</code>
*/
public int getMaxUfsReadConcurrency() {
return maxUfsReadConcurrency_;
}
/**
* <code>optional int32 maxUfsReadConcurrency = 4;</code>
*/
public Builder setMaxUfsReadConcurrency(int value) {
bitField0_ |= 0x00000008;
maxUfsReadConcurrency_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 maxUfsReadConcurrency = 4;</code>
*/
public Builder clearMaxUfsReadConcurrency() {
bitField0_ = (bitField0_ & ~0x00000008);
maxUfsReadConcurrency_ = 0;
onChanged();
return this;
}
// optional int64 mountId = 5;
private long mountId_ ;
/**
* <code>optional int64 mountId = 5;</code>
*/
public boolean hasMountId() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional int64 mountId = 5;</code>
*/
public long getMountId() {
return mountId_;
}
/**
* <code>optional int64 mountId = 5;</code>
*/
public Builder setMountId(long value) {
bitField0_ |= 0x00000010;
mountId_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 mountId = 5;</code>
*/
public Builder clearMountId() {
bitField0_ = (bitField0_ & ~0x00000010);
mountId_ = 0L;
onChanged();
return this;
}
// optional bool no_cache = 6;
private boolean noCache_ ;
/**
* <code>optional bool no_cache = 6;</code>
*
* <pre>
* If set, do not try to cache the block locally when reading the data from the UFS.
* </pre>
*/
public boolean hasNoCache() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional bool no_cache = 6;</code>
*
* <pre>
* If set, do not try to cache the block locally when reading the data from the UFS.
* </pre>
*/
public boolean getNoCache() {
return noCache_;
}
/**
* <code>optional bool no_cache = 6;</code>
*
* <pre>
* If set, do not try to cache the block locally when reading the data from the UFS.
* </pre>
*/
public Builder setNoCache(boolean value) {
bitField0_ |= 0x00000020;
noCache_ = value;
onChanged();
return this;
}
/**
* <code>optional bool no_cache = 6;</code>
*
* <pre>
* If set, do not try to cache the block locally when reading the data from the UFS.
* </pre>
*/
public Builder clearNoCache() {
bitField0_ = (bitField0_ & ~0x00000020);
noCache_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:alluxio.proto.dataserver.OpenUfsBlockOptions)
}
static {
defaultInstance = new OpenUfsBlockOptions(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:alluxio.proto.dataserver.OpenUfsBlockOptions)
}
public interface WriteRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .alluxio.proto.dataserver.RequestType type = 1;
/**
* <code>optional .alluxio.proto.dataserver.RequestType type = 1;</code>
*/
boolean hasType();
/**
* <code>optional .alluxio.proto.dataserver.RequestType type = 1;</code>
*/
alluxio.proto.dataserver.Protocol.RequestType getType();
// optional int64 id = 2;
/**
* <code>optional int64 id = 2;</code>
*
* <pre>
* The block ID or UFS file ID.
* </pre>
*/
boolean hasId();
/**
* <code>optional int64 id = 2;</code>
*
* <pre>
* The block ID or UFS file ID.
* </pre>
*/
long getId();
// optional int64 offset = 3;
/**
* <code>optional int64 offset = 3;</code>
*/
boolean hasOffset();
/**
* <code>optional int64 offset = 3;</code>
*/
long getOffset();
// optional int32 tier = 4;
/**
* <code>optional int32 tier = 4;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
boolean hasTier();
/**
* <code>optional int32 tier = 4;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
int getTier();
// optional bool eof = 5;
/**
* <code>optional bool eof = 5;</code>
*/
boolean hasEof();
/**
* <code>optional bool eof = 5;</code>
*/
boolean getEof();
// optional bool cancel = 6;
/**
* <code>optional bool cancel = 6;</code>
*/
boolean hasCancel();
/**
* <code>optional bool cancel = 6;</code>
*/
boolean getCancel();
// optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
boolean hasCreateUfsFileOptions();
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
alluxio.proto.dataserver.Protocol.CreateUfsFileOptions getCreateUfsFileOptions();
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
alluxio.proto.dataserver.Protocol.CreateUfsFileOptionsOrBuilder getCreateUfsFileOptionsOrBuilder();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.WriteRequest}
*
* <pre>
* The write request.
* next available id: 8
* </pre>
*/
public static final class WriteRequest extends
com.google.protobuf.GeneratedMessage
implements WriteRequestOrBuilder {
// Use WriteRequest.newBuilder() to construct.
private WriteRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private WriteRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final WriteRequest defaultInstance;
public static WriteRequest getDefaultInstance() {
return defaultInstance;
}
public WriteRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WriteRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
alluxio.proto.dataserver.Protocol.RequestType value = alluxio.proto.dataserver.Protocol.RequestType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
type_ = value;
}
break;
}
case 16: {
bitField0_ |= 0x00000002;
id_ = input.readInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
offset_ = input.readInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
tier_ = input.readInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
eof_ = input.readBool();
break;
}
case 48: {
bitField0_ |= 0x00000020;
cancel_ = input.readBool();
break;
}
case 58: {
alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = createUfsFileOptions_.toBuilder();
}
createUfsFileOptions_ = input.readMessage(alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createUfsFileOptions_);
createUfsFileOptions_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_WriteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_WriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.WriteRequest.class, alluxio.proto.dataserver.Protocol.WriteRequest.Builder.class);
}
public static com.google.protobuf.Parser<WriteRequest> PARSER =
new com.google.protobuf.AbstractParser<WriteRequest>() {
public WriteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WriteRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<WriteRequest> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .alluxio.proto.dataserver.RequestType type = 1;
public static final int TYPE_FIELD_NUMBER = 1;
private alluxio.proto.dataserver.Protocol.RequestType type_;
/**
* <code>optional .alluxio.proto.dataserver.RequestType type = 1;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .alluxio.proto.dataserver.RequestType type = 1;</code>
*/
public alluxio.proto.dataserver.Protocol.RequestType getType() {
return type_;
}
// optional int64 id = 2;
public static final int ID_FIELD_NUMBER = 2;
private long id_;
/**
* <code>optional int64 id = 2;</code>
*
* <pre>
* The block ID or UFS file ID.
* </pre>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int64 id = 2;</code>
*
* <pre>
* The block ID or UFS file ID.
* </pre>
*/
public long getId() {
return id_;
}
// optional int64 offset = 3;
public static final int OFFSET_FIELD_NUMBER = 3;
private long offset_;
/**
* <code>optional int64 offset = 3;</code>
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int64 offset = 3;</code>
*/
public long getOffset() {
return offset_;
}
// optional int32 tier = 4;
public static final int TIER_FIELD_NUMBER = 4;
private int tier_;
/**
* <code>optional int32 tier = 4;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
public boolean hasTier() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int32 tier = 4;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
public int getTier() {
return tier_;
}
// optional bool eof = 5;
public static final int EOF_FIELD_NUMBER = 5;
private boolean eof_;
/**
* <code>optional bool eof = 5;</code>
*/
public boolean hasEof() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional bool eof = 5;</code>
*/
public boolean getEof() {
return eof_;
}
// optional bool cancel = 6;
public static final int CANCEL_FIELD_NUMBER = 6;
private boolean cancel_;
/**
* <code>optional bool cancel = 6;</code>
*/
public boolean hasCancel() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional bool cancel = 6;</code>
*/
public boolean getCancel() {
return cancel_;
}
// optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;
public static final int CREATE_UFS_FILE_OPTIONS_FIELD_NUMBER = 7;
private alluxio.proto.dataserver.Protocol.CreateUfsFileOptions createUfsFileOptions_;
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
public boolean hasCreateUfsFileOptions() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
public alluxio.proto.dataserver.Protocol.CreateUfsFileOptions getCreateUfsFileOptions() {
return createUfsFileOptions_;
}
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
public alluxio.proto.dataserver.Protocol.CreateUfsFileOptionsOrBuilder getCreateUfsFileOptionsOrBuilder() {
return createUfsFileOptions_;
}
private void initFields() {
type_ = alluxio.proto.dataserver.Protocol.RequestType.ALLUXIO_BLOCK;
id_ = 0L;
offset_ = 0L;
tier_ = 0;
eof_ = false;
cancel_ = false;
createUfsFileOptions_ = alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, type_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, id_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, offset_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, tier_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBool(5, eof_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(6, cancel_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(7, createUfsFileOptions_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, id_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, offset_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, tier_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, eof_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, cancel_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, createUfsFileOptions_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static alluxio.proto.dataserver.Protocol.WriteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.WriteRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.WriteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.WriteRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.WriteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.WriteRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.WriteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static alluxio.proto.dataserver.Protocol.WriteRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.WriteRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.WriteRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(alluxio.proto.dataserver.Protocol.WriteRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.proto.dataserver.WriteRequest}
*
* <pre>
* The write request.
* next available id: 8
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements alluxio.proto.dataserver.Protocol.WriteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_WriteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_WriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.WriteRequest.class, alluxio.proto.dataserver.Protocol.WriteRequest.Builder.class);
}
// Construct using alluxio.proto.dataserver.Protocol.WriteRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getCreateUfsFileOptionsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
type_ = alluxio.proto.dataserver.Protocol.RequestType.ALLUXIO_BLOCK;
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
offset_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
tier_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
eof_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
cancel_ = false;
bitField0_ = (bitField0_ & ~0x00000020);
if (createUfsFileOptionsBuilder_ == null) {
createUfsFileOptions_ = alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.getDefaultInstance();
} else {
createUfsFileOptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_WriteRequest_descriptor;
}
public alluxio.proto.dataserver.Protocol.WriteRequest getDefaultInstanceForType() {
return alluxio.proto.dataserver.Protocol.WriteRequest.getDefaultInstance();
}
public alluxio.proto.dataserver.Protocol.WriteRequest build() {
alluxio.proto.dataserver.Protocol.WriteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public alluxio.proto.dataserver.Protocol.WriteRequest buildPartial() {
alluxio.proto.dataserver.Protocol.WriteRequest result = new alluxio.proto.dataserver.Protocol.WriteRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.offset_ = offset_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.tier_ = tier_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.eof_ = eof_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.cancel_ = cancel_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
if (createUfsFileOptionsBuilder_ == null) {
result.createUfsFileOptions_ = createUfsFileOptions_;
} else {
result.createUfsFileOptions_ = createUfsFileOptionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof alluxio.proto.dataserver.Protocol.WriteRequest) {
return mergeFrom((alluxio.proto.dataserver.Protocol.WriteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.dataserver.Protocol.WriteRequest other) {
if (other == alluxio.proto.dataserver.Protocol.WriteRequest.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasId()) {
setId(other.getId());
}
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (other.hasTier()) {
setTier(other.getTier());
}
if (other.hasEof()) {
setEof(other.getEof());
}
if (other.hasCancel()) {
setCancel(other.getCancel());
}
if (other.hasCreateUfsFileOptions()) {
mergeCreateUfsFileOptions(other.getCreateUfsFileOptions());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
alluxio.proto.dataserver.Protocol.WriteRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (alluxio.proto.dataserver.Protocol.WriteRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .alluxio.proto.dataserver.RequestType type = 1;
private alluxio.proto.dataserver.Protocol.RequestType type_ = alluxio.proto.dataserver.Protocol.RequestType.ALLUXIO_BLOCK;
/**
* <code>optional .alluxio.proto.dataserver.RequestType type = 1;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .alluxio.proto.dataserver.RequestType type = 1;</code>
*/
public alluxio.proto.dataserver.Protocol.RequestType getType() {
return type_;
}
/**
* <code>optional .alluxio.proto.dataserver.RequestType type = 1;</code>
*/
public Builder setType(alluxio.proto.dataserver.Protocol.RequestType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
* <code>optional .alluxio.proto.dataserver.RequestType type = 1;</code>
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = alluxio.proto.dataserver.Protocol.RequestType.ALLUXIO_BLOCK;
onChanged();
return this;
}
// optional int64 id = 2;
private long id_ ;
/**
* <code>optional int64 id = 2;</code>
*
* <pre>
* The block ID or UFS file ID.
* </pre>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int64 id = 2;</code>
*
* <pre>
* The block ID or UFS file ID.
* </pre>
*/
public long getId() {
return id_;
}
/**
* <code>optional int64 id = 2;</code>
*
* <pre>
* The block ID or UFS file ID.
* </pre>
*/
public Builder setId(long value) {
bitField0_ |= 0x00000002;
id_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 id = 2;</code>
*
* <pre>
* The block ID or UFS file ID.
* </pre>
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0L;
onChanged();
return this;
}
// optional int64 offset = 3;
private long offset_ ;
/**
* <code>optional int64 offset = 3;</code>
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int64 offset = 3;</code>
*/
public long getOffset() {
return offset_;
}
/**
* <code>optional int64 offset = 3;</code>
*/
public Builder setOffset(long value) {
bitField0_ |= 0x00000004;
offset_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 offset = 3;</code>
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000004);
offset_ = 0L;
onChanged();
return this;
}
// optional int32 tier = 4;
private int tier_ ;
/**
* <code>optional int32 tier = 4;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
public boolean hasTier() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int32 tier = 4;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
public int getTier() {
return tier_;
}
/**
* <code>optional int32 tier = 4;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
public Builder setTier(int value) {
bitField0_ |= 0x00000008;
tier_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 tier = 4;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
public Builder clearTier() {
bitField0_ = (bitField0_ & ~0x00000008);
tier_ = 0;
onChanged();
return this;
}
// optional bool eof = 5;
private boolean eof_ ;
/**
* <code>optional bool eof = 5;</code>
*/
public boolean hasEof() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional bool eof = 5;</code>
*/
public boolean getEof() {
return eof_;
}
/**
* <code>optional bool eof = 5;</code>
*/
public Builder setEof(boolean value) {
bitField0_ |= 0x00000010;
eof_ = value;
onChanged();
return this;
}
/**
* <code>optional bool eof = 5;</code>
*/
public Builder clearEof() {
bitField0_ = (bitField0_ & ~0x00000010);
eof_ = false;
onChanged();
return this;
}
// optional bool cancel = 6;
private boolean cancel_ ;
/**
* <code>optional bool cancel = 6;</code>
*/
public boolean hasCancel() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional bool cancel = 6;</code>
*/
public boolean getCancel() {
return cancel_;
}
/**
* <code>optional bool cancel = 6;</code>
*/
public Builder setCancel(boolean value) {
bitField0_ |= 0x00000020;
cancel_ = value;
onChanged();
return this;
}
/**
* <code>optional bool cancel = 6;</code>
*/
public Builder clearCancel() {
bitField0_ = (bitField0_ & ~0x00000020);
cancel_ = false;
onChanged();
return this;
}
// optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;
private alluxio.proto.dataserver.Protocol.CreateUfsFileOptions createUfsFileOptions_ = alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
alluxio.proto.dataserver.Protocol.CreateUfsFileOptions, alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.Builder, alluxio.proto.dataserver.Protocol.CreateUfsFileOptionsOrBuilder> createUfsFileOptionsBuilder_;
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
public boolean hasCreateUfsFileOptions() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
public alluxio.proto.dataserver.Protocol.CreateUfsFileOptions getCreateUfsFileOptions() {
if (createUfsFileOptionsBuilder_ == null) {
return createUfsFileOptions_;
} else {
return createUfsFileOptionsBuilder_.getMessage();
}
}
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
public Builder setCreateUfsFileOptions(alluxio.proto.dataserver.Protocol.CreateUfsFileOptions value) {
if (createUfsFileOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createUfsFileOptions_ = value;
onChanged();
} else {
createUfsFileOptionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
public Builder setCreateUfsFileOptions(
alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.Builder builderForValue) {
if (createUfsFileOptionsBuilder_ == null) {
createUfsFileOptions_ = builderForValue.build();
onChanged();
} else {
createUfsFileOptionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
public Builder mergeCreateUfsFileOptions(alluxio.proto.dataserver.Protocol.CreateUfsFileOptions value) {
if (createUfsFileOptionsBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
createUfsFileOptions_ != alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.getDefaultInstance()) {
createUfsFileOptions_ =
alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.newBuilder(createUfsFileOptions_).mergeFrom(value).buildPartial();
} else {
createUfsFileOptions_ = value;
}
onChanged();
} else {
createUfsFileOptionsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
public Builder clearCreateUfsFileOptions() {
if (createUfsFileOptionsBuilder_ == null) {
createUfsFileOptions_ = alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.getDefaultInstance();
onChanged();
} else {
createUfsFileOptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
public alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.Builder getCreateUfsFileOptionsBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getCreateUfsFileOptionsFieldBuilder().getBuilder();
}
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
public alluxio.proto.dataserver.Protocol.CreateUfsFileOptionsOrBuilder getCreateUfsFileOptionsOrBuilder() {
if (createUfsFileOptionsBuilder_ != null) {
return createUfsFileOptionsBuilder_.getMessageOrBuilder();
} else {
return createUfsFileOptions_;
}
}
/**
* <code>optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 7;</code>
*
* <pre>
* This is only applicable for ufs writes.
* </pre>
*/
private com.google.protobuf.SingleFieldBuilder<
alluxio.proto.dataserver.Protocol.CreateUfsFileOptions, alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.Builder, alluxio.proto.dataserver.Protocol.CreateUfsFileOptionsOrBuilder>
getCreateUfsFileOptionsFieldBuilder() {
if (createUfsFileOptionsBuilder_ == null) {
createUfsFileOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
alluxio.proto.dataserver.Protocol.CreateUfsFileOptions, alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.Builder, alluxio.proto.dataserver.Protocol.CreateUfsFileOptionsOrBuilder>(
createUfsFileOptions_,
getParentForChildren(),
isClean());
createUfsFileOptions_ = null;
}
return createUfsFileOptionsBuilder_;
}
// @@protoc_insertion_point(builder_scope:alluxio.proto.dataserver.WriteRequest)
}
static {
defaultInstance = new WriteRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:alluxio.proto.dataserver.WriteRequest)
}
public interface CreateUfsFileOptionsOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string ufs_path = 1;
/**
* <code>optional string ufs_path = 1;</code>
*/
boolean hasUfsPath();
/**
* <code>optional string ufs_path = 1;</code>
*/
java.lang.String getUfsPath();
/**
* <code>optional string ufs_path = 1;</code>
*/
com.google.protobuf.ByteString
getUfsPathBytes();
// optional string owner = 2;
/**
* <code>optional string owner = 2;</code>
*/
boolean hasOwner();
/**
* <code>optional string owner = 2;</code>
*/
java.lang.String getOwner();
/**
* <code>optional string owner = 2;</code>
*/
com.google.protobuf.ByteString
getOwnerBytes();
// optional string group = 3;
/**
* <code>optional string group = 3;</code>
*/
boolean hasGroup();
/**
* <code>optional string group = 3;</code>
*/
java.lang.String getGroup();
/**
* <code>optional string group = 3;</code>
*/
com.google.protobuf.ByteString
getGroupBytes();
// optional int32 mode = 4;
/**
* <code>optional int32 mode = 4;</code>
*/
boolean hasMode();
/**
* <code>optional int32 mode = 4;</code>
*/
int getMode();
// optional int64 mount_id = 5;
/**
* <code>optional int64 mount_id = 5;</code>
*/
boolean hasMountId();
/**
* <code>optional int64 mount_id = 5;</code>
*/
long getMountId();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.CreateUfsFileOptions}
*
* <pre>
* Options to create a UFS file.
* next available: 6
* </pre>
*/
public static final class CreateUfsFileOptions extends
com.google.protobuf.GeneratedMessage
implements CreateUfsFileOptionsOrBuilder {
// Use CreateUfsFileOptions.newBuilder() to construct.
private CreateUfsFileOptions(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CreateUfsFileOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CreateUfsFileOptions defaultInstance;
public static CreateUfsFileOptions getDefaultInstance() {
return defaultInstance;
}
public CreateUfsFileOptions getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateUfsFileOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
ufsPath_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
owner_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
group_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000008;
mode_ = input.readInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
mountId_ = input.readInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_CreateUfsFileOptions_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_CreateUfsFileOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.class, alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.Builder.class);
}
public static com.google.protobuf.Parser<CreateUfsFileOptions> PARSER =
new com.google.protobuf.AbstractParser<CreateUfsFileOptions>() {
public CreateUfsFileOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateUfsFileOptions(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<CreateUfsFileOptions> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string ufs_path = 1;
public static final int UFS_PATH_FIELD_NUMBER = 1;
private java.lang.Object ufsPath_;
/**
* <code>optional string ufs_path = 1;</code>
*/
public boolean hasUfsPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public java.lang.String getUfsPath() {
java.lang.Object ref = ufsPath_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
ufsPath_ = s;
}
return s;
}
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public com.google.protobuf.ByteString
getUfsPathBytes() {
java.lang.Object ref = ufsPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ufsPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string owner = 2;
public static final int OWNER_FIELD_NUMBER = 2;
private java.lang.Object owner_;
/**
* <code>optional string owner = 2;</code>
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string owner = 2;</code>
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
owner_ = s;
}
return s;
}
}
/**
* <code>optional string owner = 2;</code>
*/
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string group = 3;
public static final int GROUP_FIELD_NUMBER = 3;
private java.lang.Object group_;
/**
* <code>optional string group = 3;</code>
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional string group = 3;</code>
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
group_ = s;
}
return s;
}
}
/**
* <code>optional string group = 3;</code>
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 mode = 4;
public static final int MODE_FIELD_NUMBER = 4;
private int mode_;
/**
* <code>optional int32 mode = 4;</code>
*/
public boolean hasMode() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int32 mode = 4;</code>
*/
public int getMode() {
return mode_;
}
// optional int64 mount_id = 5;
public static final int MOUNT_ID_FIELD_NUMBER = 5;
private long mountId_;
/**
* <code>optional int64 mount_id = 5;</code>
*/
public boolean hasMountId() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional int64 mount_id = 5;</code>
*/
public long getMountId() {
return mountId_;
}
private void initFields() {
ufsPath_ = "";
owner_ = "";
group_ = "";
mode_ = 0;
mountId_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getUfsPathBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getOwnerBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getGroupBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, mode_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(5, mountId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getUfsPathBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getOwnerBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getGroupBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, mode_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, mountId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static alluxio.proto.dataserver.Protocol.CreateUfsFileOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.CreateUfsFileOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.CreateUfsFileOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.CreateUfsFileOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.CreateUfsFileOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.CreateUfsFileOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.CreateUfsFileOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static alluxio.proto.dataserver.Protocol.CreateUfsFileOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.CreateUfsFileOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.CreateUfsFileOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(alluxio.proto.dataserver.Protocol.CreateUfsFileOptions prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.proto.dataserver.CreateUfsFileOptions}
*
* <pre>
* Options to create a UFS file.
* next available: 6
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements alluxio.proto.dataserver.Protocol.CreateUfsFileOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_CreateUfsFileOptions_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_CreateUfsFileOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.class, alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.Builder.class);
}
// Construct using alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
ufsPath_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
owner_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
group_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
mode_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
mountId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_CreateUfsFileOptions_descriptor;
}
public alluxio.proto.dataserver.Protocol.CreateUfsFileOptions getDefaultInstanceForType() {
return alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.getDefaultInstance();
}
public alluxio.proto.dataserver.Protocol.CreateUfsFileOptions build() {
alluxio.proto.dataserver.Protocol.CreateUfsFileOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public alluxio.proto.dataserver.Protocol.CreateUfsFileOptions buildPartial() {
alluxio.proto.dataserver.Protocol.CreateUfsFileOptions result = new alluxio.proto.dataserver.Protocol.CreateUfsFileOptions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.ufsPath_ = ufsPath_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.owner_ = owner_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.mode_ = mode_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.mountId_ = mountId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof alluxio.proto.dataserver.Protocol.CreateUfsFileOptions) {
return mergeFrom((alluxio.proto.dataserver.Protocol.CreateUfsFileOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.dataserver.Protocol.CreateUfsFileOptions other) {
if (other == alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.getDefaultInstance()) return this;
if (other.hasUfsPath()) {
bitField0_ |= 0x00000001;
ufsPath_ = other.ufsPath_;
onChanged();
}
if (other.hasOwner()) {
bitField0_ |= 0x00000002;
owner_ = other.owner_;
onChanged();
}
if (other.hasGroup()) {
bitField0_ |= 0x00000004;
group_ = other.group_;
onChanged();
}
if (other.hasMode()) {
setMode(other.getMode());
}
if (other.hasMountId()) {
setMountId(other.getMountId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
alluxio.proto.dataserver.Protocol.CreateUfsFileOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (alluxio.proto.dataserver.Protocol.CreateUfsFileOptions) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string ufs_path = 1;
private java.lang.Object ufsPath_ = "";
/**
* <code>optional string ufs_path = 1;</code>
*/
public boolean hasUfsPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public java.lang.String getUfsPath() {
java.lang.Object ref = ufsPath_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
ufsPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public com.google.protobuf.ByteString
getUfsPathBytes() {
java.lang.Object ref = ufsPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ufsPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public Builder setUfsPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
ufsPath_ = value;
onChanged();
return this;
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public Builder clearUfsPath() {
bitField0_ = (bitField0_ & ~0x00000001);
ufsPath_ = getDefaultInstance().getUfsPath();
onChanged();
return this;
}
/**
* <code>optional string ufs_path = 1;</code>
*/
public Builder setUfsPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
ufsPath_ = value;
onChanged();
return this;
}
// optional string owner = 2;
private java.lang.Object owner_ = "";
/**
* <code>optional string owner = 2;</code>
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string owner = 2;</code>
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
owner_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string owner = 2;</code>
*/
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string owner = 2;</code>
*/
public Builder setOwner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
owner_ = value;
onChanged();
return this;
}
/**
* <code>optional string owner = 2;</code>
*/
public Builder clearOwner() {
bitField0_ = (bitField0_ & ~0x00000002);
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
/**
* <code>optional string owner = 2;</code>
*/
public Builder setOwnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
owner_ = value;
onChanged();
return this;
}
// optional string group = 3;
private java.lang.Object group_ = "";
/**
* <code>optional string group = 3;</code>
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional string group = 3;</code>
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
group_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string group = 3;</code>
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string group = 3;</code>
*/
public Builder setGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
group_ = value;
onChanged();
return this;
}
/**
* <code>optional string group = 3;</code>
*/
public Builder clearGroup() {
bitField0_ = (bitField0_ & ~0x00000004);
group_ = getDefaultInstance().getGroup();
onChanged();
return this;
}
/**
* <code>optional string group = 3;</code>
*/
public Builder setGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
group_ = value;
onChanged();
return this;
}
// optional int32 mode = 4;
private int mode_ ;
/**
* <code>optional int32 mode = 4;</code>
*/
public boolean hasMode() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int32 mode = 4;</code>
*/
public int getMode() {
return mode_;
}
/**
* <code>optional int32 mode = 4;</code>
*/
public Builder setMode(int value) {
bitField0_ |= 0x00000008;
mode_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 mode = 4;</code>
*/
public Builder clearMode() {
bitField0_ = (bitField0_ & ~0x00000008);
mode_ = 0;
onChanged();
return this;
}
// optional int64 mount_id = 5;
private long mountId_ ;
/**
* <code>optional int64 mount_id = 5;</code>
*/
public boolean hasMountId() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional int64 mount_id = 5;</code>
*/
public long getMountId() {
return mountId_;
}
/**
* <code>optional int64 mount_id = 5;</code>
*/
public Builder setMountId(long value) {
bitField0_ |= 0x00000010;
mountId_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 mount_id = 5;</code>
*/
public Builder clearMountId() {
bitField0_ = (bitField0_ & ~0x00000010);
mountId_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:alluxio.proto.dataserver.CreateUfsFileOptions)
}
static {
defaultInstance = new CreateUfsFileOptions(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:alluxio.proto.dataserver.CreateUfsFileOptions)
}
public interface ResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .alluxio.proto.status.PStatus status = 1;
/**
* <code>optional .alluxio.proto.status.PStatus status = 1;</code>
*/
boolean hasStatus();
/**
* <code>optional .alluxio.proto.status.PStatus status = 1;</code>
*/
alluxio.proto.status.Status.PStatus getStatus();
// optional string message = 2;
/**
* <code>optional string message = 2;</code>
*/
boolean hasMessage();
/**
* <code>optional string message = 2;</code>
*/
java.lang.String getMessage();
/**
* <code>optional string message = 2;</code>
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.Response}
*
* <pre>
* The response.
* next available id: 3
* </pre>
*/
public static final class Response extends
com.google.protobuf.GeneratedMessage
implements ResponseOrBuilder {
// Use Response.newBuilder() to construct.
private Response(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Response(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Response defaultInstance;
public static Response getDefaultInstance() {
return defaultInstance;
}
public Response getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Response(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
alluxio.proto.status.Status.PStatus value = alluxio.proto.status.Status.PStatus.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
status_ = value;
}
break;
}
case 18: {
bitField0_ |= 0x00000002;
message_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.Response.class, alluxio.proto.dataserver.Protocol.Response.Builder.class);
}
public static com.google.protobuf.Parser<Response> PARSER =
new com.google.protobuf.AbstractParser<Response>() {
public Response parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Response(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Response> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .alluxio.proto.status.PStatus status = 1;
public static final int STATUS_FIELD_NUMBER = 1;
private alluxio.proto.status.Status.PStatus status_;
/**
* <code>optional .alluxio.proto.status.PStatus status = 1;</code>
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .alluxio.proto.status.PStatus status = 1;</code>
*/
public alluxio.proto.status.Status.PStatus getStatus() {
return status_;
}
// optional string message = 2;
public static final int MESSAGE_FIELD_NUMBER = 2;
private java.lang.Object message_;
/**
* <code>optional string message = 2;</code>
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string message = 2;</code>
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
}
}
/**
* <code>optional string message = 2;</code>
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
status_ = alluxio.proto.status.Status.PStatus.OK;
message_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, status_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getMessageBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getMessageBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static alluxio.proto.dataserver.Protocol.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.Response parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.Response parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.Response parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static alluxio.proto.dataserver.Protocol.Response parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.Response parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.Response parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(alluxio.proto.dataserver.Protocol.Response prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.proto.dataserver.Response}
*
* <pre>
* The response.
* next available id: 3
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements alluxio.proto.dataserver.Protocol.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.Response.class, alluxio.proto.dataserver.Protocol.Response.Builder.class);
}
// Construct using alluxio.proto.dataserver.Protocol.Response.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
status_ = alluxio.proto.status.Status.PStatus.OK;
bitField0_ = (bitField0_ & ~0x00000001);
message_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_Response_descriptor;
}
public alluxio.proto.dataserver.Protocol.Response getDefaultInstanceForType() {
return alluxio.proto.dataserver.Protocol.Response.getDefaultInstance();
}
public alluxio.proto.dataserver.Protocol.Response build() {
alluxio.proto.dataserver.Protocol.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public alluxio.proto.dataserver.Protocol.Response buildPartial() {
alluxio.proto.dataserver.Protocol.Response result = new alluxio.proto.dataserver.Protocol.Response(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.message_ = message_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof alluxio.proto.dataserver.Protocol.Response) {
return mergeFrom((alluxio.proto.dataserver.Protocol.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.dataserver.Protocol.Response other) {
if (other == alluxio.proto.dataserver.Protocol.Response.getDefaultInstance()) return this;
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (other.hasMessage()) {
bitField0_ |= 0x00000002;
message_ = other.message_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
alluxio.proto.dataserver.Protocol.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (alluxio.proto.dataserver.Protocol.Response) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .alluxio.proto.status.PStatus status = 1;
private alluxio.proto.status.Status.PStatus status_ = alluxio.proto.status.Status.PStatus.OK;
/**
* <code>optional .alluxio.proto.status.PStatus status = 1;</code>
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .alluxio.proto.status.PStatus status = 1;</code>
*/
public alluxio.proto.status.Status.PStatus getStatus() {
return status_;
}
/**
* <code>optional .alluxio.proto.status.PStatus status = 1;</code>
*/
public Builder setStatus(alluxio.proto.status.Status.PStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value;
onChanged();
return this;
}
/**
* <code>optional .alluxio.proto.status.PStatus status = 1;</code>
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = alluxio.proto.status.Status.PStatus.OK;
onChanged();
return this;
}
// optional string message = 2;
private java.lang.Object message_ = "";
/**
* <code>optional string message = 2;</code>
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional string message = 2;</code>
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string message = 2;</code>
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string message = 2;</code>
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
message_ = value;
onChanged();
return this;
}
/**
* <code>optional string message = 2;</code>
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000002);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* <code>optional string message = 2;</code>
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
message_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:alluxio.proto.dataserver.Response)
}
static {
defaultInstance = new Response(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:alluxio.proto.dataserver.Response)
}
public interface ReadResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .alluxio.proto.dataserver.ReadResponse.Type type = 1;
/**
* <code>optional .alluxio.proto.dataserver.ReadResponse.Type type = 1;</code>
*/
boolean hasType();
/**
* <code>optional .alluxio.proto.dataserver.ReadResponse.Type type = 1;</code>
*/
alluxio.proto.dataserver.Protocol.ReadResponse.Type getType();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.ReadResponse}
*
* <pre>
* The read response.
* next available id: 2
* </pre>
*/
public static final class ReadResponse extends
com.google.protobuf.GeneratedMessage
implements ReadResponseOrBuilder {
// Use ReadResponse.newBuilder() to construct.
private ReadResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ReadResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ReadResponse defaultInstance;
public static ReadResponse getDefaultInstance() {
return defaultInstance;
}
public ReadResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReadResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
alluxio.proto.dataserver.Protocol.ReadResponse.Type value = alluxio.proto.dataserver.Protocol.ReadResponse.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
type_ = value;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_ReadResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_ReadResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.ReadResponse.class, alluxio.proto.dataserver.Protocol.ReadResponse.Builder.class);
}
public static com.google.protobuf.Parser<ReadResponse> PARSER =
new com.google.protobuf.AbstractParser<ReadResponse>() {
public ReadResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReadResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ReadResponse> getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code alluxio.proto.dataserver.ReadResponse.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>UFS_READ_HEARTBEAT = 1;</code>
*
* <pre>
* A heatbeat message indicates that the server is still actively acquiring access to a UFS file.
* This is to avoid timing out in the client.
* </pre>
*/
UFS_READ_HEARTBEAT(0, 1),
;
/**
* <code>UFS_READ_HEARTBEAT = 1;</code>
*
* <pre>
* A heatbeat message indicates that the server is still actively acquiring access to a UFS file.
* This is to avoid timing out in the client.
* </pre>
*/
public static final int UFS_READ_HEARTBEAT_VALUE = 1;
public final int getNumber() { return value; }
public static Type valueOf(int value) {
switch (value) {
case 1: return UFS_READ_HEARTBEAT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<Type>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<Type>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<Type>() {
public Type findValueByNumber(int number) {
return Type.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.ReadResponse.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Type(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:alluxio.proto.dataserver.ReadResponse.Type)
}
private int bitField0_;
// optional .alluxio.proto.dataserver.ReadResponse.Type type = 1;
public static final int TYPE_FIELD_NUMBER = 1;
private alluxio.proto.dataserver.Protocol.ReadResponse.Type type_;
/**
* <code>optional .alluxio.proto.dataserver.ReadResponse.Type type = 1;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .alluxio.proto.dataserver.ReadResponse.Type type = 1;</code>
*/
public alluxio.proto.dataserver.Protocol.ReadResponse.Type getType() {
return type_;
}
private void initFields() {
type_ = alluxio.proto.dataserver.Protocol.ReadResponse.Type.UFS_READ_HEARTBEAT;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, type_.getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_.getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static alluxio.proto.dataserver.Protocol.ReadResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.ReadResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.ReadResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.ReadResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.ReadResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.ReadResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.ReadResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static alluxio.proto.dataserver.Protocol.ReadResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.ReadResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.ReadResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(alluxio.proto.dataserver.Protocol.ReadResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.proto.dataserver.ReadResponse}
*
* <pre>
* The read response.
* next available id: 2
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements alluxio.proto.dataserver.Protocol.ReadResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_ReadResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_ReadResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.ReadResponse.class, alluxio.proto.dataserver.Protocol.ReadResponse.Builder.class);
}
// Construct using alluxio.proto.dataserver.Protocol.ReadResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
type_ = alluxio.proto.dataserver.Protocol.ReadResponse.Type.UFS_READ_HEARTBEAT;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_ReadResponse_descriptor;
}
public alluxio.proto.dataserver.Protocol.ReadResponse getDefaultInstanceForType() {
return alluxio.proto.dataserver.Protocol.ReadResponse.getDefaultInstance();
}
public alluxio.proto.dataserver.Protocol.ReadResponse build() {
alluxio.proto.dataserver.Protocol.ReadResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public alluxio.proto.dataserver.Protocol.ReadResponse buildPartial() {
alluxio.proto.dataserver.Protocol.ReadResponse result = new alluxio.proto.dataserver.Protocol.ReadResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof alluxio.proto.dataserver.Protocol.ReadResponse) {
return mergeFrom((alluxio.proto.dataserver.Protocol.ReadResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.dataserver.Protocol.ReadResponse other) {
if (other == alluxio.proto.dataserver.Protocol.ReadResponse.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
alluxio.proto.dataserver.Protocol.ReadResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (alluxio.proto.dataserver.Protocol.ReadResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .alluxio.proto.dataserver.ReadResponse.Type type = 1;
private alluxio.proto.dataserver.Protocol.ReadResponse.Type type_ = alluxio.proto.dataserver.Protocol.ReadResponse.Type.UFS_READ_HEARTBEAT;
/**
* <code>optional .alluxio.proto.dataserver.ReadResponse.Type type = 1;</code>
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional .alluxio.proto.dataserver.ReadResponse.Type type = 1;</code>
*/
public alluxio.proto.dataserver.Protocol.ReadResponse.Type getType() {
return type_;
}
/**
* <code>optional .alluxio.proto.dataserver.ReadResponse.Type type = 1;</code>
*/
public Builder setType(alluxio.proto.dataserver.Protocol.ReadResponse.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
* <code>optional .alluxio.proto.dataserver.ReadResponse.Type type = 1;</code>
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = alluxio.proto.dataserver.Protocol.ReadResponse.Type.UFS_READ_HEARTBEAT;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:alluxio.proto.dataserver.ReadResponse)
}
static {
defaultInstance = new ReadResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:alluxio.proto.dataserver.ReadResponse)
}
public interface HeartbeatOrBuilder
extends com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code alluxio.proto.dataserver.Heartbeat}
*
* <pre>
* A heartbeat
* </pre>
*/
public static final class Heartbeat extends
com.google.protobuf.GeneratedMessage
implements HeartbeatOrBuilder {
// Use Heartbeat.newBuilder() to construct.
private Heartbeat(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Heartbeat(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Heartbeat defaultInstance;
public static Heartbeat getDefaultInstance() {
return defaultInstance;
}
public Heartbeat getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Heartbeat(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_Heartbeat_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_Heartbeat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.Heartbeat.class, alluxio.proto.dataserver.Protocol.Heartbeat.Builder.class);
}
public static com.google.protobuf.Parser<Heartbeat> PARSER =
new com.google.protobuf.AbstractParser<Heartbeat>() {
public Heartbeat parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Heartbeat(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Heartbeat> getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static alluxio.proto.dataserver.Protocol.Heartbeat parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.Heartbeat parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.Heartbeat parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.Heartbeat parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.Heartbeat parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.Heartbeat parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.Heartbeat parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static alluxio.proto.dataserver.Protocol.Heartbeat parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.Heartbeat parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.Heartbeat parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(alluxio.proto.dataserver.Protocol.Heartbeat prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.proto.dataserver.Heartbeat}
*
* <pre>
* A heartbeat
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements alluxio.proto.dataserver.Protocol.HeartbeatOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_Heartbeat_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_Heartbeat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.Heartbeat.class, alluxio.proto.dataserver.Protocol.Heartbeat.Builder.class);
}
// Construct using alluxio.proto.dataserver.Protocol.Heartbeat.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_Heartbeat_descriptor;
}
public alluxio.proto.dataserver.Protocol.Heartbeat getDefaultInstanceForType() {
return alluxio.proto.dataserver.Protocol.Heartbeat.getDefaultInstance();
}
public alluxio.proto.dataserver.Protocol.Heartbeat build() {
alluxio.proto.dataserver.Protocol.Heartbeat result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public alluxio.proto.dataserver.Protocol.Heartbeat buildPartial() {
alluxio.proto.dataserver.Protocol.Heartbeat result = new alluxio.proto.dataserver.Protocol.Heartbeat(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof alluxio.proto.dataserver.Protocol.Heartbeat) {
return mergeFrom((alluxio.proto.dataserver.Protocol.Heartbeat)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.dataserver.Protocol.Heartbeat other) {
if (other == alluxio.proto.dataserver.Protocol.Heartbeat.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
alluxio.proto.dataserver.Protocol.Heartbeat parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (alluxio.proto.dataserver.Protocol.Heartbeat) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:alluxio.proto.dataserver.Heartbeat)
}
static {
defaultInstance = new Heartbeat(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:alluxio.proto.dataserver.Heartbeat)
}
public interface LocalBlockOpenRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int64 block_id = 1;
/**
* <code>optional int64 block_id = 1;</code>
*/
boolean hasBlockId();
/**
* <code>optional int64 block_id = 1;</code>
*/
long getBlockId();
// optional bool promote = 2;
/**
* <code>optional bool promote = 2;</code>
*/
boolean hasPromote();
/**
* <code>optional bool promote = 2;</code>
*/
boolean getPromote();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.LocalBlockOpenRequest}
*
* <pre>
* next available id: 3
* </pre>
*/
public static final class LocalBlockOpenRequest extends
com.google.protobuf.GeneratedMessage
implements LocalBlockOpenRequestOrBuilder {
// Use LocalBlockOpenRequest.newBuilder() to construct.
private LocalBlockOpenRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private LocalBlockOpenRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final LocalBlockOpenRequest defaultInstance;
public static LocalBlockOpenRequest getDefaultInstance() {
return defaultInstance;
}
public LocalBlockOpenRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocalBlockOpenRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
blockId_ = input.readInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
promote_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockOpenRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockOpenRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest.class, alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest.Builder.class);
}
public static com.google.protobuf.Parser<LocalBlockOpenRequest> PARSER =
new com.google.protobuf.AbstractParser<LocalBlockOpenRequest>() {
public LocalBlockOpenRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocalBlockOpenRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<LocalBlockOpenRequest> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int64 block_id = 1;
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private long blockId_;
/**
* <code>optional int64 block_id = 1;</code>
*/
public boolean hasBlockId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public long getBlockId() {
return blockId_;
}
// optional bool promote = 2;
public static final int PROMOTE_FIELD_NUMBER = 2;
private boolean promote_;
/**
* <code>optional bool promote = 2;</code>
*/
public boolean hasPromote() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool promote = 2;</code>
*/
public boolean getPromote() {
return promote_;
}
private void initFields() {
blockId_ = 0L;
promote_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, blockId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, promote_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, blockId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, promote_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.proto.dataserver.LocalBlockOpenRequest}
*
* <pre>
* next available id: 3
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements alluxio.proto.dataserver.Protocol.LocalBlockOpenRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockOpenRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockOpenRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest.class, alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest.Builder.class);
}
// Construct using alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
blockId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
promote_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockOpenRequest_descriptor;
}
public alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest getDefaultInstanceForType() {
return alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest.getDefaultInstance();
}
public alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest build() {
alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest buildPartial() {
alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest result = new alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.blockId_ = blockId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.promote_ = promote_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest) {
return mergeFrom((alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest other) {
if (other == alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest.getDefaultInstance()) return this;
if (other.hasBlockId()) {
setBlockId(other.getBlockId());
}
if (other.hasPromote()) {
setPromote(other.getPromote());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (alluxio.proto.dataserver.Protocol.LocalBlockOpenRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int64 block_id = 1;
private long blockId_ ;
/**
* <code>optional int64 block_id = 1;</code>
*/
public boolean hasBlockId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public long getBlockId() {
return blockId_;
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public Builder setBlockId(long value) {
bitField0_ |= 0x00000001;
blockId_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public Builder clearBlockId() {
bitField0_ = (bitField0_ & ~0x00000001);
blockId_ = 0L;
onChanged();
return this;
}
// optional bool promote = 2;
private boolean promote_ ;
/**
* <code>optional bool promote = 2;</code>
*/
public boolean hasPromote() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool promote = 2;</code>
*/
public boolean getPromote() {
return promote_;
}
/**
* <code>optional bool promote = 2;</code>
*/
public Builder setPromote(boolean value) {
bitField0_ |= 0x00000002;
promote_ = value;
onChanged();
return this;
}
/**
* <code>optional bool promote = 2;</code>
*/
public Builder clearPromote() {
bitField0_ = (bitField0_ & ~0x00000002);
promote_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:alluxio.proto.dataserver.LocalBlockOpenRequest)
}
static {
defaultInstance = new LocalBlockOpenRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:alluxio.proto.dataserver.LocalBlockOpenRequest)
}
public interface LocalBlockOpenResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string path = 1;
/**
* <code>optional string path = 1;</code>
*/
boolean hasPath();
/**
* <code>optional string path = 1;</code>
*/
java.lang.String getPath();
/**
* <code>optional string path = 1;</code>
*/
com.google.protobuf.ByteString
getPathBytes();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.LocalBlockOpenResponse}
*
* <pre>
* next available id: 2
* </pre>
*/
public static final class LocalBlockOpenResponse extends
com.google.protobuf.GeneratedMessage
implements LocalBlockOpenResponseOrBuilder {
// Use LocalBlockOpenResponse.newBuilder() to construct.
private LocalBlockOpenResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private LocalBlockOpenResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final LocalBlockOpenResponse defaultInstance;
public static LocalBlockOpenResponse getDefaultInstance() {
return defaultInstance;
}
public LocalBlockOpenResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocalBlockOpenResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
path_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockOpenResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockOpenResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse.class, alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse.Builder.class);
}
public static com.google.protobuf.Parser<LocalBlockOpenResponse> PARSER =
new com.google.protobuf.AbstractParser<LocalBlockOpenResponse>() {
public LocalBlockOpenResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocalBlockOpenResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<LocalBlockOpenResponse> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string path = 1;
public static final int PATH_FIELD_NUMBER = 1;
private java.lang.Object path_;
/**
* <code>optional string path = 1;</code>
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string path = 1;</code>
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
}
}
/**
* <code>optional string path = 1;</code>
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
path_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getPathBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getPathBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.proto.dataserver.LocalBlockOpenResponse}
*
* <pre>
* next available id: 2
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements alluxio.proto.dataserver.Protocol.LocalBlockOpenResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockOpenResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockOpenResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse.class, alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse.Builder.class);
}
// Construct using alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
path_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockOpenResponse_descriptor;
}
public alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse getDefaultInstanceForType() {
return alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse.getDefaultInstance();
}
public alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse build() {
alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse buildPartial() {
alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse result = new alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.path_ = path_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse) {
return mergeFrom((alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse other) {
if (other == alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse.getDefaultInstance()) return this;
if (other.hasPath()) {
bitField0_ |= 0x00000001;
path_ = other.path_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (alluxio.proto.dataserver.Protocol.LocalBlockOpenResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string path = 1;
private java.lang.Object path_ = "";
/**
* <code>optional string path = 1;</code>
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string path = 1;</code>
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string path = 1;</code>
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string path = 1;</code>
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
path_ = value;
onChanged();
return this;
}
/**
* <code>optional string path = 1;</code>
*/
public Builder clearPath() {
bitField0_ = (bitField0_ & ~0x00000001);
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* <code>optional string path = 1;</code>
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
path_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:alluxio.proto.dataserver.LocalBlockOpenResponse)
}
static {
defaultInstance = new LocalBlockOpenResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:alluxio.proto.dataserver.LocalBlockOpenResponse)
}
public interface LocalBlockCloseRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int64 block_id = 1;
/**
* <code>optional int64 block_id = 1;</code>
*/
boolean hasBlockId();
/**
* <code>optional int64 block_id = 1;</code>
*/
long getBlockId();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.LocalBlockCloseRequest}
*
* <pre>
* next available id: 2
* </pre>
*/
public static final class LocalBlockCloseRequest extends
com.google.protobuf.GeneratedMessage
implements LocalBlockCloseRequestOrBuilder {
// Use LocalBlockCloseRequest.newBuilder() to construct.
private LocalBlockCloseRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private LocalBlockCloseRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final LocalBlockCloseRequest defaultInstance;
public static LocalBlockCloseRequest getDefaultInstance() {
return defaultInstance;
}
public LocalBlockCloseRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocalBlockCloseRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
blockId_ = input.readInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCloseRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCloseRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest.class, alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest.Builder.class);
}
public static com.google.protobuf.Parser<LocalBlockCloseRequest> PARSER =
new com.google.protobuf.AbstractParser<LocalBlockCloseRequest>() {
public LocalBlockCloseRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocalBlockCloseRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<LocalBlockCloseRequest> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int64 block_id = 1;
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private long blockId_;
/**
* <code>optional int64 block_id = 1;</code>
*/
public boolean hasBlockId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public long getBlockId() {
return blockId_;
}
private void initFields() {
blockId_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, blockId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, blockId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.proto.dataserver.LocalBlockCloseRequest}
*
* <pre>
* next available id: 2
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements alluxio.proto.dataserver.Protocol.LocalBlockCloseRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCloseRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCloseRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest.class, alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest.Builder.class);
}
// Construct using alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
blockId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCloseRequest_descriptor;
}
public alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest getDefaultInstanceForType() {
return alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest.getDefaultInstance();
}
public alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest build() {
alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest buildPartial() {
alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest result = new alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.blockId_ = blockId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest) {
return mergeFrom((alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest other) {
if (other == alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest.getDefaultInstance()) return this;
if (other.hasBlockId()) {
setBlockId(other.getBlockId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (alluxio.proto.dataserver.Protocol.LocalBlockCloseRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int64 block_id = 1;
private long blockId_ ;
/**
* <code>optional int64 block_id = 1;</code>
*/
public boolean hasBlockId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public long getBlockId() {
return blockId_;
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public Builder setBlockId(long value) {
bitField0_ |= 0x00000001;
blockId_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public Builder clearBlockId() {
bitField0_ = (bitField0_ & ~0x00000001);
blockId_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:alluxio.proto.dataserver.LocalBlockCloseRequest)
}
static {
defaultInstance = new LocalBlockCloseRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:alluxio.proto.dataserver.LocalBlockCloseRequest)
}
public interface LocalBlockCreateRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int64 block_id = 1;
/**
* <code>optional int64 block_id = 1;</code>
*/
boolean hasBlockId();
/**
* <code>optional int64 block_id = 1;</code>
*/
long getBlockId();
// optional int32 tier = 3;
/**
* <code>optional int32 tier = 3;</code>
*/
boolean hasTier();
/**
* <code>optional int32 tier = 3;</code>
*/
int getTier();
// optional int64 space_to_reserve = 4;
/**
* <code>optional int64 space_to_reserve = 4;</code>
*/
boolean hasSpaceToReserve();
/**
* <code>optional int64 space_to_reserve = 4;</code>
*/
long getSpaceToReserve();
// optional bool only_reserve_space = 5;
/**
* <code>optional bool only_reserve_space = 5;</code>
*
* <pre>
* If set, only reserve space for the block.
* </pre>
*/
boolean hasOnlyReserveSpace();
/**
* <code>optional bool only_reserve_space = 5;</code>
*
* <pre>
* If set, only reserve space for the block.
* </pre>
*/
boolean getOnlyReserveSpace();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.LocalBlockCreateRequest}
*
* <pre>
* next available id: 6
* </pre>
*/
public static final class LocalBlockCreateRequest extends
com.google.protobuf.GeneratedMessage
implements LocalBlockCreateRequestOrBuilder {
// Use LocalBlockCreateRequest.newBuilder() to construct.
private LocalBlockCreateRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private LocalBlockCreateRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final LocalBlockCreateRequest defaultInstance;
public static LocalBlockCreateRequest getDefaultInstance() {
return defaultInstance;
}
public LocalBlockCreateRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocalBlockCreateRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
blockId_ = input.readInt64();
break;
}
case 24: {
bitField0_ |= 0x00000002;
tier_ = input.readInt32();
break;
}
case 32: {
bitField0_ |= 0x00000004;
spaceToReserve_ = input.readInt64();
break;
}
case 40: {
bitField0_ |= 0x00000008;
onlyReserveSpace_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCreateRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCreateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest.class, alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest.Builder.class);
}
public static com.google.protobuf.Parser<LocalBlockCreateRequest> PARSER =
new com.google.protobuf.AbstractParser<LocalBlockCreateRequest>() {
public LocalBlockCreateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocalBlockCreateRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<LocalBlockCreateRequest> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int64 block_id = 1;
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private long blockId_;
/**
* <code>optional int64 block_id = 1;</code>
*/
public boolean hasBlockId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public long getBlockId() {
return blockId_;
}
// optional int32 tier = 3;
public static final int TIER_FIELD_NUMBER = 3;
private int tier_;
/**
* <code>optional int32 tier = 3;</code>
*/
public boolean hasTier() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 tier = 3;</code>
*/
public int getTier() {
return tier_;
}
// optional int64 space_to_reserve = 4;
public static final int SPACE_TO_RESERVE_FIELD_NUMBER = 4;
private long spaceToReserve_;
/**
* <code>optional int64 space_to_reserve = 4;</code>
*/
public boolean hasSpaceToReserve() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int64 space_to_reserve = 4;</code>
*/
public long getSpaceToReserve() {
return spaceToReserve_;
}
// optional bool only_reserve_space = 5;
public static final int ONLY_RESERVE_SPACE_FIELD_NUMBER = 5;
private boolean onlyReserveSpace_;
/**
* <code>optional bool only_reserve_space = 5;</code>
*
* <pre>
* If set, only reserve space for the block.
* </pre>
*/
public boolean hasOnlyReserveSpace() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool only_reserve_space = 5;</code>
*
* <pre>
* If set, only reserve space for the block.
* </pre>
*/
public boolean getOnlyReserveSpace() {
return onlyReserveSpace_;
}
private void initFields() {
blockId_ = 0L;
tier_ = 0;
spaceToReserve_ = 0L;
onlyReserveSpace_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, blockId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(3, tier_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(4, spaceToReserve_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(5, onlyReserveSpace_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, blockId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, tier_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, spaceToReserve_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, onlyReserveSpace_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.proto.dataserver.LocalBlockCreateRequest}
*
* <pre>
* next available id: 6
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements alluxio.proto.dataserver.Protocol.LocalBlockCreateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCreateRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCreateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest.class, alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest.Builder.class);
}
// Construct using alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
blockId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
tier_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
spaceToReserve_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
onlyReserveSpace_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCreateRequest_descriptor;
}
public alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest getDefaultInstanceForType() {
return alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest.getDefaultInstance();
}
public alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest build() {
alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest buildPartial() {
alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest result = new alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.blockId_ = blockId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.tier_ = tier_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.spaceToReserve_ = spaceToReserve_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.onlyReserveSpace_ = onlyReserveSpace_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest) {
return mergeFrom((alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest other) {
if (other == alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest.getDefaultInstance()) return this;
if (other.hasBlockId()) {
setBlockId(other.getBlockId());
}
if (other.hasTier()) {
setTier(other.getTier());
}
if (other.hasSpaceToReserve()) {
setSpaceToReserve(other.getSpaceToReserve());
}
if (other.hasOnlyReserveSpace()) {
setOnlyReserveSpace(other.getOnlyReserveSpace());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (alluxio.proto.dataserver.Protocol.LocalBlockCreateRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int64 block_id = 1;
private long blockId_ ;
/**
* <code>optional int64 block_id = 1;</code>
*/
public boolean hasBlockId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public long getBlockId() {
return blockId_;
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public Builder setBlockId(long value) {
bitField0_ |= 0x00000001;
blockId_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public Builder clearBlockId() {
bitField0_ = (bitField0_ & ~0x00000001);
blockId_ = 0L;
onChanged();
return this;
}
// optional int32 tier = 3;
private int tier_ ;
/**
* <code>optional int32 tier = 3;</code>
*/
public boolean hasTier() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional int32 tier = 3;</code>
*/
public int getTier() {
return tier_;
}
/**
* <code>optional int32 tier = 3;</code>
*/
public Builder setTier(int value) {
bitField0_ |= 0x00000002;
tier_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 tier = 3;</code>
*/
public Builder clearTier() {
bitField0_ = (bitField0_ & ~0x00000002);
tier_ = 0;
onChanged();
return this;
}
// optional int64 space_to_reserve = 4;
private long spaceToReserve_ ;
/**
* <code>optional int64 space_to_reserve = 4;</code>
*/
public boolean hasSpaceToReserve() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int64 space_to_reserve = 4;</code>
*/
public long getSpaceToReserve() {
return spaceToReserve_;
}
/**
* <code>optional int64 space_to_reserve = 4;</code>
*/
public Builder setSpaceToReserve(long value) {
bitField0_ |= 0x00000004;
spaceToReserve_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 space_to_reserve = 4;</code>
*/
public Builder clearSpaceToReserve() {
bitField0_ = (bitField0_ & ~0x00000004);
spaceToReserve_ = 0L;
onChanged();
return this;
}
// optional bool only_reserve_space = 5;
private boolean onlyReserveSpace_ ;
/**
* <code>optional bool only_reserve_space = 5;</code>
*
* <pre>
* If set, only reserve space for the block.
* </pre>
*/
public boolean hasOnlyReserveSpace() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional bool only_reserve_space = 5;</code>
*
* <pre>
* If set, only reserve space for the block.
* </pre>
*/
public boolean getOnlyReserveSpace() {
return onlyReserveSpace_;
}
/**
* <code>optional bool only_reserve_space = 5;</code>
*
* <pre>
* If set, only reserve space for the block.
* </pre>
*/
public Builder setOnlyReserveSpace(boolean value) {
bitField0_ |= 0x00000008;
onlyReserveSpace_ = value;
onChanged();
return this;
}
/**
* <code>optional bool only_reserve_space = 5;</code>
*
* <pre>
* If set, only reserve space for the block.
* </pre>
*/
public Builder clearOnlyReserveSpace() {
bitField0_ = (bitField0_ & ~0x00000008);
onlyReserveSpace_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:alluxio.proto.dataserver.LocalBlockCreateRequest)
}
static {
defaultInstance = new LocalBlockCreateRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:alluxio.proto.dataserver.LocalBlockCreateRequest)
}
public interface LocalBlockCreateResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string path = 1;
/**
* <code>optional string path = 1;</code>
*/
boolean hasPath();
/**
* <code>optional string path = 1;</code>
*/
java.lang.String getPath();
/**
* <code>optional string path = 1;</code>
*/
com.google.protobuf.ByteString
getPathBytes();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.LocalBlockCreateResponse}
*
* <pre>
* next available id: 2
* </pre>
*/
public static final class LocalBlockCreateResponse extends
com.google.protobuf.GeneratedMessage
implements LocalBlockCreateResponseOrBuilder {
// Use LocalBlockCreateResponse.newBuilder() to construct.
private LocalBlockCreateResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private LocalBlockCreateResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final LocalBlockCreateResponse defaultInstance;
public static LocalBlockCreateResponse getDefaultInstance() {
return defaultInstance;
}
public LocalBlockCreateResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocalBlockCreateResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
path_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCreateResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCreateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse.class, alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse.Builder.class);
}
public static com.google.protobuf.Parser<LocalBlockCreateResponse> PARSER =
new com.google.protobuf.AbstractParser<LocalBlockCreateResponse>() {
public LocalBlockCreateResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocalBlockCreateResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<LocalBlockCreateResponse> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string path = 1;
public static final int PATH_FIELD_NUMBER = 1;
private java.lang.Object path_;
/**
* <code>optional string path = 1;</code>
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string path = 1;</code>
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
}
}
/**
* <code>optional string path = 1;</code>
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
path_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getPathBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getPathBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.proto.dataserver.LocalBlockCreateResponse}
*
* <pre>
* next available id: 2
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements alluxio.proto.dataserver.Protocol.LocalBlockCreateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCreateResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCreateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse.class, alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse.Builder.class);
}
// Construct using alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
path_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCreateResponse_descriptor;
}
public alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse getDefaultInstanceForType() {
return alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse.getDefaultInstance();
}
public alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse build() {
alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse buildPartial() {
alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse result = new alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.path_ = path_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse) {
return mergeFrom((alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse other) {
if (other == alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse.getDefaultInstance()) return this;
if (other.hasPath()) {
bitField0_ |= 0x00000001;
path_ = other.path_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (alluxio.proto.dataserver.Protocol.LocalBlockCreateResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string path = 1;
private java.lang.Object path_ = "";
/**
* <code>optional string path = 1;</code>
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional string path = 1;</code>
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string path = 1;</code>
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string path = 1;</code>
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
path_ = value;
onChanged();
return this;
}
/**
* <code>optional string path = 1;</code>
*/
public Builder clearPath() {
bitField0_ = (bitField0_ & ~0x00000001);
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* <code>optional string path = 1;</code>
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
path_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:alluxio.proto.dataserver.LocalBlockCreateResponse)
}
static {
defaultInstance = new LocalBlockCreateResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:alluxio.proto.dataserver.LocalBlockCreateResponse)
}
public interface LocalBlockCompleteRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int64 block_id = 1;
/**
* <code>optional int64 block_id = 1;</code>
*/
boolean hasBlockId();
/**
* <code>optional int64 block_id = 1;</code>
*/
long getBlockId();
// optional bool cancel = 2;
/**
* <code>optional bool cancel = 2;</code>
*/
boolean hasCancel();
/**
* <code>optional bool cancel = 2;</code>
*/
boolean getCancel();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.LocalBlockCompleteRequest}
*
* <pre>
* next available id: 3
* </pre>
*/
public static final class LocalBlockCompleteRequest extends
com.google.protobuf.GeneratedMessage
implements LocalBlockCompleteRequestOrBuilder {
// Use LocalBlockCompleteRequest.newBuilder() to construct.
private LocalBlockCompleteRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private LocalBlockCompleteRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final LocalBlockCompleteRequest defaultInstance;
public static LocalBlockCompleteRequest getDefaultInstance() {
return defaultInstance;
}
public LocalBlockCompleteRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocalBlockCompleteRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
blockId_ = input.readInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
cancel_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCompleteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCompleteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest.class, alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest.Builder.class);
}
public static com.google.protobuf.Parser<LocalBlockCompleteRequest> PARSER =
new com.google.protobuf.AbstractParser<LocalBlockCompleteRequest>() {
public LocalBlockCompleteRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocalBlockCompleteRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<LocalBlockCompleteRequest> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int64 block_id = 1;
public static final int BLOCK_ID_FIELD_NUMBER = 1;
private long blockId_;
/**
* <code>optional int64 block_id = 1;</code>
*/
public boolean hasBlockId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public long getBlockId() {
return blockId_;
}
// optional bool cancel = 2;
public static final int CANCEL_FIELD_NUMBER = 2;
private boolean cancel_;
/**
* <code>optional bool cancel = 2;</code>
*/
public boolean hasCancel() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool cancel = 2;</code>
*/
public boolean getCancel() {
return cancel_;
}
private void initFields() {
blockId_ = 0L;
cancel_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, blockId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, cancel_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, blockId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, cancel_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.proto.dataserver.LocalBlockCompleteRequest}
*
* <pre>
* next available id: 3
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCompleteRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCompleteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest.class, alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest.Builder.class);
}
// Construct using alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
blockId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
cancel_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.dataserver.Protocol.internal_static_alluxio_proto_dataserver_LocalBlockCompleteRequest_descriptor;
}
public alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest getDefaultInstanceForType() {
return alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest.getDefaultInstance();
}
public alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest build() {
alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest buildPartial() {
alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest result = new alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.blockId_ = blockId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.cancel_ = cancel_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest) {
return mergeFrom((alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest other) {
if (other == alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest.getDefaultInstance()) return this;
if (other.hasBlockId()) {
setBlockId(other.getBlockId());
}
if (other.hasCancel()) {
setCancel(other.getCancel());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (alluxio.proto.dataserver.Protocol.LocalBlockCompleteRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int64 block_id = 1;
private long blockId_ ;
/**
* <code>optional int64 block_id = 1;</code>
*/
public boolean hasBlockId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public long getBlockId() {
return blockId_;
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public Builder setBlockId(long value) {
bitField0_ |= 0x00000001;
blockId_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 block_id = 1;</code>
*/
public Builder clearBlockId() {
bitField0_ = (bitField0_ & ~0x00000001);
blockId_ = 0L;
onChanged();
return this;
}
// optional bool cancel = 2;
private boolean cancel_ ;
/**
* <code>optional bool cancel = 2;</code>
*/
public boolean hasCancel() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool cancel = 2;</code>
*/
public boolean getCancel() {
return cancel_;
}
/**
* <code>optional bool cancel = 2;</code>
*/
public Builder setCancel(boolean value) {
bitField0_ |= 0x00000002;
cancel_ = value;
onChanged();
return this;
}
/**
* <code>optional bool cancel = 2;</code>
*/
public Builder clearCancel() {
bitField0_ = (bitField0_ & ~0x00000002);
cancel_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:alluxio.proto.dataserver.LocalBlockCompleteRequest)
}
static {
defaultInstance = new LocalBlockCompleteRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:alluxio.proto.dataserver.LocalBlockCompleteRequest)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_dataserver_ReadRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_ReadRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_dataserver_OpenUfsBlockOptions_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_OpenUfsBlockOptions_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_dataserver_WriteRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_WriteRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_dataserver_CreateUfsFileOptions_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_CreateUfsFileOptions_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_dataserver_Response_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_Response_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_dataserver_ReadResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_ReadResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_dataserver_Heartbeat_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_Heartbeat_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_dataserver_LocalBlockOpenRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_LocalBlockOpenRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_dataserver_LocalBlockOpenResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_LocalBlockOpenResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_dataserver_LocalBlockCloseRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_LocalBlockCloseRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_dataserver_LocalBlockCreateRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_LocalBlockCreateRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_dataserver_LocalBlockCreateResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_LocalBlockCreateResponse_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_dataserver_LocalBlockCompleteRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_LocalBlockCompleteRequest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\031dataserver/protocol.proto\022\030alluxio.pro" +
"to.dataserver\032\027dataserver/status.proto\"\304" +
"\001\n\013ReadRequest\022\020\n\010block_id\030\001 \001(\003\022\016\n\006offs" +
"et\030\002 \001(\003\022\016\n\006length\030\003 \001(\003\022\016\n\006cancel\030\004 \001(\010" +
"\022\017\n\007promote\030\007 \001(\010\022\023\n\013packet_size\030\005 \001(\003\022M" +
"\n\026open_ufs_block_options\030\006 \001(\0132-.alluxio" +
".proto.dataserver.OpenUfsBlockOptions\"\225\001" +
"\n\023OpenUfsBlockOptions\022\020\n\010ufs_path\030\001 \001(\t\022" +
"\026\n\016offset_in_file\030\002 \001(\003\022\022\n\nblock_size\030\003 " +
"\001(\003\022\035\n\025maxUfsReadConcurrency\030\004 \001(\005\022\017\n\007mo",
"untId\030\005 \001(\003\022\020\n\010no_cache\030\006 \001(\010\"\333\001\n\014WriteR" +
"equest\0223\n\004type\030\001 \001(\0162%.alluxio.proto.dat" +
"aserver.RequestType\022\n\n\002id\030\002 \001(\003\022\016\n\006offse" +
"t\030\003 \001(\003\022\014\n\004tier\030\004 \001(\005\022\013\n\003eof\030\005 \001(\010\022\016\n\006ca" +
"ncel\030\006 \001(\010\022O\n\027create_ufs_file_options\030\007 " +
"\001(\0132..alluxio.proto.dataserver.CreateUfs" +
"FileOptions\"f\n\024CreateUfsFileOptions\022\020\n\010u" +
"fs_path\030\001 \001(\t\022\r\n\005owner\030\002 \001(\t\022\r\n\005group\030\003 " +
"\001(\t\022\014\n\004mode\030\004 \001(\005\022\020\n\010mount_id\030\005 \001(\003\"J\n\010R" +
"esponse\022-\n\006status\030\001 \001(\0162\035.alluxio.proto.",
"status.PStatus\022\017\n\007message\030\002 \001(\t\"i\n\014ReadR" +
"esponse\0229\n\004type\030\001 \001(\0162+.alluxio.proto.da" +
"taserver.ReadResponse.Type\"\036\n\004Type\022\026\n\022UF" +
"S_READ_HEARTBEAT\020\001\"\013\n\tHeartbeat\":\n\025Local" +
"BlockOpenRequest\022\020\n\010block_id\030\001 \001(\003\022\017\n\007pr" +
"omote\030\002 \001(\010\"&\n\026LocalBlockOpenResponse\022\014\n" +
"\004path\030\001 \001(\t\"*\n\026LocalBlockCloseRequest\022\020\n" +
"\010block_id\030\001 \001(\003\"o\n\027LocalBlockCreateReque" +
"st\022\020\n\010block_id\030\001 \001(\003\022\014\n\004tier\030\003 \001(\005\022\030\n\020sp" +
"ace_to_reserve\030\004 \001(\003\022\032\n\022only_reserve_spa",
"ce\030\005 \001(\010\"(\n\030LocalBlockCreateResponse\022\014\n\004" +
"path\030\001 \001(\t\"=\n\031LocalBlockCompleteRequest\022" +
"\020\n\010block_id\030\001 \001(\003\022\016\n\006cancel\030\002 \001(\010*.\n\013Req" +
"uestType\022\021\n\rALLUXIO_BLOCK\020\000\022\014\n\010UFS_FILE\020" +
"\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_alluxio_proto_dataserver_ReadRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_alluxio_proto_dataserver_ReadRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_ReadRequest_descriptor,
new java.lang.String[] { "BlockId", "Offset", "Length", "Cancel", "Promote", "PacketSize", "OpenUfsBlockOptions", });
internal_static_alluxio_proto_dataserver_OpenUfsBlockOptions_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_alluxio_proto_dataserver_OpenUfsBlockOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_OpenUfsBlockOptions_descriptor,
new java.lang.String[] { "UfsPath", "OffsetInFile", "BlockSize", "MaxUfsReadConcurrency", "MountId", "NoCache", });
internal_static_alluxio_proto_dataserver_WriteRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_alluxio_proto_dataserver_WriteRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_WriteRequest_descriptor,
new java.lang.String[] { "Type", "Id", "Offset", "Tier", "Eof", "Cancel", "CreateUfsFileOptions", });
internal_static_alluxio_proto_dataserver_CreateUfsFileOptions_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_alluxio_proto_dataserver_CreateUfsFileOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_CreateUfsFileOptions_descriptor,
new java.lang.String[] { "UfsPath", "Owner", "Group", "Mode", "MountId", });
internal_static_alluxio_proto_dataserver_Response_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_alluxio_proto_dataserver_Response_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_Response_descriptor,
new java.lang.String[] { "Status", "Message", });
internal_static_alluxio_proto_dataserver_ReadResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_alluxio_proto_dataserver_ReadResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_ReadResponse_descriptor,
new java.lang.String[] { "Type", });
internal_static_alluxio_proto_dataserver_Heartbeat_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_alluxio_proto_dataserver_Heartbeat_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_Heartbeat_descriptor,
new java.lang.String[] { });
internal_static_alluxio_proto_dataserver_LocalBlockOpenRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_alluxio_proto_dataserver_LocalBlockOpenRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_LocalBlockOpenRequest_descriptor,
new java.lang.String[] { "BlockId", "Promote", });
internal_static_alluxio_proto_dataserver_LocalBlockOpenResponse_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_alluxio_proto_dataserver_LocalBlockOpenResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_LocalBlockOpenResponse_descriptor,
new java.lang.String[] { "Path", });
internal_static_alluxio_proto_dataserver_LocalBlockCloseRequest_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_alluxio_proto_dataserver_LocalBlockCloseRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_LocalBlockCloseRequest_descriptor,
new java.lang.String[] { "BlockId", });
internal_static_alluxio_proto_dataserver_LocalBlockCreateRequest_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_alluxio_proto_dataserver_LocalBlockCreateRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_LocalBlockCreateRequest_descriptor,
new java.lang.String[] { "BlockId", "Tier", "SpaceToReserve", "OnlyReserveSpace", });
internal_static_alluxio_proto_dataserver_LocalBlockCreateResponse_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_alluxio_proto_dataserver_LocalBlockCreateResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_LocalBlockCreateResponse_descriptor,
new java.lang.String[] { "Path", });
internal_static_alluxio_proto_dataserver_LocalBlockCompleteRequest_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_alluxio_proto_dataserver_LocalBlockCompleteRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_LocalBlockCompleteRequest_descriptor,
new java.lang.String[] { "BlockId", "Cancel", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
alluxio.proto.status.Status.getDescriptor(),
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}