// 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: 3
* </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>UFS_BLOCK = 2;</code>
*/
UFS_BLOCK(2, 2),
;
/**
* <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;
/**
* <code>UFS_BLOCK = 2;</code>
*/
public static final int UFS_BLOCK_VALUE = 2;
public final int getNumber() { return value; }
public static RequestType valueOf(int value) {
switch (value) {
case 0: return ALLUXIO_BLOCK;
case 1: return UFS_FILE;
case 2: return UFS_BLOCK;
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 .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 int64 length = 4;
/**
* <code>optional int64 length = 4;</code>
*/
boolean hasLength();
/**
* <code>optional int64 length = 4;</code>
*/
long getLength();
// optional bool cancel = 5;
/**
* <code>optional bool cancel = 5;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
boolean hasCancel();
/**
* <code>optional bool cancel = 5;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
boolean getCancel();
// optional int64 lock_id = 6;
/**
* <code>optional int64 lock_id = 6;</code>
*/
boolean hasLockId();
/**
* <code>optional int64 lock_id = 6;</code>
*/
long getLockId();
// optional int64 session_id = 7;
/**
* <code>optional int64 session_id = 7;</code>
*/
boolean hasSessionId();
/**
* <code>optional int64 session_id = 7;</code>
*/
long getSessionId();
// optional bool no_cache = 8;
/**
* <code>optional bool no_cache = 8;</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 = 8;</code>
*
* <pre>
* If set, do not try to cache the block locally when reading the data from the UFS.
* </pre>
*/
boolean getNoCache();
// optional int64 packet_size = 9;
/**
* <code>optional int64 packet_size = 9;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
boolean hasPacketSize();
/**
* <code>optional int64 packet_size = 9;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
long getPacketSize();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.ReadRequest}
*
* <pre>
* The read request.
* next available id: 9
* </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: {
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;
length_ = input.readInt64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
cancel_ = input.readBool();
break;
}
case 48: {
bitField0_ |= 0x00000020;
lockId_ = input.readInt64();
break;
}
case 56: {
bitField0_ |= 0x00000040;
sessionId_ = input.readInt64();
break;
}
case 64: {
bitField0_ |= 0x00000080;
noCache_ = input.readBool();
break;
}
case 72: {
bitField0_ |= 0x00000100;
packetSize_ = 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_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 .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 int64 length = 4;
public static final int LENGTH_FIELD_NUMBER = 4;
private long length_;
/**
* <code>optional int64 length = 4;</code>
*/
public boolean hasLength() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int64 length = 4;</code>
*/
public long getLength() {
return length_;
}
// optional bool cancel = 5;
public static final int CANCEL_FIELD_NUMBER = 5;
private boolean cancel_;
/**
* <code>optional bool cancel = 5;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
public boolean hasCancel() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional bool cancel = 5;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
public boolean getCancel() {
return cancel_;
}
// optional int64 lock_id = 6;
public static final int LOCK_ID_FIELD_NUMBER = 6;
private long lockId_;
/**
* <code>optional int64 lock_id = 6;</code>
*/
public boolean hasLockId() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional int64 lock_id = 6;</code>
*/
public long getLockId() {
return lockId_;
}
// optional int64 session_id = 7;
public static final int SESSION_ID_FIELD_NUMBER = 7;
private long sessionId_;
/**
* <code>optional int64 session_id = 7;</code>
*/
public boolean hasSessionId() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional int64 session_id = 7;</code>
*/
public long getSessionId() {
return sessionId_;
}
// optional bool no_cache = 8;
public static final int NO_CACHE_FIELD_NUMBER = 8;
private boolean noCache_;
/**
* <code>optional bool no_cache = 8;</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_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional bool no_cache = 8;</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_;
}
// optional int64 packet_size = 9;
public static final int PACKET_SIZE_FIELD_NUMBER = 9;
private long packetSize_;
/**
* <code>optional int64 packet_size = 9;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
public boolean hasPacketSize() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional int64 packet_size = 9;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
public long getPacketSize() {
return packetSize_;
}
private void initFields() {
type_ = alluxio.proto.dataserver.Protocol.RequestType.ALLUXIO_BLOCK;
id_ = 0L;
offset_ = 0L;
length_ = 0L;
cancel_ = false;
lockId_ = 0L;
sessionId_ = 0L;
noCache_ = false;
packetSize_ = 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.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.writeInt64(4, length_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBool(5, cancel_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt64(6, lockId_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt64(7, sessionId_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBool(8, noCache_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt64(9, packetSize_);
}
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
.computeInt64Size(4, length_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, cancel_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, lockId_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, sessionId_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, noCache_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, packetSize_);
}
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: 9
* </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) {
}
}
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);
length_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
cancel_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
lockId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
sessionId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
noCache_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
packetSize_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
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.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.length_ = length_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.cancel_ = cancel_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.lockId_ = lockId_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.sessionId_ = sessionId_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.noCache_ = noCache_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.packetSize_ = packetSize_;
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.hasType()) {
setType(other.getType());
}
if (other.hasId()) {
setId(other.getId());
}
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (other.hasLength()) {
setLength(other.getLength());
}
if (other.hasCancel()) {
setCancel(other.getCancel());
}
if (other.hasLockId()) {
setLockId(other.getLockId());
}
if (other.hasSessionId()) {
setSessionId(other.getSessionId());
}
if (other.hasNoCache()) {
setNoCache(other.getNoCache());
}
if (other.hasPacketSize()) {
setPacketSize(other.getPacketSize());
}
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 .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 int64 length = 4;
private long length_ ;
/**
* <code>optional int64 length = 4;</code>
*/
public boolean hasLength() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int64 length = 4;</code>
*/
public long getLength() {
return length_;
}
/**
* <code>optional int64 length = 4;</code>
*/
public Builder setLength(long value) {
bitField0_ |= 0x00000008;
length_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 length = 4;</code>
*/
public Builder clearLength() {
bitField0_ = (bitField0_ & ~0x00000008);
length_ = 0L;
onChanged();
return this;
}
// optional bool cancel = 5;
private boolean cancel_ ;
/**
* <code>optional bool cancel = 5;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
public boolean hasCancel() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional bool cancel = 5;</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 = 5;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
public Builder setCancel(boolean value) {
bitField0_ |= 0x00000010;
cancel_ = value;
onChanged();
return this;
}
/**
* <code>optional bool cancel = 5;</code>
*
* <pre>
* If set, this request is to cancel the reading request for the id.
* </pre>
*/
public Builder clearCancel() {
bitField0_ = (bitField0_ & ~0x00000010);
cancel_ = false;
onChanged();
return this;
}
// optional int64 lock_id = 6;
private long lockId_ ;
/**
* <code>optional int64 lock_id = 6;</code>
*/
public boolean hasLockId() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional int64 lock_id = 6;</code>
*/
public long getLockId() {
return lockId_;
}
/**
* <code>optional int64 lock_id = 6;</code>
*/
public Builder setLockId(long value) {
bitField0_ |= 0x00000020;
lockId_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 lock_id = 6;</code>
*/
public Builder clearLockId() {
bitField0_ = (bitField0_ & ~0x00000020);
lockId_ = 0L;
onChanged();
return this;
}
// optional int64 session_id = 7;
private long sessionId_ ;
/**
* <code>optional int64 session_id = 7;</code>
*/
public boolean hasSessionId() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional int64 session_id = 7;</code>
*/
public long getSessionId() {
return sessionId_;
}
/**
* <code>optional int64 session_id = 7;</code>
*/
public Builder setSessionId(long value) {
bitField0_ |= 0x00000040;
sessionId_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 session_id = 7;</code>
*/
public Builder clearSessionId() {
bitField0_ = (bitField0_ & ~0x00000040);
sessionId_ = 0L;
onChanged();
return this;
}
// optional bool no_cache = 8;
private boolean noCache_ ;
/**
* <code>optional bool no_cache = 8;</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_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional bool no_cache = 8;</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 = 8;</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_ |= 0x00000080;
noCache_ = value;
onChanged();
return this;
}
/**
* <code>optional bool no_cache = 8;</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_ & ~0x00000080);
noCache_ = false;
onChanged();
return this;
}
// optional int64 packet_size = 9;
private long packetSize_ ;
/**
* <code>optional int64 packet_size = 9;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
public boolean hasPacketSize() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional int64 packet_size = 9;</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 = 9;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
public Builder setPacketSize(long value) {
bitField0_ |= 0x00000100;
packetSize_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 packet_size = 9;</code>
*
* <pre>
* If set, the server should send packets in the specified packet size.
* </pre>
*/
public Builder clearPacketSize() {
bitField0_ = (bitField0_ & ~0x00000100);
packetSize_ = 0L;
onChanged();
return this;
}
// @@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 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 int64 session_id = 4;
/**
* <code>optional int64 session_id = 4;</code>
*/
boolean hasSessionId();
/**
* <code>optional int64 session_id = 4;</code>
*/
long getSessionId();
// optional int32 tier = 5;
/**
* <code>optional int32 tier = 5;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
boolean hasTier();
/**
* <code>optional int32 tier = 5;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
int getTier();
// optional bool eof = 6;
/**
* <code>optional bool eof = 6;</code>
*/
boolean hasEof();
/**
* <code>optional bool eof = 6;</code>
*/
boolean getEof();
// optional bool cancel = 7;
/**
* <code>optional bool cancel = 7;</code>
*/
boolean hasCancel();
/**
* <code>optional bool cancel = 7;</code>
*/
boolean getCancel();
// optional string ufs_path = 8;
/**
* <code>optional string ufs_path = 8;</code>
*
* <pre>
* The following are only applicable for ufs writes.
* </pre>
*/
boolean hasUfsPath();
/**
* <code>optional string ufs_path = 8;</code>
*
* <pre>
* The following are only applicable for ufs writes.
* </pre>
*/
java.lang.String getUfsPath();
/**
* <code>optional string ufs_path = 8;</code>
*
* <pre>
* The following are only applicable for ufs writes.
* </pre>
*/
com.google.protobuf.ByteString
getUfsPathBytes();
// optional string owner = 9;
/**
* <code>optional string owner = 9;</code>
*/
boolean hasOwner();
/**
* <code>optional string owner = 9;</code>
*/
java.lang.String getOwner();
/**
* <code>optional string owner = 9;</code>
*/
com.google.protobuf.ByteString
getOwnerBytes();
// optional string group = 10;
/**
* <code>optional string group = 10;</code>
*/
boolean hasGroup();
/**
* <code>optional string group = 10;</code>
*/
java.lang.String getGroup();
/**
* <code>optional string group = 10;</code>
*/
com.google.protobuf.ByteString
getGroupBytes();
// optional int32 mode = 11;
/**
* <code>optional int32 mode = 11;</code>
*/
boolean hasMode();
/**
* <code>optional int32 mode = 11;</code>
*/
int getMode();
// optional int64 mount_id = 12;
/**
* <code>optional int64 mount_id = 12;</code>
*/
boolean hasMountId();
/**
* <code>optional int64 mount_id = 12;</code>
*/
long getMountId();
}
/**
* Protobuf type {@code alluxio.proto.dataserver.WriteRequest}
*
* <pre>
* The write request.
* next available id: 13
* </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;
sessionId_ = input.readInt64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
tier_ = input.readInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
eof_ = input.readBool();
break;
}
case 56: {
bitField0_ |= 0x00000040;
cancel_ = input.readBool();
break;
}
case 66: {
bitField0_ |= 0x00000080;
ufsPath_ = input.readBytes();
break;
}
case 74: {
bitField0_ |= 0x00000100;
owner_ = input.readBytes();
break;
}
case 82: {
bitField0_ |= 0x00000200;
group_ = input.readBytes();
break;
}
case 88: {
bitField0_ |= 0x00000400;
mode_ = input.readInt32();
break;
}
case 96: {
bitField0_ |= 0x00000800;
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_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 int64 session_id = 4;
public static final int SESSION_ID_FIELD_NUMBER = 4;
private long sessionId_;
/**
* <code>optional int64 session_id = 4;</code>
*/
public boolean hasSessionId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int64 session_id = 4;</code>
*/
public long getSessionId() {
return sessionId_;
}
// optional int32 tier = 5;
public static final int TIER_FIELD_NUMBER = 5;
private int tier_;
/**
* <code>optional int32 tier = 5;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
public boolean hasTier() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional int32 tier = 5;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
public int getTier() {
return tier_;
}
// optional bool eof = 6;
public static final int EOF_FIELD_NUMBER = 6;
private boolean eof_;
/**
* <code>optional bool eof = 6;</code>
*/
public boolean hasEof() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional bool eof = 6;</code>
*/
public boolean getEof() {
return eof_;
}
// optional bool cancel = 7;
public static final int CANCEL_FIELD_NUMBER = 7;
private boolean cancel_;
/**
* <code>optional bool cancel = 7;</code>
*/
public boolean hasCancel() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional bool cancel = 7;</code>
*/
public boolean getCancel() {
return cancel_;
}
// optional string ufs_path = 8;
public static final int UFS_PATH_FIELD_NUMBER = 8;
private java.lang.Object ufsPath_;
/**
* <code>optional string ufs_path = 8;</code>
*
* <pre>
* The following are only applicable for ufs writes.
* </pre>
*/
public boolean hasUfsPath() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional string ufs_path = 8;</code>
*
* <pre>
* The following are only applicable for ufs writes.
* </pre>
*/
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 = 8;</code>
*
* <pre>
* The following are only applicable for ufs writes.
* </pre>
*/
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 = 9;
public static final int OWNER_FIELD_NUMBER = 9;
private java.lang.Object owner_;
/**
* <code>optional string owner = 9;</code>
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional string owner = 9;</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 = 9;</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 = 10;
public static final int GROUP_FIELD_NUMBER = 10;
private java.lang.Object group_;
/**
* <code>optional string group = 10;</code>
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional string group = 10;</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 = 10;</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 = 11;
public static final int MODE_FIELD_NUMBER = 11;
private int mode_;
/**
* <code>optional int32 mode = 11;</code>
*/
public boolean hasMode() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional int32 mode = 11;</code>
*/
public int getMode() {
return mode_;
}
// optional int64 mount_id = 12;
public static final int MOUNT_ID_FIELD_NUMBER = 12;
private long mountId_;
/**
* <code>optional int64 mount_id = 12;</code>
*/
public boolean hasMountId() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional int64 mount_id = 12;</code>
*/
public long getMountId() {
return mountId_;
}
private void initFields() {
type_ = alluxio.proto.dataserver.Protocol.RequestType.ALLUXIO_BLOCK;
id_ = 0L;
offset_ = 0L;
sessionId_ = 0L;
tier_ = 0;
eof_ = false;
cancel_ = false;
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.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.writeInt64(4, sessionId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, tier_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(6, eof_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(7, cancel_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBytes(8, getUfsPathBytes());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeBytes(9, getOwnerBytes());
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeBytes(10, getGroupBytes());
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeInt32(11, mode_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeInt64(12, 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
.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
.computeInt64Size(4, sessionId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, tier_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, eof_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, cancel_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, getUfsPathBytes());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, getOwnerBytes());
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, getGroupBytes());
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, mode_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, 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.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: 13
* </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) {
}
}
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);
sessionId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
tier_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
eof_ = false;
bitField0_ = (bitField0_ & ~0x00000020);
cancel_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
ufsPath_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
owner_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
group_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
mode_ = 0;
bitField0_ = (bitField0_ & ~0x00000400);
mountId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000800);
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.sessionId_ = sessionId_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.tier_ = tier_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.eof_ = eof_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.cancel_ = cancel_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.ufsPath_ = ufsPath_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.owner_ = owner_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.mode_ = mode_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
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.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.hasSessionId()) {
setSessionId(other.getSessionId());
}
if (other.hasTier()) {
setTier(other.getTier());
}
if (other.hasEof()) {
setEof(other.getEof());
}
if (other.hasCancel()) {
setCancel(other.getCancel());
}
if (other.hasUfsPath()) {
bitField0_ |= 0x00000080;
ufsPath_ = other.ufsPath_;
onChanged();
}
if (other.hasOwner()) {
bitField0_ |= 0x00000100;
owner_ = other.owner_;
onChanged();
}
if (other.hasGroup()) {
bitField0_ |= 0x00000200;
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.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 int64 session_id = 4;
private long sessionId_ ;
/**
* <code>optional int64 session_id = 4;</code>
*/
public boolean hasSessionId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int64 session_id = 4;</code>
*/
public long getSessionId() {
return sessionId_;
}
/**
* <code>optional int64 session_id = 4;</code>
*/
public Builder setSessionId(long value) {
bitField0_ |= 0x00000008;
sessionId_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 session_id = 4;</code>
*/
public Builder clearSessionId() {
bitField0_ = (bitField0_ & ~0x00000008);
sessionId_ = 0L;
onChanged();
return this;
}
// optional int32 tier = 5;
private int tier_ ;
/**
* <code>optional int32 tier = 5;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
public boolean hasTier() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional int32 tier = 5;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
public int getTier() {
return tier_;
}
/**
* <code>optional int32 tier = 5;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
public Builder setTier(int value) {
bitField0_ |= 0x00000010;
tier_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 tier = 5;</code>
*
* <pre>
* This is only applicable for block write.
* </pre>
*/
public Builder clearTier() {
bitField0_ = (bitField0_ & ~0x00000010);
tier_ = 0;
onChanged();
return this;
}
// optional bool eof = 6;
private boolean eof_ ;
/**
* <code>optional bool eof = 6;</code>
*/
public boolean hasEof() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional bool eof = 6;</code>
*/
public boolean getEof() {
return eof_;
}
/**
* <code>optional bool eof = 6;</code>
*/
public Builder setEof(boolean value) {
bitField0_ |= 0x00000020;
eof_ = value;
onChanged();
return this;
}
/**
* <code>optional bool eof = 6;</code>
*/
public Builder clearEof() {
bitField0_ = (bitField0_ & ~0x00000020);
eof_ = false;
onChanged();
return this;
}
// optional bool cancel = 7;
private boolean cancel_ ;
/**
* <code>optional bool cancel = 7;</code>
*/
public boolean hasCancel() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional bool cancel = 7;</code>
*/
public boolean getCancel() {
return cancel_;
}
/**
* <code>optional bool cancel = 7;</code>
*/
public Builder setCancel(boolean value) {
bitField0_ |= 0x00000040;
cancel_ = value;
onChanged();
return this;
}
/**
* <code>optional bool cancel = 7;</code>
*/
public Builder clearCancel() {
bitField0_ = (bitField0_ & ~0x00000040);
cancel_ = false;
onChanged();
return this;
}
// optional string ufs_path = 8;
private java.lang.Object ufsPath_ = "";
/**
* <code>optional string ufs_path = 8;</code>
*
* <pre>
* The following are only applicable for ufs writes.
* </pre>
*/
public boolean hasUfsPath() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional string ufs_path = 8;</code>
*
* <pre>
* The following are only applicable for ufs writes.
* </pre>
*/
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 = 8;</code>
*
* <pre>
* The following are only applicable for ufs writes.
* </pre>
*/
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 = 8;</code>
*
* <pre>
* The following are only applicable for ufs writes.
* </pre>
*/
public Builder setUfsPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
ufsPath_ = value;
onChanged();
return this;
}
/**
* <code>optional string ufs_path = 8;</code>
*
* <pre>
* The following are only applicable for ufs writes.
* </pre>
*/
public Builder clearUfsPath() {
bitField0_ = (bitField0_ & ~0x00000080);
ufsPath_ = getDefaultInstance().getUfsPath();
onChanged();
return this;
}
/**
* <code>optional string ufs_path = 8;</code>
*
* <pre>
* The following are only applicable for ufs writes.
* </pre>
*/
public Builder setUfsPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
ufsPath_ = value;
onChanged();
return this;
}
// optional string owner = 9;
private java.lang.Object owner_ = "";
/**
* <code>optional string owner = 9;</code>
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional string owner = 9;</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 = 9;</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 = 9;</code>
*/
public Builder setOwner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
owner_ = value;
onChanged();
return this;
}
/**
* <code>optional string owner = 9;</code>
*/
public Builder clearOwner() {
bitField0_ = (bitField0_ & ~0x00000100);
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
/**
* <code>optional string owner = 9;</code>
*/
public Builder setOwnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
owner_ = value;
onChanged();
return this;
}
// optional string group = 10;
private java.lang.Object group_ = "";
/**
* <code>optional string group = 10;</code>
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional string group = 10;</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 = 10;</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 = 10;</code>
*/
public Builder setGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
group_ = value;
onChanged();
return this;
}
/**
* <code>optional string group = 10;</code>
*/
public Builder clearGroup() {
bitField0_ = (bitField0_ & ~0x00000200);
group_ = getDefaultInstance().getGroup();
onChanged();
return this;
}
/**
* <code>optional string group = 10;</code>
*/
public Builder setGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
group_ = value;
onChanged();
return this;
}
// optional int32 mode = 11;
private int mode_ ;
/**
* <code>optional int32 mode = 11;</code>
*/
public boolean hasMode() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional int32 mode = 11;</code>
*/
public int getMode() {
return mode_;
}
/**
* <code>optional int32 mode = 11;</code>
*/
public Builder setMode(int value) {
bitField0_ |= 0x00000400;
mode_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 mode = 11;</code>
*/
public Builder clearMode() {
bitField0_ = (bitField0_ & ~0x00000400);
mode_ = 0;
onChanged();
return this;
}
// optional int64 mount_id = 12;
private long mountId_ ;
/**
* <code>optional int64 mount_id = 12;</code>
*/
public boolean hasMountId() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional int64 mount_id = 12;</code>
*/
public long getMountId() {
return mountId_;
}
/**
* <code>optional int64 mount_id = 12;</code>
*/
public Builder setMountId(long value) {
bitField0_ |= 0x00000800;
mountId_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 mount_id = 12;</code>
*/
public Builder clearMountId() {
bitField0_ = (bitField0_ & ~0x00000800);
mountId_ = 0L;
onChanged();
return this;
}
// @@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 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: 2
* </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: 2
* </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 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)
}
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_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_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_Heartbeat_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_alluxio_proto_dataserver_Heartbeat_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\"\312" +
"\001\n\013ReadRequest\0223\n\004type\030\001 \001(\0162%.alluxio.p" +
"roto.dataserver.RequestType\022\n\n\002id\030\002 \001(\003\022" +
"\016\n\006offset\030\003 \001(\003\022\016\n\006length\030\004 \001(\003\022\016\n\006cance" +
"l\030\005 \001(\010\022\017\n\007lock_id\030\006 \001(\003\022\022\n\nsession_id\030\007" +
" \001(\003\022\020\n\010no_cache\030\010 \001(\010\022\023\n\013packet_size\030\t " +
"\001(\003\"\356\001\n\014WriteRequest\0223\n\004type\030\001 \001(\0162%.all" +
"uxio.proto.dataserver.RequestType\022\n\n\002id\030" +
"\002 \001(\003\022\016\n\006offset\030\003 \001(\003\022\022\n\nsession_id\030\004 \001(",
"\003\022\014\n\004tier\030\005 \001(\005\022\013\n\003eof\030\006 \001(\010\022\016\n\006cancel\030\007" +
" \001(\010\022\020\n\010ufs_path\030\010 \001(\t\022\r\n\005owner\030\t \001(\t\022\r\n" +
"\005group\030\n \001(\t\022\014\n\004mode\030\013 \001(\005\022\020\n\010mount_id\030\014" +
" \001(\003\"J\n\010Response\022-\n\006status\030\001 \001(\0162\035.allux" +
"io.proto.status.PStatus\022\017\n\007message\030\002 \001(\t" +
"\"\013\n\tHeartbeat*=\n\013RequestType\022\021\n\rALLUXIO_" +
"BLOCK\020\000\022\014\n\010UFS_FILE\020\001\022\r\n\tUFS_BLOCK\020\002"
};
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[] { "Type", "Id", "Offset", "Length", "Cancel", "LockId", "SessionId", "NoCache", "PacketSize", });
internal_static_alluxio_proto_dataserver_WriteRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
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", "SessionId", "Tier", "Eof", "Cancel", "UfsPath", "Owner", "Group", "Mode", "MountId", });
internal_static_alluxio_proto_dataserver_Response_descriptor =
getDescriptor().getMessageTypes().get(2);
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_Heartbeat_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_alluxio_proto_dataserver_Heartbeat_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_alluxio_proto_dataserver_Heartbeat_descriptor,
new java.lang.String[] { });
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)
}