cz.proto.FileRangesInputSplit 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.FileRangesInputSplit}
*/
public final class FileRangesInputSplit extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.FileRangesInputSplit)
FileRangesInputSplitOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileRangesInputSplit.newBuilder() to construct.
private FileRangesInputSplit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileRangesInputSplit() {
ranges_ = java.util.Collections.emptyList();
workers_ = java.util.Collections.emptyList();
workerOfRange_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileRangesInputSplit();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FileRangesInputSplit(
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 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
ranges_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
ranges_.add(
input.readMessage(cz.proto.FileRange.parser(), extensionRegistry));
break;
}
case 24: {
bucketCount_ = input.readUInt32();
break;
}
case 32: {
bucketId_ = input.readUInt32();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
workers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
workers_.add(
input.readMessage(cz.proto.FileRangesInputSplit.Worker.parser(), extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
workerOfRange_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
workerOfRange_.add(
input.readMessage(cz.proto.BitSetOuterClass.BitSet.parser(), extensionRegistry));
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)) {
ranges_ = java.util.Collections.unmodifiableList(ranges_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
workers_ = java.util.Collections.unmodifiableList(workers_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
workerOfRange_ = java.util.Collections.unmodifiableList(workerOfRange_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRangesInputSplit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRangesInputSplit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.FileRangesInputSplit.class, cz.proto.FileRangesInputSplit.Builder.class);
}
public interface WorkerOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.FileRangesInputSplit.Worker)
com.google.protobuf.MessageOrBuilder {
/**
* string host = 1;
* @return The host.
*/
java.lang.String getHost();
/**
* string host = 1;
* @return The bytes for host.
*/
com.google.protobuf.ByteString
getHostBytes();
/**
* int32 rpc_port = 2;
* @return The rpcPort.
*/
int getRpcPort();
/**
* int32 data_port = 3;
* @return The dataPort.
*/
int getDataPort();
}
/**
* Protobuf type {@code cz.proto.FileRangesInputSplit.Worker}
*/
public static final class Worker extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.FileRangesInputSplit.Worker)
WorkerOrBuilder {
private static final long serialVersionUID = 0L;
// Use Worker.newBuilder() to construct.
private Worker(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Worker() {
host_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Worker();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Worker(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
host_ = s;
break;
}
case 16: {
rpcPort_ = input.readInt32();
break;
}
case 24: {
dataPort_ = input.readInt32();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRangesInputSplit_Worker_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRangesInputSplit_Worker_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.FileRangesInputSplit.Worker.class, cz.proto.FileRangesInputSplit.Worker.Builder.class);
}
public static final int HOST_FIELD_NUMBER = 1;
private volatile java.lang.Object host_;
/**
* string host = 1;
* @return The host.
*/
@java.lang.Override
public java.lang.String getHost() {
java.lang.Object ref = host_;
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();
host_ = s;
return s;
}
}
/**
* string host = 1;
* @return The bytes for host.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RPC_PORT_FIELD_NUMBER = 2;
private int rpcPort_;
/**
* int32 rpc_port = 2;
* @return The rpcPort.
*/
@java.lang.Override
public int getRpcPort() {
return rpcPort_;
}
public static final int DATA_PORT_FIELD_NUMBER = 3;
private int dataPort_;
/**
* int32 data_port = 3;
* @return The dataPort.
*/
@java.lang.Override
public int getDataPort() {
return dataPort_;
}
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(host_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_);
}
if (rpcPort_ != 0) {
output.writeInt32(2, rpcPort_);
}
if (dataPort_ != 0) {
output.writeInt32(3, dataPort_);
}
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(host_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_);
}
if (rpcPort_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, rpcPort_);
}
if (dataPort_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, dataPort_);
}
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.FileRangesInputSplit.Worker)) {
return super.equals(obj);
}
cz.proto.FileRangesInputSplit.Worker other = (cz.proto.FileRangesInputSplit.Worker) obj;
if (!getHost()
.equals(other.getHost())) return false;
if (getRpcPort()
!= other.getRpcPort()) return false;
if (getDataPort()
!= other.getDataPort()) 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) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
hash = (37 * hash) + RPC_PORT_FIELD_NUMBER;
hash = (53 * hash) + getRpcPort();
hash = (37 * hash) + DATA_PORT_FIELD_NUMBER;
hash = (53 * hash) + getDataPort();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.FileRangesInputSplit.Worker parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FileRangesInputSplit.Worker parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FileRangesInputSplit.Worker parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FileRangesInputSplit.Worker 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.FileRangesInputSplit.Worker parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FileRangesInputSplit.Worker parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FileRangesInputSplit.Worker parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.FileRangesInputSplit.Worker 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.FileRangesInputSplit.Worker parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.FileRangesInputSplit.Worker 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.FileRangesInputSplit.Worker parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.FileRangesInputSplit.Worker 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.FileRangesInputSplit.Worker 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.FileRangesInputSplit.Worker}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.FileRangesInputSplit.Worker)
cz.proto.FileRangesInputSplit.WorkerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRangesInputSplit_Worker_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRangesInputSplit_Worker_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.FileRangesInputSplit.Worker.class, cz.proto.FileRangesInputSplit.Worker.Builder.class);
}
// Construct using cz.proto.FileRangesInputSplit.Worker.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
host_ = "";
rpcPort_ = 0;
dataPort_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRangesInputSplit_Worker_descriptor;
}
@java.lang.Override
public cz.proto.FileRangesInputSplit.Worker getDefaultInstanceForType() {
return cz.proto.FileRangesInputSplit.Worker.getDefaultInstance();
}
@java.lang.Override
public cz.proto.FileRangesInputSplit.Worker build() {
cz.proto.FileRangesInputSplit.Worker result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.FileRangesInputSplit.Worker buildPartial() {
cz.proto.FileRangesInputSplit.Worker result = new cz.proto.FileRangesInputSplit.Worker(this);
result.host_ = host_;
result.rpcPort_ = rpcPort_;
result.dataPort_ = dataPort_;
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.FileRangesInputSplit.Worker) {
return mergeFrom((cz.proto.FileRangesInputSplit.Worker)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.FileRangesInputSplit.Worker other) {
if (other == cz.proto.FileRangesInputSplit.Worker.getDefaultInstance()) return this;
if (!other.getHost().isEmpty()) {
host_ = other.host_;
onChanged();
}
if (other.getRpcPort() != 0) {
setRpcPort(other.getRpcPort());
}
if (other.getDataPort() != 0) {
setDataPort(other.getDataPort());
}
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.FileRangesInputSplit.Worker parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.FileRangesInputSplit.Worker) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object host_ = "";
/**
* string host = 1;
* @return The host.
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
host_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string host = 1;
* @return The bytes for host.
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string host = 1;
* @param value The host to set.
* @return This builder for chaining.
*/
public Builder setHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
host_ = value;
onChanged();
return this;
}
/**
* string host = 1;
* @return This builder for chaining.
*/
public Builder clearHost() {
host_ = getDefaultInstance().getHost();
onChanged();
return this;
}
/**
* string host = 1;
* @param value The bytes for host to set.
* @return This builder for chaining.
*/
public Builder setHostBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
host_ = value;
onChanged();
return this;
}
private int rpcPort_ ;
/**
* int32 rpc_port = 2;
* @return The rpcPort.
*/
@java.lang.Override
public int getRpcPort() {
return rpcPort_;
}
/**
* int32 rpc_port = 2;
* @param value The rpcPort to set.
* @return This builder for chaining.
*/
public Builder setRpcPort(int value) {
rpcPort_ = value;
onChanged();
return this;
}
/**
* int32 rpc_port = 2;
* @return This builder for chaining.
*/
public Builder clearRpcPort() {
rpcPort_ = 0;
onChanged();
return this;
}
private int dataPort_ ;
/**
* int32 data_port = 3;
* @return The dataPort.
*/
@java.lang.Override
public int getDataPort() {
return dataPort_;
}
/**
* int32 data_port = 3;
* @param value The dataPort to set.
* @return This builder for chaining.
*/
public Builder setDataPort(int value) {
dataPort_ = value;
onChanged();
return this;
}
/**
* int32 data_port = 3;
* @return This builder for chaining.
*/
public Builder clearDataPort() {
dataPort_ = 0;
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.FileRangesInputSplit.Worker)
}
// @@protoc_insertion_point(class_scope:cz.proto.FileRangesInputSplit.Worker)
private static final cz.proto.FileRangesInputSplit.Worker DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.FileRangesInputSplit.Worker();
}
public static cz.proto.FileRangesInputSplit.Worker getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Worker parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Worker(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.FileRangesInputSplit.Worker getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int RANGES_FIELD_NUMBER = 2;
private java.util.List ranges_;
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
@java.lang.Override
public java.util.List getRangesList() {
return ranges_;
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
@java.lang.Override
public java.util.List extends cz.proto.FileRangeOrBuilder>
getRangesOrBuilderList() {
return ranges_;
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
@java.lang.Override
public int getRangesCount() {
return ranges_.size();
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
@java.lang.Override
public cz.proto.FileRange getRanges(int index) {
return ranges_.get(index);
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
@java.lang.Override
public cz.proto.FileRangeOrBuilder getRangesOrBuilder(
int index) {
return ranges_.get(index);
}
public static final int BUCKET_COUNT_FIELD_NUMBER = 3;
private int bucketCount_;
/**
* uint32 bucket_count = 3;
* @return The bucketCount.
*/
@java.lang.Override
public int getBucketCount() {
return bucketCount_;
}
public static final int BUCKET_ID_FIELD_NUMBER = 4;
private int bucketId_;
/**
* uint32 bucket_id = 4;
* @return The bucketId.
*/
@java.lang.Override
public int getBucketId() {
return bucketId_;
}
public static final int WORKERS_FIELD_NUMBER = 5;
private java.util.List workers_;
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
@java.lang.Override
public java.util.List getWorkersList() {
return workers_;
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
@java.lang.Override
public java.util.List extends cz.proto.FileRangesInputSplit.WorkerOrBuilder>
getWorkersOrBuilderList() {
return workers_;
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
@java.lang.Override
public int getWorkersCount() {
return workers_.size();
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
@java.lang.Override
public cz.proto.FileRangesInputSplit.Worker getWorkers(int index) {
return workers_.get(index);
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
@java.lang.Override
public cz.proto.FileRangesInputSplit.WorkerOrBuilder getWorkersOrBuilder(
int index) {
return workers_.get(index);
}
public static final int WORKER_OF_RANGE_FIELD_NUMBER = 6;
private java.util.List workerOfRange_;
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
@java.lang.Override
public java.util.List getWorkerOfRangeList() {
return workerOfRange_;
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
@java.lang.Override
public java.util.List extends cz.proto.BitSetOuterClass.BitSetOrBuilder>
getWorkerOfRangeOrBuilderList() {
return workerOfRange_;
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
@java.lang.Override
public int getWorkerOfRangeCount() {
return workerOfRange_.size();
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
@java.lang.Override
public cz.proto.BitSetOuterClass.BitSet getWorkerOfRange(int index) {
return workerOfRange_.get(index);
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
@java.lang.Override
public cz.proto.BitSetOuterClass.BitSetOrBuilder getWorkerOfRangeOrBuilder(
int index) {
return workerOfRange_.get(index);
}
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 {
for (int i = 0; i < ranges_.size(); i++) {
output.writeMessage(2, ranges_.get(i));
}
if (bucketCount_ != 0) {
output.writeUInt32(3, bucketCount_);
}
if (bucketId_ != 0) {
output.writeUInt32(4, bucketId_);
}
for (int i = 0; i < workers_.size(); i++) {
output.writeMessage(5, workers_.get(i));
}
for (int i = 0; i < workerOfRange_.size(); i++) {
output.writeMessage(6, workerOfRange_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < ranges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, ranges_.get(i));
}
if (bucketCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, bucketCount_);
}
if (bucketId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, bucketId_);
}
for (int i = 0; i < workers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, workers_.get(i));
}
for (int i = 0; i < workerOfRange_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, workerOfRange_.get(i));
}
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.FileRangesInputSplit)) {
return super.equals(obj);
}
cz.proto.FileRangesInputSplit other = (cz.proto.FileRangesInputSplit) obj;
if (!getRangesList()
.equals(other.getRangesList())) return false;
if (getBucketCount()
!= other.getBucketCount()) return false;
if (getBucketId()
!= other.getBucketId()) return false;
if (!getWorkersList()
.equals(other.getWorkersList())) return false;
if (!getWorkerOfRangeList()
.equals(other.getWorkerOfRangeList())) 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();
if (getRangesCount() > 0) {
hash = (37 * hash) + RANGES_FIELD_NUMBER;
hash = (53 * hash) + getRangesList().hashCode();
}
hash = (37 * hash) + BUCKET_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getBucketCount();
hash = (37 * hash) + BUCKET_ID_FIELD_NUMBER;
hash = (53 * hash) + getBucketId();
if (getWorkersCount() > 0) {
hash = (37 * hash) + WORKERS_FIELD_NUMBER;
hash = (53 * hash) + getWorkersList().hashCode();
}
if (getWorkerOfRangeCount() > 0) {
hash = (37 * hash) + WORKER_OF_RANGE_FIELD_NUMBER;
hash = (53 * hash) + getWorkerOfRangeList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.FileRangesInputSplit parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FileRangesInputSplit parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FileRangesInputSplit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FileRangesInputSplit 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.FileRangesInputSplit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FileRangesInputSplit parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FileRangesInputSplit parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.FileRangesInputSplit 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.FileRangesInputSplit parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.FileRangesInputSplit 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.FileRangesInputSplit parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.FileRangesInputSplit 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.FileRangesInputSplit 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.FileRangesInputSplit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.FileRangesInputSplit)
cz.proto.FileRangesInputSplitOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRangesInputSplit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRangesInputSplit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.FileRangesInputSplit.class, cz.proto.FileRangesInputSplit.Builder.class);
}
// Construct using cz.proto.FileRangesInputSplit.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRangesFieldBuilder();
getWorkersFieldBuilder();
getWorkerOfRangeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (rangesBuilder_ == null) {
ranges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
rangesBuilder_.clear();
}
bucketCount_ = 0;
bucketId_ = 0;
if (workersBuilder_ == null) {
workers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
workersBuilder_.clear();
}
if (workerOfRangeBuilder_ == null) {
workerOfRange_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
workerOfRangeBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.InputSplitProto.internal_static_cz_proto_FileRangesInputSplit_descriptor;
}
@java.lang.Override
public cz.proto.FileRangesInputSplit getDefaultInstanceForType() {
return cz.proto.FileRangesInputSplit.getDefaultInstance();
}
@java.lang.Override
public cz.proto.FileRangesInputSplit build() {
cz.proto.FileRangesInputSplit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.FileRangesInputSplit buildPartial() {
cz.proto.FileRangesInputSplit result = new cz.proto.FileRangesInputSplit(this);
int from_bitField0_ = bitField0_;
if (rangesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
ranges_ = java.util.Collections.unmodifiableList(ranges_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.ranges_ = ranges_;
} else {
result.ranges_ = rangesBuilder_.build();
}
result.bucketCount_ = bucketCount_;
result.bucketId_ = bucketId_;
if (workersBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
workers_ = java.util.Collections.unmodifiableList(workers_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.workers_ = workers_;
} else {
result.workers_ = workersBuilder_.build();
}
if (workerOfRangeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
workerOfRange_ = java.util.Collections.unmodifiableList(workerOfRange_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.workerOfRange_ = workerOfRange_;
} else {
result.workerOfRange_ = workerOfRangeBuilder_.build();
}
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.FileRangesInputSplit) {
return mergeFrom((cz.proto.FileRangesInputSplit)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.FileRangesInputSplit other) {
if (other == cz.proto.FileRangesInputSplit.getDefaultInstance()) return this;
if (rangesBuilder_ == null) {
if (!other.ranges_.isEmpty()) {
if (ranges_.isEmpty()) {
ranges_ = other.ranges_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRangesIsMutable();
ranges_.addAll(other.ranges_);
}
onChanged();
}
} else {
if (!other.ranges_.isEmpty()) {
if (rangesBuilder_.isEmpty()) {
rangesBuilder_.dispose();
rangesBuilder_ = null;
ranges_ = other.ranges_;
bitField0_ = (bitField0_ & ~0x00000001);
rangesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRangesFieldBuilder() : null;
} else {
rangesBuilder_.addAllMessages(other.ranges_);
}
}
}
if (other.getBucketCount() != 0) {
setBucketCount(other.getBucketCount());
}
if (other.getBucketId() != 0) {
setBucketId(other.getBucketId());
}
if (workersBuilder_ == null) {
if (!other.workers_.isEmpty()) {
if (workers_.isEmpty()) {
workers_ = other.workers_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureWorkersIsMutable();
workers_.addAll(other.workers_);
}
onChanged();
}
} else {
if (!other.workers_.isEmpty()) {
if (workersBuilder_.isEmpty()) {
workersBuilder_.dispose();
workersBuilder_ = null;
workers_ = other.workers_;
bitField0_ = (bitField0_ & ~0x00000002);
workersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getWorkersFieldBuilder() : null;
} else {
workersBuilder_.addAllMessages(other.workers_);
}
}
}
if (workerOfRangeBuilder_ == null) {
if (!other.workerOfRange_.isEmpty()) {
if (workerOfRange_.isEmpty()) {
workerOfRange_ = other.workerOfRange_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureWorkerOfRangeIsMutable();
workerOfRange_.addAll(other.workerOfRange_);
}
onChanged();
}
} else {
if (!other.workerOfRange_.isEmpty()) {
if (workerOfRangeBuilder_.isEmpty()) {
workerOfRangeBuilder_.dispose();
workerOfRangeBuilder_ = null;
workerOfRange_ = other.workerOfRange_;
bitField0_ = (bitField0_ & ~0x00000004);
workerOfRangeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getWorkerOfRangeFieldBuilder() : null;
} else {
workerOfRangeBuilder_.addAllMessages(other.workerOfRange_);
}
}
}
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.FileRangesInputSplit parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.FileRangesInputSplit) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List ranges_ =
java.util.Collections.emptyList();
private void ensureRangesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
ranges_ = new java.util.ArrayList(ranges_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FileRange, cz.proto.FileRange.Builder, cz.proto.FileRangeOrBuilder> rangesBuilder_;
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public java.util.List getRangesList() {
if (rangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(ranges_);
} else {
return rangesBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public int getRangesCount() {
if (rangesBuilder_ == null) {
return ranges_.size();
} else {
return rangesBuilder_.getCount();
}
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public cz.proto.FileRange getRanges(int index) {
if (rangesBuilder_ == null) {
return ranges_.get(index);
} else {
return rangesBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public Builder setRanges(
int index, cz.proto.FileRange value) {
if (rangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangesIsMutable();
ranges_.set(index, value);
onChanged();
} else {
rangesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public Builder setRanges(
int index, cz.proto.FileRange.Builder builderForValue) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
ranges_.set(index, builderForValue.build());
onChanged();
} else {
rangesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public Builder addRanges(cz.proto.FileRange value) {
if (rangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangesIsMutable();
ranges_.add(value);
onChanged();
} else {
rangesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public Builder addRanges(
int index, cz.proto.FileRange value) {
if (rangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangesIsMutable();
ranges_.add(index, value);
onChanged();
} else {
rangesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public Builder addRanges(
cz.proto.FileRange.Builder builderForValue) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
ranges_.add(builderForValue.build());
onChanged();
} else {
rangesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public Builder addRanges(
int index, cz.proto.FileRange.Builder builderForValue) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
ranges_.add(index, builderForValue.build());
onChanged();
} else {
rangesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public Builder addAllRanges(
java.lang.Iterable extends cz.proto.FileRange> values) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ranges_);
onChanged();
} else {
rangesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public Builder clearRanges() {
if (rangesBuilder_ == null) {
ranges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
rangesBuilder_.clear();
}
return this;
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public Builder removeRanges(int index) {
if (rangesBuilder_ == null) {
ensureRangesIsMutable();
ranges_.remove(index);
onChanged();
} else {
rangesBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public cz.proto.FileRange.Builder getRangesBuilder(
int index) {
return getRangesFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public cz.proto.FileRangeOrBuilder getRangesOrBuilder(
int index) {
if (rangesBuilder_ == null) {
return ranges_.get(index); } else {
return rangesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public java.util.List extends cz.proto.FileRangeOrBuilder>
getRangesOrBuilderList() {
if (rangesBuilder_ != null) {
return rangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(ranges_);
}
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public cz.proto.FileRange.Builder addRangesBuilder() {
return getRangesFieldBuilder().addBuilder(
cz.proto.FileRange.getDefaultInstance());
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public cz.proto.FileRange.Builder addRangesBuilder(
int index) {
return getRangesFieldBuilder().addBuilder(
index, cz.proto.FileRange.getDefaultInstance());
}
/**
* repeated .cz.proto.FileRange ranges = 2;
*/
public java.util.List
getRangesBuilderList() {
return getRangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FileRange, cz.proto.FileRange.Builder, cz.proto.FileRangeOrBuilder>
getRangesFieldBuilder() {
if (rangesBuilder_ == null) {
rangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FileRange, cz.proto.FileRange.Builder, cz.proto.FileRangeOrBuilder>(
ranges_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
ranges_ = null;
}
return rangesBuilder_;
}
private int bucketCount_ ;
/**
* uint32 bucket_count = 3;
* @return The bucketCount.
*/
@java.lang.Override
public int getBucketCount() {
return bucketCount_;
}
/**
* uint32 bucket_count = 3;
* @param value The bucketCount to set.
* @return This builder for chaining.
*/
public Builder setBucketCount(int value) {
bucketCount_ = value;
onChanged();
return this;
}
/**
* uint32 bucket_count = 3;
* @return This builder for chaining.
*/
public Builder clearBucketCount() {
bucketCount_ = 0;
onChanged();
return this;
}
private int bucketId_ ;
/**
* uint32 bucket_id = 4;
* @return The bucketId.
*/
@java.lang.Override
public int getBucketId() {
return bucketId_;
}
/**
* uint32 bucket_id = 4;
* @param value The bucketId to set.
* @return This builder for chaining.
*/
public Builder setBucketId(int value) {
bucketId_ = value;
onChanged();
return this;
}
/**
* uint32 bucket_id = 4;
* @return This builder for chaining.
*/
public Builder clearBucketId() {
bucketId_ = 0;
onChanged();
return this;
}
private java.util.List workers_ =
java.util.Collections.emptyList();
private void ensureWorkersIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
workers_ = new java.util.ArrayList(workers_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FileRangesInputSplit.Worker, cz.proto.FileRangesInputSplit.Worker.Builder, cz.proto.FileRangesInputSplit.WorkerOrBuilder> workersBuilder_;
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public java.util.List getWorkersList() {
if (workersBuilder_ == null) {
return java.util.Collections.unmodifiableList(workers_);
} else {
return workersBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public int getWorkersCount() {
if (workersBuilder_ == null) {
return workers_.size();
} else {
return workersBuilder_.getCount();
}
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public cz.proto.FileRangesInputSplit.Worker getWorkers(int index) {
if (workersBuilder_ == null) {
return workers_.get(index);
} else {
return workersBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public Builder setWorkers(
int index, cz.proto.FileRangesInputSplit.Worker value) {
if (workersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWorkersIsMutable();
workers_.set(index, value);
onChanged();
} else {
workersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public Builder setWorkers(
int index, cz.proto.FileRangesInputSplit.Worker.Builder builderForValue) {
if (workersBuilder_ == null) {
ensureWorkersIsMutable();
workers_.set(index, builderForValue.build());
onChanged();
} else {
workersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public Builder addWorkers(cz.proto.FileRangesInputSplit.Worker value) {
if (workersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWorkersIsMutable();
workers_.add(value);
onChanged();
} else {
workersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public Builder addWorkers(
int index, cz.proto.FileRangesInputSplit.Worker value) {
if (workersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWorkersIsMutable();
workers_.add(index, value);
onChanged();
} else {
workersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public Builder addWorkers(
cz.proto.FileRangesInputSplit.Worker.Builder builderForValue) {
if (workersBuilder_ == null) {
ensureWorkersIsMutable();
workers_.add(builderForValue.build());
onChanged();
} else {
workersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public Builder addWorkers(
int index, cz.proto.FileRangesInputSplit.Worker.Builder builderForValue) {
if (workersBuilder_ == null) {
ensureWorkersIsMutable();
workers_.add(index, builderForValue.build());
onChanged();
} else {
workersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public Builder addAllWorkers(
java.lang.Iterable extends cz.proto.FileRangesInputSplit.Worker> values) {
if (workersBuilder_ == null) {
ensureWorkersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, workers_);
onChanged();
} else {
workersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public Builder clearWorkers() {
if (workersBuilder_ == null) {
workers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
workersBuilder_.clear();
}
return this;
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public Builder removeWorkers(int index) {
if (workersBuilder_ == null) {
ensureWorkersIsMutable();
workers_.remove(index);
onChanged();
} else {
workersBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public cz.proto.FileRangesInputSplit.Worker.Builder getWorkersBuilder(
int index) {
return getWorkersFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public cz.proto.FileRangesInputSplit.WorkerOrBuilder getWorkersOrBuilder(
int index) {
if (workersBuilder_ == null) {
return workers_.get(index); } else {
return workersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public java.util.List extends cz.proto.FileRangesInputSplit.WorkerOrBuilder>
getWorkersOrBuilderList() {
if (workersBuilder_ != null) {
return workersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(workers_);
}
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public cz.proto.FileRangesInputSplit.Worker.Builder addWorkersBuilder() {
return getWorkersFieldBuilder().addBuilder(
cz.proto.FileRangesInputSplit.Worker.getDefaultInstance());
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public cz.proto.FileRangesInputSplit.Worker.Builder addWorkersBuilder(
int index) {
return getWorkersFieldBuilder().addBuilder(
index, cz.proto.FileRangesInputSplit.Worker.getDefaultInstance());
}
/**
* repeated .cz.proto.FileRangesInputSplit.Worker workers = 5;
*/
public java.util.List
getWorkersBuilderList() {
return getWorkersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FileRangesInputSplit.Worker, cz.proto.FileRangesInputSplit.Worker.Builder, cz.proto.FileRangesInputSplit.WorkerOrBuilder>
getWorkersFieldBuilder() {
if (workersBuilder_ == null) {
workersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FileRangesInputSplit.Worker, cz.proto.FileRangesInputSplit.Worker.Builder, cz.proto.FileRangesInputSplit.WorkerOrBuilder>(
workers_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
workers_ = null;
}
return workersBuilder_;
}
private java.util.List workerOfRange_ =
java.util.Collections.emptyList();
private void ensureWorkerOfRangeIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
workerOfRange_ = new java.util.ArrayList(workerOfRange_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.BitSetOuterClass.BitSet, cz.proto.BitSetOuterClass.BitSet.Builder, cz.proto.BitSetOuterClass.BitSetOrBuilder> workerOfRangeBuilder_;
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public java.util.List getWorkerOfRangeList() {
if (workerOfRangeBuilder_ == null) {
return java.util.Collections.unmodifiableList(workerOfRange_);
} else {
return workerOfRangeBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public int getWorkerOfRangeCount() {
if (workerOfRangeBuilder_ == null) {
return workerOfRange_.size();
} else {
return workerOfRangeBuilder_.getCount();
}
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public cz.proto.BitSetOuterClass.BitSet getWorkerOfRange(int index) {
if (workerOfRangeBuilder_ == null) {
return workerOfRange_.get(index);
} else {
return workerOfRangeBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public Builder setWorkerOfRange(
int index, cz.proto.BitSetOuterClass.BitSet value) {
if (workerOfRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWorkerOfRangeIsMutable();
workerOfRange_.set(index, value);
onChanged();
} else {
workerOfRangeBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public Builder setWorkerOfRange(
int index, cz.proto.BitSetOuterClass.BitSet.Builder builderForValue) {
if (workerOfRangeBuilder_ == null) {
ensureWorkerOfRangeIsMutable();
workerOfRange_.set(index, builderForValue.build());
onChanged();
} else {
workerOfRangeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public Builder addWorkerOfRange(cz.proto.BitSetOuterClass.BitSet value) {
if (workerOfRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWorkerOfRangeIsMutable();
workerOfRange_.add(value);
onChanged();
} else {
workerOfRangeBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public Builder addWorkerOfRange(
int index, cz.proto.BitSetOuterClass.BitSet value) {
if (workerOfRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWorkerOfRangeIsMutable();
workerOfRange_.add(index, value);
onChanged();
} else {
workerOfRangeBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public Builder addWorkerOfRange(
cz.proto.BitSetOuterClass.BitSet.Builder builderForValue) {
if (workerOfRangeBuilder_ == null) {
ensureWorkerOfRangeIsMutable();
workerOfRange_.add(builderForValue.build());
onChanged();
} else {
workerOfRangeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public Builder addWorkerOfRange(
int index, cz.proto.BitSetOuterClass.BitSet.Builder builderForValue) {
if (workerOfRangeBuilder_ == null) {
ensureWorkerOfRangeIsMutable();
workerOfRange_.add(index, builderForValue.build());
onChanged();
} else {
workerOfRangeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public Builder addAllWorkerOfRange(
java.lang.Iterable extends cz.proto.BitSetOuterClass.BitSet> values) {
if (workerOfRangeBuilder_ == null) {
ensureWorkerOfRangeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, workerOfRange_);
onChanged();
} else {
workerOfRangeBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public Builder clearWorkerOfRange() {
if (workerOfRangeBuilder_ == null) {
workerOfRange_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
workerOfRangeBuilder_.clear();
}
return this;
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public Builder removeWorkerOfRange(int index) {
if (workerOfRangeBuilder_ == null) {
ensureWorkerOfRangeIsMutable();
workerOfRange_.remove(index);
onChanged();
} else {
workerOfRangeBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public cz.proto.BitSetOuterClass.BitSet.Builder getWorkerOfRangeBuilder(
int index) {
return getWorkerOfRangeFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public cz.proto.BitSetOuterClass.BitSetOrBuilder getWorkerOfRangeOrBuilder(
int index) {
if (workerOfRangeBuilder_ == null) {
return workerOfRange_.get(index); } else {
return workerOfRangeBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public java.util.List extends cz.proto.BitSetOuterClass.BitSetOrBuilder>
getWorkerOfRangeOrBuilderList() {
if (workerOfRangeBuilder_ != null) {
return workerOfRangeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(workerOfRange_);
}
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public cz.proto.BitSetOuterClass.BitSet.Builder addWorkerOfRangeBuilder() {
return getWorkerOfRangeFieldBuilder().addBuilder(
cz.proto.BitSetOuterClass.BitSet.getDefaultInstance());
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public cz.proto.BitSetOuterClass.BitSet.Builder addWorkerOfRangeBuilder(
int index) {
return getWorkerOfRangeFieldBuilder().addBuilder(
index, cz.proto.BitSetOuterClass.BitSet.getDefaultInstance());
}
/**
* repeated .cz.proto.BitSet worker_of_range = 6;
*/
public java.util.List
getWorkerOfRangeBuilderList() {
return getWorkerOfRangeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.BitSetOuterClass.BitSet, cz.proto.BitSetOuterClass.BitSet.Builder, cz.proto.BitSetOuterClass.BitSetOrBuilder>
getWorkerOfRangeFieldBuilder() {
if (workerOfRangeBuilder_ == null) {
workerOfRangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.BitSetOuterClass.BitSet, cz.proto.BitSetOuterClass.BitSet.Builder, cz.proto.BitSetOuterClass.BitSetOrBuilder>(
workerOfRange_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
workerOfRange_ = null;
}
return workerOfRangeBuilder_;
}
@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.FileRangesInputSplit)
}
// @@protoc_insertion_point(class_scope:cz.proto.FileRangesInputSplit)
private static final cz.proto.FileRangesInputSplit DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.FileRangesInputSplit();
}
public static cz.proto.FileRangesInputSplit getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileRangesInputSplit parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FileRangesInputSplit(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.FileRangesInputSplit getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy