cz.proto.CompactionSplits 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.CompactionSplits}
*/
public final class CompactionSplits extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.CompactionSplits)
CompactionSplitsOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompactionSplits.newBuilder() to construct.
private CompactionSplits(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompactionSplits() {
splits_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CompactionSplits();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CompactionSplits(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
splits_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
splits_.add(
input.readMessage(cz.proto.CompactionSplit.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)) {
splits_ = java.util.Collections.unmodifiableList(splits_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.InputSplitProto.internal_static_cz_proto_CompactionSplits_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.InputSplitProto.internal_static_cz_proto_CompactionSplits_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.CompactionSplits.class, cz.proto.CompactionSplits.Builder.class);
}
public static final int SPLITS_FIELD_NUMBER = 1;
private java.util.List splits_;
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
@java.lang.Override
public java.util.List getSplitsList() {
return splits_;
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
@java.lang.Override
public java.util.List extends cz.proto.CompactionSplitOrBuilder>
getSplitsOrBuilderList() {
return splits_;
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
@java.lang.Override
public int getSplitsCount() {
return splits_.size();
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
@java.lang.Override
public cz.proto.CompactionSplit getSplits(int index) {
return splits_.get(index);
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
@java.lang.Override
public cz.proto.CompactionSplitOrBuilder getSplitsOrBuilder(
int index) {
return splits_.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 < splits_.size(); i++) {
output.writeMessage(1, splits_.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 < splits_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, splits_.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.CompactionSplits)) {
return super.equals(obj);
}
cz.proto.CompactionSplits other = (cz.proto.CompactionSplits) obj;
if (!getSplitsList()
.equals(other.getSplitsList())) 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 (getSplitsCount() > 0) {
hash = (37 * hash) + SPLITS_FIELD_NUMBER;
hash = (53 * hash) + getSplitsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.CompactionSplits parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.CompactionSplits parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.CompactionSplits parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.CompactionSplits 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.CompactionSplits parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.CompactionSplits parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.CompactionSplits parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.CompactionSplits 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.CompactionSplits parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.CompactionSplits 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.CompactionSplits parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.CompactionSplits 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.CompactionSplits 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.CompactionSplits}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.CompactionSplits)
cz.proto.CompactionSplitsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.InputSplitProto.internal_static_cz_proto_CompactionSplits_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.InputSplitProto.internal_static_cz_proto_CompactionSplits_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.CompactionSplits.class, cz.proto.CompactionSplits.Builder.class);
}
// Construct using cz.proto.CompactionSplits.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSplitsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (splitsBuilder_ == null) {
splits_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
splitsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.InputSplitProto.internal_static_cz_proto_CompactionSplits_descriptor;
}
@java.lang.Override
public cz.proto.CompactionSplits getDefaultInstanceForType() {
return cz.proto.CompactionSplits.getDefaultInstance();
}
@java.lang.Override
public cz.proto.CompactionSplits build() {
cz.proto.CompactionSplits result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.CompactionSplits buildPartial() {
cz.proto.CompactionSplits result = new cz.proto.CompactionSplits(this);
int from_bitField0_ = bitField0_;
if (splitsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
splits_ = java.util.Collections.unmodifiableList(splits_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.splits_ = splits_;
} else {
result.splits_ = splitsBuilder_.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.CompactionSplits) {
return mergeFrom((cz.proto.CompactionSplits)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.CompactionSplits other) {
if (other == cz.proto.CompactionSplits.getDefaultInstance()) return this;
if (splitsBuilder_ == null) {
if (!other.splits_.isEmpty()) {
if (splits_.isEmpty()) {
splits_ = other.splits_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSplitsIsMutable();
splits_.addAll(other.splits_);
}
onChanged();
}
} else {
if (!other.splits_.isEmpty()) {
if (splitsBuilder_.isEmpty()) {
splitsBuilder_.dispose();
splitsBuilder_ = null;
splits_ = other.splits_;
bitField0_ = (bitField0_ & ~0x00000001);
splitsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSplitsFieldBuilder() : null;
} else {
splitsBuilder_.addAllMessages(other.splits_);
}
}
}
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.CompactionSplits parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.CompactionSplits) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List splits_ =
java.util.Collections.emptyList();
private void ensureSplitsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
splits_ = new java.util.ArrayList(splits_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.CompactionSplit, cz.proto.CompactionSplit.Builder, cz.proto.CompactionSplitOrBuilder> splitsBuilder_;
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public java.util.List getSplitsList() {
if (splitsBuilder_ == null) {
return java.util.Collections.unmodifiableList(splits_);
} else {
return splitsBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public int getSplitsCount() {
if (splitsBuilder_ == null) {
return splits_.size();
} else {
return splitsBuilder_.getCount();
}
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public cz.proto.CompactionSplit getSplits(int index) {
if (splitsBuilder_ == null) {
return splits_.get(index);
} else {
return splitsBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public Builder setSplits(
int index, cz.proto.CompactionSplit value) {
if (splitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSplitsIsMutable();
splits_.set(index, value);
onChanged();
} else {
splitsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public Builder setSplits(
int index, cz.proto.CompactionSplit.Builder builderForValue) {
if (splitsBuilder_ == null) {
ensureSplitsIsMutable();
splits_.set(index, builderForValue.build());
onChanged();
} else {
splitsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public Builder addSplits(cz.proto.CompactionSplit value) {
if (splitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSplitsIsMutable();
splits_.add(value);
onChanged();
} else {
splitsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public Builder addSplits(
int index, cz.proto.CompactionSplit value) {
if (splitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSplitsIsMutable();
splits_.add(index, value);
onChanged();
} else {
splitsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public Builder addSplits(
cz.proto.CompactionSplit.Builder builderForValue) {
if (splitsBuilder_ == null) {
ensureSplitsIsMutable();
splits_.add(builderForValue.build());
onChanged();
} else {
splitsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public Builder addSplits(
int index, cz.proto.CompactionSplit.Builder builderForValue) {
if (splitsBuilder_ == null) {
ensureSplitsIsMutable();
splits_.add(index, builderForValue.build());
onChanged();
} else {
splitsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public Builder addAllSplits(
java.lang.Iterable extends cz.proto.CompactionSplit> values) {
if (splitsBuilder_ == null) {
ensureSplitsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, splits_);
onChanged();
} else {
splitsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public Builder clearSplits() {
if (splitsBuilder_ == null) {
splits_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
splitsBuilder_.clear();
}
return this;
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public Builder removeSplits(int index) {
if (splitsBuilder_ == null) {
ensureSplitsIsMutable();
splits_.remove(index);
onChanged();
} else {
splitsBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public cz.proto.CompactionSplit.Builder getSplitsBuilder(
int index) {
return getSplitsFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public cz.proto.CompactionSplitOrBuilder getSplitsOrBuilder(
int index) {
if (splitsBuilder_ == null) {
return splits_.get(index); } else {
return splitsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public java.util.List extends cz.proto.CompactionSplitOrBuilder>
getSplitsOrBuilderList() {
if (splitsBuilder_ != null) {
return splitsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(splits_);
}
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public cz.proto.CompactionSplit.Builder addSplitsBuilder() {
return getSplitsFieldBuilder().addBuilder(
cz.proto.CompactionSplit.getDefaultInstance());
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public cz.proto.CompactionSplit.Builder addSplitsBuilder(
int index) {
return getSplitsFieldBuilder().addBuilder(
index, cz.proto.CompactionSplit.getDefaultInstance());
}
/**
* repeated .cz.proto.CompactionSplit splits = 1;
*/
public java.util.List
getSplitsBuilderList() {
return getSplitsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.CompactionSplit, cz.proto.CompactionSplit.Builder, cz.proto.CompactionSplitOrBuilder>
getSplitsFieldBuilder() {
if (splitsBuilder_ == null) {
splitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.CompactionSplit, cz.proto.CompactionSplit.Builder, cz.proto.CompactionSplitOrBuilder>(
splits_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
splits_ = null;
}
return splitsBuilder_;
}
@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.CompactionSplits)
}
// @@protoc_insertion_point(class_scope:cz.proto.CompactionSplits)
private static final cz.proto.CompactionSplits DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.CompactionSplits();
}
public static cz.proto.CompactionSplits getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CompactionSplits parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CompactionSplits(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.CompactionSplits getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy