io.substrait.proto.ReadRel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Create a well-defined, cross-language specification for data compute operations
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: substrait/algebra.proto
// Protobuf Java Version: 3.25.5
package io.substrait.proto;
/**
*
* The scan operator of base data (physical or virtual), including filtering and projection.
*
*
* Protobuf type {@code substrait.ReadRel}
*/
public final class ReadRel extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ReadRel)
ReadRelOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReadRel.newBuilder() to construct.
private ReadRel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadRel() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReadRel();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.class, io.substrait.proto.ReadRel.Builder.class);
}
public interface NamedTableOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ReadRel.NamedTable)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string names = 1;
* @return A list containing the names.
*/
java.util.List
getNamesList();
/**
* repeated string names = 1;
* @return The count of names.
*/
int getNamesCount();
/**
* repeated string names = 1;
* @param index The index of the element to return.
* @return The names at the given index.
*/
java.lang.String getNames(int index);
/**
* repeated string names = 1;
* @param index The index of the value to return.
* @return The bytes of the names at the given index.
*/
com.google.protobuf.ByteString
getNamesBytes(int index);
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return Whether the advancedExtension field is set.
*/
boolean hasAdvancedExtension();
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return The advancedExtension.
*/
io.substrait.proto.AdvancedExtension getAdvancedExtension();
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder();
}
/**
*
* A base table. The list of string is used to represent namespacing (e.g., mydb.mytable).
* This assumes shared catalog between systems exchanging a message.
*
*
* Protobuf type {@code substrait.ReadRel.NamedTable}
*/
public static final class NamedTable extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ReadRel.NamedTable)
NamedTableOrBuilder {
private static final long serialVersionUID = 0L;
// Use NamedTable.newBuilder() to construct.
private NamedTable(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NamedTable() {
names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NamedTable();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_NamedTable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_NamedTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.NamedTable.class, io.substrait.proto.ReadRel.NamedTable.Builder.class);
}
private int bitField0_;
public static final int NAMES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string names = 1;
* @return A list containing the names.
*/
public com.google.protobuf.ProtocolStringList
getNamesList() {
return names_;
}
/**
* repeated string names = 1;
* @return The count of names.
*/
public int getNamesCount() {
return names_.size();
}
/**
* repeated string names = 1;
* @param index The index of the element to return.
* @return The names at the given index.
*/
public java.lang.String getNames(int index) {
return names_.get(index);
}
/**
* repeated string names = 1;
* @param index The index of the value to return.
* @return The bytes of the names at the given index.
*/
public com.google.protobuf.ByteString
getNamesBytes(int index) {
return names_.getByteString(index);
}
public static final int ADVANCED_EXTENSION_FIELD_NUMBER = 10;
private io.substrait.proto.AdvancedExtension advancedExtension_;
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return Whether the advancedExtension field is set.
*/
@java.lang.Override
public boolean hasAdvancedExtension() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return The advancedExtension.
*/
@java.lang.Override
public io.substrait.proto.AdvancedExtension getAdvancedExtension() {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
@java.lang.Override
public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < names_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, names_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(10, getAdvancedExtension());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < names_.size(); i++) {
dataSize += computeStringSizeNoTag(names_.getRaw(i));
}
size += dataSize;
size += 1 * getNamesList().size();
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getAdvancedExtension());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ReadRel.NamedTable)) {
return super.equals(obj);
}
io.substrait.proto.ReadRel.NamedTable other = (io.substrait.proto.ReadRel.NamedTable) obj;
if (!getNamesList()
.equals(other.getNamesList())) return false;
if (hasAdvancedExtension() != other.hasAdvancedExtension()) return false;
if (hasAdvancedExtension()) {
if (!getAdvancedExtension()
.equals(other.getAdvancedExtension())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getNamesCount() > 0) {
hash = (37 * hash) + NAMES_FIELD_NUMBER;
hash = (53 * hash) + getNamesList().hashCode();
}
if (hasAdvancedExtension()) {
hash = (37 * hash) + ADVANCED_EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getAdvancedExtension().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ReadRel.NamedTable parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.NamedTable parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.NamedTable parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.NamedTable parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.NamedTable parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.NamedTable parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.NamedTable parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.NamedTable parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.NamedTable parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.NamedTable parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.NamedTable parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.NamedTable parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.substrait.proto.ReadRel.NamedTable prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A base table. The list of string is used to represent namespacing (e.g., mydb.mytable).
* This assumes shared catalog between systems exchanging a message.
*
*
* Protobuf type {@code substrait.ReadRel.NamedTable}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ReadRel.NamedTable)
io.substrait.proto.ReadRel.NamedTableOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_NamedTable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_NamedTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.NamedTable.class, io.substrait.proto.ReadRel.NamedTable.Builder.class);
}
// Construct using io.substrait.proto.ReadRel.NamedTable.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAdvancedExtensionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
advancedExtension_ = null;
if (advancedExtensionBuilder_ != null) {
advancedExtensionBuilder_.dispose();
advancedExtensionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_NamedTable_descriptor;
}
@java.lang.Override
public io.substrait.proto.ReadRel.NamedTable getDefaultInstanceForType() {
return io.substrait.proto.ReadRel.NamedTable.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ReadRel.NamedTable build() {
io.substrait.proto.ReadRel.NamedTable result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ReadRel.NamedTable buildPartial() {
io.substrait.proto.ReadRel.NamedTable result = new io.substrait.proto.ReadRel.NamedTable(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.ReadRel.NamedTable result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
names_.makeImmutable();
result.names_ = names_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.advancedExtension_ = advancedExtensionBuilder_ == null
? advancedExtension_
: advancedExtensionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ReadRel.NamedTable) {
return mergeFrom((io.substrait.proto.ReadRel.NamedTable)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ReadRel.NamedTable other) {
if (other == io.substrait.proto.ReadRel.NamedTable.getDefaultInstance()) return this;
if (!other.names_.isEmpty()) {
if (names_.isEmpty()) {
names_ = other.names_;
bitField0_ |= 0x00000001;
} else {
ensureNamesIsMutable();
names_.addAll(other.names_);
}
onChanged();
}
if (other.hasAdvancedExtension()) {
mergeAdvancedExtension(other.getAdvancedExtension());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
ensureNamesIsMutable();
names_.add(s);
break;
} // case 10
case 82: {
input.readMessage(
getAdvancedExtensionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureNamesIsMutable() {
if (!names_.isModifiable()) {
names_ = new com.google.protobuf.LazyStringArrayList(names_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string names = 1;
* @return A list containing the names.
*/
public com.google.protobuf.ProtocolStringList
getNamesList() {
names_.makeImmutable();
return names_;
}
/**
* repeated string names = 1;
* @return The count of names.
*/
public int getNamesCount() {
return names_.size();
}
/**
* repeated string names = 1;
* @param index The index of the element to return.
* @return The names at the given index.
*/
public java.lang.String getNames(int index) {
return names_.get(index);
}
/**
* repeated string names = 1;
* @param index The index of the value to return.
* @return The bytes of the names at the given index.
*/
public com.google.protobuf.ByteString
getNamesBytes(int index) {
return names_.getByteString(index);
}
/**
* repeated string names = 1;
* @param index The index to set the value at.
* @param value The names to set.
* @return This builder for chaining.
*/
public Builder setNames(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNamesIsMutable();
names_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string names = 1;
* @param value The names to add.
* @return This builder for chaining.
*/
public Builder addNames(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNamesIsMutable();
names_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string names = 1;
* @param values The names to add.
* @return This builder for chaining.
*/
public Builder addAllNames(
java.lang.Iterable values) {
ensureNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, names_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string names = 1;
* @return This builder for chaining.
*/
public Builder clearNames() {
names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string names = 1;
* @param value The bytes of the names to add.
* @return This builder for chaining.
*/
public Builder addNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureNamesIsMutable();
names_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private io.substrait.proto.AdvancedExtension advancedExtension_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder> advancedExtensionBuilder_;
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return Whether the advancedExtension field is set.
*/
public boolean hasAdvancedExtension() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return The advancedExtension.
*/
public io.substrait.proto.AdvancedExtension getAdvancedExtension() {
if (advancedExtensionBuilder_ == null) {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
} else {
return advancedExtensionBuilder_.getMessage();
}
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder setAdvancedExtension(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
advancedExtension_ = value;
} else {
advancedExtensionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder setAdvancedExtension(
io.substrait.proto.AdvancedExtension.Builder builderForValue) {
if (advancedExtensionBuilder_ == null) {
advancedExtension_ = builderForValue.build();
} else {
advancedExtensionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder mergeAdvancedExtension(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
advancedExtension_ != null &&
advancedExtension_ != io.substrait.proto.AdvancedExtension.getDefaultInstance()) {
getAdvancedExtensionBuilder().mergeFrom(value);
} else {
advancedExtension_ = value;
}
} else {
advancedExtensionBuilder_.mergeFrom(value);
}
if (advancedExtension_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder clearAdvancedExtension() {
bitField0_ = (bitField0_ & ~0x00000002);
advancedExtension_ = null;
if (advancedExtensionBuilder_ != null) {
advancedExtensionBuilder_.dispose();
advancedExtensionBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public io.substrait.proto.AdvancedExtension.Builder getAdvancedExtensionBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAdvancedExtensionFieldBuilder().getBuilder();
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() {
if (advancedExtensionBuilder_ != null) {
return advancedExtensionBuilder_.getMessageOrBuilder();
} else {
return advancedExtension_ == null ?
io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>
getAdvancedExtensionFieldBuilder() {
if (advancedExtensionBuilder_ == null) {
advancedExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>(
getAdvancedExtension(),
getParentForChildren(),
isClean());
advancedExtension_ = null;
}
return advancedExtensionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ReadRel.NamedTable)
}
// @@protoc_insertion_point(class_scope:substrait.ReadRel.NamedTable)
private static final io.substrait.proto.ReadRel.NamedTable DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ReadRel.NamedTable();
}
public static io.substrait.proto.ReadRel.NamedTable getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NamedTable parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.ReadRel.NamedTable getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VirtualTableOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ReadRel.VirtualTable)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
java.util.List
getValuesList();
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
io.substrait.proto.Expression.Literal.Struct getValues(int index);
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
int getValuesCount();
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
java.util.List extends io.substrait.proto.Expression.Literal.StructOrBuilder>
getValuesOrBuilderList();
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
io.substrait.proto.Expression.Literal.StructOrBuilder getValuesOrBuilder(
int index);
}
/**
*
* A table composed of literals.
*
*
* Protobuf type {@code substrait.ReadRel.VirtualTable}
*/
public static final class VirtualTable extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ReadRel.VirtualTable)
VirtualTableOrBuilder {
private static final long serialVersionUID = 0L;
// Use VirtualTable.newBuilder() to construct.
private VirtualTable(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VirtualTable() {
values_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VirtualTable();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_VirtualTable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_VirtualTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.VirtualTable.class, io.substrait.proto.ReadRel.VirtualTable.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List values_;
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
@java.lang.Override
public java.util.List getValuesList() {
return values_;
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.Expression.Literal.StructOrBuilder>
getValuesOrBuilderList() {
return values_;
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
@java.lang.Override
public int getValuesCount() {
return values_.size();
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.Struct getValues(int index) {
return values_.get(index);
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.StructOrBuilder getValuesOrBuilder(
int index) {
return values_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < values_.size(); i++) {
output.writeMessage(1, values_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < values_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, values_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ReadRel.VirtualTable)) {
return super.equals(obj);
}
io.substrait.proto.ReadRel.VirtualTable other = (io.substrait.proto.ReadRel.VirtualTable) obj;
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ReadRel.VirtualTable parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.VirtualTable parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.VirtualTable parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.VirtualTable parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.VirtualTable parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.VirtualTable parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.VirtualTable parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.VirtualTable parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.VirtualTable parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.VirtualTable parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.VirtualTable parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.VirtualTable parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.substrait.proto.ReadRel.VirtualTable prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A table composed of literals.
*
*
* Protobuf type {@code substrait.ReadRel.VirtualTable}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ReadRel.VirtualTable)
io.substrait.proto.ReadRel.VirtualTableOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_VirtualTable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_VirtualTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.VirtualTable.class, io.substrait.proto.ReadRel.VirtualTable.Builder.class);
}
// Construct using io.substrait.proto.ReadRel.VirtualTable.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
} else {
values_ = null;
valuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_VirtualTable_descriptor;
}
@java.lang.Override
public io.substrait.proto.ReadRel.VirtualTable getDefaultInstanceForType() {
return io.substrait.proto.ReadRel.VirtualTable.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ReadRel.VirtualTable build() {
io.substrait.proto.ReadRel.VirtualTable result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ReadRel.VirtualTable buildPartial() {
io.substrait.proto.ReadRel.VirtualTable result = new io.substrait.proto.ReadRel.VirtualTable(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.ReadRel.VirtualTable result) {
if (valuesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
values_ = java.util.Collections.unmodifiableList(values_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
} else {
result.values_ = valuesBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.ReadRel.VirtualTable result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ReadRel.VirtualTable) {
return mergeFrom((io.substrait.proto.ReadRel.VirtualTable)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ReadRel.VirtualTable other) {
if (other == io.substrait.proto.ReadRel.VirtualTable.getDefaultInstance()) return this;
if (valuesBuilder_ == null) {
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
} else {
if (!other.values_.isEmpty()) {
if (valuesBuilder_.isEmpty()) {
valuesBuilder_.dispose();
valuesBuilder_ = null;
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
valuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValuesFieldBuilder() : null;
} else {
valuesBuilder_.addAllMessages(other.values_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.substrait.proto.Expression.Literal.Struct m =
input.readMessage(
io.substrait.proto.Expression.Literal.Struct.parser(),
extensionRegistry);
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(m);
} else {
valuesBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List values_ =
java.util.Collections.emptyList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = new java.util.ArrayList(values_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Literal.Struct, io.substrait.proto.Expression.Literal.Struct.Builder, io.substrait.proto.Expression.Literal.StructOrBuilder> valuesBuilder_;
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public java.util.List getValuesList() {
if (valuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(values_);
} else {
return valuesBuilder_.getMessageList();
}
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public int getValuesCount() {
if (valuesBuilder_ == null) {
return values_.size();
} else {
return valuesBuilder_.getCount();
}
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public io.substrait.proto.Expression.Literal.Struct getValues(int index) {
if (valuesBuilder_ == null) {
return values_.get(index);
} else {
return valuesBuilder_.getMessage(index);
}
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public Builder setValues(
int index, io.substrait.proto.Expression.Literal.Struct value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
} else {
valuesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public Builder setValues(
int index, io.substrait.proto.Expression.Literal.Struct.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.set(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public Builder addValues(io.substrait.proto.Expression.Literal.Struct value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
} else {
valuesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public Builder addValues(
int index, io.substrait.proto.Expression.Literal.Struct value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(index, value);
onChanged();
} else {
valuesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public Builder addValues(
io.substrait.proto.Expression.Literal.Struct.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public Builder addValues(
int index, io.substrait.proto.Expression.Literal.Struct.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public Builder addAllValues(
java.lang.Iterable extends io.substrait.proto.Expression.Literal.Struct> values) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
} else {
valuesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public Builder clearValues() {
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
valuesBuilder_.clear();
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public Builder removeValues(int index) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.remove(index);
onChanged();
} else {
valuesBuilder_.remove(index);
}
return this;
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public io.substrait.proto.Expression.Literal.Struct.Builder getValuesBuilder(
int index) {
return getValuesFieldBuilder().getBuilder(index);
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public io.substrait.proto.Expression.Literal.StructOrBuilder getValuesOrBuilder(
int index) {
if (valuesBuilder_ == null) {
return values_.get(index); } else {
return valuesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public java.util.List extends io.substrait.proto.Expression.Literal.StructOrBuilder>
getValuesOrBuilderList() {
if (valuesBuilder_ != null) {
return valuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(values_);
}
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public io.substrait.proto.Expression.Literal.Struct.Builder addValuesBuilder() {
return getValuesFieldBuilder().addBuilder(
io.substrait.proto.Expression.Literal.Struct.getDefaultInstance());
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public io.substrait.proto.Expression.Literal.Struct.Builder addValuesBuilder(
int index) {
return getValuesFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.Literal.Struct.getDefaultInstance());
}
/**
* repeated .substrait.Expression.Literal.Struct values = 1;
*/
public java.util.List
getValuesBuilderList() {
return getValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Literal.Struct, io.substrait.proto.Expression.Literal.Struct.Builder, io.substrait.proto.Expression.Literal.StructOrBuilder>
getValuesFieldBuilder() {
if (valuesBuilder_ == null) {
valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression.Literal.Struct, io.substrait.proto.Expression.Literal.Struct.Builder, io.substrait.proto.Expression.Literal.StructOrBuilder>(
values_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
values_ = null;
}
return valuesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ReadRel.VirtualTable)
}
// @@protoc_insertion_point(class_scope:substrait.ReadRel.VirtualTable)
private static final io.substrait.proto.ReadRel.VirtualTable DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ReadRel.VirtualTable();
}
public static io.substrait.proto.ReadRel.VirtualTable getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VirtualTable parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.ReadRel.VirtualTable getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExtensionTableOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ReadRel.ExtensionTable)
com.google.protobuf.MessageOrBuilder {
/**
* .google.protobuf.Any detail = 1;
* @return Whether the detail field is set.
*/
boolean hasDetail();
/**
* .google.protobuf.Any detail = 1;
* @return The detail.
*/
com.google.protobuf.Any getDetail();
/**
* .google.protobuf.Any detail = 1;
*/
com.google.protobuf.AnyOrBuilder getDetailOrBuilder();
}
/**
*
* A stub type that can be used to extend/introduce new table types outside
* the specification.
*
*
* Protobuf type {@code substrait.ReadRel.ExtensionTable}
*/
public static final class ExtensionTable extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ReadRel.ExtensionTable)
ExtensionTableOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExtensionTable.newBuilder() to construct.
private ExtensionTable(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExtensionTable() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExtensionTable();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_ExtensionTable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_ExtensionTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.ExtensionTable.class, io.substrait.proto.ReadRel.ExtensionTable.Builder.class);
}
private int bitField0_;
public static final int DETAIL_FIELD_NUMBER = 1;
private com.google.protobuf.Any detail_;
/**
* .google.protobuf.Any detail = 1;
* @return Whether the detail field is set.
*/
@java.lang.Override
public boolean hasDetail() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Any detail = 1;
* @return The detail.
*/
@java.lang.Override
public com.google.protobuf.Any getDetail() {
return detail_ == null ? com.google.protobuf.Any.getDefaultInstance() : detail_;
}
/**
* .google.protobuf.Any detail = 1;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getDetailOrBuilder() {
return detail_ == null ? com.google.protobuf.Any.getDefaultInstance() : detail_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getDetail());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getDetail());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ReadRel.ExtensionTable)) {
return super.equals(obj);
}
io.substrait.proto.ReadRel.ExtensionTable other = (io.substrait.proto.ReadRel.ExtensionTable) obj;
if (hasDetail() != other.hasDetail()) return false;
if (hasDetail()) {
if (!getDetail()
.equals(other.getDetail())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasDetail()) {
hash = (37 * hash) + DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getDetail().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ReadRel.ExtensionTable parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.ExtensionTable parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.ExtensionTable parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.ExtensionTable parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.ExtensionTable parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.ExtensionTable parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.ExtensionTable parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.ExtensionTable parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.ExtensionTable parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.ExtensionTable parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.ExtensionTable parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.ExtensionTable parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.substrait.proto.ReadRel.ExtensionTable prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A stub type that can be used to extend/introduce new table types outside
* the specification.
*
*
* Protobuf type {@code substrait.ReadRel.ExtensionTable}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ReadRel.ExtensionTable)
io.substrait.proto.ReadRel.ExtensionTableOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_ExtensionTable_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_ExtensionTable_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.ExtensionTable.class, io.substrait.proto.ReadRel.ExtensionTable.Builder.class);
}
// Construct using io.substrait.proto.ReadRel.ExtensionTable.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDetailFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
detail_ = null;
if (detailBuilder_ != null) {
detailBuilder_.dispose();
detailBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_ExtensionTable_descriptor;
}
@java.lang.Override
public io.substrait.proto.ReadRel.ExtensionTable getDefaultInstanceForType() {
return io.substrait.proto.ReadRel.ExtensionTable.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ReadRel.ExtensionTable build() {
io.substrait.proto.ReadRel.ExtensionTable result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ReadRel.ExtensionTable buildPartial() {
io.substrait.proto.ReadRel.ExtensionTable result = new io.substrait.proto.ReadRel.ExtensionTable(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.ReadRel.ExtensionTable result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.detail_ = detailBuilder_ == null
? detail_
: detailBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ReadRel.ExtensionTable) {
return mergeFrom((io.substrait.proto.ReadRel.ExtensionTable)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ReadRel.ExtensionTable other) {
if (other == io.substrait.proto.ReadRel.ExtensionTable.getDefaultInstance()) return this;
if (other.hasDetail()) {
mergeDetail(other.getDetail());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getDetailFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Any detail_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> detailBuilder_;
/**
* .google.protobuf.Any detail = 1;
* @return Whether the detail field is set.
*/
public boolean hasDetail() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Any detail = 1;
* @return The detail.
*/
public com.google.protobuf.Any getDetail() {
if (detailBuilder_ == null) {
return detail_ == null ? com.google.protobuf.Any.getDefaultInstance() : detail_;
} else {
return detailBuilder_.getMessage();
}
}
/**
* .google.protobuf.Any detail = 1;
*/
public Builder setDetail(com.google.protobuf.Any value) {
if (detailBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
detail_ = value;
} else {
detailBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .google.protobuf.Any detail = 1;
*/
public Builder setDetail(
com.google.protobuf.Any.Builder builderForValue) {
if (detailBuilder_ == null) {
detail_ = builderForValue.build();
} else {
detailBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .google.protobuf.Any detail = 1;
*/
public Builder mergeDetail(com.google.protobuf.Any value) {
if (detailBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
detail_ != null &&
detail_ != com.google.protobuf.Any.getDefaultInstance()) {
getDetailBuilder().mergeFrom(value);
} else {
detail_ = value;
}
} else {
detailBuilder_.mergeFrom(value);
}
if (detail_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .google.protobuf.Any detail = 1;
*/
public Builder clearDetail() {
bitField0_ = (bitField0_ & ~0x00000001);
detail_ = null;
if (detailBuilder_ != null) {
detailBuilder_.dispose();
detailBuilder_ = null;
}
onChanged();
return this;
}
/**
* .google.protobuf.Any detail = 1;
*/
public com.google.protobuf.Any.Builder getDetailBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getDetailFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Any detail = 1;
*/
public com.google.protobuf.AnyOrBuilder getDetailOrBuilder() {
if (detailBuilder_ != null) {
return detailBuilder_.getMessageOrBuilder();
} else {
return detail_ == null ?
com.google.protobuf.Any.getDefaultInstance() : detail_;
}
}
/**
* .google.protobuf.Any detail = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getDetailFieldBuilder() {
if (detailBuilder_ == null) {
detailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getDetail(),
getParentForChildren(),
isClean());
detail_ = null;
}
return detailBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ReadRel.ExtensionTable)
}
// @@protoc_insertion_point(class_scope:substrait.ReadRel.ExtensionTable)
private static final io.substrait.proto.ReadRel.ExtensionTable DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ReadRel.ExtensionTable();
}
public static io.substrait.proto.ReadRel.ExtensionTable getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExtensionTable parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.ReadRel.ExtensionTable getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocalFilesOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ReadRel.LocalFiles)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
java.util.List
getItemsList();
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles getItems(int index);
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
int getItemsCount();
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
java.util.List extends io.substrait.proto.ReadRel.LocalFiles.FileOrFilesOrBuilder>
getItemsOrBuilderList();
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
io.substrait.proto.ReadRel.LocalFiles.FileOrFilesOrBuilder getItemsOrBuilder(
int index);
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return Whether the advancedExtension field is set.
*/
boolean hasAdvancedExtension();
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return The advancedExtension.
*/
io.substrait.proto.AdvancedExtension getAdvancedExtension();
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder();
}
/**
*
* Represents a list of files in input of a scan operation
*
*
* Protobuf type {@code substrait.ReadRel.LocalFiles}
*/
public static final class LocalFiles extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ReadRel.LocalFiles)
LocalFilesOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocalFiles.newBuilder() to construct.
private LocalFiles(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocalFiles() {
items_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocalFiles();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.class, io.substrait.proto.ReadRel.LocalFiles.Builder.class);
}
public interface FileOrFilesOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ReadRel.LocalFiles.FileOrFiles)
com.google.protobuf.MessageOrBuilder {
/**
*
* A URI that can refer to either a single folder or a single file
*
*
* string uri_path = 1;
* @return Whether the uriPath field is set.
*/
boolean hasUriPath();
/**
*
* A URI that can refer to either a single folder or a single file
*
*
* string uri_path = 1;
* @return The uriPath.
*/
java.lang.String getUriPath();
/**
*
* A URI that can refer to either a single folder or a single file
*
*
* string uri_path = 1;
* @return The bytes for uriPath.
*/
com.google.protobuf.ByteString
getUriPathBytes();
/**
*
* A URI where the path portion is a glob expression that can
* identify zero or more paths.
* Consumers should support the POSIX syntax. The recursive
* globstar (**) may not be supported.
*
*
* string uri_path_glob = 2;
* @return Whether the uriPathGlob field is set.
*/
boolean hasUriPathGlob();
/**
*
* A URI where the path portion is a glob expression that can
* identify zero or more paths.
* Consumers should support the POSIX syntax. The recursive
* globstar (**) may not be supported.
*
*
* string uri_path_glob = 2;
* @return The uriPathGlob.
*/
java.lang.String getUriPathGlob();
/**
*
* A URI where the path portion is a glob expression that can
* identify zero or more paths.
* Consumers should support the POSIX syntax. The recursive
* globstar (**) may not be supported.
*
*
* string uri_path_glob = 2;
* @return The bytes for uriPathGlob.
*/
com.google.protobuf.ByteString
getUriPathGlobBytes();
/**
*
* A URI that refers to a single file
*
*
* string uri_file = 3;
* @return Whether the uriFile field is set.
*/
boolean hasUriFile();
/**
*
* A URI that refers to a single file
*
*
* string uri_file = 3;
* @return The uriFile.
*/
java.lang.String getUriFile();
/**
*
* A URI that refers to a single file
*
*
* string uri_file = 3;
* @return The bytes for uriFile.
*/
com.google.protobuf.ByteString
getUriFileBytes();
/**
*
* A URI that refers to a single folder
*
*
* string uri_folder = 4;
* @return Whether the uriFolder field is set.
*/
boolean hasUriFolder();
/**
*
* A URI that refers to a single folder
*
*
* string uri_folder = 4;
* @return The uriFolder.
*/
java.lang.String getUriFolder();
/**
*
* A URI that refers to a single folder
*
*
* string uri_folder = 4;
* @return The bytes for uriFolder.
*/
com.google.protobuf.ByteString
getUriFolderBytes();
/**
*
* The index of the partition this item belongs to
*
*
* uint64 partition_index = 6;
* @return The partitionIndex.
*/
long getPartitionIndex();
/**
*
* The start position in byte to read from this item
*
*
* uint64 start = 7;
* @return The start.
*/
long getStart();
/**
*
* The length in byte to read from this item
*
*
* uint64 length = 8;
* @return The length.
*/
long getLength();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
* @return Whether the parquet field is set.
*/
boolean hasParquet();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
* @return The parquet.
*/
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions getParquet();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
*/
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptionsOrBuilder getParquetOrBuilder();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
* @return Whether the arrow field is set.
*/
boolean hasArrow();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
* @return The arrow.
*/
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions getArrow();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
*/
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptionsOrBuilder getArrowOrBuilder();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
* @return Whether the orc field is set.
*/
boolean hasOrc();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
* @return The orc.
*/
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions getOrc();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
*/
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptionsOrBuilder getOrcOrBuilder();
/**
* .google.protobuf.Any extension = 12;
* @return Whether the extension field is set.
*/
boolean hasExtension();
/**
* .google.protobuf.Any extension = 12;
* @return The extension.
*/
com.google.protobuf.Any getExtension();
/**
* .google.protobuf.Any extension = 12;
*/
com.google.protobuf.AnyOrBuilder getExtensionOrBuilder();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
* @return Whether the dwrf field is set.
*/
boolean hasDwrf();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
* @return The dwrf.
*/
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions getDwrf();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
*/
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptionsOrBuilder getDwrfOrBuilder();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
* @return Whether the text field is set.
*/
boolean hasText();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
* @return The text.
*/
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions getText();
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
*/
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptionsOrBuilder getTextOrBuilder();
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.PathTypeCase getPathTypeCase();
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.FileFormatCase getFileFormatCase();
}
/**
*
* Many files consist of indivisible chunks (e.g. parquet row groups
* or CSV rows). If a slice partially selects an indivisible chunk
* then the consumer should employ some rule to decide which slice to
* include the chunk in (e.g. include it in the slice that contains
* the midpoint of the chunk)
*
*
* Protobuf type {@code substrait.ReadRel.LocalFiles.FileOrFiles}
*/
public static final class FileOrFiles extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ReadRel.LocalFiles.FileOrFiles)
FileOrFilesOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileOrFiles.newBuilder() to construct.
private FileOrFiles(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileOrFiles() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileOrFiles();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.class, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.Builder.class);
}
public interface ParquetReadOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions}
*/
public static final class ParquetReadOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions)
ParquetReadOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ParquetReadOptions.newBuilder() to construct.
private ParquetReadOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ParquetReadOptions() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ParquetReadOptions();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_ParquetReadOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_ParquetReadOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.class, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions)) {
return super.equals(obj);
}
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions other = (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions)
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_ParquetReadOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_ParquetReadOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.class, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.Builder.class);
}
// Construct using io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_ParquetReadOptions_descriptor;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions getDefaultInstanceForType() {
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions build() {
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions buildPartial() {
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions result = new io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions) {
return mergeFrom((io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions other) {
if (other == io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions)
}
// @@protoc_insertion_point(class_scope:substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions)
private static final io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions();
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ParquetReadOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ArrowReadOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions}
*/
public static final class ArrowReadOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions)
ArrowReadOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ArrowReadOptions.newBuilder() to construct.
private ArrowReadOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ArrowReadOptions() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ArrowReadOptions();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_ArrowReadOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_ArrowReadOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.class, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions)) {
return super.equals(obj);
}
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions other = (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions)
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_ArrowReadOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_ArrowReadOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.class, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.Builder.class);
}
// Construct using io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_ArrowReadOptions_descriptor;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions getDefaultInstanceForType() {
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions build() {
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions buildPartial() {
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions result = new io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions) {
return mergeFrom((io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions other) {
if (other == io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions)
}
// @@protoc_insertion_point(class_scope:substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions)
private static final io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions();
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ArrowReadOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OrcReadOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions}
*/
public static final class OrcReadOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions)
OrcReadOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use OrcReadOptions.newBuilder() to construct.
private OrcReadOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OrcReadOptions() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OrcReadOptions();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_OrcReadOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_OrcReadOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.class, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions)) {
return super.equals(obj);
}
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions other = (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions)
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_OrcReadOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_OrcReadOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.class, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.Builder.class);
}
// Construct using io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_OrcReadOptions_descriptor;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions getDefaultInstanceForType() {
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions build() {
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions buildPartial() {
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions result = new io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions) {
return mergeFrom((io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions other) {
if (other == io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions)
}
// @@protoc_insertion_point(class_scope:substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions)
private static final io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions();
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OrcReadOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DwrfReadOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions}
*/
public static final class DwrfReadOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions)
DwrfReadOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DwrfReadOptions.newBuilder() to construct.
private DwrfReadOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DwrfReadOptions() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DwrfReadOptions();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_DwrfReadOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_DwrfReadOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.class, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions)) {
return super.equals(obj);
}
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions other = (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions)
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_DwrfReadOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_DwrfReadOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.class, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.Builder.class);
}
// Construct using io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_DwrfReadOptions_descriptor;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions getDefaultInstanceForType() {
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions build() {
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions buildPartial() {
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions result = new io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions) {
return mergeFrom((io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions other) {
if (other == io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions)
}
// @@protoc_insertion_point(class_scope:substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions)
private static final io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions();
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DwrfReadOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DelimiterSeparatedTextReadOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* The character(s) used to separate fields. Common values are comma,
* tab, and pipe. Multiple characters are allowed.
*
*
* string field_delimiter = 1;
* @return The fieldDelimiter.
*/
java.lang.String getFieldDelimiter();
/**
*
* The character(s) used to separate fields. Common values are comma,
* tab, and pipe. Multiple characters are allowed.
*
*
* string field_delimiter = 1;
* @return The bytes for fieldDelimiter.
*/
com.google.protobuf.ByteString
getFieldDelimiterBytes();
/**
*
* The maximum number of bytes to read from a single line. If a line
* exceeds this limit the resulting behavior is undefined.
*
*
* uint64 max_line_size = 2;
* @return The maxLineSize.
*/
long getMaxLineSize();
/**
*
* The character(s) used to quote strings. Common values are single
* and double quotation marks.
*
*
* string quote = 3;
* @return The quote.
*/
java.lang.String getQuote();
/**
*
* The character(s) used to quote strings. Common values are single
* and double quotation marks.
*
*
* string quote = 3;
* @return The bytes for quote.
*/
com.google.protobuf.ByteString
getQuoteBytes();
/**
*
* The number of lines to skip at the beginning of the file.
*
*
* uint64 header_lines_to_skip = 4;
* @return The headerLinesToSkip.
*/
long getHeaderLinesToSkip();
/**
*
* The character used to escape characters in strings. Backslash is
* a common value. Note that a double quote mark can also be used as an
* escape character but the external quotes should be removed first.
*
*
* string escape = 5;
* @return The escape.
*/
java.lang.String getEscape();
/**
*
* The character used to escape characters in strings. Backslash is
* a common value. Note that a double quote mark can also be used as an
* escape character but the external quotes should be removed first.
*
*
* string escape = 5;
* @return The bytes for escape.
*/
com.google.protobuf.ByteString
getEscapeBytes();
/**
*
* If this value is encountered (including empty string), the resulting
* value is null instead. Leave unset to disable. If this value is
* provided, the effective schema of this file is comprised entirely of
* nullable strings. If not provided, the effective schema is instead
* made up of non-nullable strings.
*
*
* optional string value_treated_as_null = 6;
* @return Whether the valueTreatedAsNull field is set.
*/
boolean hasValueTreatedAsNull();
/**
*
* If this value is encountered (including empty string), the resulting
* value is null instead. Leave unset to disable. If this value is
* provided, the effective schema of this file is comprised entirely of
* nullable strings. If not provided, the effective schema is instead
* made up of non-nullable strings.
*
*
* optional string value_treated_as_null = 6;
* @return The valueTreatedAsNull.
*/
java.lang.String getValueTreatedAsNull();
/**
*
* If this value is encountered (including empty string), the resulting
* value is null instead. Leave unset to disable. If this value is
* provided, the effective schema of this file is comprised entirely of
* nullable strings. If not provided, the effective schema is instead
* made up of non-nullable strings.
*
*
* optional string value_treated_as_null = 6;
* @return The bytes for valueTreatedAsNull.
*/
com.google.protobuf.ByteString
getValueTreatedAsNullBytes();
}
/**
*
* Delimiter separated files may be compressed. The reader should
* autodetect this and decompress as needed.
*
*
* Protobuf type {@code substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions}
*/
public static final class DelimiterSeparatedTextReadOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions)
DelimiterSeparatedTextReadOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DelimiterSeparatedTextReadOptions.newBuilder() to construct.
private DelimiterSeparatedTextReadOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DelimiterSeparatedTextReadOptions() {
fieldDelimiter_ = "";
quote_ = "";
escape_ = "";
valueTreatedAsNull_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DelimiterSeparatedTextReadOptions();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_DelimiterSeparatedTextReadOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_DelimiterSeparatedTextReadOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.class, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.Builder.class);
}
private int bitField0_;
public static final int FIELD_DELIMITER_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object fieldDelimiter_ = "";
/**
*
* The character(s) used to separate fields. Common values are comma,
* tab, and pipe. Multiple characters are allowed.
*
*
* string field_delimiter = 1;
* @return The fieldDelimiter.
*/
@java.lang.Override
public java.lang.String getFieldDelimiter() {
java.lang.Object ref = fieldDelimiter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fieldDelimiter_ = s;
return s;
}
}
/**
*
* The character(s) used to separate fields. Common values are comma,
* tab, and pipe. Multiple characters are allowed.
*
*
* string field_delimiter = 1;
* @return The bytes for fieldDelimiter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFieldDelimiterBytes() {
java.lang.Object ref = fieldDelimiter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldDelimiter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAX_LINE_SIZE_FIELD_NUMBER = 2;
private long maxLineSize_ = 0L;
/**
*
* The maximum number of bytes to read from a single line. If a line
* exceeds this limit the resulting behavior is undefined.
*
*
* uint64 max_line_size = 2;
* @return The maxLineSize.
*/
@java.lang.Override
public long getMaxLineSize() {
return maxLineSize_;
}
public static final int QUOTE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object quote_ = "";
/**
*
* The character(s) used to quote strings. Common values are single
* and double quotation marks.
*
*
* string quote = 3;
* @return The quote.
*/
@java.lang.Override
public java.lang.String getQuote() {
java.lang.Object ref = quote_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
quote_ = s;
return s;
}
}
/**
*
* The character(s) used to quote strings. Common values are single
* and double quotation marks.
*
*
* string quote = 3;
* @return The bytes for quote.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQuoteBytes() {
java.lang.Object ref = quote_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
quote_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HEADER_LINES_TO_SKIP_FIELD_NUMBER = 4;
private long headerLinesToSkip_ = 0L;
/**
*
* The number of lines to skip at the beginning of the file.
*
*
* uint64 header_lines_to_skip = 4;
* @return The headerLinesToSkip.
*/
@java.lang.Override
public long getHeaderLinesToSkip() {
return headerLinesToSkip_;
}
public static final int ESCAPE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object escape_ = "";
/**
*
* The character used to escape characters in strings. Backslash is
* a common value. Note that a double quote mark can also be used as an
* escape character but the external quotes should be removed first.
*
*
* string escape = 5;
* @return The escape.
*/
@java.lang.Override
public java.lang.String getEscape() {
java.lang.Object ref = escape_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
escape_ = s;
return s;
}
}
/**
*
* The character used to escape characters in strings. Backslash is
* a common value. Note that a double quote mark can also be used as an
* escape character but the external quotes should be removed first.
*
*
* string escape = 5;
* @return The bytes for escape.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEscapeBytes() {
java.lang.Object ref = escape_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
escape_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_TREATED_AS_NULL_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object valueTreatedAsNull_ = "";
/**
*
* If this value is encountered (including empty string), the resulting
* value is null instead. Leave unset to disable. If this value is
* provided, the effective schema of this file is comprised entirely of
* nullable strings. If not provided, the effective schema is instead
* made up of non-nullable strings.
*
*
* optional string value_treated_as_null = 6;
* @return Whether the valueTreatedAsNull field is set.
*/
@java.lang.Override
public boolean hasValueTreatedAsNull() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* If this value is encountered (including empty string), the resulting
* value is null instead. Leave unset to disable. If this value is
* provided, the effective schema of this file is comprised entirely of
* nullable strings. If not provided, the effective schema is instead
* made up of non-nullable strings.
*
*
* optional string value_treated_as_null = 6;
* @return The valueTreatedAsNull.
*/
@java.lang.Override
public java.lang.String getValueTreatedAsNull() {
java.lang.Object ref = valueTreatedAsNull_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
valueTreatedAsNull_ = s;
return s;
}
}
/**
*
* If this value is encountered (including empty string), the resulting
* value is null instead. Leave unset to disable. If this value is
* provided, the effective schema of this file is comprised entirely of
* nullable strings. If not provided, the effective schema is instead
* made up of non-nullable strings.
*
*
* optional string value_treated_as_null = 6;
* @return The bytes for valueTreatedAsNull.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueTreatedAsNullBytes() {
java.lang.Object ref = valueTreatedAsNull_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
valueTreatedAsNull_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldDelimiter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldDelimiter_);
}
if (maxLineSize_ != 0L) {
output.writeUInt64(2, maxLineSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quote_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, quote_);
}
if (headerLinesToSkip_ != 0L) {
output.writeUInt64(4, headerLinesToSkip_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(escape_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, escape_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, valueTreatedAsNull_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldDelimiter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldDelimiter_);
}
if (maxLineSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, maxLineSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quote_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, quote_);
}
if (headerLinesToSkip_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, headerLinesToSkip_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(escape_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, escape_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, valueTreatedAsNull_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions)) {
return super.equals(obj);
}
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions other = (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions) obj;
if (!getFieldDelimiter()
.equals(other.getFieldDelimiter())) return false;
if (getMaxLineSize()
!= other.getMaxLineSize()) return false;
if (!getQuote()
.equals(other.getQuote())) return false;
if (getHeaderLinesToSkip()
!= other.getHeaderLinesToSkip()) return false;
if (!getEscape()
.equals(other.getEscape())) return false;
if (hasValueTreatedAsNull() != other.hasValueTreatedAsNull()) return false;
if (hasValueTreatedAsNull()) {
if (!getValueTreatedAsNull()
.equals(other.getValueTreatedAsNull())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FIELD_DELIMITER_FIELD_NUMBER;
hash = (53 * hash) + getFieldDelimiter().hashCode();
hash = (37 * hash) + MAX_LINE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxLineSize());
hash = (37 * hash) + QUOTE_FIELD_NUMBER;
hash = (53 * hash) + getQuote().hashCode();
hash = (37 * hash) + HEADER_LINES_TO_SKIP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeaderLinesToSkip());
hash = (37 * hash) + ESCAPE_FIELD_NUMBER;
hash = (53 * hash) + getEscape().hashCode();
if (hasValueTreatedAsNull()) {
hash = (37 * hash) + VALUE_TREATED_AS_NULL_FIELD_NUMBER;
hash = (53 * hash) + getValueTreatedAsNull().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Delimiter separated files may be compressed. The reader should
* autodetect this and decompress as needed.
*
*
* Protobuf type {@code substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions)
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_DelimiterSeparatedTextReadOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_DelimiterSeparatedTextReadOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.class, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.Builder.class);
}
// Construct using io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
fieldDelimiter_ = "";
maxLineSize_ = 0L;
quote_ = "";
headerLinesToSkip_ = 0L;
escape_ = "";
valueTreatedAsNull_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_DelimiterSeparatedTextReadOptions_descriptor;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions getDefaultInstanceForType() {
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions build() {
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions buildPartial() {
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions result = new io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.fieldDelimiter_ = fieldDelimiter_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.maxLineSize_ = maxLineSize_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.quote_ = quote_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.headerLinesToSkip_ = headerLinesToSkip_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.escape_ = escape_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.valueTreatedAsNull_ = valueTreatedAsNull_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions) {
return mergeFrom((io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions other) {
if (other == io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.getDefaultInstance()) return this;
if (!other.getFieldDelimiter().isEmpty()) {
fieldDelimiter_ = other.fieldDelimiter_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getMaxLineSize() != 0L) {
setMaxLineSize(other.getMaxLineSize());
}
if (!other.getQuote().isEmpty()) {
quote_ = other.quote_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getHeaderLinesToSkip() != 0L) {
setHeaderLinesToSkip(other.getHeaderLinesToSkip());
}
if (!other.getEscape().isEmpty()) {
escape_ = other.escape_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasValueTreatedAsNull()) {
valueTreatedAsNull_ = other.valueTreatedAsNull_;
bitField0_ |= 0x00000020;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
fieldDelimiter_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
maxLineSize_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
quote_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
headerLinesToSkip_ = input.readUInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
escape_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
valueTreatedAsNull_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object fieldDelimiter_ = "";
/**
*
* The character(s) used to separate fields. Common values are comma,
* tab, and pipe. Multiple characters are allowed.
*
*
* string field_delimiter = 1;
* @return The fieldDelimiter.
*/
public java.lang.String getFieldDelimiter() {
java.lang.Object ref = fieldDelimiter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fieldDelimiter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The character(s) used to separate fields. Common values are comma,
* tab, and pipe. Multiple characters are allowed.
*
*
* string field_delimiter = 1;
* @return The bytes for fieldDelimiter.
*/
public com.google.protobuf.ByteString
getFieldDelimiterBytes() {
java.lang.Object ref = fieldDelimiter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldDelimiter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The character(s) used to separate fields. Common values are comma,
* tab, and pipe. Multiple characters are allowed.
*
*
* string field_delimiter = 1;
* @param value The fieldDelimiter to set.
* @return This builder for chaining.
*/
public Builder setFieldDelimiter(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
fieldDelimiter_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The character(s) used to separate fields. Common values are comma,
* tab, and pipe. Multiple characters are allowed.
*
*
* string field_delimiter = 1;
* @return This builder for chaining.
*/
public Builder clearFieldDelimiter() {
fieldDelimiter_ = getDefaultInstance().getFieldDelimiter();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The character(s) used to separate fields. Common values are comma,
* tab, and pipe. Multiple characters are allowed.
*
*
* string field_delimiter = 1;
* @param value The bytes for fieldDelimiter to set.
* @return This builder for chaining.
*/
public Builder setFieldDelimiterBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
fieldDelimiter_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long maxLineSize_ ;
/**
*
* The maximum number of bytes to read from a single line. If a line
* exceeds this limit the resulting behavior is undefined.
*
*
* uint64 max_line_size = 2;
* @return The maxLineSize.
*/
@java.lang.Override
public long getMaxLineSize() {
return maxLineSize_;
}
/**
*
* The maximum number of bytes to read from a single line. If a line
* exceeds this limit the resulting behavior is undefined.
*
*
* uint64 max_line_size = 2;
* @param value The maxLineSize to set.
* @return This builder for chaining.
*/
public Builder setMaxLineSize(long value) {
maxLineSize_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The maximum number of bytes to read from a single line. If a line
* exceeds this limit the resulting behavior is undefined.
*
*
* uint64 max_line_size = 2;
* @return This builder for chaining.
*/
public Builder clearMaxLineSize() {
bitField0_ = (bitField0_ & ~0x00000002);
maxLineSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object quote_ = "";
/**
*
* The character(s) used to quote strings. Common values are single
* and double quotation marks.
*
*
* string quote = 3;
* @return The quote.
*/
public java.lang.String getQuote() {
java.lang.Object ref = quote_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
quote_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The character(s) used to quote strings. Common values are single
* and double quotation marks.
*
*
* string quote = 3;
* @return The bytes for quote.
*/
public com.google.protobuf.ByteString
getQuoteBytes() {
java.lang.Object ref = quote_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
quote_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The character(s) used to quote strings. Common values are single
* and double quotation marks.
*
*
* string quote = 3;
* @param value The quote to set.
* @return This builder for chaining.
*/
public Builder setQuote(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
quote_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The character(s) used to quote strings. Common values are single
* and double quotation marks.
*
*
* string quote = 3;
* @return This builder for chaining.
*/
public Builder clearQuote() {
quote_ = getDefaultInstance().getQuote();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* The character(s) used to quote strings. Common values are single
* and double quotation marks.
*
*
* string quote = 3;
* @param value The bytes for quote to set.
* @return This builder for chaining.
*/
public Builder setQuoteBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
quote_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private long headerLinesToSkip_ ;
/**
*
* The number of lines to skip at the beginning of the file.
*
*
* uint64 header_lines_to_skip = 4;
* @return The headerLinesToSkip.
*/
@java.lang.Override
public long getHeaderLinesToSkip() {
return headerLinesToSkip_;
}
/**
*
* The number of lines to skip at the beginning of the file.
*
*
* uint64 header_lines_to_skip = 4;
* @param value The headerLinesToSkip to set.
* @return This builder for chaining.
*/
public Builder setHeaderLinesToSkip(long value) {
headerLinesToSkip_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The number of lines to skip at the beginning of the file.
*
*
* uint64 header_lines_to_skip = 4;
* @return This builder for chaining.
*/
public Builder clearHeaderLinesToSkip() {
bitField0_ = (bitField0_ & ~0x00000008);
headerLinesToSkip_ = 0L;
onChanged();
return this;
}
private java.lang.Object escape_ = "";
/**
*
* The character used to escape characters in strings. Backslash is
* a common value. Note that a double quote mark can also be used as an
* escape character but the external quotes should be removed first.
*
*
* string escape = 5;
* @return The escape.
*/
public java.lang.String getEscape() {
java.lang.Object ref = escape_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
escape_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The character used to escape characters in strings. Backslash is
* a common value. Note that a double quote mark can also be used as an
* escape character but the external quotes should be removed first.
*
*
* string escape = 5;
* @return The bytes for escape.
*/
public com.google.protobuf.ByteString
getEscapeBytes() {
java.lang.Object ref = escape_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
escape_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The character used to escape characters in strings. Backslash is
* a common value. Note that a double quote mark can also be used as an
* escape character but the external quotes should be removed first.
*
*
* string escape = 5;
* @param value The escape to set.
* @return This builder for chaining.
*/
public Builder setEscape(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
escape_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The character used to escape characters in strings. Backslash is
* a common value. Note that a double quote mark can also be used as an
* escape character but the external quotes should be removed first.
*
*
* string escape = 5;
* @return This builder for chaining.
*/
public Builder clearEscape() {
escape_ = getDefaultInstance().getEscape();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* The character used to escape characters in strings. Backslash is
* a common value. Note that a double quote mark can also be used as an
* escape character but the external quotes should be removed first.
*
*
* string escape = 5;
* @param value The bytes for escape to set.
* @return This builder for chaining.
*/
public Builder setEscapeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
escape_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object valueTreatedAsNull_ = "";
/**
*
* If this value is encountered (including empty string), the resulting
* value is null instead. Leave unset to disable. If this value is
* provided, the effective schema of this file is comprised entirely of
* nullable strings. If not provided, the effective schema is instead
* made up of non-nullable strings.
*
*
* optional string value_treated_as_null = 6;
* @return Whether the valueTreatedAsNull field is set.
*/
public boolean hasValueTreatedAsNull() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* If this value is encountered (including empty string), the resulting
* value is null instead. Leave unset to disable. If this value is
* provided, the effective schema of this file is comprised entirely of
* nullable strings. If not provided, the effective schema is instead
* made up of non-nullable strings.
*
*
* optional string value_treated_as_null = 6;
* @return The valueTreatedAsNull.
*/
public java.lang.String getValueTreatedAsNull() {
java.lang.Object ref = valueTreatedAsNull_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
valueTreatedAsNull_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If this value is encountered (including empty string), the resulting
* value is null instead. Leave unset to disable. If this value is
* provided, the effective schema of this file is comprised entirely of
* nullable strings. If not provided, the effective schema is instead
* made up of non-nullable strings.
*
*
* optional string value_treated_as_null = 6;
* @return The bytes for valueTreatedAsNull.
*/
public com.google.protobuf.ByteString
getValueTreatedAsNullBytes() {
java.lang.Object ref = valueTreatedAsNull_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
valueTreatedAsNull_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If this value is encountered (including empty string), the resulting
* value is null instead. Leave unset to disable. If this value is
* provided, the effective schema of this file is comprised entirely of
* nullable strings. If not provided, the effective schema is instead
* made up of non-nullable strings.
*
*
* optional string value_treated_as_null = 6;
* @param value The valueTreatedAsNull to set.
* @return This builder for chaining.
*/
public Builder setValueTreatedAsNull(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
valueTreatedAsNull_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* If this value is encountered (including empty string), the resulting
* value is null instead. Leave unset to disable. If this value is
* provided, the effective schema of this file is comprised entirely of
* nullable strings. If not provided, the effective schema is instead
* made up of non-nullable strings.
*
*
* optional string value_treated_as_null = 6;
* @return This builder for chaining.
*/
public Builder clearValueTreatedAsNull() {
valueTreatedAsNull_ = getDefaultInstance().getValueTreatedAsNull();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* If this value is encountered (including empty string), the resulting
* value is null instead. Leave unset to disable. If this value is
* provided, the effective schema of this file is comprised entirely of
* nullable strings. If not provided, the effective schema is instead
* made up of non-nullable strings.
*
*
* optional string value_treated_as_null = 6;
* @param value The bytes for valueTreatedAsNull to set.
* @return This builder for chaining.
*/
public Builder setValueTreatedAsNullBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
valueTreatedAsNull_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions)
}
// @@protoc_insertion_point(class_scope:substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions)
private static final io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions();
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DelimiterSeparatedTextReadOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int pathTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object pathType_;
public enum PathTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
URI_PATH(1),
URI_PATH_GLOB(2),
URI_FILE(3),
URI_FOLDER(4),
PATHTYPE_NOT_SET(0);
private final int value;
private PathTypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PathTypeCase valueOf(int value) {
return forNumber(value);
}
public static PathTypeCase forNumber(int value) {
switch (value) {
case 1: return URI_PATH;
case 2: return URI_PATH_GLOB;
case 3: return URI_FILE;
case 4: return URI_FOLDER;
case 0: return PATHTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public PathTypeCase
getPathTypeCase() {
return PathTypeCase.forNumber(
pathTypeCase_);
}
private int fileFormatCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object fileFormat_;
public enum FileFormatCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
PARQUET(9),
ARROW(10),
ORC(11),
EXTENSION(12),
DWRF(13),
TEXT(14),
FILEFORMAT_NOT_SET(0);
private final int value;
private FileFormatCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FileFormatCase valueOf(int value) {
return forNumber(value);
}
public static FileFormatCase forNumber(int value) {
switch (value) {
case 9: return PARQUET;
case 10: return ARROW;
case 11: return ORC;
case 12: return EXTENSION;
case 13: return DWRF;
case 14: return TEXT;
case 0: return FILEFORMAT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FileFormatCase
getFileFormatCase() {
return FileFormatCase.forNumber(
fileFormatCase_);
}
public static final int URI_PATH_FIELD_NUMBER = 1;
/**
*
* A URI that can refer to either a single folder or a single file
*
*
* string uri_path = 1;
* @return Whether the uriPath field is set.
*/
public boolean hasUriPath() {
return pathTypeCase_ == 1;
}
/**
*
* A URI that can refer to either a single folder or a single file
*
*
* string uri_path = 1;
* @return The uriPath.
*/
public java.lang.String getUriPath() {
java.lang.Object ref = "";
if (pathTypeCase_ == 1) {
ref = pathType_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (pathTypeCase_ == 1) {
pathType_ = s;
}
return s;
}
}
/**
*
* A URI that can refer to either a single folder or a single file
*
*
* string uri_path = 1;
* @return The bytes for uriPath.
*/
public com.google.protobuf.ByteString
getUriPathBytes() {
java.lang.Object ref = "";
if (pathTypeCase_ == 1) {
ref = pathType_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (pathTypeCase_ == 1) {
pathType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URI_PATH_GLOB_FIELD_NUMBER = 2;
/**
*
* A URI where the path portion is a glob expression that can
* identify zero or more paths.
* Consumers should support the POSIX syntax. The recursive
* globstar (**) may not be supported.
*
*
* string uri_path_glob = 2;
* @return Whether the uriPathGlob field is set.
*/
public boolean hasUriPathGlob() {
return pathTypeCase_ == 2;
}
/**
*
* A URI where the path portion is a glob expression that can
* identify zero or more paths.
* Consumers should support the POSIX syntax. The recursive
* globstar (**) may not be supported.
*
*
* string uri_path_glob = 2;
* @return The uriPathGlob.
*/
public java.lang.String getUriPathGlob() {
java.lang.Object ref = "";
if (pathTypeCase_ == 2) {
ref = pathType_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (pathTypeCase_ == 2) {
pathType_ = s;
}
return s;
}
}
/**
*
* A URI where the path portion is a glob expression that can
* identify zero or more paths.
* Consumers should support the POSIX syntax. The recursive
* globstar (**) may not be supported.
*
*
* string uri_path_glob = 2;
* @return The bytes for uriPathGlob.
*/
public com.google.protobuf.ByteString
getUriPathGlobBytes() {
java.lang.Object ref = "";
if (pathTypeCase_ == 2) {
ref = pathType_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (pathTypeCase_ == 2) {
pathType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URI_FILE_FIELD_NUMBER = 3;
/**
*
* A URI that refers to a single file
*
*
* string uri_file = 3;
* @return Whether the uriFile field is set.
*/
public boolean hasUriFile() {
return pathTypeCase_ == 3;
}
/**
*
* A URI that refers to a single file
*
*
* string uri_file = 3;
* @return The uriFile.
*/
public java.lang.String getUriFile() {
java.lang.Object ref = "";
if (pathTypeCase_ == 3) {
ref = pathType_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (pathTypeCase_ == 3) {
pathType_ = s;
}
return s;
}
}
/**
*
* A URI that refers to a single file
*
*
* string uri_file = 3;
* @return The bytes for uriFile.
*/
public com.google.protobuf.ByteString
getUriFileBytes() {
java.lang.Object ref = "";
if (pathTypeCase_ == 3) {
ref = pathType_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (pathTypeCase_ == 3) {
pathType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URI_FOLDER_FIELD_NUMBER = 4;
/**
*
* A URI that refers to a single folder
*
*
* string uri_folder = 4;
* @return Whether the uriFolder field is set.
*/
public boolean hasUriFolder() {
return pathTypeCase_ == 4;
}
/**
*
* A URI that refers to a single folder
*
*
* string uri_folder = 4;
* @return The uriFolder.
*/
public java.lang.String getUriFolder() {
java.lang.Object ref = "";
if (pathTypeCase_ == 4) {
ref = pathType_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (pathTypeCase_ == 4) {
pathType_ = s;
}
return s;
}
}
/**
*
* A URI that refers to a single folder
*
*
* string uri_folder = 4;
* @return The bytes for uriFolder.
*/
public com.google.protobuf.ByteString
getUriFolderBytes() {
java.lang.Object ref = "";
if (pathTypeCase_ == 4) {
ref = pathType_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (pathTypeCase_ == 4) {
pathType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARTITION_INDEX_FIELD_NUMBER = 6;
private long partitionIndex_ = 0L;
/**
*
* The index of the partition this item belongs to
*
*
* uint64 partition_index = 6;
* @return The partitionIndex.
*/
@java.lang.Override
public long getPartitionIndex() {
return partitionIndex_;
}
public static final int START_FIELD_NUMBER = 7;
private long start_ = 0L;
/**
*
* The start position in byte to read from this item
*
*
* uint64 start = 7;
* @return The start.
*/
@java.lang.Override
public long getStart() {
return start_;
}
public static final int LENGTH_FIELD_NUMBER = 8;
private long length_ = 0L;
/**
*
* The length in byte to read from this item
*
*
* uint64 length = 8;
* @return The length.
*/
@java.lang.Override
public long getLength() {
return length_;
}
public static final int PARQUET_FIELD_NUMBER = 9;
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
* @return Whether the parquet field is set.
*/
@java.lang.Override
public boolean hasParquet() {
return fileFormatCase_ == 9;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
* @return The parquet.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions getParquet() {
if (fileFormatCase_ == 9) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.getDefaultInstance();
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptionsOrBuilder getParquetOrBuilder() {
if (fileFormatCase_ == 9) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.getDefaultInstance();
}
public static final int ARROW_FIELD_NUMBER = 10;
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
* @return Whether the arrow field is set.
*/
@java.lang.Override
public boolean hasArrow() {
return fileFormatCase_ == 10;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
* @return The arrow.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions getArrow() {
if (fileFormatCase_ == 10) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.getDefaultInstance();
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptionsOrBuilder getArrowOrBuilder() {
if (fileFormatCase_ == 10) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.getDefaultInstance();
}
public static final int ORC_FIELD_NUMBER = 11;
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
* @return Whether the orc field is set.
*/
@java.lang.Override
public boolean hasOrc() {
return fileFormatCase_ == 11;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
* @return The orc.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions getOrc() {
if (fileFormatCase_ == 11) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.getDefaultInstance();
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptionsOrBuilder getOrcOrBuilder() {
if (fileFormatCase_ == 11) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.getDefaultInstance();
}
public static final int EXTENSION_FIELD_NUMBER = 12;
/**
* .google.protobuf.Any extension = 12;
* @return Whether the extension field is set.
*/
@java.lang.Override
public boolean hasExtension() {
return fileFormatCase_ == 12;
}
/**
* .google.protobuf.Any extension = 12;
* @return The extension.
*/
@java.lang.Override
public com.google.protobuf.Any getExtension() {
if (fileFormatCase_ == 12) {
return (com.google.protobuf.Any) fileFormat_;
}
return com.google.protobuf.Any.getDefaultInstance();
}
/**
* .google.protobuf.Any extension = 12;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getExtensionOrBuilder() {
if (fileFormatCase_ == 12) {
return (com.google.protobuf.Any) fileFormat_;
}
return com.google.protobuf.Any.getDefaultInstance();
}
public static final int DWRF_FIELD_NUMBER = 13;
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
* @return Whether the dwrf field is set.
*/
@java.lang.Override
public boolean hasDwrf() {
return fileFormatCase_ == 13;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
* @return The dwrf.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions getDwrf() {
if (fileFormatCase_ == 13) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.getDefaultInstance();
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptionsOrBuilder getDwrfOrBuilder() {
if (fileFormatCase_ == 13) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.getDefaultInstance();
}
public static final int TEXT_FIELD_NUMBER = 14;
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
* @return Whether the text field is set.
*/
@java.lang.Override
public boolean hasText() {
return fileFormatCase_ == 14;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
* @return The text.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions getText() {
if (fileFormatCase_ == 14) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.getDefaultInstance();
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptionsOrBuilder getTextOrBuilder() {
if (fileFormatCase_ == 14) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (pathTypeCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pathType_);
}
if (pathTypeCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pathType_);
}
if (pathTypeCase_ == 3) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pathType_);
}
if (pathTypeCase_ == 4) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pathType_);
}
if (partitionIndex_ != 0L) {
output.writeUInt64(6, partitionIndex_);
}
if (start_ != 0L) {
output.writeUInt64(7, start_);
}
if (length_ != 0L) {
output.writeUInt64(8, length_);
}
if (fileFormatCase_ == 9) {
output.writeMessage(9, (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions) fileFormat_);
}
if (fileFormatCase_ == 10) {
output.writeMessage(10, (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions) fileFormat_);
}
if (fileFormatCase_ == 11) {
output.writeMessage(11, (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions) fileFormat_);
}
if (fileFormatCase_ == 12) {
output.writeMessage(12, (com.google.protobuf.Any) fileFormat_);
}
if (fileFormatCase_ == 13) {
output.writeMessage(13, (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions) fileFormat_);
}
if (fileFormatCase_ == 14) {
output.writeMessage(14, (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions) fileFormat_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (pathTypeCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pathType_);
}
if (pathTypeCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pathType_);
}
if (pathTypeCase_ == 3) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pathType_);
}
if (pathTypeCase_ == 4) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pathType_);
}
if (partitionIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, partitionIndex_);
}
if (start_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, start_);
}
if (length_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, length_);
}
if (fileFormatCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions) fileFormat_);
}
if (fileFormatCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions) fileFormat_);
}
if (fileFormatCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions) fileFormat_);
}
if (fileFormatCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (com.google.protobuf.Any) fileFormat_);
}
if (fileFormatCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions) fileFormat_);
}
if (fileFormatCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions) fileFormat_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ReadRel.LocalFiles.FileOrFiles)) {
return super.equals(obj);
}
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles other = (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles) obj;
if (getPartitionIndex()
!= other.getPartitionIndex()) return false;
if (getStart()
!= other.getStart()) return false;
if (getLength()
!= other.getLength()) return false;
if (!getPathTypeCase().equals(other.getPathTypeCase())) return false;
switch (pathTypeCase_) {
case 1:
if (!getUriPath()
.equals(other.getUriPath())) return false;
break;
case 2:
if (!getUriPathGlob()
.equals(other.getUriPathGlob())) return false;
break;
case 3:
if (!getUriFile()
.equals(other.getUriFile())) return false;
break;
case 4:
if (!getUriFolder()
.equals(other.getUriFolder())) return false;
break;
case 0:
default:
}
if (!getFileFormatCase().equals(other.getFileFormatCase())) return false;
switch (fileFormatCase_) {
case 9:
if (!getParquet()
.equals(other.getParquet())) return false;
break;
case 10:
if (!getArrow()
.equals(other.getArrow())) return false;
break;
case 11:
if (!getOrc()
.equals(other.getOrc())) return false;
break;
case 12:
if (!getExtension()
.equals(other.getExtension())) return false;
break;
case 13:
if (!getDwrf()
.equals(other.getDwrf())) return false;
break;
case 14:
if (!getText()
.equals(other.getText())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PARTITION_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPartitionIndex());
hash = (37 * hash) + START_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStart());
hash = (37 * hash) + LENGTH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLength());
switch (pathTypeCase_) {
case 1:
hash = (37 * hash) + URI_PATH_FIELD_NUMBER;
hash = (53 * hash) + getUriPath().hashCode();
break;
case 2:
hash = (37 * hash) + URI_PATH_GLOB_FIELD_NUMBER;
hash = (53 * hash) + getUriPathGlob().hashCode();
break;
case 3:
hash = (37 * hash) + URI_FILE_FIELD_NUMBER;
hash = (53 * hash) + getUriFile().hashCode();
break;
case 4:
hash = (37 * hash) + URI_FOLDER_FIELD_NUMBER;
hash = (53 * hash) + getUriFolder().hashCode();
break;
case 0:
default:
}
switch (fileFormatCase_) {
case 9:
hash = (37 * hash) + PARQUET_FIELD_NUMBER;
hash = (53 * hash) + getParquet().hashCode();
break;
case 10:
hash = (37 * hash) + ARROW_FIELD_NUMBER;
hash = (53 * hash) + getArrow().hashCode();
break;
case 11:
hash = (37 * hash) + ORC_FIELD_NUMBER;
hash = (53 * hash) + getOrc().hashCode();
break;
case 12:
hash = (37 * hash) + EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getExtension().hashCode();
break;
case 13:
hash = (37 * hash) + DWRF_FIELD_NUMBER;
hash = (53 * hash) + getDwrf().hashCode();
break;
case 14:
hash = (37 * hash) + TEXT_FIELD_NUMBER;
hash = (53 * hash) + getText().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Many files consist of indivisible chunks (e.g. parquet row groups
* or CSV rows). If a slice partially selects an indivisible chunk
* then the consumer should employ some rule to decide which slice to
* include the chunk in (e.g. include it in the slice that contains
* the midpoint of the chunk)
*
*
* Protobuf type {@code substrait.ReadRel.LocalFiles.FileOrFiles}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ReadRel.LocalFiles.FileOrFiles)
io.substrait.proto.ReadRel.LocalFiles.FileOrFilesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.class, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.Builder.class);
}
// Construct using io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
partitionIndex_ = 0L;
start_ = 0L;
length_ = 0L;
if (parquetBuilder_ != null) {
parquetBuilder_.clear();
}
if (arrowBuilder_ != null) {
arrowBuilder_.clear();
}
if (orcBuilder_ != null) {
orcBuilder_.clear();
}
if (extensionBuilder_ != null) {
extensionBuilder_.clear();
}
if (dwrfBuilder_ != null) {
dwrfBuilder_.clear();
}
if (textBuilder_ != null) {
textBuilder_.clear();
}
pathTypeCase_ = 0;
pathType_ = null;
fileFormatCase_ = 0;
fileFormat_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_FileOrFiles_descriptor;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles getDefaultInstanceForType() {
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles build() {
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles buildPartial() {
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles result = new io.substrait.proto.ReadRel.LocalFiles.FileOrFiles(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.partitionIndex_ = partitionIndex_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.start_ = start_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.length_ = length_;
}
}
private void buildPartialOneofs(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles result) {
result.pathTypeCase_ = pathTypeCase_;
result.pathType_ = this.pathType_;
result.fileFormatCase_ = fileFormatCase_;
result.fileFormat_ = this.fileFormat_;
if (fileFormatCase_ == 9 &&
parquetBuilder_ != null) {
result.fileFormat_ = parquetBuilder_.build();
}
if (fileFormatCase_ == 10 &&
arrowBuilder_ != null) {
result.fileFormat_ = arrowBuilder_.build();
}
if (fileFormatCase_ == 11 &&
orcBuilder_ != null) {
result.fileFormat_ = orcBuilder_.build();
}
if (fileFormatCase_ == 12 &&
extensionBuilder_ != null) {
result.fileFormat_ = extensionBuilder_.build();
}
if (fileFormatCase_ == 13 &&
dwrfBuilder_ != null) {
result.fileFormat_ = dwrfBuilder_.build();
}
if (fileFormatCase_ == 14 &&
textBuilder_ != null) {
result.fileFormat_ = textBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ReadRel.LocalFiles.FileOrFiles) {
return mergeFrom((io.substrait.proto.ReadRel.LocalFiles.FileOrFiles)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles other) {
if (other == io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.getDefaultInstance()) return this;
if (other.getPartitionIndex() != 0L) {
setPartitionIndex(other.getPartitionIndex());
}
if (other.getStart() != 0L) {
setStart(other.getStart());
}
if (other.getLength() != 0L) {
setLength(other.getLength());
}
switch (other.getPathTypeCase()) {
case URI_PATH: {
pathTypeCase_ = 1;
pathType_ = other.pathType_;
onChanged();
break;
}
case URI_PATH_GLOB: {
pathTypeCase_ = 2;
pathType_ = other.pathType_;
onChanged();
break;
}
case URI_FILE: {
pathTypeCase_ = 3;
pathType_ = other.pathType_;
onChanged();
break;
}
case URI_FOLDER: {
pathTypeCase_ = 4;
pathType_ = other.pathType_;
onChanged();
break;
}
case PATHTYPE_NOT_SET: {
break;
}
}
switch (other.getFileFormatCase()) {
case PARQUET: {
mergeParquet(other.getParquet());
break;
}
case ARROW: {
mergeArrow(other.getArrow());
break;
}
case ORC: {
mergeOrc(other.getOrc());
break;
}
case EXTENSION: {
mergeExtension(other.getExtension());
break;
}
case DWRF: {
mergeDwrf(other.getDwrf());
break;
}
case TEXT: {
mergeText(other.getText());
break;
}
case FILEFORMAT_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
pathTypeCase_ = 1;
pathType_ = s;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
pathTypeCase_ = 2;
pathType_ = s;
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pathTypeCase_ = 3;
pathType_ = s;
break;
} // case 26
case 34: {
java.lang.String s = input.readStringRequireUtf8();
pathTypeCase_ = 4;
pathType_ = s;
break;
} // case 34
case 48: {
partitionIndex_ = input.readUInt64();
bitField0_ |= 0x00000010;
break;
} // case 48
case 56: {
start_ = input.readUInt64();
bitField0_ |= 0x00000020;
break;
} // case 56
case 64: {
length_ = input.readUInt64();
bitField0_ |= 0x00000040;
break;
} // case 64
case 74: {
input.readMessage(
getParquetFieldBuilder().getBuilder(),
extensionRegistry);
fileFormatCase_ = 9;
break;
} // case 74
case 82: {
input.readMessage(
getArrowFieldBuilder().getBuilder(),
extensionRegistry);
fileFormatCase_ = 10;
break;
} // case 82
case 90: {
input.readMessage(
getOrcFieldBuilder().getBuilder(),
extensionRegistry);
fileFormatCase_ = 11;
break;
} // case 90
case 98: {
input.readMessage(
getExtensionFieldBuilder().getBuilder(),
extensionRegistry);
fileFormatCase_ = 12;
break;
} // case 98
case 106: {
input.readMessage(
getDwrfFieldBuilder().getBuilder(),
extensionRegistry);
fileFormatCase_ = 13;
break;
} // case 106
case 114: {
input.readMessage(
getTextFieldBuilder().getBuilder(),
extensionRegistry);
fileFormatCase_ = 14;
break;
} // case 114
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int pathTypeCase_ = 0;
private java.lang.Object pathType_;
public PathTypeCase
getPathTypeCase() {
return PathTypeCase.forNumber(
pathTypeCase_);
}
public Builder clearPathType() {
pathTypeCase_ = 0;
pathType_ = null;
onChanged();
return this;
}
private int fileFormatCase_ = 0;
private java.lang.Object fileFormat_;
public FileFormatCase
getFileFormatCase() {
return FileFormatCase.forNumber(
fileFormatCase_);
}
public Builder clearFileFormat() {
fileFormatCase_ = 0;
fileFormat_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
*
* A URI that can refer to either a single folder or a single file
*
*
* string uri_path = 1;
* @return Whether the uriPath field is set.
*/
@java.lang.Override
public boolean hasUriPath() {
return pathTypeCase_ == 1;
}
/**
*
* A URI that can refer to either a single folder or a single file
*
*
* string uri_path = 1;
* @return The uriPath.
*/
@java.lang.Override
public java.lang.String getUriPath() {
java.lang.Object ref = "";
if (pathTypeCase_ == 1) {
ref = pathType_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (pathTypeCase_ == 1) {
pathType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A URI that can refer to either a single folder or a single file
*
*
* string uri_path = 1;
* @return The bytes for uriPath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUriPathBytes() {
java.lang.Object ref = "";
if (pathTypeCase_ == 1) {
ref = pathType_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (pathTypeCase_ == 1) {
pathType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A URI that can refer to either a single folder or a single file
*
*
* string uri_path = 1;
* @param value The uriPath to set.
* @return This builder for chaining.
*/
public Builder setUriPath(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
pathTypeCase_ = 1;
pathType_ = value;
onChanged();
return this;
}
/**
*
* A URI that can refer to either a single folder or a single file
*
*
* string uri_path = 1;
* @return This builder for chaining.
*/
public Builder clearUriPath() {
if (pathTypeCase_ == 1) {
pathTypeCase_ = 0;
pathType_ = null;
onChanged();
}
return this;
}
/**
*
* A URI that can refer to either a single folder or a single file
*
*
* string uri_path = 1;
* @param value The bytes for uriPath to set.
* @return This builder for chaining.
*/
public Builder setUriPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
pathTypeCase_ = 1;
pathType_ = value;
onChanged();
return this;
}
/**
*
* A URI where the path portion is a glob expression that can
* identify zero or more paths.
* Consumers should support the POSIX syntax. The recursive
* globstar (**) may not be supported.
*
*
* string uri_path_glob = 2;
* @return Whether the uriPathGlob field is set.
*/
@java.lang.Override
public boolean hasUriPathGlob() {
return pathTypeCase_ == 2;
}
/**
*
* A URI where the path portion is a glob expression that can
* identify zero or more paths.
* Consumers should support the POSIX syntax. The recursive
* globstar (**) may not be supported.
*
*
* string uri_path_glob = 2;
* @return The uriPathGlob.
*/
@java.lang.Override
public java.lang.String getUriPathGlob() {
java.lang.Object ref = "";
if (pathTypeCase_ == 2) {
ref = pathType_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (pathTypeCase_ == 2) {
pathType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A URI where the path portion is a glob expression that can
* identify zero or more paths.
* Consumers should support the POSIX syntax. The recursive
* globstar (**) may not be supported.
*
*
* string uri_path_glob = 2;
* @return The bytes for uriPathGlob.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUriPathGlobBytes() {
java.lang.Object ref = "";
if (pathTypeCase_ == 2) {
ref = pathType_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (pathTypeCase_ == 2) {
pathType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A URI where the path portion is a glob expression that can
* identify zero or more paths.
* Consumers should support the POSIX syntax. The recursive
* globstar (**) may not be supported.
*
*
* string uri_path_glob = 2;
* @param value The uriPathGlob to set.
* @return This builder for chaining.
*/
public Builder setUriPathGlob(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
pathTypeCase_ = 2;
pathType_ = value;
onChanged();
return this;
}
/**
*
* A URI where the path portion is a glob expression that can
* identify zero or more paths.
* Consumers should support the POSIX syntax. The recursive
* globstar (**) may not be supported.
*
*
* string uri_path_glob = 2;
* @return This builder for chaining.
*/
public Builder clearUriPathGlob() {
if (pathTypeCase_ == 2) {
pathTypeCase_ = 0;
pathType_ = null;
onChanged();
}
return this;
}
/**
*
* A URI where the path portion is a glob expression that can
* identify zero or more paths.
* Consumers should support the POSIX syntax. The recursive
* globstar (**) may not be supported.
*
*
* string uri_path_glob = 2;
* @param value The bytes for uriPathGlob to set.
* @return This builder for chaining.
*/
public Builder setUriPathGlobBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
pathTypeCase_ = 2;
pathType_ = value;
onChanged();
return this;
}
/**
*
* A URI that refers to a single file
*
*
* string uri_file = 3;
* @return Whether the uriFile field is set.
*/
@java.lang.Override
public boolean hasUriFile() {
return pathTypeCase_ == 3;
}
/**
*
* A URI that refers to a single file
*
*
* string uri_file = 3;
* @return The uriFile.
*/
@java.lang.Override
public java.lang.String getUriFile() {
java.lang.Object ref = "";
if (pathTypeCase_ == 3) {
ref = pathType_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (pathTypeCase_ == 3) {
pathType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A URI that refers to a single file
*
*
* string uri_file = 3;
* @return The bytes for uriFile.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUriFileBytes() {
java.lang.Object ref = "";
if (pathTypeCase_ == 3) {
ref = pathType_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (pathTypeCase_ == 3) {
pathType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A URI that refers to a single file
*
*
* string uri_file = 3;
* @param value The uriFile to set.
* @return This builder for chaining.
*/
public Builder setUriFile(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
pathTypeCase_ = 3;
pathType_ = value;
onChanged();
return this;
}
/**
*
* A URI that refers to a single file
*
*
* string uri_file = 3;
* @return This builder for chaining.
*/
public Builder clearUriFile() {
if (pathTypeCase_ == 3) {
pathTypeCase_ = 0;
pathType_ = null;
onChanged();
}
return this;
}
/**
*
* A URI that refers to a single file
*
*
* string uri_file = 3;
* @param value The bytes for uriFile to set.
* @return This builder for chaining.
*/
public Builder setUriFileBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
pathTypeCase_ = 3;
pathType_ = value;
onChanged();
return this;
}
/**
*
* A URI that refers to a single folder
*
*
* string uri_folder = 4;
* @return Whether the uriFolder field is set.
*/
@java.lang.Override
public boolean hasUriFolder() {
return pathTypeCase_ == 4;
}
/**
*
* A URI that refers to a single folder
*
*
* string uri_folder = 4;
* @return The uriFolder.
*/
@java.lang.Override
public java.lang.String getUriFolder() {
java.lang.Object ref = "";
if (pathTypeCase_ == 4) {
ref = pathType_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (pathTypeCase_ == 4) {
pathType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A URI that refers to a single folder
*
*
* string uri_folder = 4;
* @return The bytes for uriFolder.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUriFolderBytes() {
java.lang.Object ref = "";
if (pathTypeCase_ == 4) {
ref = pathType_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (pathTypeCase_ == 4) {
pathType_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A URI that refers to a single folder
*
*
* string uri_folder = 4;
* @param value The uriFolder to set.
* @return This builder for chaining.
*/
public Builder setUriFolder(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
pathTypeCase_ = 4;
pathType_ = value;
onChanged();
return this;
}
/**
*
* A URI that refers to a single folder
*
*
* string uri_folder = 4;
* @return This builder for chaining.
*/
public Builder clearUriFolder() {
if (pathTypeCase_ == 4) {
pathTypeCase_ = 0;
pathType_ = null;
onChanged();
}
return this;
}
/**
*
* A URI that refers to a single folder
*
*
* string uri_folder = 4;
* @param value The bytes for uriFolder to set.
* @return This builder for chaining.
*/
public Builder setUriFolderBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
pathTypeCase_ = 4;
pathType_ = value;
onChanged();
return this;
}
private long partitionIndex_ ;
/**
*
* The index of the partition this item belongs to
*
*
* uint64 partition_index = 6;
* @return The partitionIndex.
*/
@java.lang.Override
public long getPartitionIndex() {
return partitionIndex_;
}
/**
*
* The index of the partition this item belongs to
*
*
* uint64 partition_index = 6;
* @param value The partitionIndex to set.
* @return This builder for chaining.
*/
public Builder setPartitionIndex(long value) {
partitionIndex_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The index of the partition this item belongs to
*
*
* uint64 partition_index = 6;
* @return This builder for chaining.
*/
public Builder clearPartitionIndex() {
bitField0_ = (bitField0_ & ~0x00000010);
partitionIndex_ = 0L;
onChanged();
return this;
}
private long start_ ;
/**
*
* The start position in byte to read from this item
*
*
* uint64 start = 7;
* @return The start.
*/
@java.lang.Override
public long getStart() {
return start_;
}
/**
*
* The start position in byte to read from this item
*
*
* uint64 start = 7;
* @param value The start to set.
* @return This builder for chaining.
*/
public Builder setStart(long value) {
start_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* The start position in byte to read from this item
*
*
* uint64 start = 7;
* @return This builder for chaining.
*/
public Builder clearStart() {
bitField0_ = (bitField0_ & ~0x00000020);
start_ = 0L;
onChanged();
return this;
}
private long length_ ;
/**
*
* The length in byte to read from this item
*
*
* uint64 length = 8;
* @return The length.
*/
@java.lang.Override
public long getLength() {
return length_;
}
/**
*
* The length in byte to read from this item
*
*
* uint64 length = 8;
* @param value The length to set.
* @return This builder for chaining.
*/
public Builder setLength(long value) {
length_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* The length in byte to read from this item
*
*
* uint64 length = 8;
* @return This builder for chaining.
*/
public Builder clearLength() {
bitField0_ = (bitField0_ & ~0x00000040);
length_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptionsOrBuilder> parquetBuilder_;
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
* @return Whether the parquet field is set.
*/
@java.lang.Override
public boolean hasParquet() {
return fileFormatCase_ == 9;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
* @return The parquet.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions getParquet() {
if (parquetBuilder_ == null) {
if (fileFormatCase_ == 9) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.getDefaultInstance();
} else {
if (fileFormatCase_ == 9) {
return parquetBuilder_.getMessage();
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
*/
public Builder setParquet(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions value) {
if (parquetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileFormat_ = value;
onChanged();
} else {
parquetBuilder_.setMessage(value);
}
fileFormatCase_ = 9;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
*/
public Builder setParquet(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.Builder builderForValue) {
if (parquetBuilder_ == null) {
fileFormat_ = builderForValue.build();
onChanged();
} else {
parquetBuilder_.setMessage(builderForValue.build());
}
fileFormatCase_ = 9;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
*/
public Builder mergeParquet(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions value) {
if (parquetBuilder_ == null) {
if (fileFormatCase_ == 9 &&
fileFormat_ != io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.getDefaultInstance()) {
fileFormat_ = io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.newBuilder((io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions) fileFormat_)
.mergeFrom(value).buildPartial();
} else {
fileFormat_ = value;
}
onChanged();
} else {
if (fileFormatCase_ == 9) {
parquetBuilder_.mergeFrom(value);
} else {
parquetBuilder_.setMessage(value);
}
}
fileFormatCase_ = 9;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
*/
public Builder clearParquet() {
if (parquetBuilder_ == null) {
if (fileFormatCase_ == 9) {
fileFormatCase_ = 0;
fileFormat_ = null;
onChanged();
}
} else {
if (fileFormatCase_ == 9) {
fileFormatCase_ = 0;
fileFormat_ = null;
}
parquetBuilder_.clear();
}
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
*/
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.Builder getParquetBuilder() {
return getParquetFieldBuilder().getBuilder();
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptionsOrBuilder getParquetOrBuilder() {
if ((fileFormatCase_ == 9) && (parquetBuilder_ != null)) {
return parquetBuilder_.getMessageOrBuilder();
} else {
if (fileFormatCase_ == 9) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions parquet = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptionsOrBuilder>
getParquetFieldBuilder() {
if (parquetBuilder_ == null) {
if (!(fileFormatCase_ == 9)) {
fileFormat_ = io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.getDefaultInstance();
}
parquetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptionsOrBuilder>(
(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions) fileFormat_,
getParentForChildren(),
isClean());
fileFormat_ = null;
}
fileFormatCase_ = 9;
onChanged();
return parquetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptionsOrBuilder> arrowBuilder_;
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
* @return Whether the arrow field is set.
*/
@java.lang.Override
public boolean hasArrow() {
return fileFormatCase_ == 10;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
* @return The arrow.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions getArrow() {
if (arrowBuilder_ == null) {
if (fileFormatCase_ == 10) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.getDefaultInstance();
} else {
if (fileFormatCase_ == 10) {
return arrowBuilder_.getMessage();
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
*/
public Builder setArrow(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions value) {
if (arrowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileFormat_ = value;
onChanged();
} else {
arrowBuilder_.setMessage(value);
}
fileFormatCase_ = 10;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
*/
public Builder setArrow(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.Builder builderForValue) {
if (arrowBuilder_ == null) {
fileFormat_ = builderForValue.build();
onChanged();
} else {
arrowBuilder_.setMessage(builderForValue.build());
}
fileFormatCase_ = 10;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
*/
public Builder mergeArrow(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions value) {
if (arrowBuilder_ == null) {
if (fileFormatCase_ == 10 &&
fileFormat_ != io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.getDefaultInstance()) {
fileFormat_ = io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.newBuilder((io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions) fileFormat_)
.mergeFrom(value).buildPartial();
} else {
fileFormat_ = value;
}
onChanged();
} else {
if (fileFormatCase_ == 10) {
arrowBuilder_.mergeFrom(value);
} else {
arrowBuilder_.setMessage(value);
}
}
fileFormatCase_ = 10;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
*/
public Builder clearArrow() {
if (arrowBuilder_ == null) {
if (fileFormatCase_ == 10) {
fileFormatCase_ = 0;
fileFormat_ = null;
onChanged();
}
} else {
if (fileFormatCase_ == 10) {
fileFormatCase_ = 0;
fileFormat_ = null;
}
arrowBuilder_.clear();
}
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
*/
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.Builder getArrowBuilder() {
return getArrowFieldBuilder().getBuilder();
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptionsOrBuilder getArrowOrBuilder() {
if ((fileFormatCase_ == 10) && (arrowBuilder_ != null)) {
return arrowBuilder_.getMessageOrBuilder();
} else {
if (fileFormatCase_ == 10) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions arrow = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptionsOrBuilder>
getArrowFieldBuilder() {
if (arrowBuilder_ == null) {
if (!(fileFormatCase_ == 10)) {
fileFormat_ = io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.getDefaultInstance();
}
arrowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptionsOrBuilder>(
(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions) fileFormat_,
getParentForChildren(),
isClean());
fileFormat_ = null;
}
fileFormatCase_ = 10;
onChanged();
return arrowBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptionsOrBuilder> orcBuilder_;
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
* @return Whether the orc field is set.
*/
@java.lang.Override
public boolean hasOrc() {
return fileFormatCase_ == 11;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
* @return The orc.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions getOrc() {
if (orcBuilder_ == null) {
if (fileFormatCase_ == 11) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.getDefaultInstance();
} else {
if (fileFormatCase_ == 11) {
return orcBuilder_.getMessage();
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
*/
public Builder setOrc(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions value) {
if (orcBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileFormat_ = value;
onChanged();
} else {
orcBuilder_.setMessage(value);
}
fileFormatCase_ = 11;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
*/
public Builder setOrc(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.Builder builderForValue) {
if (orcBuilder_ == null) {
fileFormat_ = builderForValue.build();
onChanged();
} else {
orcBuilder_.setMessage(builderForValue.build());
}
fileFormatCase_ = 11;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
*/
public Builder mergeOrc(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions value) {
if (orcBuilder_ == null) {
if (fileFormatCase_ == 11 &&
fileFormat_ != io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.getDefaultInstance()) {
fileFormat_ = io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.newBuilder((io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions) fileFormat_)
.mergeFrom(value).buildPartial();
} else {
fileFormat_ = value;
}
onChanged();
} else {
if (fileFormatCase_ == 11) {
orcBuilder_.mergeFrom(value);
} else {
orcBuilder_.setMessage(value);
}
}
fileFormatCase_ = 11;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
*/
public Builder clearOrc() {
if (orcBuilder_ == null) {
if (fileFormatCase_ == 11) {
fileFormatCase_ = 0;
fileFormat_ = null;
onChanged();
}
} else {
if (fileFormatCase_ == 11) {
fileFormatCase_ = 0;
fileFormat_ = null;
}
orcBuilder_.clear();
}
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
*/
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.Builder getOrcBuilder() {
return getOrcFieldBuilder().getBuilder();
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptionsOrBuilder getOrcOrBuilder() {
if ((fileFormatCase_ == 11) && (orcBuilder_ != null)) {
return orcBuilder_.getMessageOrBuilder();
} else {
if (fileFormatCase_ == 11) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions orc = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptionsOrBuilder>
getOrcFieldBuilder() {
if (orcBuilder_ == null) {
if (!(fileFormatCase_ == 11)) {
fileFormat_ = io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.getDefaultInstance();
}
orcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptionsOrBuilder>(
(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptions) fileFormat_,
getParentForChildren(),
isClean());
fileFormat_ = null;
}
fileFormatCase_ = 11;
onChanged();
return orcBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> extensionBuilder_;
/**
* .google.protobuf.Any extension = 12;
* @return Whether the extension field is set.
*/
@java.lang.Override
public boolean hasExtension() {
return fileFormatCase_ == 12;
}
/**
* .google.protobuf.Any extension = 12;
* @return The extension.
*/
@java.lang.Override
public com.google.protobuf.Any getExtension() {
if (extensionBuilder_ == null) {
if (fileFormatCase_ == 12) {
return (com.google.protobuf.Any) fileFormat_;
}
return com.google.protobuf.Any.getDefaultInstance();
} else {
if (fileFormatCase_ == 12) {
return extensionBuilder_.getMessage();
}
return com.google.protobuf.Any.getDefaultInstance();
}
}
/**
* .google.protobuf.Any extension = 12;
*/
public Builder setExtension(com.google.protobuf.Any value) {
if (extensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileFormat_ = value;
onChanged();
} else {
extensionBuilder_.setMessage(value);
}
fileFormatCase_ = 12;
return this;
}
/**
* .google.protobuf.Any extension = 12;
*/
public Builder setExtension(
com.google.protobuf.Any.Builder builderForValue) {
if (extensionBuilder_ == null) {
fileFormat_ = builderForValue.build();
onChanged();
} else {
extensionBuilder_.setMessage(builderForValue.build());
}
fileFormatCase_ = 12;
return this;
}
/**
* .google.protobuf.Any extension = 12;
*/
public Builder mergeExtension(com.google.protobuf.Any value) {
if (extensionBuilder_ == null) {
if (fileFormatCase_ == 12 &&
fileFormat_ != com.google.protobuf.Any.getDefaultInstance()) {
fileFormat_ = com.google.protobuf.Any.newBuilder((com.google.protobuf.Any) fileFormat_)
.mergeFrom(value).buildPartial();
} else {
fileFormat_ = value;
}
onChanged();
} else {
if (fileFormatCase_ == 12) {
extensionBuilder_.mergeFrom(value);
} else {
extensionBuilder_.setMessage(value);
}
}
fileFormatCase_ = 12;
return this;
}
/**
* .google.protobuf.Any extension = 12;
*/
public Builder clearExtension() {
if (extensionBuilder_ == null) {
if (fileFormatCase_ == 12) {
fileFormatCase_ = 0;
fileFormat_ = null;
onChanged();
}
} else {
if (fileFormatCase_ == 12) {
fileFormatCase_ = 0;
fileFormat_ = null;
}
extensionBuilder_.clear();
}
return this;
}
/**
* .google.protobuf.Any extension = 12;
*/
public com.google.protobuf.Any.Builder getExtensionBuilder() {
return getExtensionFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Any extension = 12;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getExtensionOrBuilder() {
if ((fileFormatCase_ == 12) && (extensionBuilder_ != null)) {
return extensionBuilder_.getMessageOrBuilder();
} else {
if (fileFormatCase_ == 12) {
return (com.google.protobuf.Any) fileFormat_;
}
return com.google.protobuf.Any.getDefaultInstance();
}
}
/**
* .google.protobuf.Any extension = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getExtensionFieldBuilder() {
if (extensionBuilder_ == null) {
if (!(fileFormatCase_ == 12)) {
fileFormat_ = com.google.protobuf.Any.getDefaultInstance();
}
extensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
(com.google.protobuf.Any) fileFormat_,
getParentForChildren(),
isClean());
fileFormat_ = null;
}
fileFormatCase_ = 12;
onChanged();
return extensionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptionsOrBuilder> dwrfBuilder_;
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
* @return Whether the dwrf field is set.
*/
@java.lang.Override
public boolean hasDwrf() {
return fileFormatCase_ == 13;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
* @return The dwrf.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions getDwrf() {
if (dwrfBuilder_ == null) {
if (fileFormatCase_ == 13) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.getDefaultInstance();
} else {
if (fileFormatCase_ == 13) {
return dwrfBuilder_.getMessage();
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
*/
public Builder setDwrf(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions value) {
if (dwrfBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileFormat_ = value;
onChanged();
} else {
dwrfBuilder_.setMessage(value);
}
fileFormatCase_ = 13;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
*/
public Builder setDwrf(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.Builder builderForValue) {
if (dwrfBuilder_ == null) {
fileFormat_ = builderForValue.build();
onChanged();
} else {
dwrfBuilder_.setMessage(builderForValue.build());
}
fileFormatCase_ = 13;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
*/
public Builder mergeDwrf(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions value) {
if (dwrfBuilder_ == null) {
if (fileFormatCase_ == 13 &&
fileFormat_ != io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.getDefaultInstance()) {
fileFormat_ = io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.newBuilder((io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions) fileFormat_)
.mergeFrom(value).buildPartial();
} else {
fileFormat_ = value;
}
onChanged();
} else {
if (fileFormatCase_ == 13) {
dwrfBuilder_.mergeFrom(value);
} else {
dwrfBuilder_.setMessage(value);
}
}
fileFormatCase_ = 13;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
*/
public Builder clearDwrf() {
if (dwrfBuilder_ == null) {
if (fileFormatCase_ == 13) {
fileFormatCase_ = 0;
fileFormat_ = null;
onChanged();
}
} else {
if (fileFormatCase_ == 13) {
fileFormatCase_ = 0;
fileFormat_ = null;
}
dwrfBuilder_.clear();
}
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
*/
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.Builder getDwrfBuilder() {
return getDwrfFieldBuilder().getBuilder();
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptionsOrBuilder getDwrfOrBuilder() {
if ((fileFormatCase_ == 13) && (dwrfBuilder_ != null)) {
return dwrfBuilder_.getMessageOrBuilder();
} else {
if (fileFormatCase_ == 13) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions dwrf = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptionsOrBuilder>
getDwrfFieldBuilder() {
if (dwrfBuilder_ == null) {
if (!(fileFormatCase_ == 13)) {
fileFormat_ = io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.getDefaultInstance();
}
dwrfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptionsOrBuilder>(
(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions) fileFormat_,
getParentForChildren(),
isClean());
fileFormat_ = null;
}
fileFormatCase_ = 13;
onChanged();
return dwrfBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptionsOrBuilder> textBuilder_;
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
* @return Whether the text field is set.
*/
@java.lang.Override
public boolean hasText() {
return fileFormatCase_ == 14;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
* @return The text.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions getText() {
if (textBuilder_ == null) {
if (fileFormatCase_ == 14) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.getDefaultInstance();
} else {
if (fileFormatCase_ == 14) {
return textBuilder_.getMessage();
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
*/
public Builder setText(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions value) {
if (textBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileFormat_ = value;
onChanged();
} else {
textBuilder_.setMessage(value);
}
fileFormatCase_ = 14;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
*/
public Builder setText(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.Builder builderForValue) {
if (textBuilder_ == null) {
fileFormat_ = builderForValue.build();
onChanged();
} else {
textBuilder_.setMessage(builderForValue.build());
}
fileFormatCase_ = 14;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
*/
public Builder mergeText(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions value) {
if (textBuilder_ == null) {
if (fileFormatCase_ == 14 &&
fileFormat_ != io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.getDefaultInstance()) {
fileFormat_ = io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.newBuilder((io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions) fileFormat_)
.mergeFrom(value).buildPartial();
} else {
fileFormat_ = value;
}
onChanged();
} else {
if (fileFormatCase_ == 14) {
textBuilder_.mergeFrom(value);
} else {
textBuilder_.setMessage(value);
}
}
fileFormatCase_ = 14;
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
*/
public Builder clearText() {
if (textBuilder_ == null) {
if (fileFormatCase_ == 14) {
fileFormatCase_ = 0;
fileFormat_ = null;
onChanged();
}
} else {
if (fileFormatCase_ == 14) {
fileFormatCase_ = 0;
fileFormat_ = null;
}
textBuilder_.clear();
}
return this;
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
*/
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.Builder getTextBuilder() {
return getTextFieldBuilder().getBuilder();
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptionsOrBuilder getTextOrBuilder() {
if ((fileFormatCase_ == 14) && (textBuilder_ != null)) {
return textBuilder_.getMessageOrBuilder();
} else {
if (fileFormatCase_ == 14) {
return (io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions) fileFormat_;
}
return io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions text = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptionsOrBuilder>
getTextFieldBuilder() {
if (textBuilder_ == null) {
if (!(fileFormatCase_ == 14)) {
fileFormat_ = io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.getDefaultInstance();
}
textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptionsOrBuilder>(
(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions) fileFormat_,
getParentForChildren(),
isClean());
fileFormat_ = null;
}
fileFormatCase_ = 14;
onChanged();
return textBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ReadRel.LocalFiles.FileOrFiles)
}
// @@protoc_insertion_point(class_scope:substrait.ReadRel.LocalFiles.FileOrFiles)
private static final io.substrait.proto.ReadRel.LocalFiles.FileOrFiles DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ReadRel.LocalFiles.FileOrFiles();
}
public static io.substrait.proto.ReadRel.LocalFiles.FileOrFiles getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileOrFiles parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int ITEMS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List items_;
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
@java.lang.Override
public java.util.List getItemsList() {
return items_;
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.ReadRel.LocalFiles.FileOrFilesOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
@java.lang.Override
public int getItemsCount() {
return items_.size();
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles getItems(int index) {
return items_.get(index);
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles.FileOrFilesOrBuilder getItemsOrBuilder(
int index) {
return items_.get(index);
}
public static final int ADVANCED_EXTENSION_FIELD_NUMBER = 10;
private io.substrait.proto.AdvancedExtension advancedExtension_;
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return Whether the advancedExtension field is set.
*/
@java.lang.Override
public boolean hasAdvancedExtension() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return The advancedExtension.
*/
@java.lang.Override
public io.substrait.proto.AdvancedExtension getAdvancedExtension() {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
@java.lang.Override
public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(1, items_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(10, getAdvancedExtension());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, items_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getAdvancedExtension());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ReadRel.LocalFiles)) {
return super.equals(obj);
}
io.substrait.proto.ReadRel.LocalFiles other = (io.substrait.proto.ReadRel.LocalFiles) obj;
if (!getItemsList()
.equals(other.getItemsList())) return false;
if (hasAdvancedExtension() != other.hasAdvancedExtension()) return false;
if (hasAdvancedExtension()) {
if (!getAdvancedExtension()
.equals(other.getAdvancedExtension())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
if (hasAdvancedExtension()) {
hash = (37 * hash) + ADVANCED_EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getAdvancedExtension().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ReadRel.LocalFiles parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel.LocalFiles parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel.LocalFiles parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel.LocalFiles parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.substrait.proto.ReadRel.LocalFiles prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents a list of files in input of a scan operation
*
*
* Protobuf type {@code substrait.ReadRel.LocalFiles}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ReadRel.LocalFiles)
io.substrait.proto.ReadRel.LocalFilesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.LocalFiles.class, io.substrait.proto.ReadRel.LocalFiles.Builder.class);
}
// Construct using io.substrait.proto.ReadRel.LocalFiles.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getItemsFieldBuilder();
getAdvancedExtensionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
} else {
items_ = null;
itemsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
advancedExtension_ = null;
if (advancedExtensionBuilder_ != null) {
advancedExtensionBuilder_.dispose();
advancedExtensionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_LocalFiles_descriptor;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles getDefaultInstanceForType() {
return io.substrait.proto.ReadRel.LocalFiles.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles build() {
io.substrait.proto.ReadRel.LocalFiles result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles buildPartial() {
io.substrait.proto.ReadRel.LocalFiles result = new io.substrait.proto.ReadRel.LocalFiles(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.ReadRel.LocalFiles result) {
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.ReadRel.LocalFiles result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.advancedExtension_ = advancedExtensionBuilder_ == null
? advancedExtension_
: advancedExtensionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ReadRel.LocalFiles) {
return mergeFrom((io.substrait.proto.ReadRel.LocalFiles)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ReadRel.LocalFiles other) {
if (other == io.substrait.proto.ReadRel.LocalFiles.getDefaultInstance()) return this;
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000001);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getItemsFieldBuilder() : null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
if (other.hasAdvancedExtension()) {
mergeAdvancedExtension(other.getAdvancedExtension());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles m =
input.readMessage(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.parser(),
extensionRegistry);
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(m);
} else {
itemsBuilder_.addMessage(m);
}
break;
} // case 10
case 82: {
input.readMessage(
getAdvancedExtensionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFilesOrBuilder> itemsBuilder_;
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public Builder setItems(
int index, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public Builder setItems(
int index, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public Builder addItems(io.substrait.proto.ReadRel.LocalFiles.FileOrFiles value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public Builder addItems(
int index, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public Builder addItems(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public Builder addItems(
int index, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public Builder addAllItems(
java.lang.Iterable extends io.substrait.proto.ReadRel.LocalFiles.FileOrFiles> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public io.substrait.proto.ReadRel.LocalFiles.FileOrFilesOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public java.util.List extends io.substrait.proto.ReadRel.LocalFiles.FileOrFilesOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.getDefaultInstance());
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.getDefaultInstance());
}
/**
* repeated .substrait.ReadRel.LocalFiles.FileOrFiles items = 1;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFilesOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles.FileOrFiles, io.substrait.proto.ReadRel.LocalFiles.FileOrFiles.Builder, io.substrait.proto.ReadRel.LocalFiles.FileOrFilesOrBuilder>(
items_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
private io.substrait.proto.AdvancedExtension advancedExtension_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder> advancedExtensionBuilder_;
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return Whether the advancedExtension field is set.
*/
public boolean hasAdvancedExtension() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return The advancedExtension.
*/
public io.substrait.proto.AdvancedExtension getAdvancedExtension() {
if (advancedExtensionBuilder_ == null) {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
} else {
return advancedExtensionBuilder_.getMessage();
}
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder setAdvancedExtension(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
advancedExtension_ = value;
} else {
advancedExtensionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder setAdvancedExtension(
io.substrait.proto.AdvancedExtension.Builder builderForValue) {
if (advancedExtensionBuilder_ == null) {
advancedExtension_ = builderForValue.build();
} else {
advancedExtensionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder mergeAdvancedExtension(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
advancedExtension_ != null &&
advancedExtension_ != io.substrait.proto.AdvancedExtension.getDefaultInstance()) {
getAdvancedExtensionBuilder().mergeFrom(value);
} else {
advancedExtension_ = value;
}
} else {
advancedExtensionBuilder_.mergeFrom(value);
}
if (advancedExtension_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder clearAdvancedExtension() {
bitField0_ = (bitField0_ & ~0x00000002);
advancedExtension_ = null;
if (advancedExtensionBuilder_ != null) {
advancedExtensionBuilder_.dispose();
advancedExtensionBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public io.substrait.proto.AdvancedExtension.Builder getAdvancedExtensionBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAdvancedExtensionFieldBuilder().getBuilder();
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() {
if (advancedExtensionBuilder_ != null) {
return advancedExtensionBuilder_.getMessageOrBuilder();
} else {
return advancedExtension_ == null ?
io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>
getAdvancedExtensionFieldBuilder() {
if (advancedExtensionBuilder_ == null) {
advancedExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>(
getAdvancedExtension(),
getParentForChildren(),
isClean());
advancedExtension_ = null;
}
return advancedExtensionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ReadRel.LocalFiles)
}
// @@protoc_insertion_point(class_scope:substrait.ReadRel.LocalFiles)
private static final io.substrait.proto.ReadRel.LocalFiles DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ReadRel.LocalFiles();
}
public static io.substrait.proto.ReadRel.LocalFiles getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocalFiles parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
private int readTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object readType_;
public enum ReadTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
VIRTUAL_TABLE(5),
LOCAL_FILES(6),
NAMED_TABLE(7),
EXTENSION_TABLE(8),
READTYPE_NOT_SET(0);
private final int value;
private ReadTypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ReadTypeCase valueOf(int value) {
return forNumber(value);
}
public static ReadTypeCase forNumber(int value) {
switch (value) {
case 5: return VIRTUAL_TABLE;
case 6: return LOCAL_FILES;
case 7: return NAMED_TABLE;
case 8: return EXTENSION_TABLE;
case 0: return READTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ReadTypeCase
getReadTypeCase() {
return ReadTypeCase.forNumber(
readTypeCase_);
}
public static final int COMMON_FIELD_NUMBER = 1;
private io.substrait.proto.RelCommon common_;
/**
* .substrait.RelCommon common = 1;
* @return Whether the common field is set.
*/
@java.lang.Override
public boolean hasCommon() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.RelCommon common = 1;
* @return The common.
*/
@java.lang.Override
public io.substrait.proto.RelCommon getCommon() {
return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_;
}
/**
* .substrait.RelCommon common = 1;
*/
@java.lang.Override
public io.substrait.proto.RelCommonOrBuilder getCommonOrBuilder() {
return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_;
}
public static final int BASE_SCHEMA_FIELD_NUMBER = 2;
private io.substrait.proto.NamedStruct baseSchema_;
/**
* .substrait.NamedStruct base_schema = 2;
* @return Whether the baseSchema field is set.
*/
@java.lang.Override
public boolean hasBaseSchema() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.NamedStruct base_schema = 2;
* @return The baseSchema.
*/
@java.lang.Override
public io.substrait.proto.NamedStruct getBaseSchema() {
return baseSchema_ == null ? io.substrait.proto.NamedStruct.getDefaultInstance() : baseSchema_;
}
/**
* .substrait.NamedStruct base_schema = 2;
*/
@java.lang.Override
public io.substrait.proto.NamedStructOrBuilder getBaseSchemaOrBuilder() {
return baseSchema_ == null ? io.substrait.proto.NamedStruct.getDefaultInstance() : baseSchema_;
}
public static final int FILTER_FIELD_NUMBER = 3;
private io.substrait.proto.Expression filter_;
/**
* .substrait.Expression filter = 3;
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .substrait.Expression filter = 3;
* @return The filter.
*/
@java.lang.Override
public io.substrait.proto.Expression getFilter() {
return filter_ == null ? io.substrait.proto.Expression.getDefaultInstance() : filter_;
}
/**
* .substrait.Expression filter = 3;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getFilterOrBuilder() {
return filter_ == null ? io.substrait.proto.Expression.getDefaultInstance() : filter_;
}
public static final int BEST_EFFORT_FILTER_FIELD_NUMBER = 11;
private io.substrait.proto.Expression bestEffortFilter_;
/**
* .substrait.Expression best_effort_filter = 11;
* @return Whether the bestEffortFilter field is set.
*/
@java.lang.Override
public boolean hasBestEffortFilter() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .substrait.Expression best_effort_filter = 11;
* @return The bestEffortFilter.
*/
@java.lang.Override
public io.substrait.proto.Expression getBestEffortFilter() {
return bestEffortFilter_ == null ? io.substrait.proto.Expression.getDefaultInstance() : bestEffortFilter_;
}
/**
* .substrait.Expression best_effort_filter = 11;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getBestEffortFilterOrBuilder() {
return bestEffortFilter_ == null ? io.substrait.proto.Expression.getDefaultInstance() : bestEffortFilter_;
}
public static final int PROJECTION_FIELD_NUMBER = 4;
private io.substrait.proto.Expression.MaskExpression projection_;
/**
* .substrait.Expression.MaskExpression projection = 4;
* @return Whether the projection field is set.
*/
@java.lang.Override
public boolean hasProjection() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .substrait.Expression.MaskExpression projection = 4;
* @return The projection.
*/
@java.lang.Override
public io.substrait.proto.Expression.MaskExpression getProjection() {
return projection_ == null ? io.substrait.proto.Expression.MaskExpression.getDefaultInstance() : projection_;
}
/**
* .substrait.Expression.MaskExpression projection = 4;
*/
@java.lang.Override
public io.substrait.proto.Expression.MaskExpressionOrBuilder getProjectionOrBuilder() {
return projection_ == null ? io.substrait.proto.Expression.MaskExpression.getDefaultInstance() : projection_;
}
public static final int ADVANCED_EXTENSION_FIELD_NUMBER = 10;
private io.substrait.proto.AdvancedExtension advancedExtension_;
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return Whether the advancedExtension field is set.
*/
@java.lang.Override
public boolean hasAdvancedExtension() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return The advancedExtension.
*/
@java.lang.Override
public io.substrait.proto.AdvancedExtension getAdvancedExtension() {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
@java.lang.Override
public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
public static final int VIRTUAL_TABLE_FIELD_NUMBER = 5;
/**
* .substrait.ReadRel.VirtualTable virtual_table = 5;
* @return Whether the virtualTable field is set.
*/
@java.lang.Override
public boolean hasVirtualTable() {
return readTypeCase_ == 5;
}
/**
* .substrait.ReadRel.VirtualTable virtual_table = 5;
* @return The virtualTable.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.VirtualTable getVirtualTable() {
if (readTypeCase_ == 5) {
return (io.substrait.proto.ReadRel.VirtualTable) readType_;
}
return io.substrait.proto.ReadRel.VirtualTable.getDefaultInstance();
}
/**
* .substrait.ReadRel.VirtualTable virtual_table = 5;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.VirtualTableOrBuilder getVirtualTableOrBuilder() {
if (readTypeCase_ == 5) {
return (io.substrait.proto.ReadRel.VirtualTable) readType_;
}
return io.substrait.proto.ReadRel.VirtualTable.getDefaultInstance();
}
public static final int LOCAL_FILES_FIELD_NUMBER = 6;
/**
* .substrait.ReadRel.LocalFiles local_files = 6;
* @return Whether the localFiles field is set.
*/
@java.lang.Override
public boolean hasLocalFiles() {
return readTypeCase_ == 6;
}
/**
* .substrait.ReadRel.LocalFiles local_files = 6;
* @return The localFiles.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles getLocalFiles() {
if (readTypeCase_ == 6) {
return (io.substrait.proto.ReadRel.LocalFiles) readType_;
}
return io.substrait.proto.ReadRel.LocalFiles.getDefaultInstance();
}
/**
* .substrait.ReadRel.LocalFiles local_files = 6;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFilesOrBuilder getLocalFilesOrBuilder() {
if (readTypeCase_ == 6) {
return (io.substrait.proto.ReadRel.LocalFiles) readType_;
}
return io.substrait.proto.ReadRel.LocalFiles.getDefaultInstance();
}
public static final int NAMED_TABLE_FIELD_NUMBER = 7;
/**
* .substrait.ReadRel.NamedTable named_table = 7;
* @return Whether the namedTable field is set.
*/
@java.lang.Override
public boolean hasNamedTable() {
return readTypeCase_ == 7;
}
/**
* .substrait.ReadRel.NamedTable named_table = 7;
* @return The namedTable.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.NamedTable getNamedTable() {
if (readTypeCase_ == 7) {
return (io.substrait.proto.ReadRel.NamedTable) readType_;
}
return io.substrait.proto.ReadRel.NamedTable.getDefaultInstance();
}
/**
* .substrait.ReadRel.NamedTable named_table = 7;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.NamedTableOrBuilder getNamedTableOrBuilder() {
if (readTypeCase_ == 7) {
return (io.substrait.proto.ReadRel.NamedTable) readType_;
}
return io.substrait.proto.ReadRel.NamedTable.getDefaultInstance();
}
public static final int EXTENSION_TABLE_FIELD_NUMBER = 8;
/**
* .substrait.ReadRel.ExtensionTable extension_table = 8;
* @return Whether the extensionTable field is set.
*/
@java.lang.Override
public boolean hasExtensionTable() {
return readTypeCase_ == 8;
}
/**
* .substrait.ReadRel.ExtensionTable extension_table = 8;
* @return The extensionTable.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.ExtensionTable getExtensionTable() {
if (readTypeCase_ == 8) {
return (io.substrait.proto.ReadRel.ExtensionTable) readType_;
}
return io.substrait.proto.ReadRel.ExtensionTable.getDefaultInstance();
}
/**
* .substrait.ReadRel.ExtensionTable extension_table = 8;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.ExtensionTableOrBuilder getExtensionTableOrBuilder() {
if (readTypeCase_ == 8) {
return (io.substrait.proto.ReadRel.ExtensionTable) readType_;
}
return io.substrait.proto.ReadRel.ExtensionTable.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getCommon());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getBaseSchema());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getFilter());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(4, getProjection());
}
if (readTypeCase_ == 5) {
output.writeMessage(5, (io.substrait.proto.ReadRel.VirtualTable) readType_);
}
if (readTypeCase_ == 6) {
output.writeMessage(6, (io.substrait.proto.ReadRel.LocalFiles) readType_);
}
if (readTypeCase_ == 7) {
output.writeMessage(7, (io.substrait.proto.ReadRel.NamedTable) readType_);
}
if (readTypeCase_ == 8) {
output.writeMessage(8, (io.substrait.proto.ReadRel.ExtensionTable) readType_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(10, getAdvancedExtension());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(11, getBestEffortFilter());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCommon());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBaseSchema());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getFilter());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getProjection());
}
if (readTypeCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.substrait.proto.ReadRel.VirtualTable) readType_);
}
if (readTypeCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (io.substrait.proto.ReadRel.LocalFiles) readType_);
}
if (readTypeCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (io.substrait.proto.ReadRel.NamedTable) readType_);
}
if (readTypeCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (io.substrait.proto.ReadRel.ExtensionTable) readType_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getAdvancedExtension());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getBestEffortFilter());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ReadRel)) {
return super.equals(obj);
}
io.substrait.proto.ReadRel other = (io.substrait.proto.ReadRel) obj;
if (hasCommon() != other.hasCommon()) return false;
if (hasCommon()) {
if (!getCommon()
.equals(other.getCommon())) return false;
}
if (hasBaseSchema() != other.hasBaseSchema()) return false;
if (hasBaseSchema()) {
if (!getBaseSchema()
.equals(other.getBaseSchema())) return false;
}
if (hasFilter() != other.hasFilter()) return false;
if (hasFilter()) {
if (!getFilter()
.equals(other.getFilter())) return false;
}
if (hasBestEffortFilter() != other.hasBestEffortFilter()) return false;
if (hasBestEffortFilter()) {
if (!getBestEffortFilter()
.equals(other.getBestEffortFilter())) return false;
}
if (hasProjection() != other.hasProjection()) return false;
if (hasProjection()) {
if (!getProjection()
.equals(other.getProjection())) return false;
}
if (hasAdvancedExtension() != other.hasAdvancedExtension()) return false;
if (hasAdvancedExtension()) {
if (!getAdvancedExtension()
.equals(other.getAdvancedExtension())) return false;
}
if (!getReadTypeCase().equals(other.getReadTypeCase())) return false;
switch (readTypeCase_) {
case 5:
if (!getVirtualTable()
.equals(other.getVirtualTable())) return false;
break;
case 6:
if (!getLocalFiles()
.equals(other.getLocalFiles())) return false;
break;
case 7:
if (!getNamedTable()
.equals(other.getNamedTable())) return false;
break;
case 8:
if (!getExtensionTable()
.equals(other.getExtensionTable())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCommon()) {
hash = (37 * hash) + COMMON_FIELD_NUMBER;
hash = (53 * hash) + getCommon().hashCode();
}
if (hasBaseSchema()) {
hash = (37 * hash) + BASE_SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getBaseSchema().hashCode();
}
if (hasFilter()) {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
}
if (hasBestEffortFilter()) {
hash = (37 * hash) + BEST_EFFORT_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getBestEffortFilter().hashCode();
}
if (hasProjection()) {
hash = (37 * hash) + PROJECTION_FIELD_NUMBER;
hash = (53 * hash) + getProjection().hashCode();
}
if (hasAdvancedExtension()) {
hash = (37 * hash) + ADVANCED_EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getAdvancedExtension().hashCode();
}
switch (readTypeCase_) {
case 5:
hash = (37 * hash) + VIRTUAL_TABLE_FIELD_NUMBER;
hash = (53 * hash) + getVirtualTable().hashCode();
break;
case 6:
hash = (37 * hash) + LOCAL_FILES_FIELD_NUMBER;
hash = (53 * hash) + getLocalFiles().hashCode();
break;
case 7:
hash = (37 * hash) + NAMED_TABLE_FIELD_NUMBER;
hash = (53 * hash) + getNamedTable().hashCode();
break;
case 8:
hash = (37 * hash) + EXTENSION_TABLE_FIELD_NUMBER;
hash = (53 * hash) + getExtensionTable().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ReadRel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ReadRel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ReadRel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.substrait.proto.ReadRel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ReadRel parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.substrait.proto.ReadRel prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* The scan operator of base data (physical or virtual), including filtering and projection.
*
*
* Protobuf type {@code substrait.ReadRel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ReadRel)
io.substrait.proto.ReadRelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ReadRel.class, io.substrait.proto.ReadRel.Builder.class);
}
// Construct using io.substrait.proto.ReadRel.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCommonFieldBuilder();
getBaseSchemaFieldBuilder();
getFilterFieldBuilder();
getBestEffortFilterFieldBuilder();
getProjectionFieldBuilder();
getAdvancedExtensionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
common_ = null;
if (commonBuilder_ != null) {
commonBuilder_.dispose();
commonBuilder_ = null;
}
baseSchema_ = null;
if (baseSchemaBuilder_ != null) {
baseSchemaBuilder_.dispose();
baseSchemaBuilder_ = null;
}
filter_ = null;
if (filterBuilder_ != null) {
filterBuilder_.dispose();
filterBuilder_ = null;
}
bestEffortFilter_ = null;
if (bestEffortFilterBuilder_ != null) {
bestEffortFilterBuilder_.dispose();
bestEffortFilterBuilder_ = null;
}
projection_ = null;
if (projectionBuilder_ != null) {
projectionBuilder_.dispose();
projectionBuilder_ = null;
}
advancedExtension_ = null;
if (advancedExtensionBuilder_ != null) {
advancedExtensionBuilder_.dispose();
advancedExtensionBuilder_ = null;
}
if (virtualTableBuilder_ != null) {
virtualTableBuilder_.clear();
}
if (localFilesBuilder_ != null) {
localFilesBuilder_.clear();
}
if (namedTableBuilder_ != null) {
namedTableBuilder_.clear();
}
if (extensionTableBuilder_ != null) {
extensionTableBuilder_.clear();
}
readTypeCase_ = 0;
readType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ReadRel_descriptor;
}
@java.lang.Override
public io.substrait.proto.ReadRel getDefaultInstanceForType() {
return io.substrait.proto.ReadRel.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ReadRel build() {
io.substrait.proto.ReadRel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ReadRel buildPartial() {
io.substrait.proto.ReadRel result = new io.substrait.proto.ReadRel(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.ReadRel result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.common_ = commonBuilder_ == null
? common_
: commonBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.baseSchema_ = baseSchemaBuilder_ == null
? baseSchema_
: baseSchemaBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.filter_ = filterBuilder_ == null
? filter_
: filterBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.bestEffortFilter_ = bestEffortFilterBuilder_ == null
? bestEffortFilter_
: bestEffortFilterBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.projection_ = projectionBuilder_ == null
? projection_
: projectionBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.advancedExtension_ = advancedExtensionBuilder_ == null
? advancedExtension_
: advancedExtensionBuilder_.build();
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(io.substrait.proto.ReadRel result) {
result.readTypeCase_ = readTypeCase_;
result.readType_ = this.readType_;
if (readTypeCase_ == 5 &&
virtualTableBuilder_ != null) {
result.readType_ = virtualTableBuilder_.build();
}
if (readTypeCase_ == 6 &&
localFilesBuilder_ != null) {
result.readType_ = localFilesBuilder_.build();
}
if (readTypeCase_ == 7 &&
namedTableBuilder_ != null) {
result.readType_ = namedTableBuilder_.build();
}
if (readTypeCase_ == 8 &&
extensionTableBuilder_ != null) {
result.readType_ = extensionTableBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ReadRel) {
return mergeFrom((io.substrait.proto.ReadRel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ReadRel other) {
if (other == io.substrait.proto.ReadRel.getDefaultInstance()) return this;
if (other.hasCommon()) {
mergeCommon(other.getCommon());
}
if (other.hasBaseSchema()) {
mergeBaseSchema(other.getBaseSchema());
}
if (other.hasFilter()) {
mergeFilter(other.getFilter());
}
if (other.hasBestEffortFilter()) {
mergeBestEffortFilter(other.getBestEffortFilter());
}
if (other.hasProjection()) {
mergeProjection(other.getProjection());
}
if (other.hasAdvancedExtension()) {
mergeAdvancedExtension(other.getAdvancedExtension());
}
switch (other.getReadTypeCase()) {
case VIRTUAL_TABLE: {
mergeVirtualTable(other.getVirtualTable());
break;
}
case LOCAL_FILES: {
mergeLocalFiles(other.getLocalFiles());
break;
}
case NAMED_TABLE: {
mergeNamedTable(other.getNamedTable());
break;
}
case EXTENSION_TABLE: {
mergeExtensionTable(other.getExtensionTable());
break;
}
case READTYPE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getCommonFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getBaseSchemaFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getFilterFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getProjectionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 34
case 42: {
input.readMessage(
getVirtualTableFieldBuilder().getBuilder(),
extensionRegistry);
readTypeCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getLocalFilesFieldBuilder().getBuilder(),
extensionRegistry);
readTypeCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getNamedTableFieldBuilder().getBuilder(),
extensionRegistry);
readTypeCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getExtensionTableFieldBuilder().getBuilder(),
extensionRegistry);
readTypeCase_ = 8;
break;
} // case 66
case 82: {
input.readMessage(
getAdvancedExtensionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 82
case 90: {
input.readMessage(
getBestEffortFilterFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 90
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int readTypeCase_ = 0;
private java.lang.Object readType_;
public ReadTypeCase
getReadTypeCase() {
return ReadTypeCase.forNumber(
readTypeCase_);
}
public Builder clearReadType() {
readTypeCase_ = 0;
readType_ = null;
onChanged();
return this;
}
private int bitField0_;
private io.substrait.proto.RelCommon common_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.RelCommon, io.substrait.proto.RelCommon.Builder, io.substrait.proto.RelCommonOrBuilder> commonBuilder_;
/**
* .substrait.RelCommon common = 1;
* @return Whether the common field is set.
*/
public boolean hasCommon() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .substrait.RelCommon common = 1;
* @return The common.
*/
public io.substrait.proto.RelCommon getCommon() {
if (commonBuilder_ == null) {
return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_;
} else {
return commonBuilder_.getMessage();
}
}
/**
* .substrait.RelCommon common = 1;
*/
public Builder setCommon(io.substrait.proto.RelCommon value) {
if (commonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
common_ = value;
} else {
commonBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.RelCommon common = 1;
*/
public Builder setCommon(
io.substrait.proto.RelCommon.Builder builderForValue) {
if (commonBuilder_ == null) {
common_ = builderForValue.build();
} else {
commonBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .substrait.RelCommon common = 1;
*/
public Builder mergeCommon(io.substrait.proto.RelCommon value) {
if (commonBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
common_ != null &&
common_ != io.substrait.proto.RelCommon.getDefaultInstance()) {
getCommonBuilder().mergeFrom(value);
} else {
common_ = value;
}
} else {
commonBuilder_.mergeFrom(value);
}
if (common_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .substrait.RelCommon common = 1;
*/
public Builder clearCommon() {
bitField0_ = (bitField0_ & ~0x00000001);
common_ = null;
if (commonBuilder_ != null) {
commonBuilder_.dispose();
commonBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.RelCommon common = 1;
*/
public io.substrait.proto.RelCommon.Builder getCommonBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCommonFieldBuilder().getBuilder();
}
/**
* .substrait.RelCommon common = 1;
*/
public io.substrait.proto.RelCommonOrBuilder getCommonOrBuilder() {
if (commonBuilder_ != null) {
return commonBuilder_.getMessageOrBuilder();
} else {
return common_ == null ?
io.substrait.proto.RelCommon.getDefaultInstance() : common_;
}
}
/**
* .substrait.RelCommon common = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.RelCommon, io.substrait.proto.RelCommon.Builder, io.substrait.proto.RelCommonOrBuilder>
getCommonFieldBuilder() {
if (commonBuilder_ == null) {
commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.RelCommon, io.substrait.proto.RelCommon.Builder, io.substrait.proto.RelCommonOrBuilder>(
getCommon(),
getParentForChildren(),
isClean());
common_ = null;
}
return commonBuilder_;
}
private io.substrait.proto.NamedStruct baseSchema_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.NamedStruct, io.substrait.proto.NamedStruct.Builder, io.substrait.proto.NamedStructOrBuilder> baseSchemaBuilder_;
/**
* .substrait.NamedStruct base_schema = 2;
* @return Whether the baseSchema field is set.
*/
public boolean hasBaseSchema() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.NamedStruct base_schema = 2;
* @return The baseSchema.
*/
public io.substrait.proto.NamedStruct getBaseSchema() {
if (baseSchemaBuilder_ == null) {
return baseSchema_ == null ? io.substrait.proto.NamedStruct.getDefaultInstance() : baseSchema_;
} else {
return baseSchemaBuilder_.getMessage();
}
}
/**
* .substrait.NamedStruct base_schema = 2;
*/
public Builder setBaseSchema(io.substrait.proto.NamedStruct value) {
if (baseSchemaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseSchema_ = value;
} else {
baseSchemaBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.NamedStruct base_schema = 2;
*/
public Builder setBaseSchema(
io.substrait.proto.NamedStruct.Builder builderForValue) {
if (baseSchemaBuilder_ == null) {
baseSchema_ = builderForValue.build();
} else {
baseSchemaBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.NamedStruct base_schema = 2;
*/
public Builder mergeBaseSchema(io.substrait.proto.NamedStruct value) {
if (baseSchemaBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
baseSchema_ != null &&
baseSchema_ != io.substrait.proto.NamedStruct.getDefaultInstance()) {
getBaseSchemaBuilder().mergeFrom(value);
} else {
baseSchema_ = value;
}
} else {
baseSchemaBuilder_.mergeFrom(value);
}
if (baseSchema_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .substrait.NamedStruct base_schema = 2;
*/
public Builder clearBaseSchema() {
bitField0_ = (bitField0_ & ~0x00000002);
baseSchema_ = null;
if (baseSchemaBuilder_ != null) {
baseSchemaBuilder_.dispose();
baseSchemaBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.NamedStruct base_schema = 2;
*/
public io.substrait.proto.NamedStruct.Builder getBaseSchemaBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getBaseSchemaFieldBuilder().getBuilder();
}
/**
* .substrait.NamedStruct base_schema = 2;
*/
public io.substrait.proto.NamedStructOrBuilder getBaseSchemaOrBuilder() {
if (baseSchemaBuilder_ != null) {
return baseSchemaBuilder_.getMessageOrBuilder();
} else {
return baseSchema_ == null ?
io.substrait.proto.NamedStruct.getDefaultInstance() : baseSchema_;
}
}
/**
* .substrait.NamedStruct base_schema = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.NamedStruct, io.substrait.proto.NamedStruct.Builder, io.substrait.proto.NamedStructOrBuilder>
getBaseSchemaFieldBuilder() {
if (baseSchemaBuilder_ == null) {
baseSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.NamedStruct, io.substrait.proto.NamedStruct.Builder, io.substrait.proto.NamedStructOrBuilder>(
getBaseSchema(),
getParentForChildren(),
isClean());
baseSchema_ = null;
}
return baseSchemaBuilder_;
}
private io.substrait.proto.Expression filter_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> filterBuilder_;
/**
* .substrait.Expression filter = 3;
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .substrait.Expression filter = 3;
* @return The filter.
*/
public io.substrait.proto.Expression getFilter() {
if (filterBuilder_ == null) {
return filter_ == null ? io.substrait.proto.Expression.getDefaultInstance() : filter_;
} else {
return filterBuilder_.getMessage();
}
}
/**
* .substrait.Expression filter = 3;
*/
public Builder setFilter(io.substrait.proto.Expression value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
} else {
filterBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .substrait.Expression filter = 3;
*/
public Builder setFilter(
io.substrait.proto.Expression.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .substrait.Expression filter = 3;
*/
public Builder mergeFilter(io.substrait.proto.Expression value) {
if (filterBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
filter_ != null &&
filter_ != io.substrait.proto.Expression.getDefaultInstance()) {
getFilterBuilder().mergeFrom(value);
} else {
filter_ = value;
}
} else {
filterBuilder_.mergeFrom(value);
}
if (filter_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .substrait.Expression filter = 3;
*/
public Builder clearFilter() {
bitField0_ = (bitField0_ & ~0x00000004);
filter_ = null;
if (filterBuilder_ != null) {
filterBuilder_.dispose();
filterBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression filter = 3;
*/
public io.substrait.proto.Expression.Builder getFilterBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getFilterFieldBuilder().getBuilder();
}
/**
* .substrait.Expression filter = 3;
*/
public io.substrait.proto.ExpressionOrBuilder getFilterOrBuilder() {
if (filterBuilder_ != null) {
return filterBuilder_.getMessageOrBuilder();
} else {
return filter_ == null ?
io.substrait.proto.Expression.getDefaultInstance() : filter_;
}
}
/**
* .substrait.Expression filter = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
getFilter(),
getParentForChildren(),
isClean());
filter_ = null;
}
return filterBuilder_;
}
private io.substrait.proto.Expression bestEffortFilter_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> bestEffortFilterBuilder_;
/**
* .substrait.Expression best_effort_filter = 11;
* @return Whether the bestEffortFilter field is set.
*/
public boolean hasBestEffortFilter() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .substrait.Expression best_effort_filter = 11;
* @return The bestEffortFilter.
*/
public io.substrait.proto.Expression getBestEffortFilter() {
if (bestEffortFilterBuilder_ == null) {
return bestEffortFilter_ == null ? io.substrait.proto.Expression.getDefaultInstance() : bestEffortFilter_;
} else {
return bestEffortFilterBuilder_.getMessage();
}
}
/**
* .substrait.Expression best_effort_filter = 11;
*/
public Builder setBestEffortFilter(io.substrait.proto.Expression value) {
if (bestEffortFilterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bestEffortFilter_ = value;
} else {
bestEffortFilterBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .substrait.Expression best_effort_filter = 11;
*/
public Builder setBestEffortFilter(
io.substrait.proto.Expression.Builder builderForValue) {
if (bestEffortFilterBuilder_ == null) {
bestEffortFilter_ = builderForValue.build();
} else {
bestEffortFilterBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .substrait.Expression best_effort_filter = 11;
*/
public Builder mergeBestEffortFilter(io.substrait.proto.Expression value) {
if (bestEffortFilterBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
bestEffortFilter_ != null &&
bestEffortFilter_ != io.substrait.proto.Expression.getDefaultInstance()) {
getBestEffortFilterBuilder().mergeFrom(value);
} else {
bestEffortFilter_ = value;
}
} else {
bestEffortFilterBuilder_.mergeFrom(value);
}
if (bestEffortFilter_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .substrait.Expression best_effort_filter = 11;
*/
public Builder clearBestEffortFilter() {
bitField0_ = (bitField0_ & ~0x00000008);
bestEffortFilter_ = null;
if (bestEffortFilterBuilder_ != null) {
bestEffortFilterBuilder_.dispose();
bestEffortFilterBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression best_effort_filter = 11;
*/
public io.substrait.proto.Expression.Builder getBestEffortFilterBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getBestEffortFilterFieldBuilder().getBuilder();
}
/**
* .substrait.Expression best_effort_filter = 11;
*/
public io.substrait.proto.ExpressionOrBuilder getBestEffortFilterOrBuilder() {
if (bestEffortFilterBuilder_ != null) {
return bestEffortFilterBuilder_.getMessageOrBuilder();
} else {
return bestEffortFilter_ == null ?
io.substrait.proto.Expression.getDefaultInstance() : bestEffortFilter_;
}
}
/**
* .substrait.Expression best_effort_filter = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getBestEffortFilterFieldBuilder() {
if (bestEffortFilterBuilder_ == null) {
bestEffortFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
getBestEffortFilter(),
getParentForChildren(),
isClean());
bestEffortFilter_ = null;
}
return bestEffortFilterBuilder_;
}
private io.substrait.proto.Expression.MaskExpression projection_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.MaskExpression, io.substrait.proto.Expression.MaskExpression.Builder, io.substrait.proto.Expression.MaskExpressionOrBuilder> projectionBuilder_;
/**
* .substrait.Expression.MaskExpression projection = 4;
* @return Whether the projection field is set.
*/
public boolean hasProjection() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .substrait.Expression.MaskExpression projection = 4;
* @return The projection.
*/
public io.substrait.proto.Expression.MaskExpression getProjection() {
if (projectionBuilder_ == null) {
return projection_ == null ? io.substrait.proto.Expression.MaskExpression.getDefaultInstance() : projection_;
} else {
return projectionBuilder_.getMessage();
}
}
/**
* .substrait.Expression.MaskExpression projection = 4;
*/
public Builder setProjection(io.substrait.proto.Expression.MaskExpression value) {
if (projectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
projection_ = value;
} else {
projectionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .substrait.Expression.MaskExpression projection = 4;
*/
public Builder setProjection(
io.substrait.proto.Expression.MaskExpression.Builder builderForValue) {
if (projectionBuilder_ == null) {
projection_ = builderForValue.build();
} else {
projectionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .substrait.Expression.MaskExpression projection = 4;
*/
public Builder mergeProjection(io.substrait.proto.Expression.MaskExpression value) {
if (projectionBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
projection_ != null &&
projection_ != io.substrait.proto.Expression.MaskExpression.getDefaultInstance()) {
getProjectionBuilder().mergeFrom(value);
} else {
projection_ = value;
}
} else {
projectionBuilder_.mergeFrom(value);
}
if (projection_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* .substrait.Expression.MaskExpression projection = 4;
*/
public Builder clearProjection() {
bitField0_ = (bitField0_ & ~0x00000010);
projection_ = null;
if (projectionBuilder_ != null) {
projectionBuilder_.dispose();
projectionBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Expression.MaskExpression projection = 4;
*/
public io.substrait.proto.Expression.MaskExpression.Builder getProjectionBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getProjectionFieldBuilder().getBuilder();
}
/**
* .substrait.Expression.MaskExpression projection = 4;
*/
public io.substrait.proto.Expression.MaskExpressionOrBuilder getProjectionOrBuilder() {
if (projectionBuilder_ != null) {
return projectionBuilder_.getMessageOrBuilder();
} else {
return projection_ == null ?
io.substrait.proto.Expression.MaskExpression.getDefaultInstance() : projection_;
}
}
/**
* .substrait.Expression.MaskExpression projection = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.MaskExpression, io.substrait.proto.Expression.MaskExpression.Builder, io.substrait.proto.Expression.MaskExpressionOrBuilder>
getProjectionFieldBuilder() {
if (projectionBuilder_ == null) {
projectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.MaskExpression, io.substrait.proto.Expression.MaskExpression.Builder, io.substrait.proto.Expression.MaskExpressionOrBuilder>(
getProjection(),
getParentForChildren(),
isClean());
projection_ = null;
}
return projectionBuilder_;
}
private io.substrait.proto.AdvancedExtension advancedExtension_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder> advancedExtensionBuilder_;
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return Whether the advancedExtension field is set.
*/
public boolean hasAdvancedExtension() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return The advancedExtension.
*/
public io.substrait.proto.AdvancedExtension getAdvancedExtension() {
if (advancedExtensionBuilder_ == null) {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
} else {
return advancedExtensionBuilder_.getMessage();
}
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder setAdvancedExtension(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
advancedExtension_ = value;
} else {
advancedExtensionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder setAdvancedExtension(
io.substrait.proto.AdvancedExtension.Builder builderForValue) {
if (advancedExtensionBuilder_ == null) {
advancedExtension_ = builderForValue.build();
} else {
advancedExtensionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder mergeAdvancedExtension(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
advancedExtension_ != null &&
advancedExtension_ != io.substrait.proto.AdvancedExtension.getDefaultInstance()) {
getAdvancedExtensionBuilder().mergeFrom(value);
} else {
advancedExtension_ = value;
}
} else {
advancedExtensionBuilder_.mergeFrom(value);
}
if (advancedExtension_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder clearAdvancedExtension() {
bitField0_ = (bitField0_ & ~0x00000020);
advancedExtension_ = null;
if (advancedExtensionBuilder_ != null) {
advancedExtensionBuilder_.dispose();
advancedExtensionBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public io.substrait.proto.AdvancedExtension.Builder getAdvancedExtensionBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getAdvancedExtensionFieldBuilder().getBuilder();
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() {
if (advancedExtensionBuilder_ != null) {
return advancedExtensionBuilder_.getMessageOrBuilder();
} else {
return advancedExtension_ == null ?
io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>
getAdvancedExtensionFieldBuilder() {
if (advancedExtensionBuilder_ == null) {
advancedExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>(
getAdvancedExtension(),
getParentForChildren(),
isClean());
advancedExtension_ = null;
}
return advancedExtensionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.VirtualTable, io.substrait.proto.ReadRel.VirtualTable.Builder, io.substrait.proto.ReadRel.VirtualTableOrBuilder> virtualTableBuilder_;
/**
* .substrait.ReadRel.VirtualTable virtual_table = 5;
* @return Whether the virtualTable field is set.
*/
@java.lang.Override
public boolean hasVirtualTable() {
return readTypeCase_ == 5;
}
/**
* .substrait.ReadRel.VirtualTable virtual_table = 5;
* @return The virtualTable.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.VirtualTable getVirtualTable() {
if (virtualTableBuilder_ == null) {
if (readTypeCase_ == 5) {
return (io.substrait.proto.ReadRel.VirtualTable) readType_;
}
return io.substrait.proto.ReadRel.VirtualTable.getDefaultInstance();
} else {
if (readTypeCase_ == 5) {
return virtualTableBuilder_.getMessage();
}
return io.substrait.proto.ReadRel.VirtualTable.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.VirtualTable virtual_table = 5;
*/
public Builder setVirtualTable(io.substrait.proto.ReadRel.VirtualTable value) {
if (virtualTableBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
readType_ = value;
onChanged();
} else {
virtualTableBuilder_.setMessage(value);
}
readTypeCase_ = 5;
return this;
}
/**
* .substrait.ReadRel.VirtualTable virtual_table = 5;
*/
public Builder setVirtualTable(
io.substrait.proto.ReadRel.VirtualTable.Builder builderForValue) {
if (virtualTableBuilder_ == null) {
readType_ = builderForValue.build();
onChanged();
} else {
virtualTableBuilder_.setMessage(builderForValue.build());
}
readTypeCase_ = 5;
return this;
}
/**
* .substrait.ReadRel.VirtualTable virtual_table = 5;
*/
public Builder mergeVirtualTable(io.substrait.proto.ReadRel.VirtualTable value) {
if (virtualTableBuilder_ == null) {
if (readTypeCase_ == 5 &&
readType_ != io.substrait.proto.ReadRel.VirtualTable.getDefaultInstance()) {
readType_ = io.substrait.proto.ReadRel.VirtualTable.newBuilder((io.substrait.proto.ReadRel.VirtualTable) readType_)
.mergeFrom(value).buildPartial();
} else {
readType_ = value;
}
onChanged();
} else {
if (readTypeCase_ == 5) {
virtualTableBuilder_.mergeFrom(value);
} else {
virtualTableBuilder_.setMessage(value);
}
}
readTypeCase_ = 5;
return this;
}
/**
* .substrait.ReadRel.VirtualTable virtual_table = 5;
*/
public Builder clearVirtualTable() {
if (virtualTableBuilder_ == null) {
if (readTypeCase_ == 5) {
readTypeCase_ = 0;
readType_ = null;
onChanged();
}
} else {
if (readTypeCase_ == 5) {
readTypeCase_ = 0;
readType_ = null;
}
virtualTableBuilder_.clear();
}
return this;
}
/**
* .substrait.ReadRel.VirtualTable virtual_table = 5;
*/
public io.substrait.proto.ReadRel.VirtualTable.Builder getVirtualTableBuilder() {
return getVirtualTableFieldBuilder().getBuilder();
}
/**
* .substrait.ReadRel.VirtualTable virtual_table = 5;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.VirtualTableOrBuilder getVirtualTableOrBuilder() {
if ((readTypeCase_ == 5) && (virtualTableBuilder_ != null)) {
return virtualTableBuilder_.getMessageOrBuilder();
} else {
if (readTypeCase_ == 5) {
return (io.substrait.proto.ReadRel.VirtualTable) readType_;
}
return io.substrait.proto.ReadRel.VirtualTable.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.VirtualTable virtual_table = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.VirtualTable, io.substrait.proto.ReadRel.VirtualTable.Builder, io.substrait.proto.ReadRel.VirtualTableOrBuilder>
getVirtualTableFieldBuilder() {
if (virtualTableBuilder_ == null) {
if (!(readTypeCase_ == 5)) {
readType_ = io.substrait.proto.ReadRel.VirtualTable.getDefaultInstance();
}
virtualTableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.VirtualTable, io.substrait.proto.ReadRel.VirtualTable.Builder, io.substrait.proto.ReadRel.VirtualTableOrBuilder>(
(io.substrait.proto.ReadRel.VirtualTable) readType_,
getParentForChildren(),
isClean());
readType_ = null;
}
readTypeCase_ = 5;
onChanged();
return virtualTableBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles, io.substrait.proto.ReadRel.LocalFiles.Builder, io.substrait.proto.ReadRel.LocalFilesOrBuilder> localFilesBuilder_;
/**
* .substrait.ReadRel.LocalFiles local_files = 6;
* @return Whether the localFiles field is set.
*/
@java.lang.Override
public boolean hasLocalFiles() {
return readTypeCase_ == 6;
}
/**
* .substrait.ReadRel.LocalFiles local_files = 6;
* @return The localFiles.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFiles getLocalFiles() {
if (localFilesBuilder_ == null) {
if (readTypeCase_ == 6) {
return (io.substrait.proto.ReadRel.LocalFiles) readType_;
}
return io.substrait.proto.ReadRel.LocalFiles.getDefaultInstance();
} else {
if (readTypeCase_ == 6) {
return localFilesBuilder_.getMessage();
}
return io.substrait.proto.ReadRel.LocalFiles.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.LocalFiles local_files = 6;
*/
public Builder setLocalFiles(io.substrait.proto.ReadRel.LocalFiles value) {
if (localFilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
readType_ = value;
onChanged();
} else {
localFilesBuilder_.setMessage(value);
}
readTypeCase_ = 6;
return this;
}
/**
* .substrait.ReadRel.LocalFiles local_files = 6;
*/
public Builder setLocalFiles(
io.substrait.proto.ReadRel.LocalFiles.Builder builderForValue) {
if (localFilesBuilder_ == null) {
readType_ = builderForValue.build();
onChanged();
} else {
localFilesBuilder_.setMessage(builderForValue.build());
}
readTypeCase_ = 6;
return this;
}
/**
* .substrait.ReadRel.LocalFiles local_files = 6;
*/
public Builder mergeLocalFiles(io.substrait.proto.ReadRel.LocalFiles value) {
if (localFilesBuilder_ == null) {
if (readTypeCase_ == 6 &&
readType_ != io.substrait.proto.ReadRel.LocalFiles.getDefaultInstance()) {
readType_ = io.substrait.proto.ReadRel.LocalFiles.newBuilder((io.substrait.proto.ReadRel.LocalFiles) readType_)
.mergeFrom(value).buildPartial();
} else {
readType_ = value;
}
onChanged();
} else {
if (readTypeCase_ == 6) {
localFilesBuilder_.mergeFrom(value);
} else {
localFilesBuilder_.setMessage(value);
}
}
readTypeCase_ = 6;
return this;
}
/**
* .substrait.ReadRel.LocalFiles local_files = 6;
*/
public Builder clearLocalFiles() {
if (localFilesBuilder_ == null) {
if (readTypeCase_ == 6) {
readTypeCase_ = 0;
readType_ = null;
onChanged();
}
} else {
if (readTypeCase_ == 6) {
readTypeCase_ = 0;
readType_ = null;
}
localFilesBuilder_.clear();
}
return this;
}
/**
* .substrait.ReadRel.LocalFiles local_files = 6;
*/
public io.substrait.proto.ReadRel.LocalFiles.Builder getLocalFilesBuilder() {
return getLocalFilesFieldBuilder().getBuilder();
}
/**
* .substrait.ReadRel.LocalFiles local_files = 6;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.LocalFilesOrBuilder getLocalFilesOrBuilder() {
if ((readTypeCase_ == 6) && (localFilesBuilder_ != null)) {
return localFilesBuilder_.getMessageOrBuilder();
} else {
if (readTypeCase_ == 6) {
return (io.substrait.proto.ReadRel.LocalFiles) readType_;
}
return io.substrait.proto.ReadRel.LocalFiles.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.LocalFiles local_files = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles, io.substrait.proto.ReadRel.LocalFiles.Builder, io.substrait.proto.ReadRel.LocalFilesOrBuilder>
getLocalFilesFieldBuilder() {
if (localFilesBuilder_ == null) {
if (!(readTypeCase_ == 6)) {
readType_ = io.substrait.proto.ReadRel.LocalFiles.getDefaultInstance();
}
localFilesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.LocalFiles, io.substrait.proto.ReadRel.LocalFiles.Builder, io.substrait.proto.ReadRel.LocalFilesOrBuilder>(
(io.substrait.proto.ReadRel.LocalFiles) readType_,
getParentForChildren(),
isClean());
readType_ = null;
}
readTypeCase_ = 6;
onChanged();
return localFilesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.NamedTable, io.substrait.proto.ReadRel.NamedTable.Builder, io.substrait.proto.ReadRel.NamedTableOrBuilder> namedTableBuilder_;
/**
* .substrait.ReadRel.NamedTable named_table = 7;
* @return Whether the namedTable field is set.
*/
@java.lang.Override
public boolean hasNamedTable() {
return readTypeCase_ == 7;
}
/**
* .substrait.ReadRel.NamedTable named_table = 7;
* @return The namedTable.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.NamedTable getNamedTable() {
if (namedTableBuilder_ == null) {
if (readTypeCase_ == 7) {
return (io.substrait.proto.ReadRel.NamedTable) readType_;
}
return io.substrait.proto.ReadRel.NamedTable.getDefaultInstance();
} else {
if (readTypeCase_ == 7) {
return namedTableBuilder_.getMessage();
}
return io.substrait.proto.ReadRel.NamedTable.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.NamedTable named_table = 7;
*/
public Builder setNamedTable(io.substrait.proto.ReadRel.NamedTable value) {
if (namedTableBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
readType_ = value;
onChanged();
} else {
namedTableBuilder_.setMessage(value);
}
readTypeCase_ = 7;
return this;
}
/**
* .substrait.ReadRel.NamedTable named_table = 7;
*/
public Builder setNamedTable(
io.substrait.proto.ReadRel.NamedTable.Builder builderForValue) {
if (namedTableBuilder_ == null) {
readType_ = builderForValue.build();
onChanged();
} else {
namedTableBuilder_.setMessage(builderForValue.build());
}
readTypeCase_ = 7;
return this;
}
/**
* .substrait.ReadRel.NamedTable named_table = 7;
*/
public Builder mergeNamedTable(io.substrait.proto.ReadRel.NamedTable value) {
if (namedTableBuilder_ == null) {
if (readTypeCase_ == 7 &&
readType_ != io.substrait.proto.ReadRel.NamedTable.getDefaultInstance()) {
readType_ = io.substrait.proto.ReadRel.NamedTable.newBuilder((io.substrait.proto.ReadRel.NamedTable) readType_)
.mergeFrom(value).buildPartial();
} else {
readType_ = value;
}
onChanged();
} else {
if (readTypeCase_ == 7) {
namedTableBuilder_.mergeFrom(value);
} else {
namedTableBuilder_.setMessage(value);
}
}
readTypeCase_ = 7;
return this;
}
/**
* .substrait.ReadRel.NamedTable named_table = 7;
*/
public Builder clearNamedTable() {
if (namedTableBuilder_ == null) {
if (readTypeCase_ == 7) {
readTypeCase_ = 0;
readType_ = null;
onChanged();
}
} else {
if (readTypeCase_ == 7) {
readTypeCase_ = 0;
readType_ = null;
}
namedTableBuilder_.clear();
}
return this;
}
/**
* .substrait.ReadRel.NamedTable named_table = 7;
*/
public io.substrait.proto.ReadRel.NamedTable.Builder getNamedTableBuilder() {
return getNamedTableFieldBuilder().getBuilder();
}
/**
* .substrait.ReadRel.NamedTable named_table = 7;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.NamedTableOrBuilder getNamedTableOrBuilder() {
if ((readTypeCase_ == 7) && (namedTableBuilder_ != null)) {
return namedTableBuilder_.getMessageOrBuilder();
} else {
if (readTypeCase_ == 7) {
return (io.substrait.proto.ReadRel.NamedTable) readType_;
}
return io.substrait.proto.ReadRel.NamedTable.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.NamedTable named_table = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.NamedTable, io.substrait.proto.ReadRel.NamedTable.Builder, io.substrait.proto.ReadRel.NamedTableOrBuilder>
getNamedTableFieldBuilder() {
if (namedTableBuilder_ == null) {
if (!(readTypeCase_ == 7)) {
readType_ = io.substrait.proto.ReadRel.NamedTable.getDefaultInstance();
}
namedTableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.NamedTable, io.substrait.proto.ReadRel.NamedTable.Builder, io.substrait.proto.ReadRel.NamedTableOrBuilder>(
(io.substrait.proto.ReadRel.NamedTable) readType_,
getParentForChildren(),
isClean());
readType_ = null;
}
readTypeCase_ = 7;
onChanged();
return namedTableBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.ExtensionTable, io.substrait.proto.ReadRel.ExtensionTable.Builder, io.substrait.proto.ReadRel.ExtensionTableOrBuilder> extensionTableBuilder_;
/**
* .substrait.ReadRel.ExtensionTable extension_table = 8;
* @return Whether the extensionTable field is set.
*/
@java.lang.Override
public boolean hasExtensionTable() {
return readTypeCase_ == 8;
}
/**
* .substrait.ReadRel.ExtensionTable extension_table = 8;
* @return The extensionTable.
*/
@java.lang.Override
public io.substrait.proto.ReadRel.ExtensionTable getExtensionTable() {
if (extensionTableBuilder_ == null) {
if (readTypeCase_ == 8) {
return (io.substrait.proto.ReadRel.ExtensionTable) readType_;
}
return io.substrait.proto.ReadRel.ExtensionTable.getDefaultInstance();
} else {
if (readTypeCase_ == 8) {
return extensionTableBuilder_.getMessage();
}
return io.substrait.proto.ReadRel.ExtensionTable.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.ExtensionTable extension_table = 8;
*/
public Builder setExtensionTable(io.substrait.proto.ReadRel.ExtensionTable value) {
if (extensionTableBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
readType_ = value;
onChanged();
} else {
extensionTableBuilder_.setMessage(value);
}
readTypeCase_ = 8;
return this;
}
/**
* .substrait.ReadRel.ExtensionTable extension_table = 8;
*/
public Builder setExtensionTable(
io.substrait.proto.ReadRel.ExtensionTable.Builder builderForValue) {
if (extensionTableBuilder_ == null) {
readType_ = builderForValue.build();
onChanged();
} else {
extensionTableBuilder_.setMessage(builderForValue.build());
}
readTypeCase_ = 8;
return this;
}
/**
* .substrait.ReadRel.ExtensionTable extension_table = 8;
*/
public Builder mergeExtensionTable(io.substrait.proto.ReadRel.ExtensionTable value) {
if (extensionTableBuilder_ == null) {
if (readTypeCase_ == 8 &&
readType_ != io.substrait.proto.ReadRel.ExtensionTable.getDefaultInstance()) {
readType_ = io.substrait.proto.ReadRel.ExtensionTable.newBuilder((io.substrait.proto.ReadRel.ExtensionTable) readType_)
.mergeFrom(value).buildPartial();
} else {
readType_ = value;
}
onChanged();
} else {
if (readTypeCase_ == 8) {
extensionTableBuilder_.mergeFrom(value);
} else {
extensionTableBuilder_.setMessage(value);
}
}
readTypeCase_ = 8;
return this;
}
/**
* .substrait.ReadRel.ExtensionTable extension_table = 8;
*/
public Builder clearExtensionTable() {
if (extensionTableBuilder_ == null) {
if (readTypeCase_ == 8) {
readTypeCase_ = 0;
readType_ = null;
onChanged();
}
} else {
if (readTypeCase_ == 8) {
readTypeCase_ = 0;
readType_ = null;
}
extensionTableBuilder_.clear();
}
return this;
}
/**
* .substrait.ReadRel.ExtensionTable extension_table = 8;
*/
public io.substrait.proto.ReadRel.ExtensionTable.Builder getExtensionTableBuilder() {
return getExtensionTableFieldBuilder().getBuilder();
}
/**
* .substrait.ReadRel.ExtensionTable extension_table = 8;
*/
@java.lang.Override
public io.substrait.proto.ReadRel.ExtensionTableOrBuilder getExtensionTableOrBuilder() {
if ((readTypeCase_ == 8) && (extensionTableBuilder_ != null)) {
return extensionTableBuilder_.getMessageOrBuilder();
} else {
if (readTypeCase_ == 8) {
return (io.substrait.proto.ReadRel.ExtensionTable) readType_;
}
return io.substrait.proto.ReadRel.ExtensionTable.getDefaultInstance();
}
}
/**
* .substrait.ReadRel.ExtensionTable extension_table = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.ExtensionTable, io.substrait.proto.ReadRel.ExtensionTable.Builder, io.substrait.proto.ReadRel.ExtensionTableOrBuilder>
getExtensionTableFieldBuilder() {
if (extensionTableBuilder_ == null) {
if (!(readTypeCase_ == 8)) {
readType_ = io.substrait.proto.ReadRel.ExtensionTable.getDefaultInstance();
}
extensionTableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ReadRel.ExtensionTable, io.substrait.proto.ReadRel.ExtensionTable.Builder, io.substrait.proto.ReadRel.ExtensionTableOrBuilder>(
(io.substrait.proto.ReadRel.ExtensionTable) readType_,
getParentForChildren(),
isClean());
readType_ = null;
}
readTypeCase_ = 8;
onChanged();
return extensionTableBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ReadRel)
}
// @@protoc_insertion_point(class_scope:substrait.ReadRel)
private static final io.substrait.proto.ReadRel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ReadRel();
}
public static io.substrait.proto.ReadRel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReadRel parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.substrait.proto.ReadRel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy