Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* sum will store the total length of all strings in a stripe
*
*
* optional sint64 sum = 3;
*/
public long getSum() {
return sum_;
}
public static final int LOWERBOUND_FIELD_NUMBER = 4;
private volatile java.lang.Object lowerBound_;
/**
*
* If the minimum or maximum value was longer than 1024 bytes, store a lower or upper
* bound instead of the minimum or maximum values above.
*
* The encoding of the bloom filters for this column:
* 0 or missing = none or original
* 1 = ORC-135 (utc for timestamps)
*
*
* optional uint32 bloomEncoding = 3;
*/
public Builder clearBloomEncoding() {
bitField0_ = (bitField0_ & ~0x00000004);
bloomEncoding_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:orc.proto.ColumnEncoding)
}
// @@protoc_insertion_point(class_scope:orc.proto.ColumnEncoding)
private static final io.prestosql.orc.proto.OrcProto.ColumnEncoding DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.prestosql.orc.proto.OrcProto.ColumnEncoding();
}
public static io.prestosql.orc.proto.OrcProto.ColumnEncoding getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final io.prestosql.orc.protobuf.Parser
PARSER = new io.prestosql.orc.protobuf.AbstractParser() {
public ColumnEncoding parsePartialFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return new ColumnEncoding(input, extensionRegistry);
}
};
public static io.prestosql.orc.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public io.prestosql.orc.protobuf.Parser getParserForType() {
return PARSER;
}
public io.prestosql.orc.proto.OrcProto.ColumnEncoding getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StripeFooterOrBuilder extends
// @@protoc_insertion_point(interface_extends:orc.proto.StripeFooter)
io.prestosql.orc.protobuf.MessageOrBuilder {
/**
* repeated .orc.proto.Stream streams = 1;
*/
java.util.List
getStreamsList();
/**
* repeated .orc.proto.Stream streams = 1;
*/
io.prestosql.orc.proto.OrcProto.Stream getStreams(int index);
/**
* repeated .orc.proto.Stream streams = 1;
*/
int getStreamsCount();
/**
* repeated .orc.proto.Stream streams = 1;
*/
java.util.List extends io.prestosql.orc.proto.OrcProto.StreamOrBuilder>
getStreamsOrBuilderList();
/**
* repeated .orc.proto.Stream streams = 1;
*/
io.prestosql.orc.proto.OrcProto.StreamOrBuilder getStreamsOrBuilder(
int index);
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
java.util.List
getColumnsList();
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
io.prestosql.orc.proto.OrcProto.ColumnEncoding getColumns(int index);
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
int getColumnsCount();
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
java.util.List extends io.prestosql.orc.proto.OrcProto.ColumnEncodingOrBuilder>
getColumnsOrBuilderList();
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
io.prestosql.orc.proto.OrcProto.ColumnEncodingOrBuilder getColumnsOrBuilder(
int index);
/**
* optional string writerTimezone = 3;
*/
boolean hasWriterTimezone();
/**
* optional string writerTimezone = 3;
*/
java.lang.String getWriterTimezone();
/**
* optional string writerTimezone = 3;
*/
io.prestosql.orc.protobuf.ByteString
getWriterTimezoneBytes();
}
/**
* Protobuf type {@code orc.proto.StripeFooter}
*/
public static final class StripeFooter extends
io.prestosql.orc.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orc.proto.StripeFooter)
StripeFooterOrBuilder {
// Use StripeFooter.newBuilder() to construct.
private StripeFooter(io.prestosql.orc.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StripeFooter() {
streams_ = java.util.Collections.emptyList();
columns_ = java.util.Collections.emptyList();
writerTimezone_ = "";
}
@java.lang.Override
public final io.prestosql.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StripeFooter(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
io.prestosql.orc.protobuf.UnknownFieldSet.Builder unknownFields =
io.prestosql.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
streams_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
streams_.add(
input.readMessage(io.prestosql.orc.proto.OrcProto.Stream.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
columns_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
columns_.add(
input.readMessage(io.prestosql.orc.proto.OrcProto.ColumnEncoding.PARSER, extensionRegistry));
break;
}
case 26: {
io.prestosql.orc.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
writerTimezone_ = bs;
break;
}
}
}
} catch (io.prestosql.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new io.prestosql.orc.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
streams_ = java.util.Collections.unmodifiableList(streams_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeFooter_descriptor;
}
protected io.prestosql.orc.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeFooter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.prestosql.orc.proto.OrcProto.StripeFooter.class, io.prestosql.orc.proto.OrcProto.StripeFooter.Builder.class);
}
private int bitField0_;
public static final int STREAMS_FIELD_NUMBER = 1;
private java.util.List streams_;
/**
* repeated .orc.proto.Stream streams = 1;
*/
public java.util.List getStreamsList() {
return streams_;
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public java.util.List extends io.prestosql.orc.proto.OrcProto.StreamOrBuilder>
getStreamsOrBuilderList() {
return streams_;
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public int getStreamsCount() {
return streams_.size();
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public io.prestosql.orc.proto.OrcProto.Stream getStreams(int index) {
return streams_.get(index);
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public io.prestosql.orc.proto.OrcProto.StreamOrBuilder getStreamsOrBuilder(
int index) {
return streams_.get(index);
}
public static final int COLUMNS_FIELD_NUMBER = 2;
private java.util.List columns_;
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public java.util.List getColumnsList() {
return columns_;
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public java.util.List extends io.prestosql.orc.proto.OrcProto.ColumnEncodingOrBuilder>
getColumnsOrBuilderList() {
return columns_;
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public int getColumnsCount() {
return columns_.size();
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public io.prestosql.orc.proto.OrcProto.ColumnEncoding getColumns(int index) {
return columns_.get(index);
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public io.prestosql.orc.proto.OrcProto.ColumnEncodingOrBuilder getColumnsOrBuilder(
int index) {
return columns_.get(index);
}
public static final int WRITERTIMEZONE_FIELD_NUMBER = 3;
private volatile java.lang.Object writerTimezone_;
/**
* optional string writerTimezone = 3;
*/
public boolean hasWriterTimezone() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string writerTimezone = 3;
*/
public java.lang.String getWriterTimezone() {
java.lang.Object ref = writerTimezone_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
io.prestosql.orc.protobuf.ByteString bs =
(io.prestosql.orc.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
writerTimezone_ = s;
}
return s;
}
}
/**
* optional string writerTimezone = 3;
*/
public io.prestosql.orc.protobuf.ByteString
getWriterTimezoneBytes() {
java.lang.Object ref = writerTimezone_;
if (ref instanceof java.lang.String) {
io.prestosql.orc.protobuf.ByteString b =
io.prestosql.orc.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
writerTimezone_ = b;
return b;
} else {
return (io.prestosql.orc.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(io.prestosql.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < streams_.size(); i++) {
output.writeMessage(1, streams_.get(i));
}
for (int i = 0; i < columns_.size(); i++) {
output.writeMessage(2, columns_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
io.prestosql.orc.protobuf.GeneratedMessageV3.writeString(output, 3, writerTimezone_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < streams_.size(); i++) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeMessageSize(1, streams_.get(i));
}
for (int i = 0; i < columns_.size(); i++) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeMessageSize(2, columns_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += io.prestosql.orc.protobuf.GeneratedMessageV3.computeStringSize(3, writerTimezone_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.prestosql.orc.proto.OrcProto.StripeFooter)) {
return super.equals(obj);
}
io.prestosql.orc.proto.OrcProto.StripeFooter other = (io.prestosql.orc.proto.OrcProto.StripeFooter) obj;
boolean result = true;
result = result && getStreamsList()
.equals(other.getStreamsList());
result = result && getColumnsList()
.equals(other.getColumnsList());
result = result && (hasWriterTimezone() == other.hasWriterTimezone());
if (hasWriterTimezone()) {
result = result && getWriterTimezone()
.equals(other.getWriterTimezone());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getStreamsCount() > 0) {
hash = (37 * hash) + STREAMS_FIELD_NUMBER;
hash = (53 * hash) + getStreamsList().hashCode();
}
if (getColumnsCount() > 0) {
hash = (37 * hash) + COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getColumnsList().hashCode();
}
if (hasWriterTimezone()) {
hash = (37 * hash) + WRITERTIMEZONE_FIELD_NUMBER;
hash = (53 * hash) + getWriterTimezone().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.prestosql.orc.proto.OrcProto.StripeFooter parseFrom(
io.prestosql.orc.protobuf.ByteString data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.proto.OrcProto.StripeFooter parseFrom(
io.prestosql.orc.protobuf.ByteString data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.StripeFooter parseFrom(byte[] data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.proto.OrcProto.StripeFooter parseFrom(
byte[] data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.StripeFooter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.StripeFooter parseFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.StripeFooter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.StripeFooter parseDelimitedFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.StripeFooter parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.StripeFooter parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.prestosql.orc.proto.OrcProto.StripeFooter prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
io.prestosql.orc.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code orc.proto.StripeFooter}
*/
public static final class Builder extends
io.prestosql.orc.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orc.proto.StripeFooter)
io.prestosql.orc.proto.OrcProto.StripeFooterOrBuilder {
public static final io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeFooter_descriptor;
}
protected io.prestosql.orc.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeFooter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.prestosql.orc.proto.OrcProto.StripeFooter.class, io.prestosql.orc.proto.OrcProto.StripeFooter.Builder.class);
}
// Construct using io.prestosql.orc.proto.OrcProto.StripeFooter.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
io.prestosql.orc.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (io.prestosql.orc.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStreamsFieldBuilder();
getColumnsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (streamsBuilder_ == null) {
streams_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
streamsBuilder_.clear();
}
if (columnsBuilder_ == null) {
columns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
columnsBuilder_.clear();
}
writerTimezone_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeFooter_descriptor;
}
public io.prestosql.orc.proto.OrcProto.StripeFooter getDefaultInstanceForType() {
return io.prestosql.orc.proto.OrcProto.StripeFooter.getDefaultInstance();
}
public io.prestosql.orc.proto.OrcProto.StripeFooter build() {
io.prestosql.orc.proto.OrcProto.StripeFooter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.prestosql.orc.proto.OrcProto.StripeFooter buildPartial() {
io.prestosql.orc.proto.OrcProto.StripeFooter result = new io.prestosql.orc.proto.OrcProto.StripeFooter(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (streamsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
streams_ = java.util.Collections.unmodifiableList(streams_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.streams_ = streams_;
} else {
result.streams_ = streamsBuilder_.build();
}
if (columnsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.columns_ = columns_;
} else {
result.columns_ = columnsBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000001;
}
result.writerTimezone_ = writerTimezone_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
io.prestosql.orc.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(io.prestosql.orc.protobuf.Message other) {
if (other instanceof io.prestosql.orc.proto.OrcProto.StripeFooter) {
return mergeFrom((io.prestosql.orc.proto.OrcProto.StripeFooter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.prestosql.orc.proto.OrcProto.StripeFooter other) {
if (other == io.prestosql.orc.proto.OrcProto.StripeFooter.getDefaultInstance()) return this;
if (streamsBuilder_ == null) {
if (!other.streams_.isEmpty()) {
if (streams_.isEmpty()) {
streams_ = other.streams_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStreamsIsMutable();
streams_.addAll(other.streams_);
}
onChanged();
}
} else {
if (!other.streams_.isEmpty()) {
if (streamsBuilder_.isEmpty()) {
streamsBuilder_.dispose();
streamsBuilder_ = null;
streams_ = other.streams_;
bitField0_ = (bitField0_ & ~0x00000001);
streamsBuilder_ =
io.prestosql.orc.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStreamsFieldBuilder() : null;
} else {
streamsBuilder_.addAllMessages(other.streams_);
}
}
}
if (columnsBuilder_ == null) {
if (!other.columns_.isEmpty()) {
if (columns_.isEmpty()) {
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureColumnsIsMutable();
columns_.addAll(other.columns_);
}
onChanged();
}
} else {
if (!other.columns_.isEmpty()) {
if (columnsBuilder_.isEmpty()) {
columnsBuilder_.dispose();
columnsBuilder_ = null;
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000002);
columnsBuilder_ =
io.prestosql.orc.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getColumnsFieldBuilder() : null;
} else {
columnsBuilder_.addAllMessages(other.columns_);
}
}
}
if (other.hasWriterTimezone()) {
bitField0_ |= 0x00000004;
writerTimezone_ = other.writerTimezone_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.prestosql.orc.proto.OrcProto.StripeFooter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (io.prestosql.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.prestosql.orc.proto.OrcProto.StripeFooter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List streams_ =
java.util.Collections.emptyList();
private void ensureStreamsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
streams_ = new java.util.ArrayList(streams_);
bitField0_ |= 0x00000001;
}
}
private io.prestosql.orc.protobuf.RepeatedFieldBuilderV3<
io.prestosql.orc.proto.OrcProto.Stream, io.prestosql.orc.proto.OrcProto.Stream.Builder, io.prestosql.orc.proto.OrcProto.StreamOrBuilder> streamsBuilder_;
/**
* repeated .orc.proto.Stream streams = 1;
*/
public java.util.List getStreamsList() {
if (streamsBuilder_ == null) {
return java.util.Collections.unmodifiableList(streams_);
} else {
return streamsBuilder_.getMessageList();
}
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public int getStreamsCount() {
if (streamsBuilder_ == null) {
return streams_.size();
} else {
return streamsBuilder_.getCount();
}
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public io.prestosql.orc.proto.OrcProto.Stream getStreams(int index) {
if (streamsBuilder_ == null) {
return streams_.get(index);
} else {
return streamsBuilder_.getMessage(index);
}
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public Builder setStreams(
int index, io.prestosql.orc.proto.OrcProto.Stream value) {
if (streamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamsIsMutable();
streams_.set(index, value);
onChanged();
} else {
streamsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public Builder setStreams(
int index, io.prestosql.orc.proto.OrcProto.Stream.Builder builderForValue) {
if (streamsBuilder_ == null) {
ensureStreamsIsMutable();
streams_.set(index, builderForValue.build());
onChanged();
} else {
streamsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public Builder addStreams(io.prestosql.orc.proto.OrcProto.Stream value) {
if (streamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamsIsMutable();
streams_.add(value);
onChanged();
} else {
streamsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public Builder addStreams(
int index, io.prestosql.orc.proto.OrcProto.Stream value) {
if (streamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamsIsMutable();
streams_.add(index, value);
onChanged();
} else {
streamsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public Builder addStreams(
io.prestosql.orc.proto.OrcProto.Stream.Builder builderForValue) {
if (streamsBuilder_ == null) {
ensureStreamsIsMutable();
streams_.add(builderForValue.build());
onChanged();
} else {
streamsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public Builder addStreams(
int index, io.prestosql.orc.proto.OrcProto.Stream.Builder builderForValue) {
if (streamsBuilder_ == null) {
ensureStreamsIsMutable();
streams_.add(index, builderForValue.build());
onChanged();
} else {
streamsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public Builder addAllStreams(
java.lang.Iterable extends io.prestosql.orc.proto.OrcProto.Stream> values) {
if (streamsBuilder_ == null) {
ensureStreamsIsMutable();
io.prestosql.orc.protobuf.AbstractMessageLite.Builder.addAll(
values, streams_);
onChanged();
} else {
streamsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public Builder clearStreams() {
if (streamsBuilder_ == null) {
streams_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
streamsBuilder_.clear();
}
return this;
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public Builder removeStreams(int index) {
if (streamsBuilder_ == null) {
ensureStreamsIsMutable();
streams_.remove(index);
onChanged();
} else {
streamsBuilder_.remove(index);
}
return this;
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public io.prestosql.orc.proto.OrcProto.Stream.Builder getStreamsBuilder(
int index) {
return getStreamsFieldBuilder().getBuilder(index);
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public io.prestosql.orc.proto.OrcProto.StreamOrBuilder getStreamsOrBuilder(
int index) {
if (streamsBuilder_ == null) {
return streams_.get(index); } else {
return streamsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public java.util.List extends io.prestosql.orc.proto.OrcProto.StreamOrBuilder>
getStreamsOrBuilderList() {
if (streamsBuilder_ != null) {
return streamsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(streams_);
}
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public io.prestosql.orc.proto.OrcProto.Stream.Builder addStreamsBuilder() {
return getStreamsFieldBuilder().addBuilder(
io.prestosql.orc.proto.OrcProto.Stream.getDefaultInstance());
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public io.prestosql.orc.proto.OrcProto.Stream.Builder addStreamsBuilder(
int index) {
return getStreamsFieldBuilder().addBuilder(
index, io.prestosql.orc.proto.OrcProto.Stream.getDefaultInstance());
}
/**
* repeated .orc.proto.Stream streams = 1;
*/
public java.util.List
getStreamsBuilderList() {
return getStreamsFieldBuilder().getBuilderList();
}
private io.prestosql.orc.protobuf.RepeatedFieldBuilderV3<
io.prestosql.orc.proto.OrcProto.Stream, io.prestosql.orc.proto.OrcProto.Stream.Builder, io.prestosql.orc.proto.OrcProto.StreamOrBuilder>
getStreamsFieldBuilder() {
if (streamsBuilder_ == null) {
streamsBuilder_ = new io.prestosql.orc.protobuf.RepeatedFieldBuilderV3<
io.prestosql.orc.proto.OrcProto.Stream, io.prestosql.orc.proto.OrcProto.Stream.Builder, io.prestosql.orc.proto.OrcProto.StreamOrBuilder>(
streams_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
streams_ = null;
}
return streamsBuilder_;
}
private java.util.List columns_ =
java.util.Collections.emptyList();
private void ensureColumnsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
columns_ = new java.util.ArrayList(columns_);
bitField0_ |= 0x00000002;
}
}
private io.prestosql.orc.protobuf.RepeatedFieldBuilderV3<
io.prestosql.orc.proto.OrcProto.ColumnEncoding, io.prestosql.orc.proto.OrcProto.ColumnEncoding.Builder, io.prestosql.orc.proto.OrcProto.ColumnEncodingOrBuilder> columnsBuilder_;
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public java.util.List getColumnsList() {
if (columnsBuilder_ == null) {
return java.util.Collections.unmodifiableList(columns_);
} else {
return columnsBuilder_.getMessageList();
}
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public int getColumnsCount() {
if (columnsBuilder_ == null) {
return columns_.size();
} else {
return columnsBuilder_.getCount();
}
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public io.prestosql.orc.proto.OrcProto.ColumnEncoding getColumns(int index) {
if (columnsBuilder_ == null) {
return columns_.get(index);
} else {
return columnsBuilder_.getMessage(index);
}
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public Builder setColumns(
int index, io.prestosql.orc.proto.OrcProto.ColumnEncoding value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.set(index, value);
onChanged();
} else {
columnsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public Builder setColumns(
int index, io.prestosql.orc.proto.OrcProto.ColumnEncoding.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.set(index, builderForValue.build());
onChanged();
} else {
columnsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public Builder addColumns(io.prestosql.orc.proto.OrcProto.ColumnEncoding value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.add(value);
onChanged();
} else {
columnsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public Builder addColumns(
int index, io.prestosql.orc.proto.OrcProto.ColumnEncoding value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.add(index, value);
onChanged();
} else {
columnsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public Builder addColumns(
io.prestosql.orc.proto.OrcProto.ColumnEncoding.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.add(builderForValue.build());
onChanged();
} else {
columnsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public Builder addColumns(
int index, io.prestosql.orc.proto.OrcProto.ColumnEncoding.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.add(index, builderForValue.build());
onChanged();
} else {
columnsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public Builder addAllColumns(
java.lang.Iterable extends io.prestosql.orc.proto.OrcProto.ColumnEncoding> values) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
io.prestosql.orc.protobuf.AbstractMessageLite.Builder.addAll(
values, columns_);
onChanged();
} else {
columnsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public Builder clearColumns() {
if (columnsBuilder_ == null) {
columns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
columnsBuilder_.clear();
}
return this;
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public Builder removeColumns(int index) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.remove(index);
onChanged();
} else {
columnsBuilder_.remove(index);
}
return this;
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public io.prestosql.orc.proto.OrcProto.ColumnEncoding.Builder getColumnsBuilder(
int index) {
return getColumnsFieldBuilder().getBuilder(index);
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public io.prestosql.orc.proto.OrcProto.ColumnEncodingOrBuilder getColumnsOrBuilder(
int index) {
if (columnsBuilder_ == null) {
return columns_.get(index); } else {
return columnsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public java.util.List extends io.prestosql.orc.proto.OrcProto.ColumnEncodingOrBuilder>
getColumnsOrBuilderList() {
if (columnsBuilder_ != null) {
return columnsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(columns_);
}
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public io.prestosql.orc.proto.OrcProto.ColumnEncoding.Builder addColumnsBuilder() {
return getColumnsFieldBuilder().addBuilder(
io.prestosql.orc.proto.OrcProto.ColumnEncoding.getDefaultInstance());
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public io.prestosql.orc.proto.OrcProto.ColumnEncoding.Builder addColumnsBuilder(
int index) {
return getColumnsFieldBuilder().addBuilder(
index, io.prestosql.orc.proto.OrcProto.ColumnEncoding.getDefaultInstance());
}
/**
* repeated .orc.proto.ColumnEncoding columns = 2;
*/
public java.util.List
getColumnsBuilderList() {
return getColumnsFieldBuilder().getBuilderList();
}
private io.prestosql.orc.protobuf.RepeatedFieldBuilderV3<
io.prestosql.orc.proto.OrcProto.ColumnEncoding, io.prestosql.orc.proto.OrcProto.ColumnEncoding.Builder, io.prestosql.orc.proto.OrcProto.ColumnEncodingOrBuilder>
getColumnsFieldBuilder() {
if (columnsBuilder_ == null) {
columnsBuilder_ = new io.prestosql.orc.protobuf.RepeatedFieldBuilderV3<
io.prestosql.orc.proto.OrcProto.ColumnEncoding, io.prestosql.orc.proto.OrcProto.ColumnEncoding.Builder, io.prestosql.orc.proto.OrcProto.ColumnEncodingOrBuilder>(
columns_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
columns_ = null;
}
return columnsBuilder_;
}
private java.lang.Object writerTimezone_ = "";
/**
* optional string writerTimezone = 3;
*/
public boolean hasWriterTimezone() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string writerTimezone = 3;
*/
public java.lang.String getWriterTimezone() {
java.lang.Object ref = writerTimezone_;
if (!(ref instanceof java.lang.String)) {
io.prestosql.orc.protobuf.ByteString bs =
(io.prestosql.orc.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
writerTimezone_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string writerTimezone = 3;
*/
public io.prestosql.orc.protobuf.ByteString
getWriterTimezoneBytes() {
java.lang.Object ref = writerTimezone_;
if (ref instanceof String) {
io.prestosql.orc.protobuf.ByteString b =
io.prestosql.orc.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
writerTimezone_ = b;
return b;
} else {
return (io.prestosql.orc.protobuf.ByteString) ref;
}
}
/**
* optional string writerTimezone = 3;
*/
public Builder setWriterTimezone(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
writerTimezone_ = value;
onChanged();
return this;
}
/**
* optional string writerTimezone = 3;
*/
public Builder clearWriterTimezone() {
bitField0_ = (bitField0_ & ~0x00000004);
writerTimezone_ = getDefaultInstance().getWriterTimezone();
onChanged();
return this;
}
/**
* optional string writerTimezone = 3;
*/
public Builder setWriterTimezoneBytes(
io.prestosql.orc.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
writerTimezone_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:orc.proto.StripeFooter)
}
// @@protoc_insertion_point(class_scope:orc.proto.StripeFooter)
private static final io.prestosql.orc.proto.OrcProto.StripeFooter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.prestosql.orc.proto.OrcProto.StripeFooter();
}
public static io.prestosql.orc.proto.OrcProto.StripeFooter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final io.prestosql.orc.protobuf.Parser
PARSER = new io.prestosql.orc.protobuf.AbstractParser() {
public StripeFooter parsePartialFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return new StripeFooter(input, extensionRegistry);
}
};
public static io.prestosql.orc.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public io.prestosql.orc.protobuf.Parser getParserForType() {
return PARSER;
}
public io.prestosql.orc.proto.OrcProto.StripeFooter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:orc.proto.Type)
io.prestosql.orc.protobuf.MessageOrBuilder {
/**
* optional .orc.proto.Type.Kind kind = 1;
*/
boolean hasKind();
/**
* optional .orc.proto.Type.Kind kind = 1;
*/
io.prestosql.orc.proto.OrcProto.Type.Kind getKind();
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
java.util.List getSubtypesList();
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
int getSubtypesCount();
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
int getSubtypes(int index);
/**
* repeated string fieldNames = 3;
*/
java.util.List
getFieldNamesList();
/**
* repeated string fieldNames = 3;
*/
int getFieldNamesCount();
/**
* repeated string fieldNames = 3;
*/
java.lang.String getFieldNames(int index);
/**
* repeated string fieldNames = 3;
*/
io.prestosql.orc.protobuf.ByteString
getFieldNamesBytes(int index);
/**
* optional uint32 maximumLength = 4;
*/
boolean hasMaximumLength();
/**
* optional uint32 maximumLength = 4;
*/
int getMaximumLength();
/**
* optional uint32 precision = 5;
*/
boolean hasPrecision();
/**
* optional uint32 precision = 5;
*/
int getPrecision();
/**
* optional uint32 scale = 6;
*/
boolean hasScale();
/**
* optional uint32 scale = 6;
*/
int getScale();
}
/**
* Protobuf type {@code orc.proto.Type}
*/
public static final class Type extends
io.prestosql.orc.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orc.proto.Type)
TypeOrBuilder {
// Use Type.newBuilder() to construct.
private Type(io.prestosql.orc.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Type() {
kind_ = 0;
subtypes_ = java.util.Collections.emptyList();
fieldNames_ = io.prestosql.orc.protobuf.LazyStringArrayList.EMPTY;
maximumLength_ = 0;
precision_ = 0;
scale_ = 0;
}
@java.lang.Override
public final io.prestosql.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Type(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
io.prestosql.orc.protobuf.UnknownFieldSet.Builder unknownFields =
io.prestosql.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
io.prestosql.orc.proto.OrcProto.Type.Kind value = io.prestosql.orc.proto.OrcProto.Type.Kind.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
kind_ = rawValue;
}
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
subtypes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
subtypes_.add(input.readUInt32());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
subtypes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
subtypes_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 26: {
io.prestosql.orc.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
fieldNames_ = new io.prestosql.orc.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
fieldNames_.add(bs);
break;
}
case 32: {
bitField0_ |= 0x00000002;
maximumLength_ = input.readUInt32();
break;
}
case 40: {
bitField0_ |= 0x00000004;
precision_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000008;
scale_ = input.readUInt32();
break;
}
}
}
} catch (io.prestosql.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new io.prestosql.orc.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
subtypes_ = java.util.Collections.unmodifiableList(subtypes_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
fieldNames_ = fieldNames_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_Type_descriptor;
}
protected io.prestosql.orc.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_Type_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.prestosql.orc.proto.OrcProto.Type.class, io.prestosql.orc.proto.OrcProto.Type.Builder.class);
}
/**
* Protobuf enum {@code orc.proto.Type.Kind}
*/
public enum Kind
implements io.prestosql.orc.protobuf.ProtocolMessageEnum {
/**
* BOOLEAN = 0;
*/
BOOLEAN(0),
/**
* BYTE = 1;
*/
BYTE(1),
/**
* SHORT = 2;
*/
SHORT(2),
/**
* INT = 3;
*/
INT(3),
/**
* LONG = 4;
*/
LONG(4),
/**
* FLOAT = 5;
*/
FLOAT(5),
/**
* DOUBLE = 6;
*/
DOUBLE(6),
/**
* STRING = 7;
*/
STRING(7),
/**
* BINARY = 8;
*/
BINARY(8),
/**
* TIMESTAMP = 9;
*/
TIMESTAMP(9),
/**
* LIST = 10;
*/
LIST(10),
/**
* MAP = 11;
*/
MAP(11),
/**
* STRUCT = 12;
*/
STRUCT(12),
/**
* UNION = 13;
*/
UNION(13),
/**
* DECIMAL = 14;
*/
DECIMAL(14),
/**
* DATE = 15;
*/
DATE(15),
/**
* VARCHAR = 16;
*/
VARCHAR(16),
/**
* CHAR = 17;
*/
CHAR(17),
;
/**
* BOOLEAN = 0;
*/
public static final int BOOLEAN_VALUE = 0;
/**
* BYTE = 1;
*/
public static final int BYTE_VALUE = 1;
/**
* SHORT = 2;
*/
public static final int SHORT_VALUE = 2;
/**
* INT = 3;
*/
public static final int INT_VALUE = 3;
/**
* LONG = 4;
*/
public static final int LONG_VALUE = 4;
/**
* FLOAT = 5;
*/
public static final int FLOAT_VALUE = 5;
/**
* DOUBLE = 6;
*/
public static final int DOUBLE_VALUE = 6;
/**
* STRING = 7;
*/
public static final int STRING_VALUE = 7;
/**
* BINARY = 8;
*/
public static final int BINARY_VALUE = 8;
/**
* TIMESTAMP = 9;
*/
public static final int TIMESTAMP_VALUE = 9;
/**
* LIST = 10;
*/
public static final int LIST_VALUE = 10;
/**
* MAP = 11;
*/
public static final int MAP_VALUE = 11;
/**
* STRUCT = 12;
*/
public static final int STRUCT_VALUE = 12;
/**
* UNION = 13;
*/
public static final int UNION_VALUE = 13;
/**
* DECIMAL = 14;
*/
public static final int DECIMAL_VALUE = 14;
/**
* DATE = 15;
*/
public static final int DATE_VALUE = 15;
/**
* VARCHAR = 16;
*/
public static final int VARCHAR_VALUE = 16;
/**
* CHAR = 17;
*/
public static final int CHAR_VALUE = 17;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Kind valueOf(int value) {
return forNumber(value);
}
public static Kind forNumber(int value) {
switch (value) {
case 0: return BOOLEAN;
case 1: return BYTE;
case 2: return SHORT;
case 3: return INT;
case 4: return LONG;
case 5: return FLOAT;
case 6: return DOUBLE;
case 7: return STRING;
case 8: return BINARY;
case 9: return TIMESTAMP;
case 10: return LIST;
case 11: return MAP;
case 12: return STRUCT;
case 13: return UNION;
case 14: return DECIMAL;
case 15: return DATE;
case 16: return VARCHAR;
case 17: return CHAR;
default: return null;
}
}
public static io.prestosql.orc.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final io.prestosql.orc.protobuf.Internal.EnumLiteMap<
Kind> internalValueMap =
new io.prestosql.orc.protobuf.Internal.EnumLiteMap() {
public Kind findValueByNumber(int number) {
return Kind.forNumber(number);
}
};
public final io.prestosql.orc.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final io.prestosql.orc.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final io.prestosql.orc.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.Type.getDescriptor().getEnumTypes().get(0);
}
private static final Kind[] VALUES = values();
public static Kind valueOf(
io.prestosql.orc.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Kind(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:orc.proto.Type.Kind)
}
private int bitField0_;
public static final int KIND_FIELD_NUMBER = 1;
private int kind_;
/**
* optional .orc.proto.Type.Kind kind = 1;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .orc.proto.Type.Kind kind = 1;
*/
public io.prestosql.orc.proto.OrcProto.Type.Kind getKind() {
io.prestosql.orc.proto.OrcProto.Type.Kind result = io.prestosql.orc.proto.OrcProto.Type.Kind.valueOf(kind_);
return result == null ? io.prestosql.orc.proto.OrcProto.Type.Kind.BOOLEAN : result;
}
public static final int SUBTYPES_FIELD_NUMBER = 2;
private java.util.List subtypes_;
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public java.util.List
getSubtypesList() {
return subtypes_;
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public int getSubtypesCount() {
return subtypes_.size();
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public int getSubtypes(int index) {
return subtypes_.get(index);
}
private int subtypesMemoizedSerializedSize = -1;
public static final int FIELDNAMES_FIELD_NUMBER = 3;
private io.prestosql.orc.protobuf.LazyStringList fieldNames_;
/**
* repeated string fieldNames = 3;
*/
public io.prestosql.orc.protobuf.ProtocolStringList
getFieldNamesList() {
return fieldNames_;
}
/**
* repeated string fieldNames = 3;
*/
public int getFieldNamesCount() {
return fieldNames_.size();
}
/**
* repeated string fieldNames = 3;
*/
public java.lang.String getFieldNames(int index) {
return fieldNames_.get(index);
}
/**
* repeated string fieldNames = 3;
*/
public io.prestosql.orc.protobuf.ByteString
getFieldNamesBytes(int index) {
return fieldNames_.getByteString(index);
}
public static final int MAXIMUMLENGTH_FIELD_NUMBER = 4;
private int maximumLength_;
/**
* optional uint32 maximumLength = 4;
*/
public boolean hasMaximumLength() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 maximumLength = 4;
*/
public int getMaximumLength() {
return maximumLength_;
}
public static final int PRECISION_FIELD_NUMBER = 5;
private int precision_;
/**
* optional uint32 precision = 5;
*/
public boolean hasPrecision() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 precision = 5;
*/
public int getPrecision() {
return precision_;
}
public static final int SCALE_FIELD_NUMBER = 6;
private int scale_;
/**
* optional uint32 scale = 6;
*/
public boolean hasScale() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 scale = 6;
*/
public int getScale() {
return scale_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(io.prestosql.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, kind_);
}
if (getSubtypesList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(subtypesMemoizedSerializedSize);
}
for (int i = 0; i < subtypes_.size(); i++) {
output.writeUInt32NoTag(subtypes_.get(i));
}
for (int i = 0; i < fieldNames_.size(); i++) {
io.prestosql.orc.protobuf.GeneratedMessageV3.writeString(output, 3, fieldNames_.getRaw(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(4, maximumLength_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(5, precision_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(6, scale_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeEnumSize(1, kind_);
}
{
int dataSize = 0;
for (int i = 0; i < subtypes_.size(); i++) {
dataSize += io.prestosql.orc.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(subtypes_.get(i));
}
size += dataSize;
if (!getSubtypesList().isEmpty()) {
size += 1;
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
subtypesMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < fieldNames_.size(); i++) {
dataSize += computeStringSizeNoTag(fieldNames_.getRaw(i));
}
size += dataSize;
size += 1 * getFieldNamesList().size();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeUInt32Size(4, maximumLength_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeUInt32Size(5, precision_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeUInt32Size(6, scale_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.prestosql.orc.proto.OrcProto.Type)) {
return super.equals(obj);
}
io.prestosql.orc.proto.OrcProto.Type other = (io.prestosql.orc.proto.OrcProto.Type) obj;
boolean result = true;
result = result && (hasKind() == other.hasKind());
if (hasKind()) {
result = result && kind_ == other.kind_;
}
result = result && getSubtypesList()
.equals(other.getSubtypesList());
result = result && getFieldNamesList()
.equals(other.getFieldNamesList());
result = result && (hasMaximumLength() == other.hasMaximumLength());
if (hasMaximumLength()) {
result = result && (getMaximumLength()
== other.getMaximumLength());
}
result = result && (hasPrecision() == other.hasPrecision());
if (hasPrecision()) {
result = result && (getPrecision()
== other.getPrecision());
}
result = result && (hasScale() == other.hasScale());
if (hasScale()) {
result = result && (getScale()
== other.getScale());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKind()) {
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + kind_;
}
if (getSubtypesCount() > 0) {
hash = (37 * hash) + SUBTYPES_FIELD_NUMBER;
hash = (53 * hash) + getSubtypesList().hashCode();
}
if (getFieldNamesCount() > 0) {
hash = (37 * hash) + FIELDNAMES_FIELD_NUMBER;
hash = (53 * hash) + getFieldNamesList().hashCode();
}
if (hasMaximumLength()) {
hash = (37 * hash) + MAXIMUMLENGTH_FIELD_NUMBER;
hash = (53 * hash) + getMaximumLength();
}
if (hasPrecision()) {
hash = (37 * hash) + PRECISION_FIELD_NUMBER;
hash = (53 * hash) + getPrecision();
}
if (hasScale()) {
hash = (37 * hash) + SCALE_FIELD_NUMBER;
hash = (53 * hash) + getScale();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.prestosql.orc.proto.OrcProto.Type parseFrom(
io.prestosql.orc.protobuf.ByteString data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.proto.OrcProto.Type parseFrom(
io.prestosql.orc.protobuf.ByteString data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.Type parseFrom(byte[] data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.proto.OrcProto.Type parseFrom(
byte[] data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.Type parseFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.Type parseFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.Type parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.Type parseDelimitedFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.Type parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.Type parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.prestosql.orc.proto.OrcProto.Type prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
io.prestosql.orc.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code orc.proto.Type}
*/
public static final class Builder extends
io.prestosql.orc.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orc.proto.Type)
io.prestosql.orc.proto.OrcProto.TypeOrBuilder {
public static final io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_Type_descriptor;
}
protected io.prestosql.orc.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_Type_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.prestosql.orc.proto.OrcProto.Type.class, io.prestosql.orc.proto.OrcProto.Type.Builder.class);
}
// Construct using io.prestosql.orc.proto.OrcProto.Type.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
io.prestosql.orc.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (io.prestosql.orc.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
kind_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
subtypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
fieldNames_ = io.prestosql.orc.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
maximumLength_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
precision_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
scale_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_Type_descriptor;
}
public io.prestosql.orc.proto.OrcProto.Type getDefaultInstanceForType() {
return io.prestosql.orc.proto.OrcProto.Type.getDefaultInstance();
}
public io.prestosql.orc.proto.OrcProto.Type build() {
io.prestosql.orc.proto.OrcProto.Type result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.prestosql.orc.proto.OrcProto.Type buildPartial() {
io.prestosql.orc.proto.OrcProto.Type result = new io.prestosql.orc.proto.OrcProto.Type(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.kind_ = kind_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subtypes_ = java.util.Collections.unmodifiableList(subtypes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.subtypes_ = subtypes_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
fieldNames_ = fieldNames_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.fieldNames_ = fieldNames_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000002;
}
result.maximumLength_ = maximumLength_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000004;
}
result.precision_ = precision_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000008;
}
result.scale_ = scale_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
io.prestosql.orc.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(io.prestosql.orc.protobuf.Message other) {
if (other instanceof io.prestosql.orc.proto.OrcProto.Type) {
return mergeFrom((io.prestosql.orc.proto.OrcProto.Type)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.prestosql.orc.proto.OrcProto.Type other) {
if (other == io.prestosql.orc.proto.OrcProto.Type.getDefaultInstance()) return this;
if (other.hasKind()) {
setKind(other.getKind());
}
if (!other.subtypes_.isEmpty()) {
if (subtypes_.isEmpty()) {
subtypes_ = other.subtypes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSubtypesIsMutable();
subtypes_.addAll(other.subtypes_);
}
onChanged();
}
if (!other.fieldNames_.isEmpty()) {
if (fieldNames_.isEmpty()) {
fieldNames_ = other.fieldNames_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFieldNamesIsMutable();
fieldNames_.addAll(other.fieldNames_);
}
onChanged();
}
if (other.hasMaximumLength()) {
setMaximumLength(other.getMaximumLength());
}
if (other.hasPrecision()) {
setPrecision(other.getPrecision());
}
if (other.hasScale()) {
setScale(other.getScale());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.prestosql.orc.proto.OrcProto.Type parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (io.prestosql.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.prestosql.orc.proto.OrcProto.Type) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int kind_ = 0;
/**
* optional .orc.proto.Type.Kind kind = 1;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .orc.proto.Type.Kind kind = 1;
*/
public io.prestosql.orc.proto.OrcProto.Type.Kind getKind() {
io.prestosql.orc.proto.OrcProto.Type.Kind result = io.prestosql.orc.proto.OrcProto.Type.Kind.valueOf(kind_);
return result == null ? io.prestosql.orc.proto.OrcProto.Type.Kind.BOOLEAN : result;
}
/**
* optional .orc.proto.Type.Kind kind = 1;
*/
public Builder setKind(io.prestosql.orc.proto.OrcProto.Type.Kind value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
kind_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .orc.proto.Type.Kind kind = 1;
*/
public Builder clearKind() {
bitField0_ = (bitField0_ & ~0x00000001);
kind_ = 0;
onChanged();
return this;
}
private java.util.List subtypes_ = java.util.Collections.emptyList();
private void ensureSubtypesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
subtypes_ = new java.util.ArrayList(subtypes_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public java.util.List
getSubtypesList() {
return java.util.Collections.unmodifiableList(subtypes_);
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public int getSubtypesCount() {
return subtypes_.size();
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public int getSubtypes(int index) {
return subtypes_.get(index);
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public Builder setSubtypes(
int index, int value) {
ensureSubtypesIsMutable();
subtypes_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public Builder addSubtypes(int value) {
ensureSubtypesIsMutable();
subtypes_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public Builder addAllSubtypes(
java.lang.Iterable extends java.lang.Integer> values) {
ensureSubtypesIsMutable();
io.prestosql.orc.protobuf.AbstractMessageLite.Builder.addAll(
values, subtypes_);
onChanged();
return this;
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public Builder clearSubtypes() {
subtypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private io.prestosql.orc.protobuf.LazyStringList fieldNames_ = io.prestosql.orc.protobuf.LazyStringArrayList.EMPTY;
private void ensureFieldNamesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
fieldNames_ = new io.prestosql.orc.protobuf.LazyStringArrayList(fieldNames_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string fieldNames = 3;
*/
public io.prestosql.orc.protobuf.ProtocolStringList
getFieldNamesList() {
return fieldNames_.getUnmodifiableView();
}
/**
* repeated string fieldNames = 3;
*/
public int getFieldNamesCount() {
return fieldNames_.size();
}
/**
* repeated string fieldNames = 3;
*/
public java.lang.String getFieldNames(int index) {
return fieldNames_.get(index);
}
/**
* repeated string fieldNames = 3;
*/
public io.prestosql.orc.protobuf.ByteString
getFieldNamesBytes(int index) {
return fieldNames_.getByteString(index);
}
/**
* repeated string fieldNames = 3;
*/
public Builder setFieldNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldNamesIsMutable();
fieldNames_.set(index, value);
onChanged();
return this;
}
/**
* repeated string fieldNames = 3;
*/
public Builder addFieldNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldNamesIsMutable();
fieldNames_.add(value);
onChanged();
return this;
}
/**
* repeated string fieldNames = 3;
*/
public Builder addAllFieldNames(
java.lang.Iterable values) {
ensureFieldNamesIsMutable();
io.prestosql.orc.protobuf.AbstractMessageLite.Builder.addAll(
values, fieldNames_);
onChanged();
return this;
}
/**
* repeated string fieldNames = 3;
*/
public Builder clearFieldNames() {
fieldNames_ = io.prestosql.orc.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string fieldNames = 3;
*/
public Builder addFieldNamesBytes(
io.prestosql.orc.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldNamesIsMutable();
fieldNames_.add(value);
onChanged();
return this;
}
private int maximumLength_ ;
/**
* optional uint32 maximumLength = 4;
*/
public boolean hasMaximumLength() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 maximumLength = 4;
*/
public int getMaximumLength() {
return maximumLength_;
}
/**
* optional uint32 maximumLength = 4;
*/
public Builder setMaximumLength(int value) {
bitField0_ |= 0x00000008;
maximumLength_ = value;
onChanged();
return this;
}
/**
* optional uint32 maximumLength = 4;
*/
public Builder clearMaximumLength() {
bitField0_ = (bitField0_ & ~0x00000008);
maximumLength_ = 0;
onChanged();
return this;
}
private int precision_ ;
/**
* optional uint32 precision = 5;
*/
public boolean hasPrecision() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 precision = 5;
*/
public int getPrecision() {
return precision_;
}
/**
* optional uint32 precision = 5;
*/
public Builder setPrecision(int value) {
bitField0_ |= 0x00000010;
precision_ = value;
onChanged();
return this;
}
/**
* optional uint32 precision = 5;
*/
public Builder clearPrecision() {
bitField0_ = (bitField0_ & ~0x00000010);
precision_ = 0;
onChanged();
return this;
}
private int scale_ ;
/**
* optional uint32 scale = 6;
*/
public boolean hasScale() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 scale = 6;
*/
public int getScale() {
return scale_;
}
/**
* optional uint32 scale = 6;
*/
public Builder setScale(int value) {
bitField0_ |= 0x00000020;
scale_ = value;
onChanged();
return this;
}
/**
* optional uint32 scale = 6;
*/
public Builder clearScale() {
bitField0_ = (bitField0_ & ~0x00000020);
scale_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:orc.proto.Type)
}
// @@protoc_insertion_point(class_scope:orc.proto.Type)
private static final io.prestosql.orc.proto.OrcProto.Type DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.prestosql.orc.proto.OrcProto.Type();
}
public static io.prestosql.orc.proto.OrcProto.Type getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final io.prestosql.orc.protobuf.Parser
PARSER = new io.prestosql.orc.protobuf.AbstractParser() {
public Type parsePartialFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return new Type(input, extensionRegistry);
}
};
public static io.prestosql.orc.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public io.prestosql.orc.protobuf.Parser getParserForType() {
return PARSER;
}
public io.prestosql.orc.proto.OrcProto.Type getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StripeInformationOrBuilder extends
// @@protoc_insertion_point(interface_extends:orc.proto.StripeInformation)
io.prestosql.orc.protobuf.MessageOrBuilder {
/**
* optional uint64 offset = 1;
*/
boolean hasOffset();
/**
* optional uint64 offset = 1;
*/
long getOffset();
/**
* optional uint64 indexLength = 2;
*/
boolean hasIndexLength();
/**
* optional uint64 indexLength = 2;
*/
long getIndexLength();
/**
* optional uint64 dataLength = 3;
*/
boolean hasDataLength();
/**
* optional uint64 dataLength = 3;
*/
long getDataLength();
/**
* optional uint64 footerLength = 4;
*/
boolean hasFooterLength();
/**
* optional uint64 footerLength = 4;
*/
long getFooterLength();
/**
* optional uint64 numberOfRows = 5;
*/
boolean hasNumberOfRows();
/**
* optional uint64 numberOfRows = 5;
*/
long getNumberOfRows();
}
/**
* Protobuf type {@code orc.proto.StripeInformation}
*/
public static final class StripeInformation extends
io.prestosql.orc.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orc.proto.StripeInformation)
StripeInformationOrBuilder {
// Use StripeInformation.newBuilder() to construct.
private StripeInformation(io.prestosql.orc.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StripeInformation() {
offset_ = 0L;
indexLength_ = 0L;
dataLength_ = 0L;
footerLength_ = 0L;
numberOfRows_ = 0L;
}
@java.lang.Override
public final io.prestosql.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StripeInformation(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
io.prestosql.orc.protobuf.UnknownFieldSet.Builder unknownFields =
io.prestosql.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
offset_ = input.readUInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
indexLength_ = input.readUInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
dataLength_ = input.readUInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
footerLength_ = input.readUInt64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
numberOfRows_ = input.readUInt64();
break;
}
}
}
} catch (io.prestosql.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new io.prestosql.orc.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeInformation_descriptor;
}
protected io.prestosql.orc.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeInformation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.prestosql.orc.proto.OrcProto.StripeInformation.class, io.prestosql.orc.proto.OrcProto.StripeInformation.Builder.class);
}
private int bitField0_;
public static final int OFFSET_FIELD_NUMBER = 1;
private long offset_;
/**
* optional uint64 offset = 1;
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint64 offset = 1;
*/
public long getOffset() {
return offset_;
}
public static final int INDEXLENGTH_FIELD_NUMBER = 2;
private long indexLength_;
/**
* optional uint64 indexLength = 2;
*/
public boolean hasIndexLength() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 indexLength = 2;
*/
public long getIndexLength() {
return indexLength_;
}
public static final int DATALENGTH_FIELD_NUMBER = 3;
private long dataLength_;
/**
* optional uint64 dataLength = 3;
*/
public boolean hasDataLength() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint64 dataLength = 3;
*/
public long getDataLength() {
return dataLength_;
}
public static final int FOOTERLENGTH_FIELD_NUMBER = 4;
private long footerLength_;
/**
* optional uint64 footerLength = 4;
*/
public boolean hasFooterLength() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint64 footerLength = 4;
*/
public long getFooterLength() {
return footerLength_;
}
public static final int NUMBEROFROWS_FIELD_NUMBER = 5;
private long numberOfRows_;
/**
* optional uint64 numberOfRows = 5;
*/
public boolean hasNumberOfRows() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint64 numberOfRows = 5;
*/
public long getNumberOfRows() {
return numberOfRows_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(io.prestosql.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt64(1, offset_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, indexLength_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt64(3, dataLength_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt64(4, footerLength_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt64(5, numberOfRows_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeUInt64Size(1, offset_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeUInt64Size(2, indexLength_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeUInt64Size(3, dataLength_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeUInt64Size(4, footerLength_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeUInt64Size(5, numberOfRows_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.prestosql.orc.proto.OrcProto.StripeInformation)) {
return super.equals(obj);
}
io.prestosql.orc.proto.OrcProto.StripeInformation other = (io.prestosql.orc.proto.OrcProto.StripeInformation) obj;
boolean result = true;
result = result && (hasOffset() == other.hasOffset());
if (hasOffset()) {
result = result && (getOffset()
== other.getOffset());
}
result = result && (hasIndexLength() == other.hasIndexLength());
if (hasIndexLength()) {
result = result && (getIndexLength()
== other.getIndexLength());
}
result = result && (hasDataLength() == other.hasDataLength());
if (hasDataLength()) {
result = result && (getDataLength()
== other.getDataLength());
}
result = result && (hasFooterLength() == other.hasFooterLength());
if (hasFooterLength()) {
result = result && (getFooterLength()
== other.getFooterLength());
}
result = result && (hasNumberOfRows() == other.hasNumberOfRows());
if (hasNumberOfRows()) {
result = result && (getNumberOfRows()
== other.getNumberOfRows());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOffset()) {
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + io.prestosql.orc.protobuf.Internal.hashLong(
getOffset());
}
if (hasIndexLength()) {
hash = (37 * hash) + INDEXLENGTH_FIELD_NUMBER;
hash = (53 * hash) + io.prestosql.orc.protobuf.Internal.hashLong(
getIndexLength());
}
if (hasDataLength()) {
hash = (37 * hash) + DATALENGTH_FIELD_NUMBER;
hash = (53 * hash) + io.prestosql.orc.protobuf.Internal.hashLong(
getDataLength());
}
if (hasFooterLength()) {
hash = (37 * hash) + FOOTERLENGTH_FIELD_NUMBER;
hash = (53 * hash) + io.prestosql.orc.protobuf.Internal.hashLong(
getFooterLength());
}
if (hasNumberOfRows()) {
hash = (37 * hash) + NUMBEROFROWS_FIELD_NUMBER;
hash = (53 * hash) + io.prestosql.orc.protobuf.Internal.hashLong(
getNumberOfRows());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.prestosql.orc.proto.OrcProto.StripeInformation parseFrom(
io.prestosql.orc.protobuf.ByteString data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.proto.OrcProto.StripeInformation parseFrom(
io.prestosql.orc.protobuf.ByteString data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.StripeInformation parseFrom(byte[] data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.proto.OrcProto.StripeInformation parseFrom(
byte[] data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.StripeInformation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.StripeInformation parseFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.StripeInformation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.StripeInformation parseDelimitedFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.StripeInformation parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.StripeInformation parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.prestosql.orc.proto.OrcProto.StripeInformation prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
io.prestosql.orc.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code orc.proto.StripeInformation}
*/
public static final class Builder extends
io.prestosql.orc.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orc.proto.StripeInformation)
io.prestosql.orc.proto.OrcProto.StripeInformationOrBuilder {
public static final io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeInformation_descriptor;
}
protected io.prestosql.orc.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeInformation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.prestosql.orc.proto.OrcProto.StripeInformation.class, io.prestosql.orc.proto.OrcProto.StripeInformation.Builder.class);
}
// Construct using io.prestosql.orc.proto.OrcProto.StripeInformation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
io.prestosql.orc.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (io.prestosql.orc.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
offset_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
indexLength_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
dataLength_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
footerLength_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
numberOfRows_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeInformation_descriptor;
}
public io.prestosql.orc.proto.OrcProto.StripeInformation getDefaultInstanceForType() {
return io.prestosql.orc.proto.OrcProto.StripeInformation.getDefaultInstance();
}
public io.prestosql.orc.proto.OrcProto.StripeInformation build() {
io.prestosql.orc.proto.OrcProto.StripeInformation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.prestosql.orc.proto.OrcProto.StripeInformation buildPartial() {
io.prestosql.orc.proto.OrcProto.StripeInformation result = new io.prestosql.orc.proto.OrcProto.StripeInformation(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.offset_ = offset_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.indexLength_ = indexLength_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.dataLength_ = dataLength_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.footerLength_ = footerLength_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.numberOfRows_ = numberOfRows_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
io.prestosql.orc.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(io.prestosql.orc.protobuf.Message other) {
if (other instanceof io.prestosql.orc.proto.OrcProto.StripeInformation) {
return mergeFrom((io.prestosql.orc.proto.OrcProto.StripeInformation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.prestosql.orc.proto.OrcProto.StripeInformation other) {
if (other == io.prestosql.orc.proto.OrcProto.StripeInformation.getDefaultInstance()) return this;
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (other.hasIndexLength()) {
setIndexLength(other.getIndexLength());
}
if (other.hasDataLength()) {
setDataLength(other.getDataLength());
}
if (other.hasFooterLength()) {
setFooterLength(other.getFooterLength());
}
if (other.hasNumberOfRows()) {
setNumberOfRows(other.getNumberOfRows());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.prestosql.orc.proto.OrcProto.StripeInformation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (io.prestosql.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.prestosql.orc.proto.OrcProto.StripeInformation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long offset_ ;
/**
* optional uint64 offset = 1;
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint64 offset = 1;
*/
public long getOffset() {
return offset_;
}
/**
* optional uint64 offset = 1;
*/
public Builder setOffset(long value) {
bitField0_ |= 0x00000001;
offset_ = value;
onChanged();
return this;
}
/**
* optional uint64 offset = 1;
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000001);
offset_ = 0L;
onChanged();
return this;
}
private long indexLength_ ;
/**
* optional uint64 indexLength = 2;
*/
public boolean hasIndexLength() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 indexLength = 2;
*/
public long getIndexLength() {
return indexLength_;
}
/**
* optional uint64 indexLength = 2;
*/
public Builder setIndexLength(long value) {
bitField0_ |= 0x00000002;
indexLength_ = value;
onChanged();
return this;
}
/**
* optional uint64 indexLength = 2;
*/
public Builder clearIndexLength() {
bitField0_ = (bitField0_ & ~0x00000002);
indexLength_ = 0L;
onChanged();
return this;
}
private long dataLength_ ;
/**
* optional uint64 dataLength = 3;
*/
public boolean hasDataLength() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint64 dataLength = 3;
*/
public long getDataLength() {
return dataLength_;
}
/**
* optional uint64 dataLength = 3;
*/
public Builder setDataLength(long value) {
bitField0_ |= 0x00000004;
dataLength_ = value;
onChanged();
return this;
}
/**
* optional uint64 dataLength = 3;
*/
public Builder clearDataLength() {
bitField0_ = (bitField0_ & ~0x00000004);
dataLength_ = 0L;
onChanged();
return this;
}
private long footerLength_ ;
/**
* optional uint64 footerLength = 4;
*/
public boolean hasFooterLength() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint64 footerLength = 4;
*/
public long getFooterLength() {
return footerLength_;
}
/**
* optional uint64 footerLength = 4;
*/
public Builder setFooterLength(long value) {
bitField0_ |= 0x00000008;
footerLength_ = value;
onChanged();
return this;
}
/**
* optional uint64 footerLength = 4;
*/
public Builder clearFooterLength() {
bitField0_ = (bitField0_ & ~0x00000008);
footerLength_ = 0L;
onChanged();
return this;
}
private long numberOfRows_ ;
/**
* optional uint64 numberOfRows = 5;
*/
public boolean hasNumberOfRows() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint64 numberOfRows = 5;
*/
public long getNumberOfRows() {
return numberOfRows_;
}
/**
* optional uint64 numberOfRows = 5;
*/
public Builder setNumberOfRows(long value) {
bitField0_ |= 0x00000010;
numberOfRows_ = value;
onChanged();
return this;
}
/**
* optional uint64 numberOfRows = 5;
*/
public Builder clearNumberOfRows() {
bitField0_ = (bitField0_ & ~0x00000010);
numberOfRows_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:orc.proto.StripeInformation)
}
// @@protoc_insertion_point(class_scope:orc.proto.StripeInformation)
private static final io.prestosql.orc.proto.OrcProto.StripeInformation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.prestosql.orc.proto.OrcProto.StripeInformation();
}
public static io.prestosql.orc.proto.OrcProto.StripeInformation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final io.prestosql.orc.protobuf.Parser
PARSER = new io.prestosql.orc.protobuf.AbstractParser() {
public StripeInformation parsePartialFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return new StripeInformation(input, extensionRegistry);
}
};
public static io.prestosql.orc.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public io.prestosql.orc.protobuf.Parser getParserForType() {
return PARSER;
}
public io.prestosql.orc.proto.OrcProto.StripeInformation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UserMetadataItemOrBuilder extends
// @@protoc_insertion_point(interface_extends:orc.proto.UserMetadataItem)
io.prestosql.orc.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
io.prestosql.orc.protobuf.ByteString
getNameBytes();
/**
* optional bytes value = 2;
*/
boolean hasValue();
/**
* optional bytes value = 2;
*/
io.prestosql.orc.protobuf.ByteString getValue();
}
/**
* Protobuf type {@code orc.proto.UserMetadataItem}
*/
public static final class UserMetadataItem extends
io.prestosql.orc.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orc.proto.UserMetadataItem)
UserMetadataItemOrBuilder {
// Use UserMetadataItem.newBuilder() to construct.
private UserMetadataItem(io.prestosql.orc.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UserMetadataItem() {
name_ = "";
value_ = io.prestosql.orc.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final io.prestosql.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UserMetadataItem(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
io.prestosql.orc.protobuf.UnknownFieldSet.Builder unknownFields =
io.prestosql.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
io.prestosql.orc.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 18: {
bitField0_ |= 0x00000002;
value_ = input.readBytes();
break;
}
}
}
} catch (io.prestosql.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new io.prestosql.orc.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_UserMetadataItem_descriptor;
}
protected io.prestosql.orc.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_UserMetadataItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.prestosql.orc.proto.OrcProto.UserMetadataItem.class, io.prestosql.orc.proto.OrcProto.UserMetadataItem.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
io.prestosql.orc.protobuf.ByteString bs =
(io.prestosql.orc.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
*/
public io.prestosql.orc.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
io.prestosql.orc.protobuf.ByteString b =
io.prestosql.orc.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (io.prestosql.orc.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private io.prestosql.orc.protobuf.ByteString value_;
/**
* optional bytes value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes value = 2;
*/
public io.prestosql.orc.protobuf.ByteString getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(io.prestosql.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
io.prestosql.orc.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, value_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += io.prestosql.orc.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeBytesSize(2, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.prestosql.orc.proto.OrcProto.UserMetadataItem)) {
return super.equals(obj);
}
io.prestosql.orc.proto.OrcProto.UserMetadataItem other = (io.prestosql.orc.proto.OrcProto.UserMetadataItem) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue()
.equals(other.getValue());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.prestosql.orc.proto.OrcProto.UserMetadataItem parseFrom(
io.prestosql.orc.protobuf.ByteString data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.proto.OrcProto.UserMetadataItem parseFrom(
io.prestosql.orc.protobuf.ByteString data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.UserMetadataItem parseFrom(byte[] data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.proto.OrcProto.UserMetadataItem parseFrom(
byte[] data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.UserMetadataItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.UserMetadataItem parseFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.UserMetadataItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.UserMetadataItem parseDelimitedFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.UserMetadataItem parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.UserMetadataItem parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.prestosql.orc.proto.OrcProto.UserMetadataItem prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
io.prestosql.orc.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code orc.proto.UserMetadataItem}
*/
public static final class Builder extends
io.prestosql.orc.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orc.proto.UserMetadataItem)
io.prestosql.orc.proto.OrcProto.UserMetadataItemOrBuilder {
public static final io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_UserMetadataItem_descriptor;
}
protected io.prestosql.orc.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_UserMetadataItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.prestosql.orc.proto.OrcProto.UserMetadataItem.class, io.prestosql.orc.proto.OrcProto.UserMetadataItem.Builder.class);
}
// Construct using io.prestosql.orc.proto.OrcProto.UserMetadataItem.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
io.prestosql.orc.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (io.prestosql.orc.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = io.prestosql.orc.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_UserMetadataItem_descriptor;
}
public io.prestosql.orc.proto.OrcProto.UserMetadataItem getDefaultInstanceForType() {
return io.prestosql.orc.proto.OrcProto.UserMetadataItem.getDefaultInstance();
}
public io.prestosql.orc.proto.OrcProto.UserMetadataItem build() {
io.prestosql.orc.proto.OrcProto.UserMetadataItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.prestosql.orc.proto.OrcProto.UserMetadataItem buildPartial() {
io.prestosql.orc.proto.OrcProto.UserMetadataItem result = new io.prestosql.orc.proto.OrcProto.UserMetadataItem(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
io.prestosql.orc.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(io.prestosql.orc.protobuf.Message other) {
if (other instanceof io.prestosql.orc.proto.OrcProto.UserMetadataItem) {
return mergeFrom((io.prestosql.orc.proto.OrcProto.UserMetadataItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.prestosql.orc.proto.OrcProto.UserMetadataItem other) {
if (other == io.prestosql.orc.proto.OrcProto.UserMetadataItem.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasValue()) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.prestosql.orc.proto.OrcProto.UserMetadataItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (io.prestosql.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.prestosql.orc.proto.OrcProto.UserMetadataItem) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
io.prestosql.orc.protobuf.ByteString bs =
(io.prestosql.orc.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
*/
public io.prestosql.orc.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
io.prestosql.orc.protobuf.ByteString b =
io.prestosql.orc.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (io.prestosql.orc.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
io.prestosql.orc.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private io.prestosql.orc.protobuf.ByteString value_ = io.prestosql.orc.protobuf.ByteString.EMPTY;
/**
* optional bytes value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes value = 2;
*/
public io.prestosql.orc.protobuf.ByteString getValue() {
return value_;
}
/**
* optional bytes value = 2;
*/
public Builder setValue(io.prestosql.orc.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional bytes value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
public final Builder setUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:orc.proto.UserMetadataItem)
}
// @@protoc_insertion_point(class_scope:orc.proto.UserMetadataItem)
private static final io.prestosql.orc.proto.OrcProto.UserMetadataItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.prestosql.orc.proto.OrcProto.UserMetadataItem();
}
public static io.prestosql.orc.proto.OrcProto.UserMetadataItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final io.prestosql.orc.protobuf.Parser
PARSER = new io.prestosql.orc.protobuf.AbstractParser() {
public UserMetadataItem parsePartialFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return new UserMetadataItem(input, extensionRegistry);
}
};
public static io.prestosql.orc.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public io.prestosql.orc.protobuf.Parser getParserForType() {
return PARSER;
}
public io.prestosql.orc.proto.OrcProto.UserMetadataItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StripeStatisticsOrBuilder extends
// @@protoc_insertion_point(interface_extends:orc.proto.StripeStatistics)
io.prestosql.orc.protobuf.MessageOrBuilder {
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
java.util.List
getColStatsList();
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
io.prestosql.orc.proto.OrcProto.ColumnStatistics getColStats(int index);
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
int getColStatsCount();
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
java.util.List extends io.prestosql.orc.proto.OrcProto.ColumnStatisticsOrBuilder>
getColStatsOrBuilderList();
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
io.prestosql.orc.proto.OrcProto.ColumnStatisticsOrBuilder getColStatsOrBuilder(
int index);
}
/**
* Protobuf type {@code orc.proto.StripeStatistics}
*/
public static final class StripeStatistics extends
io.prestosql.orc.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orc.proto.StripeStatistics)
StripeStatisticsOrBuilder {
// Use StripeStatistics.newBuilder() to construct.
private StripeStatistics(io.prestosql.orc.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StripeStatistics() {
colStats_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final io.prestosql.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StripeStatistics(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
io.prestosql.orc.protobuf.UnknownFieldSet.Builder unknownFields =
io.prestosql.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
colStats_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
colStats_.add(
input.readMessage(io.prestosql.orc.proto.OrcProto.ColumnStatistics.PARSER, extensionRegistry));
break;
}
}
}
} catch (io.prestosql.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new io.prestosql.orc.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
colStats_ = java.util.Collections.unmodifiableList(colStats_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeStatistics_descriptor;
}
protected io.prestosql.orc.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.prestosql.orc.proto.OrcProto.StripeStatistics.class, io.prestosql.orc.proto.OrcProto.StripeStatistics.Builder.class);
}
public static final int COLSTATS_FIELD_NUMBER = 1;
private java.util.List colStats_;
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public java.util.List getColStatsList() {
return colStats_;
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public java.util.List extends io.prestosql.orc.proto.OrcProto.ColumnStatisticsOrBuilder>
getColStatsOrBuilderList() {
return colStats_;
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public int getColStatsCount() {
return colStats_.size();
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.ColumnStatistics getColStats(int index) {
return colStats_.get(index);
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.ColumnStatisticsOrBuilder getColStatsOrBuilder(
int index) {
return colStats_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(io.prestosql.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < colStats_.size(); i++) {
output.writeMessage(1, colStats_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < colStats_.size(); i++) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeMessageSize(1, colStats_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.prestosql.orc.proto.OrcProto.StripeStatistics)) {
return super.equals(obj);
}
io.prestosql.orc.proto.OrcProto.StripeStatistics other = (io.prestosql.orc.proto.OrcProto.StripeStatistics) obj;
boolean result = true;
result = result && getColStatsList()
.equals(other.getColStatsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getColStatsCount() > 0) {
hash = (37 * hash) + COLSTATS_FIELD_NUMBER;
hash = (53 * hash) + getColStatsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.prestosql.orc.proto.OrcProto.StripeStatistics parseFrom(
io.prestosql.orc.protobuf.ByteString data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.proto.OrcProto.StripeStatistics parseFrom(
io.prestosql.orc.protobuf.ByteString data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.StripeStatistics parseFrom(byte[] data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.proto.OrcProto.StripeStatistics parseFrom(
byte[] data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.StripeStatistics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.StripeStatistics parseFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.StripeStatistics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.StripeStatistics parseDelimitedFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.StripeStatistics parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.StripeStatistics parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.prestosql.orc.proto.OrcProto.StripeStatistics prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
io.prestosql.orc.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code orc.proto.StripeStatistics}
*/
public static final class Builder extends
io.prestosql.orc.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orc.proto.StripeStatistics)
io.prestosql.orc.proto.OrcProto.StripeStatisticsOrBuilder {
public static final io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeStatistics_descriptor;
}
protected io.prestosql.orc.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.prestosql.orc.proto.OrcProto.StripeStatistics.class, io.prestosql.orc.proto.OrcProto.StripeStatistics.Builder.class);
}
// Construct using io.prestosql.orc.proto.OrcProto.StripeStatistics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
io.prestosql.orc.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (io.prestosql.orc.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getColStatsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (colStatsBuilder_ == null) {
colStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
colStatsBuilder_.clear();
}
return this;
}
public io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_StripeStatistics_descriptor;
}
public io.prestosql.orc.proto.OrcProto.StripeStatistics getDefaultInstanceForType() {
return io.prestosql.orc.proto.OrcProto.StripeStatistics.getDefaultInstance();
}
public io.prestosql.orc.proto.OrcProto.StripeStatistics build() {
io.prestosql.orc.proto.OrcProto.StripeStatistics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.prestosql.orc.proto.OrcProto.StripeStatistics buildPartial() {
io.prestosql.orc.proto.OrcProto.StripeStatistics result = new io.prestosql.orc.proto.OrcProto.StripeStatistics(this);
int from_bitField0_ = bitField0_;
if (colStatsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
colStats_ = java.util.Collections.unmodifiableList(colStats_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.colStats_ = colStats_;
} else {
result.colStats_ = colStatsBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
io.prestosql.orc.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(io.prestosql.orc.protobuf.Message other) {
if (other instanceof io.prestosql.orc.proto.OrcProto.StripeStatistics) {
return mergeFrom((io.prestosql.orc.proto.OrcProto.StripeStatistics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.prestosql.orc.proto.OrcProto.StripeStatistics other) {
if (other == io.prestosql.orc.proto.OrcProto.StripeStatistics.getDefaultInstance()) return this;
if (colStatsBuilder_ == null) {
if (!other.colStats_.isEmpty()) {
if (colStats_.isEmpty()) {
colStats_ = other.colStats_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureColStatsIsMutable();
colStats_.addAll(other.colStats_);
}
onChanged();
}
} else {
if (!other.colStats_.isEmpty()) {
if (colStatsBuilder_.isEmpty()) {
colStatsBuilder_.dispose();
colStatsBuilder_ = null;
colStats_ = other.colStats_;
bitField0_ = (bitField0_ & ~0x00000001);
colStatsBuilder_ =
io.prestosql.orc.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getColStatsFieldBuilder() : null;
} else {
colStatsBuilder_.addAllMessages(other.colStats_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.prestosql.orc.proto.OrcProto.StripeStatistics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (io.prestosql.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.prestosql.orc.proto.OrcProto.StripeStatistics) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List colStats_ =
java.util.Collections.emptyList();
private void ensureColStatsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
colStats_ = new java.util.ArrayList(colStats_);
bitField0_ |= 0x00000001;
}
}
private io.prestosql.orc.protobuf.RepeatedFieldBuilderV3<
io.prestosql.orc.proto.OrcProto.ColumnStatistics, io.prestosql.orc.proto.OrcProto.ColumnStatistics.Builder, io.prestosql.orc.proto.OrcProto.ColumnStatisticsOrBuilder> colStatsBuilder_;
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public java.util.List getColStatsList() {
if (colStatsBuilder_ == null) {
return java.util.Collections.unmodifiableList(colStats_);
} else {
return colStatsBuilder_.getMessageList();
}
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public int getColStatsCount() {
if (colStatsBuilder_ == null) {
return colStats_.size();
} else {
return colStatsBuilder_.getCount();
}
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.ColumnStatistics getColStats(int index) {
if (colStatsBuilder_ == null) {
return colStats_.get(index);
} else {
return colStatsBuilder_.getMessage(index);
}
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public Builder setColStats(
int index, io.prestosql.orc.proto.OrcProto.ColumnStatistics value) {
if (colStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColStatsIsMutable();
colStats_.set(index, value);
onChanged();
} else {
colStatsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public Builder setColStats(
int index, io.prestosql.orc.proto.OrcProto.ColumnStatistics.Builder builderForValue) {
if (colStatsBuilder_ == null) {
ensureColStatsIsMutable();
colStats_.set(index, builderForValue.build());
onChanged();
} else {
colStatsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public Builder addColStats(io.prestosql.orc.proto.OrcProto.ColumnStatistics value) {
if (colStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColStatsIsMutable();
colStats_.add(value);
onChanged();
} else {
colStatsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public Builder addColStats(
int index, io.prestosql.orc.proto.OrcProto.ColumnStatistics value) {
if (colStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColStatsIsMutable();
colStats_.add(index, value);
onChanged();
} else {
colStatsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public Builder addColStats(
io.prestosql.orc.proto.OrcProto.ColumnStatistics.Builder builderForValue) {
if (colStatsBuilder_ == null) {
ensureColStatsIsMutable();
colStats_.add(builderForValue.build());
onChanged();
} else {
colStatsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public Builder addColStats(
int index, io.prestosql.orc.proto.OrcProto.ColumnStatistics.Builder builderForValue) {
if (colStatsBuilder_ == null) {
ensureColStatsIsMutable();
colStats_.add(index, builderForValue.build());
onChanged();
} else {
colStatsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public Builder addAllColStats(
java.lang.Iterable extends io.prestosql.orc.proto.OrcProto.ColumnStatistics> values) {
if (colStatsBuilder_ == null) {
ensureColStatsIsMutable();
io.prestosql.orc.protobuf.AbstractMessageLite.Builder.addAll(
values, colStats_);
onChanged();
} else {
colStatsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public Builder clearColStats() {
if (colStatsBuilder_ == null) {
colStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
colStatsBuilder_.clear();
}
return this;
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public Builder removeColStats(int index) {
if (colStatsBuilder_ == null) {
ensureColStatsIsMutable();
colStats_.remove(index);
onChanged();
} else {
colStatsBuilder_.remove(index);
}
return this;
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.ColumnStatistics.Builder getColStatsBuilder(
int index) {
return getColStatsFieldBuilder().getBuilder(index);
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.ColumnStatisticsOrBuilder getColStatsOrBuilder(
int index) {
if (colStatsBuilder_ == null) {
return colStats_.get(index); } else {
return colStatsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public java.util.List extends io.prestosql.orc.proto.OrcProto.ColumnStatisticsOrBuilder>
getColStatsOrBuilderList() {
if (colStatsBuilder_ != null) {
return colStatsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(colStats_);
}
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.ColumnStatistics.Builder addColStatsBuilder() {
return getColStatsFieldBuilder().addBuilder(
io.prestosql.orc.proto.OrcProto.ColumnStatistics.getDefaultInstance());
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.ColumnStatistics.Builder addColStatsBuilder(
int index) {
return getColStatsFieldBuilder().addBuilder(
index, io.prestosql.orc.proto.OrcProto.ColumnStatistics.getDefaultInstance());
}
/**
* repeated .orc.proto.ColumnStatistics colStats = 1;
*/
public java.util.List
getColStatsBuilderList() {
return getColStatsFieldBuilder().getBuilderList();
}
private io.prestosql.orc.protobuf.RepeatedFieldBuilderV3<
io.prestosql.orc.proto.OrcProto.ColumnStatistics, io.prestosql.orc.proto.OrcProto.ColumnStatistics.Builder, io.prestosql.orc.proto.OrcProto.ColumnStatisticsOrBuilder>
getColStatsFieldBuilder() {
if (colStatsBuilder_ == null) {
colStatsBuilder_ = new io.prestosql.orc.protobuf.RepeatedFieldBuilderV3<
io.prestosql.orc.proto.OrcProto.ColumnStatistics, io.prestosql.orc.proto.OrcProto.ColumnStatistics.Builder, io.prestosql.orc.proto.OrcProto.ColumnStatisticsOrBuilder>(
colStats_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
colStats_ = null;
}
return colStatsBuilder_;
}
public final Builder setUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:orc.proto.StripeStatistics)
}
// @@protoc_insertion_point(class_scope:orc.proto.StripeStatistics)
private static final io.prestosql.orc.proto.OrcProto.StripeStatistics DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.prestosql.orc.proto.OrcProto.StripeStatistics();
}
public static io.prestosql.orc.proto.OrcProto.StripeStatistics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final io.prestosql.orc.protobuf.Parser
PARSER = new io.prestosql.orc.protobuf.AbstractParser() {
public StripeStatistics parsePartialFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return new StripeStatistics(input, extensionRegistry);
}
};
public static io.prestosql.orc.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public io.prestosql.orc.protobuf.Parser getParserForType() {
return PARSER;
}
public io.prestosql.orc.proto.OrcProto.StripeStatistics getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:orc.proto.Metadata)
io.prestosql.orc.protobuf.MessageOrBuilder {
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
java.util.List
getStripeStatsList();
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
io.prestosql.orc.proto.OrcProto.StripeStatistics getStripeStats(int index);
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
int getStripeStatsCount();
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
java.util.List extends io.prestosql.orc.proto.OrcProto.StripeStatisticsOrBuilder>
getStripeStatsOrBuilderList();
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
io.prestosql.orc.proto.OrcProto.StripeStatisticsOrBuilder getStripeStatsOrBuilder(
int index);
}
/**
* Protobuf type {@code orc.proto.Metadata}
*/
public static final class Metadata extends
io.prestosql.orc.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orc.proto.Metadata)
MetadataOrBuilder {
// Use Metadata.newBuilder() to construct.
private Metadata(io.prestosql.orc.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Metadata() {
stripeStats_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final io.prestosql.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Metadata(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
io.prestosql.orc.protobuf.UnknownFieldSet.Builder unknownFields =
io.prestosql.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
stripeStats_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
stripeStats_.add(
input.readMessage(io.prestosql.orc.proto.OrcProto.StripeStatistics.PARSER, extensionRegistry));
break;
}
}
}
} catch (io.prestosql.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new io.prestosql.orc.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
stripeStats_ = java.util.Collections.unmodifiableList(stripeStats_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_Metadata_descriptor;
}
protected io.prestosql.orc.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_Metadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.prestosql.orc.proto.OrcProto.Metadata.class, io.prestosql.orc.proto.OrcProto.Metadata.Builder.class);
}
public static final int STRIPESTATS_FIELD_NUMBER = 1;
private java.util.List stripeStats_;
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public java.util.List getStripeStatsList() {
return stripeStats_;
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public java.util.List extends io.prestosql.orc.proto.OrcProto.StripeStatisticsOrBuilder>
getStripeStatsOrBuilderList() {
return stripeStats_;
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public int getStripeStatsCount() {
return stripeStats_.size();
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.StripeStatistics getStripeStats(int index) {
return stripeStats_.get(index);
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.StripeStatisticsOrBuilder getStripeStatsOrBuilder(
int index) {
return stripeStats_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(io.prestosql.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < stripeStats_.size(); i++) {
output.writeMessage(1, stripeStats_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < stripeStats_.size(); i++) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeMessageSize(1, stripeStats_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.prestosql.orc.proto.OrcProto.Metadata)) {
return super.equals(obj);
}
io.prestosql.orc.proto.OrcProto.Metadata other = (io.prestosql.orc.proto.OrcProto.Metadata) obj;
boolean result = true;
result = result && getStripeStatsList()
.equals(other.getStripeStatsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getStripeStatsCount() > 0) {
hash = (37 * hash) + STRIPESTATS_FIELD_NUMBER;
hash = (53 * hash) + getStripeStatsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.prestosql.orc.proto.OrcProto.Metadata parseFrom(
io.prestosql.orc.protobuf.ByteString data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.proto.OrcProto.Metadata parseFrom(
io.prestosql.orc.protobuf.ByteString data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.Metadata parseFrom(byte[] data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.proto.OrcProto.Metadata parseFrom(
byte[] data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.Metadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.Metadata parseFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.Metadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.Metadata parseDelimitedFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.proto.OrcProto.Metadata parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.proto.OrcProto.Metadata parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.prestosql.orc.proto.OrcProto.Metadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
io.prestosql.orc.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code orc.proto.Metadata}
*/
public static final class Builder extends
io.prestosql.orc.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:orc.proto.Metadata)
io.prestosql.orc.proto.OrcProto.MetadataOrBuilder {
public static final io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_Metadata_descriptor;
}
protected io.prestosql.orc.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_Metadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.prestosql.orc.proto.OrcProto.Metadata.class, io.prestosql.orc.proto.OrcProto.Metadata.Builder.class);
}
// Construct using io.prestosql.orc.proto.OrcProto.Metadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
io.prestosql.orc.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (io.prestosql.orc.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStripeStatsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (stripeStatsBuilder_ == null) {
stripeStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
stripeStatsBuilder_.clear();
}
return this;
}
public io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_Metadata_descriptor;
}
public io.prestosql.orc.proto.OrcProto.Metadata getDefaultInstanceForType() {
return io.prestosql.orc.proto.OrcProto.Metadata.getDefaultInstance();
}
public io.prestosql.orc.proto.OrcProto.Metadata build() {
io.prestosql.orc.proto.OrcProto.Metadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.prestosql.orc.proto.OrcProto.Metadata buildPartial() {
io.prestosql.orc.proto.OrcProto.Metadata result = new io.prestosql.orc.proto.OrcProto.Metadata(this);
int from_bitField0_ = bitField0_;
if (stripeStatsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
stripeStats_ = java.util.Collections.unmodifiableList(stripeStats_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.stripeStats_ = stripeStats_;
} else {
result.stripeStats_ = stripeStatsBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
io.prestosql.orc.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
io.prestosql.orc.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(io.prestosql.orc.protobuf.Message other) {
if (other instanceof io.prestosql.orc.proto.OrcProto.Metadata) {
return mergeFrom((io.prestosql.orc.proto.OrcProto.Metadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.prestosql.orc.proto.OrcProto.Metadata other) {
if (other == io.prestosql.orc.proto.OrcProto.Metadata.getDefaultInstance()) return this;
if (stripeStatsBuilder_ == null) {
if (!other.stripeStats_.isEmpty()) {
if (stripeStats_.isEmpty()) {
stripeStats_ = other.stripeStats_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStripeStatsIsMutable();
stripeStats_.addAll(other.stripeStats_);
}
onChanged();
}
} else {
if (!other.stripeStats_.isEmpty()) {
if (stripeStatsBuilder_.isEmpty()) {
stripeStatsBuilder_.dispose();
stripeStatsBuilder_ = null;
stripeStats_ = other.stripeStats_;
bitField0_ = (bitField0_ & ~0x00000001);
stripeStatsBuilder_ =
io.prestosql.orc.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStripeStatsFieldBuilder() : null;
} else {
stripeStatsBuilder_.addAllMessages(other.stripeStats_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.prestosql.orc.proto.OrcProto.Metadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (io.prestosql.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.prestosql.orc.proto.OrcProto.Metadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List stripeStats_ =
java.util.Collections.emptyList();
private void ensureStripeStatsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
stripeStats_ = new java.util.ArrayList(stripeStats_);
bitField0_ |= 0x00000001;
}
}
private io.prestosql.orc.protobuf.RepeatedFieldBuilderV3<
io.prestosql.orc.proto.OrcProto.StripeStatistics, io.prestosql.orc.proto.OrcProto.StripeStatistics.Builder, io.prestosql.orc.proto.OrcProto.StripeStatisticsOrBuilder> stripeStatsBuilder_;
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public java.util.List getStripeStatsList() {
if (stripeStatsBuilder_ == null) {
return java.util.Collections.unmodifiableList(stripeStats_);
} else {
return stripeStatsBuilder_.getMessageList();
}
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public int getStripeStatsCount() {
if (stripeStatsBuilder_ == null) {
return stripeStats_.size();
} else {
return stripeStatsBuilder_.getCount();
}
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.StripeStatistics getStripeStats(int index) {
if (stripeStatsBuilder_ == null) {
return stripeStats_.get(index);
} else {
return stripeStatsBuilder_.getMessage(index);
}
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public Builder setStripeStats(
int index, io.prestosql.orc.proto.OrcProto.StripeStatistics value) {
if (stripeStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStripeStatsIsMutable();
stripeStats_.set(index, value);
onChanged();
} else {
stripeStatsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public Builder setStripeStats(
int index, io.prestosql.orc.proto.OrcProto.StripeStatistics.Builder builderForValue) {
if (stripeStatsBuilder_ == null) {
ensureStripeStatsIsMutable();
stripeStats_.set(index, builderForValue.build());
onChanged();
} else {
stripeStatsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public Builder addStripeStats(io.prestosql.orc.proto.OrcProto.StripeStatistics value) {
if (stripeStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStripeStatsIsMutable();
stripeStats_.add(value);
onChanged();
} else {
stripeStatsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public Builder addStripeStats(
int index, io.prestosql.orc.proto.OrcProto.StripeStatistics value) {
if (stripeStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStripeStatsIsMutable();
stripeStats_.add(index, value);
onChanged();
} else {
stripeStatsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public Builder addStripeStats(
io.prestosql.orc.proto.OrcProto.StripeStatistics.Builder builderForValue) {
if (stripeStatsBuilder_ == null) {
ensureStripeStatsIsMutable();
stripeStats_.add(builderForValue.build());
onChanged();
} else {
stripeStatsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public Builder addStripeStats(
int index, io.prestosql.orc.proto.OrcProto.StripeStatistics.Builder builderForValue) {
if (stripeStatsBuilder_ == null) {
ensureStripeStatsIsMutable();
stripeStats_.add(index, builderForValue.build());
onChanged();
} else {
stripeStatsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public Builder addAllStripeStats(
java.lang.Iterable extends io.prestosql.orc.proto.OrcProto.StripeStatistics> values) {
if (stripeStatsBuilder_ == null) {
ensureStripeStatsIsMutable();
io.prestosql.orc.protobuf.AbstractMessageLite.Builder.addAll(
values, stripeStats_);
onChanged();
} else {
stripeStatsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public Builder clearStripeStats() {
if (stripeStatsBuilder_ == null) {
stripeStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
stripeStatsBuilder_.clear();
}
return this;
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public Builder removeStripeStats(int index) {
if (stripeStatsBuilder_ == null) {
ensureStripeStatsIsMutable();
stripeStats_.remove(index);
onChanged();
} else {
stripeStatsBuilder_.remove(index);
}
return this;
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.StripeStatistics.Builder getStripeStatsBuilder(
int index) {
return getStripeStatsFieldBuilder().getBuilder(index);
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.StripeStatisticsOrBuilder getStripeStatsOrBuilder(
int index) {
if (stripeStatsBuilder_ == null) {
return stripeStats_.get(index); } else {
return stripeStatsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public java.util.List extends io.prestosql.orc.proto.OrcProto.StripeStatisticsOrBuilder>
getStripeStatsOrBuilderList() {
if (stripeStatsBuilder_ != null) {
return stripeStatsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(stripeStats_);
}
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.StripeStatistics.Builder addStripeStatsBuilder() {
return getStripeStatsFieldBuilder().addBuilder(
io.prestosql.orc.proto.OrcProto.StripeStatistics.getDefaultInstance());
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public io.prestosql.orc.proto.OrcProto.StripeStatistics.Builder addStripeStatsBuilder(
int index) {
return getStripeStatsFieldBuilder().addBuilder(
index, io.prestosql.orc.proto.OrcProto.StripeStatistics.getDefaultInstance());
}
/**
* repeated .orc.proto.StripeStatistics stripeStats = 1;
*/
public java.util.List
getStripeStatsBuilderList() {
return getStripeStatsFieldBuilder().getBuilderList();
}
private io.prestosql.orc.protobuf.RepeatedFieldBuilderV3<
io.prestosql.orc.proto.OrcProto.StripeStatistics, io.prestosql.orc.proto.OrcProto.StripeStatistics.Builder, io.prestosql.orc.proto.OrcProto.StripeStatisticsOrBuilder>
getStripeStatsFieldBuilder() {
if (stripeStatsBuilder_ == null) {
stripeStatsBuilder_ = new io.prestosql.orc.protobuf.RepeatedFieldBuilderV3<
io.prestosql.orc.proto.OrcProto.StripeStatistics, io.prestosql.orc.proto.OrcProto.StripeStatistics.Builder, io.prestosql.orc.proto.OrcProto.StripeStatisticsOrBuilder>(
stripeStats_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
stripeStats_ = null;
}
return stripeStatsBuilder_;
}
public final Builder setUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:orc.proto.Metadata)
}
// @@protoc_insertion_point(class_scope:orc.proto.Metadata)
private static final io.prestosql.orc.proto.OrcProto.Metadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.prestosql.orc.proto.OrcProto.Metadata();
}
public static io.prestosql.orc.proto.OrcProto.Metadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final io.prestosql.orc.protobuf.Parser
PARSER = new io.prestosql.orc.protobuf.AbstractParser() {
public Metadata parsePartialFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return new Metadata(input, extensionRegistry);
}
};
public static io.prestosql.orc.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public io.prestosql.orc.protobuf.Parser getParserForType() {
return PARSER;
}
public io.prestosql.orc.proto.OrcProto.Metadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FooterOrBuilder extends
// @@protoc_insertion_point(interface_extends:orc.proto.Footer)
io.prestosql.orc.protobuf.MessageOrBuilder {
/**
* optional uint64 headerLength = 1;
*/
boolean hasHeaderLength();
/**
* optional uint64 headerLength = 1;
*/
long getHeaderLength();
/**
* optional uint64 contentLength = 2;
*/
boolean hasContentLength();
/**
* optional uint64 contentLength = 2;
*/
long getContentLength();
/**
* repeated .orc.proto.StripeInformation stripes = 3;
*/
java.util.List
getStripesList();
/**
* repeated .orc.proto.StripeInformation stripes = 3;
*/
io.prestosql.orc.proto.OrcProto.StripeInformation getStripes(int index);
/**
* repeated .orc.proto.StripeInformation stripes = 3;
*/
int getStripesCount();
/**
* repeated .orc.proto.StripeInformation stripes = 3;
*/
java.util.List extends io.prestosql.orc.proto.OrcProto.StripeInformationOrBuilder>
getStripesOrBuilderList();
/**
* repeated .orc.proto.StripeInformation stripes = 3;
*/
io.prestosql.orc.proto.OrcProto.StripeInformationOrBuilder getStripesOrBuilder(
int index);
/**
* repeated .orc.proto.Type types = 4;
*/
java.util.List
getTypesList();
/**
* repeated .orc.proto.Type types = 4;
*/
io.prestosql.orc.proto.OrcProto.Type getTypes(int index);
/**
* repeated .orc.proto.Type types = 4;
*/
int getTypesCount();
/**
* repeated .orc.proto.Type types = 4;
*/
java.util.List extends io.prestosql.orc.proto.OrcProto.TypeOrBuilder>
getTypesOrBuilderList();
/**
* repeated .orc.proto.Type types = 4;
*/
io.prestosql.orc.proto.OrcProto.TypeOrBuilder getTypesOrBuilder(
int index);
/**
* repeated .orc.proto.UserMetadataItem metadata = 5;
*/
java.util.List
getMetadataList();
/**
* repeated .orc.proto.UserMetadataItem metadata = 5;
*/
io.prestosql.orc.proto.OrcProto.UserMetadataItem getMetadata(int index);
/**
* repeated .orc.proto.UserMetadataItem metadata = 5;
*/
int getMetadataCount();
/**
* repeated .orc.proto.UserMetadataItem metadata = 5;
*/
java.util.List extends io.prestosql.orc.proto.OrcProto.UserMetadataItemOrBuilder>
getMetadataOrBuilderList();
/**
* repeated .orc.proto.UserMetadataItem metadata = 5;
*/
io.prestosql.orc.proto.OrcProto.UserMetadataItemOrBuilder getMetadataOrBuilder(
int index);
/**
* optional uint64 numberOfRows = 6;
*/
boolean hasNumberOfRows();
/**
* optional uint64 numberOfRows = 6;
*/
long getNumberOfRows();
/**
* repeated .orc.proto.ColumnStatistics statistics = 7;
*/
java.util.List
getStatisticsList();
/**
* repeated .orc.proto.ColumnStatistics statistics = 7;
*/
io.prestosql.orc.proto.OrcProto.ColumnStatistics getStatistics(int index);
/**
* repeated .orc.proto.ColumnStatistics statistics = 7;
*/
int getStatisticsCount();
/**
* repeated .orc.proto.ColumnStatistics statistics = 7;
*/
java.util.List extends io.prestosql.orc.proto.OrcProto.ColumnStatisticsOrBuilder>
getStatisticsOrBuilderList();
/**
* repeated .orc.proto.ColumnStatistics statistics = 7;
*/
io.prestosql.orc.proto.OrcProto.ColumnStatisticsOrBuilder getStatisticsOrBuilder(
int index);
/**
* optional uint32 rowIndexStride = 8;
*/
boolean hasRowIndexStride();
/**
* optional uint32 rowIndexStride = 8;
*/
int getRowIndexStride();
/**
*
* Each implementation that writes ORC files should register for a code
* 0 = ORC Java
* 1 = ORC C++
* 2 = Presto
* 3 = Scritchley Go from https://github.com/scritchley/orc
*
* Each implementation that writes ORC files should register for a code
* 0 = ORC Java
* 1 = ORC C++
* 2 = Presto
* 3 = Scritchley Go from https://github.com/scritchley/orc
*
*
* optional uint32 writer = 9;
*/
int getWriter();
}
/**
* Protobuf type {@code orc.proto.Footer}
*/
public static final class Footer extends
io.prestosql.orc.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:orc.proto.Footer)
FooterOrBuilder {
// Use Footer.newBuilder() to construct.
private Footer(io.prestosql.orc.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Footer() {
headerLength_ = 0L;
contentLength_ = 0L;
stripes_ = java.util.Collections.emptyList();
types_ = java.util.Collections.emptyList();
metadata_ = java.util.Collections.emptyList();
numberOfRows_ = 0L;
statistics_ = java.util.Collections.emptyList();
rowIndexStride_ = 0;
writer_ = 0;
}
@java.lang.Override
public final io.prestosql.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Footer(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
io.prestosql.orc.protobuf.UnknownFieldSet.Builder unknownFields =
io.prestosql.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
headerLength_ = input.readUInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
contentLength_ = input.readUInt64();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
stripes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
stripes_.add(
input.readMessage(io.prestosql.orc.proto.OrcProto.StripeInformation.PARSER, extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
types_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
types_.add(
input.readMessage(io.prestosql.orc.proto.OrcProto.Type.PARSER, extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
metadata_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
metadata_.add(
input.readMessage(io.prestosql.orc.proto.OrcProto.UserMetadataItem.PARSER, extensionRegistry));
break;
}
case 48: {
bitField0_ |= 0x00000004;
numberOfRows_ = input.readUInt64();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
statistics_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
statistics_.add(
input.readMessage(io.prestosql.orc.proto.OrcProto.ColumnStatistics.PARSER, extensionRegistry));
break;
}
case 64: {
bitField0_ |= 0x00000008;
rowIndexStride_ = input.readUInt32();
break;
}
case 72: {
bitField0_ |= 0x00000010;
writer_ = input.readUInt32();
break;
}
}
}
} catch (io.prestosql.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new io.prestosql.orc.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
stripes_ = java.util.Collections.unmodifiableList(stripes_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
types_ = java.util.Collections.unmodifiableList(types_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
metadata_ = java.util.Collections.unmodifiableList(metadata_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
statistics_ = java.util.Collections.unmodifiableList(statistics_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final io.prestosql.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_Footer_descriptor;
}
protected io.prestosql.orc.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.prestosql.orc.proto.OrcProto.internal_static_orc_proto_Footer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.prestosql.orc.proto.OrcProto.Footer.class, io.prestosql.orc.proto.OrcProto.Footer.Builder.class);
}
private int bitField0_;
public static final int HEADERLENGTH_FIELD_NUMBER = 1;
private long headerLength_;
/**
* optional uint64 headerLength = 1;
*/
public boolean hasHeaderLength() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint64 headerLength = 1;
*/
public long getHeaderLength() {
return headerLength_;
}
public static final int CONTENTLENGTH_FIELD_NUMBER = 2;
private long contentLength_;
/**
* optional uint64 contentLength = 2;
*/
public boolean hasContentLength() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 contentLength = 2;
*/
public long getContentLength() {
return contentLength_;
}
public static final int STRIPES_FIELD_NUMBER = 3;
private java.util.List stripes_;
/**
* repeated .orc.proto.StripeInformation stripes = 3;
*/
public java.util.List getStripesList() {
return stripes_;
}
/**
* repeated .orc.proto.StripeInformation stripes = 3;
*/
public java.util.List extends io.prestosql.orc.proto.OrcProto.StripeInformationOrBuilder>
getStripesOrBuilderList() {
return stripes_;
}
/**
* repeated .orc.proto.StripeInformation stripes = 3;
*/
public int getStripesCount() {
return stripes_.size();
}
/**
* repeated .orc.proto.StripeInformation stripes = 3;
*/
public io.prestosql.orc.proto.OrcProto.StripeInformation getStripes(int index) {
return stripes_.get(index);
}
/**
* repeated .orc.proto.StripeInformation stripes = 3;
*/
public io.prestosql.orc.proto.OrcProto.StripeInformationOrBuilder getStripesOrBuilder(
int index) {
return stripes_.get(index);
}
public static final int TYPES_FIELD_NUMBER = 4;
private java.util.List types_;
/**
* repeated .orc.proto.Type types = 4;
*/
public java.util.List getTypesList() {
return types_;
}
/**
* repeated .orc.proto.Type types = 4;
*/
public java.util.List extends io.prestosql.orc.proto.OrcProto.TypeOrBuilder>
getTypesOrBuilderList() {
return types_;
}
/**
* repeated .orc.proto.Type types = 4;
*/
public int getTypesCount() {
return types_.size();
}
/**
* repeated .orc.proto.Type types = 4;
*/
public io.prestosql.orc.proto.OrcProto.Type getTypes(int index) {
return types_.get(index);
}
/**
* repeated .orc.proto.Type types = 4;
*/
public io.prestosql.orc.proto.OrcProto.TypeOrBuilder getTypesOrBuilder(
int index) {
return types_.get(index);
}
public static final int METADATA_FIELD_NUMBER = 5;
private java.util.List metadata_;
/**
* repeated .orc.proto.UserMetadataItem metadata = 5;
*/
public java.util.List getMetadataList() {
return metadata_;
}
/**
* repeated .orc.proto.UserMetadataItem metadata = 5;
*/
public java.util.List extends io.prestosql.orc.proto.OrcProto.UserMetadataItemOrBuilder>
getMetadataOrBuilderList() {
return metadata_;
}
/**
* repeated .orc.proto.UserMetadataItem metadata = 5;
*/
public int getMetadataCount() {
return metadata_.size();
}
/**
* repeated .orc.proto.UserMetadataItem metadata = 5;
*/
public io.prestosql.orc.proto.OrcProto.UserMetadataItem getMetadata(int index) {
return metadata_.get(index);
}
/**
* repeated .orc.proto.UserMetadataItem metadata = 5;
*/
public io.prestosql.orc.proto.OrcProto.UserMetadataItemOrBuilder getMetadataOrBuilder(
int index) {
return metadata_.get(index);
}
public static final int NUMBEROFROWS_FIELD_NUMBER = 6;
private long numberOfRows_;
/**
* optional uint64 numberOfRows = 6;
*/
public boolean hasNumberOfRows() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint64 numberOfRows = 6;
*/
public long getNumberOfRows() {
return numberOfRows_;
}
public static final int STATISTICS_FIELD_NUMBER = 7;
private java.util.List statistics_;
/**
* repeated .orc.proto.ColumnStatistics statistics = 7;
*/
public java.util.List getStatisticsList() {
return statistics_;
}
/**
* repeated .orc.proto.ColumnStatistics statistics = 7;
*/
public java.util.List extends io.prestosql.orc.proto.OrcProto.ColumnStatisticsOrBuilder>
getStatisticsOrBuilderList() {
return statistics_;
}
/**
* repeated .orc.proto.ColumnStatistics statistics = 7;
*/
public int getStatisticsCount() {
return statistics_.size();
}
/**
* repeated .orc.proto.ColumnStatistics statistics = 7;
*/
public io.prestosql.orc.proto.OrcProto.ColumnStatistics getStatistics(int index) {
return statistics_.get(index);
}
/**
* repeated .orc.proto.ColumnStatistics statistics = 7;
*/
public io.prestosql.orc.proto.OrcProto.ColumnStatisticsOrBuilder getStatisticsOrBuilder(
int index) {
return statistics_.get(index);
}
public static final int ROWINDEXSTRIDE_FIELD_NUMBER = 8;
private int rowIndexStride_;
/**
* optional uint32 rowIndexStride = 8;
*/
public boolean hasRowIndexStride() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 rowIndexStride = 8;
*/
public int getRowIndexStride() {
return rowIndexStride_;
}
public static final int WRITER_FIELD_NUMBER = 9;
private int writer_;
/**
*
* Each implementation that writes ORC files should register for a code
* 0 = ORC Java
* 1 = ORC C++
* 2 = Presto
* 3 = Scritchley Go from https://github.com/scritchley/orc
*
* Each implementation that writes ORC files should register for a code
* 0 = ORC Java
* 1 = ORC C++
* 2 = Presto
* 3 = Scritchley Go from https://github.com/scritchley/orc
*
* Each implementation that writes ORC files should register for a code
* 0 = ORC Java
* 1 = ORC C++
* 2 = Presto
* 3 = Scritchley Go from https://github.com/scritchley/orc
*
* Each implementation that writes ORC files should register for a code
* 0 = ORC Java
* 1 = ORC C++
* 2 = Presto
* 3 = Scritchley Go from https://github.com/scritchley/orc
*
*
* optional uint32 writer = 9;
*/
public int getWriter() {
return writer_;
}
/**
*
* Each implementation that writes ORC files should register for a code
* 0 = ORC Java
* 1 = ORC C++
* 2 = Presto
* 3 = Scritchley Go from https://github.com/scritchley/orc
*
* Each implementation that writes ORC files should register for a code
* 0 = ORC Java
* 1 = ORC C++
* 2 = Presto
* 3 = Scritchley Go from https://github.com/scritchley/orc
*
*
* optional uint32 writer = 9;
*/
public Builder clearWriter() {
bitField0_ = (bitField0_ & ~0x00000100);
writer_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final io.prestosql.orc.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:orc.proto.Footer)
}
// @@protoc_insertion_point(class_scope:orc.proto.Footer)
private static final io.prestosql.orc.proto.OrcProto.Footer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.prestosql.orc.proto.OrcProto.Footer();
}
public static io.prestosql.orc.proto.OrcProto.Footer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final io.prestosql.orc.protobuf.Parser