cz.proto.FileRange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: input_split.proto
package cz.proto;
/**
* Protobuf type {@code cz.proto.FileRange}
*/
public final class FileRange extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.FileRange)
FileRangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileRange.newBuilder() to construct.
private FileRange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileRange() {
path_ = "";
deltaFiles_ = java.util.Collections.emptyList();
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileRange();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FileRange(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
case 16: {
offset_ = input.readInt64();
break;
}
case 24: {
size_ = input.readInt64();
break;
}
case 34: {
cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder subBuilder = null;
if (valueInfo_ != null) {
subBuilder = valueInfo_.toBuilder();
}
valueInfo_ = input.readMessage(cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(valueInfo_);
valueInfo_ = subBuilder.buildPartial();
}
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
deltaFiles_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
deltaFiles_.add(
input.readMessage(cz.proto.FileRange.parser(), extensionRegistry));
break;
}
case 48: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 58: {
cz.proto.FileFieldStats.Builder subBuilder = null;
if (fieldStats_ != null) {
subBuilder = fieldStats_.toBuilder();
}
fieldStats_ = input.readMessage(cz.proto.FileFieldStats.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fieldStats_);
fieldStats_ = subBuilder.buildPartial();
}
break;
}
case 64: {
bitField0_ |= 0x00000001;
totalFileSize_ = input.readInt64();
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).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
deltaFiles_ = java.util.Collections.unmodifiableList(deltaFiles_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.FileRange.class, cz.proto.FileRange.Builder.class);
}
private int bitField0_;
public static final int PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object path_;
/**
* string path = 1;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
}
}
/**
* string path = 1;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OFFSET_FIELD_NUMBER = 2;
private long offset_;
/**
* int64 offset = 2;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
public static final int SIZE_FIELD_NUMBER = 3;
private long size_;
/**
* int64 size = 3;
* @return The size.
*/
@java.lang.Override
public long getSize() {
return size_;
}
public static final int VALUE_INFO_FIELD_NUMBER = 4;
private cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo valueInfo_;
/**
* .cz.proto.VirtualValueInfo value_info = 4;
* @return Whether the valueInfo field is set.
*/
@java.lang.Override
public boolean hasValueInfo() {
return valueInfo_ != null;
}
/**
* .cz.proto.VirtualValueInfo value_info = 4;
* @return The valueInfo.
*/
@java.lang.Override
public cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo getValueInfo() {
return valueInfo_ == null ? cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.getDefaultInstance() : valueInfo_;
}
/**
* .cz.proto.VirtualValueInfo value_info = 4;
*/
@java.lang.Override
public cz.proto.VirtualValueInfoOuterClass.VirtualValueInfoOrBuilder getValueInfoOrBuilder() {
return getValueInfo();
}
public static final int DELTA_FILES_FIELD_NUMBER = 5;
private java.util.List deltaFiles_;
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
@java.lang.Override
public java.util.List getDeltaFilesList() {
return deltaFiles_;
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
@java.lang.Override
public java.util.List extends cz.proto.FileRangeOrBuilder>
getDeltaFilesOrBuilderList() {
return deltaFiles_;
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
@java.lang.Override
public int getDeltaFilesCount() {
return deltaFiles_.size();
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
@java.lang.Override
public cz.proto.FileRange getDeltaFiles(int index) {
return deltaFiles_.get(index);
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
@java.lang.Override
public cz.proto.FileRangeOrBuilder getDeltaFilesOrBuilder(
int index) {
return deltaFiles_.get(index);
}
public static final int TYPE_FIELD_NUMBER = 6;
private int type_;
/**
* .cz.proto.FileRangeType type = 6;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .cz.proto.FileRangeType type = 6;
* @return The type.
*/
@java.lang.Override public cz.proto.FileRangeType getType() {
@SuppressWarnings("deprecation")
cz.proto.FileRangeType result = cz.proto.FileRangeType.valueOf(type_);
return result == null ? cz.proto.FileRangeType.UNRECOGNIZED : result;
}
public static final int FIELD_STATS_FIELD_NUMBER = 7;
private cz.proto.FileFieldStats fieldStats_;
/**
* .cz.proto.FileFieldStats field_stats = 7;
* @return Whether the fieldStats field is set.
*/
@java.lang.Override
public boolean hasFieldStats() {
return fieldStats_ != null;
}
/**
* .cz.proto.FileFieldStats field_stats = 7;
* @return The fieldStats.
*/
@java.lang.Override
public cz.proto.FileFieldStats getFieldStats() {
return fieldStats_ == null ? cz.proto.FileFieldStats.getDefaultInstance() : fieldStats_;
}
/**
* .cz.proto.FileFieldStats field_stats = 7;
*/
@java.lang.Override
public cz.proto.FileFieldStatsOrBuilder getFieldStatsOrBuilder() {
return getFieldStats();
}
public static final int TOTAL_FILE_SIZE_FIELD_NUMBER = 8;
private long totalFileSize_;
/**
* optional int64 total_file_size = 8;
* @return Whether the totalFileSize field is set.
*/
@java.lang.Override
public boolean hasTotalFileSize() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 total_file_size = 8;
* @return The totalFileSize.
*/
@java.lang.Override
public long getTotalFileSize() {
return totalFileSize_;
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_);
}
if (offset_ != 0L) {
output.writeInt64(2, offset_);
}
if (size_ != 0L) {
output.writeInt64(3, size_);
}
if (valueInfo_ != null) {
output.writeMessage(4, getValueInfo());
}
for (int i = 0; i < deltaFiles_.size(); i++) {
output.writeMessage(5, deltaFiles_.get(i));
}
if (type_ != cz.proto.FileRangeType.NORMAL_FILE.getNumber()) {
output.writeEnum(6, type_);
}
if (fieldStats_ != null) {
output.writeMessage(7, getFieldStats());
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(8, totalFileSize_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_);
}
if (offset_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, offset_);
}
if (size_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, size_);
}
if (valueInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getValueInfo());
}
for (int i = 0; i < deltaFiles_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, deltaFiles_.get(i));
}
if (type_ != cz.proto.FileRangeType.NORMAL_FILE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, type_);
}
if (fieldStats_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getFieldStats());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, totalFileSize_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.proto.FileRange)) {
return super.equals(obj);
}
cz.proto.FileRange other = (cz.proto.FileRange) obj;
if (!getPath()
.equals(other.getPath())) return false;
if (getOffset()
!= other.getOffset()) return false;
if (getSize()
!= other.getSize()) return false;
if (hasValueInfo() != other.hasValueInfo()) return false;
if (hasValueInfo()) {
if (!getValueInfo()
.equals(other.getValueInfo())) return false;
}
if (!getDeltaFilesList()
.equals(other.getDeltaFilesList())) return false;
if (type_ != other.type_) return false;
if (hasFieldStats() != other.hasFieldStats()) return false;
if (hasFieldStats()) {
if (!getFieldStats()
.equals(other.getFieldStats())) return false;
}
if (hasTotalFileSize() != other.hasTotalFileSize()) return false;
if (hasTotalFileSize()) {
if (getTotalFileSize()
!= other.getTotalFileSize()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOffset());
hash = (37 * hash) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSize());
if (hasValueInfo()) {
hash = (37 * hash) + VALUE_INFO_FIELD_NUMBER;
hash = (53 * hash) + getValueInfo().hashCode();
}
if (getDeltaFilesCount() > 0) {
hash = (37 * hash) + DELTA_FILES_FIELD_NUMBER;
hash = (53 * hash) + getDeltaFilesList().hashCode();
}
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (hasFieldStats()) {
hash = (37 * hash) + FIELD_STATS_FIELD_NUMBER;
hash = (53 * hash) + getFieldStats().hashCode();
}
if (hasTotalFileSize()) {
hash = (37 * hash) + TOTAL_FILE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalFileSize());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.FileRange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FileRange parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FileRange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FileRange parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FileRange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FileRange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FileRange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.FileRange parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cz.proto.FileRange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.FileRange parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cz.proto.FileRange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.FileRange parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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(cz.proto.FileRange 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cz.proto.FileRange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.FileRange)
cz.proto.FileRangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.FileRange.class, cz.proto.FileRange.Builder.class);
}
// Construct using cz.proto.FileRange.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDeltaFilesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
path_ = "";
offset_ = 0L;
size_ = 0L;
if (valueInfoBuilder_ == null) {
valueInfo_ = null;
} else {
valueInfo_ = null;
valueInfoBuilder_ = null;
}
if (deltaFilesBuilder_ == null) {
deltaFiles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
deltaFilesBuilder_.clear();
}
type_ = 0;
if (fieldStatsBuilder_ == null) {
fieldStats_ = null;
} else {
fieldStats_ = null;
fieldStatsBuilder_ = null;
}
totalFileSize_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRange_descriptor;
}
@java.lang.Override
public cz.proto.FileRange getDefaultInstanceForType() {
return cz.proto.FileRange.getDefaultInstance();
}
@java.lang.Override
public cz.proto.FileRange build() {
cz.proto.FileRange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.FileRange buildPartial() {
cz.proto.FileRange result = new cz.proto.FileRange(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.path_ = path_;
result.offset_ = offset_;
result.size_ = size_;
if (valueInfoBuilder_ == null) {
result.valueInfo_ = valueInfo_;
} else {
result.valueInfo_ = valueInfoBuilder_.build();
}
if (deltaFilesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
deltaFiles_ = java.util.Collections.unmodifiableList(deltaFiles_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.deltaFiles_ = deltaFiles_;
} else {
result.deltaFiles_ = deltaFilesBuilder_.build();
}
result.type_ = type_;
if (fieldStatsBuilder_ == null) {
result.fieldStats_ = fieldStats_;
} else {
result.fieldStats_ = fieldStatsBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.totalFileSize_ = totalFileSize_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cz.proto.FileRange) {
return mergeFrom((cz.proto.FileRange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.FileRange other) {
if (other == cz.proto.FileRange.getDefaultInstance()) return this;
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
if (other.getOffset() != 0L) {
setOffset(other.getOffset());
}
if (other.getSize() != 0L) {
setSize(other.getSize());
}
if (other.hasValueInfo()) {
mergeValueInfo(other.getValueInfo());
}
if (deltaFilesBuilder_ == null) {
if (!other.deltaFiles_.isEmpty()) {
if (deltaFiles_.isEmpty()) {
deltaFiles_ = other.deltaFiles_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDeltaFilesIsMutable();
deltaFiles_.addAll(other.deltaFiles_);
}
onChanged();
}
} else {
if (!other.deltaFiles_.isEmpty()) {
if (deltaFilesBuilder_.isEmpty()) {
deltaFilesBuilder_.dispose();
deltaFilesBuilder_ = null;
deltaFiles_ = other.deltaFiles_;
bitField0_ = (bitField0_ & ~0x00000001);
deltaFilesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDeltaFilesFieldBuilder() : null;
} else {
deltaFilesBuilder_.addAllMessages(other.deltaFiles_);
}
}
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.hasFieldStats()) {
mergeFieldStats(other.getFieldStats());
}
if (other.hasTotalFileSize()) {
setTotalFileSize(other.getTotalFileSize());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cz.proto.FileRange parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.FileRange) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object path_ = "";
/**
* string path = 1;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string path = 1;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string path = 1;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
* string path = 1;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* string path = 1;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
onChanged();
return this;
}
private long offset_ ;
/**
* int64 offset = 2;
* @return The offset.
*/
@java.lang.Override
public long getOffset() {
return offset_;
}
/**
* int64 offset = 2;
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(long value) {
offset_ = value;
onChanged();
return this;
}
/**
* int64 offset = 2;
* @return This builder for chaining.
*/
public Builder clearOffset() {
offset_ = 0L;
onChanged();
return this;
}
private long size_ ;
/**
* int64 size = 3;
* @return The size.
*/
@java.lang.Override
public long getSize() {
return size_;
}
/**
* int64 size = 3;
* @param value The size to set.
* @return This builder for chaining.
*/
public Builder setSize(long value) {
size_ = value;
onChanged();
return this;
}
/**
* int64 size = 3;
* @return This builder for chaining.
*/
public Builder clearSize() {
size_ = 0L;
onChanged();
return this;
}
private cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo valueInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfoOrBuilder> valueInfoBuilder_;
/**
* .cz.proto.VirtualValueInfo value_info = 4;
* @return Whether the valueInfo field is set.
*/
public boolean hasValueInfo() {
return valueInfoBuilder_ != null || valueInfo_ != null;
}
/**
* .cz.proto.VirtualValueInfo value_info = 4;
* @return The valueInfo.
*/
public cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo getValueInfo() {
if (valueInfoBuilder_ == null) {
return valueInfo_ == null ? cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.getDefaultInstance() : valueInfo_;
} else {
return valueInfoBuilder_.getMessage();
}
}
/**
* .cz.proto.VirtualValueInfo value_info = 4;
*/
public Builder setValueInfo(cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo value) {
if (valueInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
valueInfo_ = value;
onChanged();
} else {
valueInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.VirtualValueInfo value_info = 4;
*/
public Builder setValueInfo(
cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder builderForValue) {
if (valueInfoBuilder_ == null) {
valueInfo_ = builderForValue.build();
onChanged();
} else {
valueInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.VirtualValueInfo value_info = 4;
*/
public Builder mergeValueInfo(cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo value) {
if (valueInfoBuilder_ == null) {
if (valueInfo_ != null) {
valueInfo_ =
cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.newBuilder(valueInfo_).mergeFrom(value).buildPartial();
} else {
valueInfo_ = value;
}
onChanged();
} else {
valueInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.VirtualValueInfo value_info = 4;
*/
public Builder clearValueInfo() {
if (valueInfoBuilder_ == null) {
valueInfo_ = null;
onChanged();
} else {
valueInfo_ = null;
valueInfoBuilder_ = null;
}
return this;
}
/**
* .cz.proto.VirtualValueInfo value_info = 4;
*/
public cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder getValueInfoBuilder() {
onChanged();
return getValueInfoFieldBuilder().getBuilder();
}
/**
* .cz.proto.VirtualValueInfo value_info = 4;
*/
public cz.proto.VirtualValueInfoOuterClass.VirtualValueInfoOrBuilder getValueInfoOrBuilder() {
if (valueInfoBuilder_ != null) {
return valueInfoBuilder_.getMessageOrBuilder();
} else {
return valueInfo_ == null ?
cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.getDefaultInstance() : valueInfo_;
}
}
/**
* .cz.proto.VirtualValueInfo value_info = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfoOrBuilder>
getValueInfoFieldBuilder() {
if (valueInfoBuilder_ == null) {
valueInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfoOrBuilder>(
getValueInfo(),
getParentForChildren(),
isClean());
valueInfo_ = null;
}
return valueInfoBuilder_;
}
private java.util.List deltaFiles_ =
java.util.Collections.emptyList();
private void ensureDeltaFilesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
deltaFiles_ = new java.util.ArrayList(deltaFiles_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FileRange, cz.proto.FileRange.Builder, cz.proto.FileRangeOrBuilder> deltaFilesBuilder_;
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public java.util.List getDeltaFilesList() {
if (deltaFilesBuilder_ == null) {
return java.util.Collections.unmodifiableList(deltaFiles_);
} else {
return deltaFilesBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public int getDeltaFilesCount() {
if (deltaFilesBuilder_ == null) {
return deltaFiles_.size();
} else {
return deltaFilesBuilder_.getCount();
}
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public cz.proto.FileRange getDeltaFiles(int index) {
if (deltaFilesBuilder_ == null) {
return deltaFiles_.get(index);
} else {
return deltaFilesBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public Builder setDeltaFiles(
int index, cz.proto.FileRange value) {
if (deltaFilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeltaFilesIsMutable();
deltaFiles_.set(index, value);
onChanged();
} else {
deltaFilesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public Builder setDeltaFiles(
int index, cz.proto.FileRange.Builder builderForValue) {
if (deltaFilesBuilder_ == null) {
ensureDeltaFilesIsMutable();
deltaFiles_.set(index, builderForValue.build());
onChanged();
} else {
deltaFilesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public Builder addDeltaFiles(cz.proto.FileRange value) {
if (deltaFilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeltaFilesIsMutable();
deltaFiles_.add(value);
onChanged();
} else {
deltaFilesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public Builder addDeltaFiles(
int index, cz.proto.FileRange value) {
if (deltaFilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeltaFilesIsMutable();
deltaFiles_.add(index, value);
onChanged();
} else {
deltaFilesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public Builder addDeltaFiles(
cz.proto.FileRange.Builder builderForValue) {
if (deltaFilesBuilder_ == null) {
ensureDeltaFilesIsMutable();
deltaFiles_.add(builderForValue.build());
onChanged();
} else {
deltaFilesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public Builder addDeltaFiles(
int index, cz.proto.FileRange.Builder builderForValue) {
if (deltaFilesBuilder_ == null) {
ensureDeltaFilesIsMutable();
deltaFiles_.add(index, builderForValue.build());
onChanged();
} else {
deltaFilesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public Builder addAllDeltaFiles(
java.lang.Iterable extends cz.proto.FileRange> values) {
if (deltaFilesBuilder_ == null) {
ensureDeltaFilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, deltaFiles_);
onChanged();
} else {
deltaFilesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public Builder clearDeltaFiles() {
if (deltaFilesBuilder_ == null) {
deltaFiles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
deltaFilesBuilder_.clear();
}
return this;
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public Builder removeDeltaFiles(int index) {
if (deltaFilesBuilder_ == null) {
ensureDeltaFilesIsMutable();
deltaFiles_.remove(index);
onChanged();
} else {
deltaFilesBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public cz.proto.FileRange.Builder getDeltaFilesBuilder(
int index) {
return getDeltaFilesFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public cz.proto.FileRangeOrBuilder getDeltaFilesOrBuilder(
int index) {
if (deltaFilesBuilder_ == null) {
return deltaFiles_.get(index); } else {
return deltaFilesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public java.util.List extends cz.proto.FileRangeOrBuilder>
getDeltaFilesOrBuilderList() {
if (deltaFilesBuilder_ != null) {
return deltaFilesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(deltaFiles_);
}
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public cz.proto.FileRange.Builder addDeltaFilesBuilder() {
return getDeltaFilesFieldBuilder().addBuilder(
cz.proto.FileRange.getDefaultInstance());
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public cz.proto.FileRange.Builder addDeltaFilesBuilder(
int index) {
return getDeltaFilesFieldBuilder().addBuilder(
index, cz.proto.FileRange.getDefaultInstance());
}
/**
* repeated .cz.proto.FileRange delta_files = 5;
*/
public java.util.List
getDeltaFilesBuilderList() {
return getDeltaFilesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FileRange, cz.proto.FileRange.Builder, cz.proto.FileRangeOrBuilder>
getDeltaFilesFieldBuilder() {
if (deltaFilesBuilder_ == null) {
deltaFilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FileRange, cz.proto.FileRange.Builder, cz.proto.FileRangeOrBuilder>(
deltaFiles_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
deltaFiles_ = null;
}
return deltaFilesBuilder_;
}
private int type_ = 0;
/**
* .cz.proto.FileRangeType type = 6;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .cz.proto.FileRangeType type = 6;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* .cz.proto.FileRangeType type = 6;
* @return The type.
*/
@java.lang.Override
public cz.proto.FileRangeType getType() {
@SuppressWarnings("deprecation")
cz.proto.FileRangeType result = cz.proto.FileRangeType.valueOf(type_);
return result == null ? cz.proto.FileRangeType.UNRECOGNIZED : result;
}
/**
* .cz.proto.FileRangeType type = 6;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(cz.proto.FileRangeType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .cz.proto.FileRangeType type = 6;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private cz.proto.FileFieldStats fieldStats_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.FileFieldStats, cz.proto.FileFieldStats.Builder, cz.proto.FileFieldStatsOrBuilder> fieldStatsBuilder_;
/**
* .cz.proto.FileFieldStats field_stats = 7;
* @return Whether the fieldStats field is set.
*/
public boolean hasFieldStats() {
return fieldStatsBuilder_ != null || fieldStats_ != null;
}
/**
* .cz.proto.FileFieldStats field_stats = 7;
* @return The fieldStats.
*/
public cz.proto.FileFieldStats getFieldStats() {
if (fieldStatsBuilder_ == null) {
return fieldStats_ == null ? cz.proto.FileFieldStats.getDefaultInstance() : fieldStats_;
} else {
return fieldStatsBuilder_.getMessage();
}
}
/**
* .cz.proto.FileFieldStats field_stats = 7;
*/
public Builder setFieldStats(cz.proto.FileFieldStats value) {
if (fieldStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fieldStats_ = value;
onChanged();
} else {
fieldStatsBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.FileFieldStats field_stats = 7;
*/
public Builder setFieldStats(
cz.proto.FileFieldStats.Builder builderForValue) {
if (fieldStatsBuilder_ == null) {
fieldStats_ = builderForValue.build();
onChanged();
} else {
fieldStatsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.FileFieldStats field_stats = 7;
*/
public Builder mergeFieldStats(cz.proto.FileFieldStats value) {
if (fieldStatsBuilder_ == null) {
if (fieldStats_ != null) {
fieldStats_ =
cz.proto.FileFieldStats.newBuilder(fieldStats_).mergeFrom(value).buildPartial();
} else {
fieldStats_ = value;
}
onChanged();
} else {
fieldStatsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.FileFieldStats field_stats = 7;
*/
public Builder clearFieldStats() {
if (fieldStatsBuilder_ == null) {
fieldStats_ = null;
onChanged();
} else {
fieldStats_ = null;
fieldStatsBuilder_ = null;
}
return this;
}
/**
* .cz.proto.FileFieldStats field_stats = 7;
*/
public cz.proto.FileFieldStats.Builder getFieldStatsBuilder() {
onChanged();
return getFieldStatsFieldBuilder().getBuilder();
}
/**
* .cz.proto.FileFieldStats field_stats = 7;
*/
public cz.proto.FileFieldStatsOrBuilder getFieldStatsOrBuilder() {
if (fieldStatsBuilder_ != null) {
return fieldStatsBuilder_.getMessageOrBuilder();
} else {
return fieldStats_ == null ?
cz.proto.FileFieldStats.getDefaultInstance() : fieldStats_;
}
}
/**
* .cz.proto.FileFieldStats field_stats = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.FileFieldStats, cz.proto.FileFieldStats.Builder, cz.proto.FileFieldStatsOrBuilder>
getFieldStatsFieldBuilder() {
if (fieldStatsBuilder_ == null) {
fieldStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.FileFieldStats, cz.proto.FileFieldStats.Builder, cz.proto.FileFieldStatsOrBuilder>(
getFieldStats(),
getParentForChildren(),
isClean());
fieldStats_ = null;
}
return fieldStatsBuilder_;
}
private long totalFileSize_ ;
/**
* optional int64 total_file_size = 8;
* @return Whether the totalFileSize field is set.
*/
@java.lang.Override
public boolean hasTotalFileSize() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 total_file_size = 8;
* @return The totalFileSize.
*/
@java.lang.Override
public long getTotalFileSize() {
return totalFileSize_;
}
/**
* optional int64 total_file_size = 8;
* @param value The totalFileSize to set.
* @return This builder for chaining.
*/
public Builder setTotalFileSize(long value) {
bitField0_ |= 0x00000002;
totalFileSize_ = value;
onChanged();
return this;
}
/**
* optional int64 total_file_size = 8;
* @return This builder for chaining.
*/
public Builder clearTotalFileSize() {
bitField0_ = (bitField0_ & ~0x00000002);
totalFileSize_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cz.proto.FileRange)
}
// @@protoc_insertion_point(class_scope:cz.proto.FileRange)
private static final cz.proto.FileRange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.FileRange();
}
public static cz.proto.FileRange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileRange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FileRange(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cz.proto.FileRange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy