alluxio.grpc.SnapshotData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alluxio-shaded-hadoop3-client Show documentation
Show all versions of alluxio-shaded-hadoop3-client Show documentation
Shaded Alluxio Client Module for hadoop 3
// Generated by the protocol buffer alluxio.shaded.client.com.iler. DO NOT EDIT!
// source: grpc/raft_journal.proto
package alluxio.grpc;
/**
* Protobuf type {@code alluxio.grpc.meta.SnapshotData}
*/
public final class SnapshotData extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:alluxio.grpc.meta.SnapshotData)
SnapshotDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use SnapshotData.newBuilder() to construct.
private SnapshotData(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private SnapshotData() {
chunk_ = alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SnapshotData();
}
@java.lang.Override
public final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.grpc.RaftJournalProto.internal_static_alluxio_grpc_meta_SnapshotData_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.RaftJournalProto.internal_static_alluxio_grpc_meta_SnapshotData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.SnapshotData.class, alluxio.grpc.SnapshotData.Builder.class);
}
private int bitField0_;
public static final int SNAPSHOTTERM_FIELD_NUMBER = 1;
private long snapshotTerm_;
/**
* optional int64 snapshotTerm = 1;
* @return Whether the snapshotTerm field is set.
*/
@java.lang.Override
public boolean hasSnapshotTerm() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 snapshotTerm = 1;
* @return The snapshotTerm.
*/
@java.lang.Override
public long getSnapshotTerm() {
return snapshotTerm_;
}
public static final int SNAPSHOTINDEX_FIELD_NUMBER = 2;
private long snapshotIndex_;
/**
* optional int64 snapshotIndex = 2;
* @return Whether the snapshotIndex field is set.
*/
@java.lang.Override
public boolean hasSnapshotIndex() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 snapshotIndex = 2;
* @return The snapshotIndex.
*/
@java.lang.Override
public long getSnapshotIndex() {
return snapshotIndex_;
}
public static final int CHUNK_FIELD_NUMBER = 3;
private alluxio.shaded.client.com.google.protobuf.ByteString chunk_;
/**
* optional bytes chunk = 3;
* @return Whether the chunk field is set.
*/
@java.lang.Override
public boolean hasChunk() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bytes chunk = 3;
* @return The chunk.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString getChunk() {
return chunk_;
}
public static final int OFFSET_FIELD_NUMBER = 4;
private long offset_;
/**
* optional int64 offset = 4 [deprecated = true];
* @deprecated
* @return Whether the offset field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasOffset() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int64 offset = 4 [deprecated = true];
* @deprecated
* @return The offset.
*/
@java.lang.Override
@java.lang.Deprecated public long getOffset() {
return offset_;
}
public static final int EOF_FIELD_NUMBER = 5;
private boolean eof_;
/**
* optional bool eof = 5 [deprecated = true];
* @deprecated
* @return Whether the eof field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasEof() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bool eof = 5 [deprecated = true];
* @deprecated
* @return The eof.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getEof() {
return eof_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(alluxio.shaded.client.com.google.protobuf.CodedOutputStream output)
throws java.alluxio.shaded.client.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, snapshotTerm_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, snapshotIndex_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBytes(3, chunk_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(4, offset_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(5, eof_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(1, snapshotTerm_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(2, snapshotIndex_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBytesSize(3, chunk_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(4, offset_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(5, eof_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof alluxio.grpc.SnapshotData)) {
return super.equals(obj);
}
alluxio.grpc.SnapshotData other = (alluxio.grpc.SnapshotData) obj;
if (hasSnapshotTerm() != other.hasSnapshotTerm()) return false;
if (hasSnapshotTerm()) {
if (getSnapshotTerm()
!= other.getSnapshotTerm()) return false;
}
if (hasSnapshotIndex() != other.hasSnapshotIndex()) return false;
if (hasSnapshotIndex()) {
if (getSnapshotIndex()
!= other.getSnapshotIndex()) return false;
}
if (hasChunk() != other.hasChunk()) return false;
if (hasChunk()) {
if (!getChunk()
.equals(other.getChunk())) return false;
}
if (hasOffset() != other.hasOffset()) return false;
if (hasOffset()) {
if (getOffset()
!= other.getOffset()) return false;
}
if (hasEof() != other.hasEof()) return false;
if (hasEof()) {
if (getEof()
!= other.getEof()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSnapshotTerm()) {
hash = (37 * hash) + SNAPSHOTTERM_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getSnapshotTerm());
}
if (hasSnapshotIndex()) {
hash = (37 * hash) + SNAPSHOTINDEX_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getSnapshotIndex());
}
if (hasChunk()) {
hash = (37 * hash) + CHUNK_FIELD_NUMBER;
hash = (53 * hash) + getChunk().hashCode();
}
if (hasOffset()) {
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getOffset());
}
if (hasEof()) {
hash = (37 * hash) + EOF_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getEof());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static alluxio.grpc.SnapshotData parseFrom(
java.nio.ByteBuffer data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.SnapshotData parseFrom(
java.nio.ByteBuffer data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.SnapshotData parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.SnapshotData parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.SnapshotData parseFrom(byte[] data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.SnapshotData parseFrom(
byte[] data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.SnapshotData parseFrom(java.alluxio.shaded.client.io.InputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static alluxio.grpc.SnapshotData parseFrom(
java.alluxio.shaded.client.io.InputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static alluxio.grpc.SnapshotData parseDelimitedFrom(java.alluxio.shaded.client.io.InputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static alluxio.grpc.SnapshotData parseDelimitedFrom(
java.alluxio.shaded.client.io.InputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static alluxio.grpc.SnapshotData parseFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static alluxio.grpc.SnapshotData parseFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(alluxio.grpc.SnapshotData prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.grpc.meta.SnapshotData}
*/
public static final class Builder extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:alluxio.grpc.meta.SnapshotData)
alluxio.grpc.SnapshotDataOrBuilder {
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.grpc.RaftJournalProto.internal_static_alluxio_grpc_meta_SnapshotData_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.RaftJournalProto.internal_static_alluxio_grpc_meta_SnapshotData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.SnapshotData.class, alluxio.grpc.SnapshotData.Builder.class);
}
// Construct using alluxio.grpc.SnapshotData.newBuilder()
private Builder() {
}
private Builder(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
snapshotTerm_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
snapshotIndex_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
chunk_ = alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
offset_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
eof_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.grpc.RaftJournalProto.internal_static_alluxio_grpc_meta_SnapshotData_descriptor;
}
@java.lang.Override
public alluxio.grpc.SnapshotData getDefaultInstanceForType() {
return alluxio.grpc.SnapshotData.getDefaultInstance();
}
@java.lang.Override
public alluxio.grpc.SnapshotData build() {
alluxio.grpc.SnapshotData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public alluxio.grpc.SnapshotData buildPartial() {
alluxio.grpc.SnapshotData result = new alluxio.grpc.SnapshotData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.snapshotTerm_ = snapshotTerm_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.snapshotIndex_ = snapshotIndex_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.chunk_ = chunk_;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.offset_ = offset_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.eof_ = eof_;
to_bitField0_ |= 0x00000010;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
alluxio.shaded.client.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(alluxio.shaded.client.com.google.protobuf.Message other) {
if (other instanceof alluxio.grpc.SnapshotData) {
return mergeFrom((alluxio.grpc.SnapshotData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.grpc.SnapshotData other) {
if (other == alluxio.grpc.SnapshotData.getDefaultInstance()) return this;
if (other.hasSnapshotTerm()) {
setSnapshotTerm(other.getSnapshotTerm());
}
if (other.hasSnapshotIndex()) {
setSnapshotIndex(other.getSnapshotIndex());
}
if (other.hasChunk()) {
setChunk(other.getChunk());
}
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (other.hasEof()) {
setEof(other.getEof());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
snapshotTerm_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
snapshotIndex_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
chunk_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
offset_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
eof_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long snapshotTerm_ ;
/**
* optional int64 snapshotTerm = 1;
* @return Whether the snapshotTerm field is set.
*/
@java.lang.Override
public boolean hasSnapshotTerm() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 snapshotTerm = 1;
* @return The snapshotTerm.
*/
@java.lang.Override
public long getSnapshotTerm() {
return snapshotTerm_;
}
/**
* optional int64 snapshotTerm = 1;
* @param value The snapshotTerm to set.
* @return This builder for chaining.
*/
public Builder setSnapshotTerm(long value) {
bitField0_ |= 0x00000001;
snapshotTerm_ = value;
onChanged();
return this;
}
/**
* optional int64 snapshotTerm = 1;
* @return This builder for chaining.
*/
public Builder clearSnapshotTerm() {
bitField0_ = (bitField0_ & ~0x00000001);
snapshotTerm_ = 0L;
onChanged();
return this;
}
private long snapshotIndex_ ;
/**
* optional int64 snapshotIndex = 2;
* @return Whether the snapshotIndex field is set.
*/
@java.lang.Override
public boolean hasSnapshotIndex() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 snapshotIndex = 2;
* @return The snapshotIndex.
*/
@java.lang.Override
public long getSnapshotIndex() {
return snapshotIndex_;
}
/**
* optional int64 snapshotIndex = 2;
* @param value The snapshotIndex to set.
* @return This builder for chaining.
*/
public Builder setSnapshotIndex(long value) {
bitField0_ |= 0x00000002;
snapshotIndex_ = value;
onChanged();
return this;
}
/**
* optional int64 snapshotIndex = 2;
* @return This builder for chaining.
*/
public Builder clearSnapshotIndex() {
bitField0_ = (bitField0_ & ~0x00000002);
snapshotIndex_ = 0L;
onChanged();
return this;
}
private alluxio.shaded.client.com.google.protobuf.ByteString chunk_ = alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes chunk = 3;
* @return Whether the chunk field is set.
*/
@java.lang.Override
public boolean hasChunk() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bytes chunk = 3;
* @return The chunk.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString getChunk() {
return chunk_;
}
/**
* optional bytes chunk = 3;
* @param value The chunk to set.
* @return This builder for chaining.
*/
public Builder setChunk(alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
chunk_ = value;
onChanged();
return this;
}
/**
* optional bytes chunk = 3;
* @return This builder for chaining.
*/
public Builder clearChunk() {
bitField0_ = (bitField0_ & ~0x00000004);
chunk_ = getDefaultInstance().getChunk();
onChanged();
return this;
}
private long offset_ ;
/**
* optional int64 offset = 4 [deprecated = true];
* @deprecated
* @return Whether the offset field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasOffset() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int64 offset = 4 [deprecated = true];
* @deprecated
* @return The offset.
*/
@java.lang.Override
@java.lang.Deprecated public long getOffset() {
return offset_;
}
/**
* optional int64 offset = 4 [deprecated = true];
* @deprecated
* @param value The offset to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setOffset(long value) {
bitField0_ |= 0x00000008;
offset_ = value;
onChanged();
return this;
}
/**
* optional int64 offset = 4 [deprecated = true];
* @deprecated
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000008);
offset_ = 0L;
onChanged();
return this;
}
private boolean eof_ ;
/**
* optional bool eof = 5 [deprecated = true];
* @deprecated
* @return Whether the eof field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasEof() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bool eof = 5 [deprecated = true];
* @deprecated
* @return The eof.
*/
@java.lang.Override
@java.lang.Deprecated public boolean getEof() {
return eof_;
}
/**
* optional bool eof = 5 [deprecated = true];
* @deprecated
* @param value The eof to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setEof(boolean value) {
bitField0_ |= 0x00000010;
eof_ = value;
onChanged();
return this;
}
/**
* optional bool eof = 5 [deprecated = true];
* @deprecated
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearEof() {
bitField0_ = (bitField0_ & ~0x00000010);
eof_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:alluxio.grpc.meta.SnapshotData)
}
// @@protoc_insertion_point(class_scope:alluxio.grpc.meta.SnapshotData)
private static final alluxio.grpc.SnapshotData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new alluxio.grpc.SnapshotData();
}
public static alluxio.grpc.SnapshotData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final alluxio.shaded.client.com.google.protobuf.Parser
PARSER = new alluxio.shaded.client.com.google.protobuf.AbstractParser() {
@java.lang.Override
public SnapshotData parsePartialFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (alluxio.shaded.client.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.alluxio.shaded.client.io.IOException e) {
throw new alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static alluxio.shaded.client.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public alluxio.grpc.SnapshotData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}