io.substrait.proto.ExpandRel 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;
/**
*
* Duplicates records by emitting one or more rows per input row. The number of rows emitted per
* input row is the same for all input rows.
*
* In addition to a field being emitted per input field an extra int64 field is emitted which
* contains a zero-indexed ordinal corresponding to the duplicate definition.
*
*
* Protobuf type {@code substrait.ExpandRel}
*/
public final class ExpandRel extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ExpandRel)
ExpandRelOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExpandRel.newBuilder() to construct.
private ExpandRel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExpandRel() {
fields_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExpandRel();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExpandRel.class, io.substrait.proto.ExpandRel.Builder.class);
}
public interface ExpandFieldOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ExpandRel.ExpandField)
com.google.protobuf.MessageOrBuilder {
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
* @return Whether the switchingField field is set.
*/
boolean hasSwitchingField();
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
* @return The switchingField.
*/
io.substrait.proto.ExpandRel.SwitchingField getSwitchingField();
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
*/
io.substrait.proto.ExpandRel.SwitchingFieldOrBuilder getSwitchingFieldOrBuilder();
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
* @return Whether the consistentField field is set.
*/
boolean hasConsistentField();
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
* @return The consistentField.
*/
io.substrait.proto.Expression getConsistentField();
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
*/
io.substrait.proto.ExpressionOrBuilder getConsistentFieldOrBuilder();
io.substrait.proto.ExpandRel.ExpandField.FieldTypeCase getFieldTypeCase();
}
/**
* Protobuf type {@code substrait.ExpandRel.ExpandField}
*/
public static final class ExpandField extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ExpandRel.ExpandField)
ExpandFieldOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExpandField.newBuilder() to construct.
private ExpandField(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExpandField() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExpandField();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_ExpandField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_ExpandField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExpandRel.ExpandField.class, io.substrait.proto.ExpandRel.ExpandField.Builder.class);
}
private int fieldTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object fieldType_;
public enum FieldTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SWITCHING_FIELD(2),
CONSISTENT_FIELD(3),
FIELDTYPE_NOT_SET(0);
private final int value;
private FieldTypeCase(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 FieldTypeCase valueOf(int value) {
return forNumber(value);
}
public static FieldTypeCase forNumber(int value) {
switch (value) {
case 2: return SWITCHING_FIELD;
case 3: return CONSISTENT_FIELD;
case 0: return FIELDTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FieldTypeCase
getFieldTypeCase() {
return FieldTypeCase.forNumber(
fieldTypeCase_);
}
public static final int SWITCHING_FIELD_FIELD_NUMBER = 2;
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
* @return Whether the switchingField field is set.
*/
@java.lang.Override
public boolean hasSwitchingField() {
return fieldTypeCase_ == 2;
}
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
* @return The switchingField.
*/
@java.lang.Override
public io.substrait.proto.ExpandRel.SwitchingField getSwitchingField() {
if (fieldTypeCase_ == 2) {
return (io.substrait.proto.ExpandRel.SwitchingField) fieldType_;
}
return io.substrait.proto.ExpandRel.SwitchingField.getDefaultInstance();
}
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
*/
@java.lang.Override
public io.substrait.proto.ExpandRel.SwitchingFieldOrBuilder getSwitchingFieldOrBuilder() {
if (fieldTypeCase_ == 2) {
return (io.substrait.proto.ExpandRel.SwitchingField) fieldType_;
}
return io.substrait.proto.ExpandRel.SwitchingField.getDefaultInstance();
}
public static final int CONSISTENT_FIELD_FIELD_NUMBER = 3;
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
* @return Whether the consistentField field is set.
*/
@java.lang.Override
public boolean hasConsistentField() {
return fieldTypeCase_ == 3;
}
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
* @return The consistentField.
*/
@java.lang.Override
public io.substrait.proto.Expression getConsistentField() {
if (fieldTypeCase_ == 3) {
return (io.substrait.proto.Expression) fieldType_;
}
return io.substrait.proto.Expression.getDefaultInstance();
}
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getConsistentFieldOrBuilder() {
if (fieldTypeCase_ == 3) {
return (io.substrait.proto.Expression) fieldType_;
}
return io.substrait.proto.Expression.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 (fieldTypeCase_ == 2) {
output.writeMessage(2, (io.substrait.proto.ExpandRel.SwitchingField) fieldType_);
}
if (fieldTypeCase_ == 3) {
output.writeMessage(3, (io.substrait.proto.Expression) fieldType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (fieldTypeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.substrait.proto.ExpandRel.SwitchingField) fieldType_);
}
if (fieldTypeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.substrait.proto.Expression) fieldType_);
}
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.ExpandRel.ExpandField)) {
return super.equals(obj);
}
io.substrait.proto.ExpandRel.ExpandField other = (io.substrait.proto.ExpandRel.ExpandField) obj;
if (!getFieldTypeCase().equals(other.getFieldTypeCase())) return false;
switch (fieldTypeCase_) {
case 2:
if (!getSwitchingField()
.equals(other.getSwitchingField())) return false;
break;
case 3:
if (!getConsistentField()
.equals(other.getConsistentField())) 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();
switch (fieldTypeCase_) {
case 2:
hash = (37 * hash) + SWITCHING_FIELD_FIELD_NUMBER;
hash = (53 * hash) + getSwitchingField().hashCode();
break;
case 3:
hash = (37 * hash) + CONSISTENT_FIELD_FIELD_NUMBER;
hash = (53 * hash) + getConsistentField().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ExpandRel.ExpandField parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExpandRel.ExpandField 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.ExpandRel.ExpandField parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExpandRel.ExpandField 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.ExpandRel.ExpandField parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExpandRel.ExpandField parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ExpandRel.ExpandField parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExpandRel.ExpandField 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.ExpandRel.ExpandField parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ExpandRel.ExpandField 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.ExpandRel.ExpandField parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExpandRel.ExpandField 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.ExpandRel.ExpandField 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.ExpandRel.ExpandField}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ExpandRel.ExpandField)
io.substrait.proto.ExpandRel.ExpandFieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_ExpandField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_ExpandField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExpandRel.ExpandField.class, io.substrait.proto.ExpandRel.ExpandField.Builder.class);
}
// Construct using io.substrait.proto.ExpandRel.ExpandField.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (switchingFieldBuilder_ != null) {
switchingFieldBuilder_.clear();
}
if (consistentFieldBuilder_ != null) {
consistentFieldBuilder_.clear();
}
fieldTypeCase_ = 0;
fieldType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_ExpandField_descriptor;
}
@java.lang.Override
public io.substrait.proto.ExpandRel.ExpandField getDefaultInstanceForType() {
return io.substrait.proto.ExpandRel.ExpandField.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ExpandRel.ExpandField build() {
io.substrait.proto.ExpandRel.ExpandField result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ExpandRel.ExpandField buildPartial() {
io.substrait.proto.ExpandRel.ExpandField result = new io.substrait.proto.ExpandRel.ExpandField(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.ExpandRel.ExpandField result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.substrait.proto.ExpandRel.ExpandField result) {
result.fieldTypeCase_ = fieldTypeCase_;
result.fieldType_ = this.fieldType_;
if (fieldTypeCase_ == 2 &&
switchingFieldBuilder_ != null) {
result.fieldType_ = switchingFieldBuilder_.build();
}
if (fieldTypeCase_ == 3 &&
consistentFieldBuilder_ != null) {
result.fieldType_ = consistentFieldBuilder_.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.ExpandRel.ExpandField) {
return mergeFrom((io.substrait.proto.ExpandRel.ExpandField)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ExpandRel.ExpandField other) {
if (other == io.substrait.proto.ExpandRel.ExpandField.getDefaultInstance()) return this;
switch (other.getFieldTypeCase()) {
case SWITCHING_FIELD: {
mergeSwitchingField(other.getSwitchingField());
break;
}
case CONSISTENT_FIELD: {
mergeConsistentField(other.getConsistentField());
break;
}
case FIELDTYPE_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 18: {
input.readMessage(
getSwitchingFieldFieldBuilder().getBuilder(),
extensionRegistry);
fieldTypeCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getConsistentFieldFieldBuilder().getBuilder(),
extensionRegistry);
fieldTypeCase_ = 3;
break;
} // case 26
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 fieldTypeCase_ = 0;
private java.lang.Object fieldType_;
public FieldTypeCase
getFieldTypeCase() {
return FieldTypeCase.forNumber(
fieldTypeCase_);
}
public Builder clearFieldType() {
fieldTypeCase_ = 0;
fieldType_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExpandRel.SwitchingField, io.substrait.proto.ExpandRel.SwitchingField.Builder, io.substrait.proto.ExpandRel.SwitchingFieldOrBuilder> switchingFieldBuilder_;
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
* @return Whether the switchingField field is set.
*/
@java.lang.Override
public boolean hasSwitchingField() {
return fieldTypeCase_ == 2;
}
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
* @return The switchingField.
*/
@java.lang.Override
public io.substrait.proto.ExpandRel.SwitchingField getSwitchingField() {
if (switchingFieldBuilder_ == null) {
if (fieldTypeCase_ == 2) {
return (io.substrait.proto.ExpandRel.SwitchingField) fieldType_;
}
return io.substrait.proto.ExpandRel.SwitchingField.getDefaultInstance();
} else {
if (fieldTypeCase_ == 2) {
return switchingFieldBuilder_.getMessage();
}
return io.substrait.proto.ExpandRel.SwitchingField.getDefaultInstance();
}
}
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
*/
public Builder setSwitchingField(io.substrait.proto.ExpandRel.SwitchingField value) {
if (switchingFieldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fieldType_ = value;
onChanged();
} else {
switchingFieldBuilder_.setMessage(value);
}
fieldTypeCase_ = 2;
return this;
}
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
*/
public Builder setSwitchingField(
io.substrait.proto.ExpandRel.SwitchingField.Builder builderForValue) {
if (switchingFieldBuilder_ == null) {
fieldType_ = builderForValue.build();
onChanged();
} else {
switchingFieldBuilder_.setMessage(builderForValue.build());
}
fieldTypeCase_ = 2;
return this;
}
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
*/
public Builder mergeSwitchingField(io.substrait.proto.ExpandRel.SwitchingField value) {
if (switchingFieldBuilder_ == null) {
if (fieldTypeCase_ == 2 &&
fieldType_ != io.substrait.proto.ExpandRel.SwitchingField.getDefaultInstance()) {
fieldType_ = io.substrait.proto.ExpandRel.SwitchingField.newBuilder((io.substrait.proto.ExpandRel.SwitchingField) fieldType_)
.mergeFrom(value).buildPartial();
} else {
fieldType_ = value;
}
onChanged();
} else {
if (fieldTypeCase_ == 2) {
switchingFieldBuilder_.mergeFrom(value);
} else {
switchingFieldBuilder_.setMessage(value);
}
}
fieldTypeCase_ = 2;
return this;
}
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
*/
public Builder clearSwitchingField() {
if (switchingFieldBuilder_ == null) {
if (fieldTypeCase_ == 2) {
fieldTypeCase_ = 0;
fieldType_ = null;
onChanged();
}
} else {
if (fieldTypeCase_ == 2) {
fieldTypeCase_ = 0;
fieldType_ = null;
}
switchingFieldBuilder_.clear();
}
return this;
}
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
*/
public io.substrait.proto.ExpandRel.SwitchingField.Builder getSwitchingFieldBuilder() {
return getSwitchingFieldFieldBuilder().getBuilder();
}
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
*/
@java.lang.Override
public io.substrait.proto.ExpandRel.SwitchingFieldOrBuilder getSwitchingFieldOrBuilder() {
if ((fieldTypeCase_ == 2) && (switchingFieldBuilder_ != null)) {
return switchingFieldBuilder_.getMessageOrBuilder();
} else {
if (fieldTypeCase_ == 2) {
return (io.substrait.proto.ExpandRel.SwitchingField) fieldType_;
}
return io.substrait.proto.ExpandRel.SwitchingField.getDefaultInstance();
}
}
/**
*
* Field that switches output based on which duplicate is being output. Every
* switching_field should contain the same number of duplicates (so that the output rows
* are of consistent size and type). If there are not enough switching field definitions
* to match the other field definitions NULL will be returned to fill the extras.
*
*
* .substrait.ExpandRel.SwitchingField switching_field = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExpandRel.SwitchingField, io.substrait.proto.ExpandRel.SwitchingField.Builder, io.substrait.proto.ExpandRel.SwitchingFieldOrBuilder>
getSwitchingFieldFieldBuilder() {
if (switchingFieldBuilder_ == null) {
if (!(fieldTypeCase_ == 2)) {
fieldType_ = io.substrait.proto.ExpandRel.SwitchingField.getDefaultInstance();
}
switchingFieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExpandRel.SwitchingField, io.substrait.proto.ExpandRel.SwitchingField.Builder, io.substrait.proto.ExpandRel.SwitchingFieldOrBuilder>(
(io.substrait.proto.ExpandRel.SwitchingField) fieldType_,
getParentForChildren(),
isClean());
fieldType_ = null;
}
fieldTypeCase_ = 2;
onChanged();
return switchingFieldBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> consistentFieldBuilder_;
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
* @return Whether the consistentField field is set.
*/
@java.lang.Override
public boolean hasConsistentField() {
return fieldTypeCase_ == 3;
}
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
* @return The consistentField.
*/
@java.lang.Override
public io.substrait.proto.Expression getConsistentField() {
if (consistentFieldBuilder_ == null) {
if (fieldTypeCase_ == 3) {
return (io.substrait.proto.Expression) fieldType_;
}
return io.substrait.proto.Expression.getDefaultInstance();
} else {
if (fieldTypeCase_ == 3) {
return consistentFieldBuilder_.getMessage();
}
return io.substrait.proto.Expression.getDefaultInstance();
}
}
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
*/
public Builder setConsistentField(io.substrait.proto.Expression value) {
if (consistentFieldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fieldType_ = value;
onChanged();
} else {
consistentFieldBuilder_.setMessage(value);
}
fieldTypeCase_ = 3;
return this;
}
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
*/
public Builder setConsistentField(
io.substrait.proto.Expression.Builder builderForValue) {
if (consistentFieldBuilder_ == null) {
fieldType_ = builderForValue.build();
onChanged();
} else {
consistentFieldBuilder_.setMessage(builderForValue.build());
}
fieldTypeCase_ = 3;
return this;
}
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
*/
public Builder mergeConsistentField(io.substrait.proto.Expression value) {
if (consistentFieldBuilder_ == null) {
if (fieldTypeCase_ == 3 &&
fieldType_ != io.substrait.proto.Expression.getDefaultInstance()) {
fieldType_ = io.substrait.proto.Expression.newBuilder((io.substrait.proto.Expression) fieldType_)
.mergeFrom(value).buildPartial();
} else {
fieldType_ = value;
}
onChanged();
} else {
if (fieldTypeCase_ == 3) {
consistentFieldBuilder_.mergeFrom(value);
} else {
consistentFieldBuilder_.setMessage(value);
}
}
fieldTypeCase_ = 3;
return this;
}
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
*/
public Builder clearConsistentField() {
if (consistentFieldBuilder_ == null) {
if (fieldTypeCase_ == 3) {
fieldTypeCase_ = 0;
fieldType_ = null;
onChanged();
}
} else {
if (fieldTypeCase_ == 3) {
fieldTypeCase_ = 0;
fieldType_ = null;
}
consistentFieldBuilder_.clear();
}
return this;
}
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
*/
public io.substrait.proto.Expression.Builder getConsistentFieldBuilder() {
return getConsistentFieldFieldBuilder().getBuilder();
}
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getConsistentFieldOrBuilder() {
if ((fieldTypeCase_ == 3) && (consistentFieldBuilder_ != null)) {
return consistentFieldBuilder_.getMessageOrBuilder();
} else {
if (fieldTypeCase_ == 3) {
return (io.substrait.proto.Expression) fieldType_;
}
return io.substrait.proto.Expression.getDefaultInstance();
}
}
/**
*
* Field that outputs the same value no matter which duplicate is being output. Equivalent
* to a switching_field that lists the same expression multiple times.
*
*
* .substrait.Expression consistent_field = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getConsistentFieldFieldBuilder() {
if (consistentFieldBuilder_ == null) {
if (!(fieldTypeCase_ == 3)) {
fieldType_ = io.substrait.proto.Expression.getDefaultInstance();
}
consistentFieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
(io.substrait.proto.Expression) fieldType_,
getParentForChildren(),
isClean());
fieldType_ = null;
}
fieldTypeCase_ = 3;
onChanged();
return consistentFieldBuilder_;
}
@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.ExpandRel.ExpandField)
}
// @@protoc_insertion_point(class_scope:substrait.ExpandRel.ExpandField)
private static final io.substrait.proto.ExpandRel.ExpandField DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ExpandRel.ExpandField();
}
public static io.substrait.proto.ExpandRel.ExpandField getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExpandField 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.ExpandRel.ExpandField getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SwitchingFieldOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.ExpandRel.SwitchingField)
com.google.protobuf.MessageOrBuilder {
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
java.util.List
getDuplicatesList();
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
io.substrait.proto.Expression getDuplicates(int index);
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
int getDuplicatesCount();
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getDuplicatesOrBuilderList();
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
io.substrait.proto.ExpressionOrBuilder getDuplicatesOrBuilder(
int index);
}
/**
* Protobuf type {@code substrait.ExpandRel.SwitchingField}
*/
public static final class SwitchingField extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ExpandRel.SwitchingField)
SwitchingFieldOrBuilder {
private static final long serialVersionUID = 0L;
// Use SwitchingField.newBuilder() to construct.
private SwitchingField(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SwitchingField() {
duplicates_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SwitchingField();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_SwitchingField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_SwitchingField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExpandRel.SwitchingField.class, io.substrait.proto.ExpandRel.SwitchingField.Builder.class);
}
public static final int DUPLICATES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List duplicates_;
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
@java.lang.Override
public java.util.List getDuplicatesList() {
return duplicates_;
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getDuplicatesOrBuilderList() {
return duplicates_;
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
@java.lang.Override
public int getDuplicatesCount() {
return duplicates_.size();
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
@java.lang.Override
public io.substrait.proto.Expression getDuplicates(int index) {
return duplicates_.get(index);
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getDuplicatesOrBuilder(
int index) {
return duplicates_.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 < duplicates_.size(); i++) {
output.writeMessage(1, duplicates_.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 < duplicates_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, duplicates_.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.ExpandRel.SwitchingField)) {
return super.equals(obj);
}
io.substrait.proto.ExpandRel.SwitchingField other = (io.substrait.proto.ExpandRel.SwitchingField) obj;
if (!getDuplicatesList()
.equals(other.getDuplicatesList())) 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 (getDuplicatesCount() > 0) {
hash = (37 * hash) + DUPLICATES_FIELD_NUMBER;
hash = (53 * hash) + getDuplicatesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ExpandRel.SwitchingField parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExpandRel.SwitchingField 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.ExpandRel.SwitchingField parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExpandRel.SwitchingField 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.ExpandRel.SwitchingField parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExpandRel.SwitchingField parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ExpandRel.SwitchingField parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExpandRel.SwitchingField 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.ExpandRel.SwitchingField parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ExpandRel.SwitchingField 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.ExpandRel.SwitchingField parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExpandRel.SwitchingField 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.ExpandRel.SwitchingField 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.ExpandRel.SwitchingField}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ExpandRel.SwitchingField)
io.substrait.proto.ExpandRel.SwitchingFieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_SwitchingField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_SwitchingField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExpandRel.SwitchingField.class, io.substrait.proto.ExpandRel.SwitchingField.Builder.class);
}
// Construct using io.substrait.proto.ExpandRel.SwitchingField.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (duplicatesBuilder_ == null) {
duplicates_ = java.util.Collections.emptyList();
} else {
duplicates_ = null;
duplicatesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_SwitchingField_descriptor;
}
@java.lang.Override
public io.substrait.proto.ExpandRel.SwitchingField getDefaultInstanceForType() {
return io.substrait.proto.ExpandRel.SwitchingField.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ExpandRel.SwitchingField build() {
io.substrait.proto.ExpandRel.SwitchingField result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ExpandRel.SwitchingField buildPartial() {
io.substrait.proto.ExpandRel.SwitchingField result = new io.substrait.proto.ExpandRel.SwitchingField(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.ExpandRel.SwitchingField result) {
if (duplicatesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
duplicates_ = java.util.Collections.unmodifiableList(duplicates_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.duplicates_ = duplicates_;
} else {
result.duplicates_ = duplicatesBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.ExpandRel.SwitchingField 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.ExpandRel.SwitchingField) {
return mergeFrom((io.substrait.proto.ExpandRel.SwitchingField)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ExpandRel.SwitchingField other) {
if (other == io.substrait.proto.ExpandRel.SwitchingField.getDefaultInstance()) return this;
if (duplicatesBuilder_ == null) {
if (!other.duplicates_.isEmpty()) {
if (duplicates_.isEmpty()) {
duplicates_ = other.duplicates_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDuplicatesIsMutable();
duplicates_.addAll(other.duplicates_);
}
onChanged();
}
} else {
if (!other.duplicates_.isEmpty()) {
if (duplicatesBuilder_.isEmpty()) {
duplicatesBuilder_.dispose();
duplicatesBuilder_ = null;
duplicates_ = other.duplicates_;
bitField0_ = (bitField0_ & ~0x00000001);
duplicatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDuplicatesFieldBuilder() : null;
} else {
duplicatesBuilder_.addAllMessages(other.duplicates_);
}
}
}
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 m =
input.readMessage(
io.substrait.proto.Expression.parser(),
extensionRegistry);
if (duplicatesBuilder_ == null) {
ensureDuplicatesIsMutable();
duplicates_.add(m);
} else {
duplicatesBuilder_.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 duplicates_ =
java.util.Collections.emptyList();
private void ensureDuplicatesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
duplicates_ = new java.util.ArrayList(duplicates_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> duplicatesBuilder_;
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public java.util.List getDuplicatesList() {
if (duplicatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(duplicates_);
} else {
return duplicatesBuilder_.getMessageList();
}
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public int getDuplicatesCount() {
if (duplicatesBuilder_ == null) {
return duplicates_.size();
} else {
return duplicatesBuilder_.getCount();
}
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public io.substrait.proto.Expression getDuplicates(int index) {
if (duplicatesBuilder_ == null) {
return duplicates_.get(index);
} else {
return duplicatesBuilder_.getMessage(index);
}
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public Builder setDuplicates(
int index, io.substrait.proto.Expression value) {
if (duplicatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDuplicatesIsMutable();
duplicates_.set(index, value);
onChanged();
} else {
duplicatesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public Builder setDuplicates(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (duplicatesBuilder_ == null) {
ensureDuplicatesIsMutable();
duplicates_.set(index, builderForValue.build());
onChanged();
} else {
duplicatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public Builder addDuplicates(io.substrait.proto.Expression value) {
if (duplicatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDuplicatesIsMutable();
duplicates_.add(value);
onChanged();
} else {
duplicatesBuilder_.addMessage(value);
}
return this;
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public Builder addDuplicates(
int index, io.substrait.proto.Expression value) {
if (duplicatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDuplicatesIsMutable();
duplicates_.add(index, value);
onChanged();
} else {
duplicatesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public Builder addDuplicates(
io.substrait.proto.Expression.Builder builderForValue) {
if (duplicatesBuilder_ == null) {
ensureDuplicatesIsMutable();
duplicates_.add(builderForValue.build());
onChanged();
} else {
duplicatesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public Builder addDuplicates(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (duplicatesBuilder_ == null) {
ensureDuplicatesIsMutable();
duplicates_.add(index, builderForValue.build());
onChanged();
} else {
duplicatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public Builder addAllDuplicates(
java.lang.Iterable extends io.substrait.proto.Expression> values) {
if (duplicatesBuilder_ == null) {
ensureDuplicatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, duplicates_);
onChanged();
} else {
duplicatesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public Builder clearDuplicates() {
if (duplicatesBuilder_ == null) {
duplicates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
duplicatesBuilder_.clear();
}
return this;
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public Builder removeDuplicates(int index) {
if (duplicatesBuilder_ == null) {
ensureDuplicatesIsMutable();
duplicates_.remove(index);
onChanged();
} else {
duplicatesBuilder_.remove(index);
}
return this;
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public io.substrait.proto.Expression.Builder getDuplicatesBuilder(
int index) {
return getDuplicatesFieldBuilder().getBuilder(index);
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public io.substrait.proto.ExpressionOrBuilder getDuplicatesOrBuilder(
int index) {
if (duplicatesBuilder_ == null) {
return duplicates_.get(index); } else {
return duplicatesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getDuplicatesOrBuilderList() {
if (duplicatesBuilder_ != null) {
return duplicatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(duplicates_);
}
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public io.substrait.proto.Expression.Builder addDuplicatesBuilder() {
return getDuplicatesFieldBuilder().addBuilder(
io.substrait.proto.Expression.getDefaultInstance());
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public io.substrait.proto.Expression.Builder addDuplicatesBuilder(
int index) {
return getDuplicatesFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.getDefaultInstance());
}
/**
*
* All duplicates must return the same type class but may differ in nullability. The effective
* type of the output field will be nullable if any of the duplicate expressions are nullable.
*
*
* repeated .substrait.Expression duplicates = 1;
*/
public java.util.List
getDuplicatesBuilderList() {
return getDuplicatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getDuplicatesFieldBuilder() {
if (duplicatesBuilder_ == null) {
duplicatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
duplicates_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
duplicates_ = null;
}
return duplicatesBuilder_;
}
@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.ExpandRel.SwitchingField)
}
// @@protoc_insertion_point(class_scope:substrait.ExpandRel.SwitchingField)
private static final io.substrait.proto.ExpandRel.SwitchingField DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ExpandRel.SwitchingField();
}
public static io.substrait.proto.ExpandRel.SwitchingField getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SwitchingField 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.ExpandRel.SwitchingField getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
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 INPUT_FIELD_NUMBER = 2;
private io.substrait.proto.Rel input_;
/**
* .substrait.Rel input = 2;
* @return Whether the input field is set.
*/
@java.lang.Override
public boolean hasInput() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.Rel input = 2;
* @return The input.
*/
@java.lang.Override
public io.substrait.proto.Rel getInput() {
return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_;
}
/**
* .substrait.Rel input = 2;
*/
@java.lang.Override
public io.substrait.proto.RelOrBuilder getInputOrBuilder() {
return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_;
}
public static final int FIELDS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List fields_;
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
@java.lang.Override
public java.util.List getFieldsList() {
return fields_;
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.ExpandRel.ExpandFieldOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
@java.lang.Override
public int getFieldsCount() {
return fields_.size();
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
@java.lang.Override
public io.substrait.proto.ExpandRel.ExpandField getFields(int index) {
return fields_.get(index);
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
@java.lang.Override
public io.substrait.proto.ExpandRel.ExpandFieldOrBuilder getFieldsOrBuilder(
int index) {
return fields_.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 {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getCommon());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getInput());
}
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(4, fields_.get(i));
}
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, getInput());
}
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, fields_.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.ExpandRel)) {
return super.equals(obj);
}
io.substrait.proto.ExpandRel other = (io.substrait.proto.ExpandRel) obj;
if (hasCommon() != other.hasCommon()) return false;
if (hasCommon()) {
if (!getCommon()
.equals(other.getCommon())) return false;
}
if (hasInput() != other.hasInput()) return false;
if (hasInput()) {
if (!getInput()
.equals(other.getInput())) return false;
}
if (!getFieldsList()
.equals(other.getFieldsList())) 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 (hasCommon()) {
hash = (37 * hash) + COMMON_FIELD_NUMBER;
hash = (53 * hash) + getCommon().hashCode();
}
if (hasInput()) {
hash = (37 * hash) + INPUT_FIELD_NUMBER;
hash = (53 * hash) + getInput().hashCode();
}
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ExpandRel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExpandRel 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.ExpandRel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExpandRel 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.ExpandRel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExpandRel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ExpandRel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExpandRel 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.ExpandRel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ExpandRel 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.ExpandRel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExpandRel 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.ExpandRel 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;
}
/**
*
* Duplicates records by emitting one or more rows per input row. The number of rows emitted per
* input row is the same for all input rows.
*
* In addition to a field being emitted per input field an extra int64 field is emitted which
* contains a zero-indexed ordinal corresponding to the duplicate definition.
*
*
* Protobuf type {@code substrait.ExpandRel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ExpandRel)
io.substrait.proto.ExpandRelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExpandRel.class, io.substrait.proto.ExpandRel.Builder.class);
}
// Construct using io.substrait.proto.ExpandRel.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();
getInputFieldBuilder();
getFieldsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
common_ = null;
if (commonBuilder_ != null) {
commonBuilder_.dispose();
commonBuilder_ = null;
}
input_ = null;
if (inputBuilder_ != null) {
inputBuilder_.dispose();
inputBuilder_ = null;
}
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
} else {
fields_ = null;
fieldsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ExpandRel_descriptor;
}
@java.lang.Override
public io.substrait.proto.ExpandRel getDefaultInstanceForType() {
return io.substrait.proto.ExpandRel.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ExpandRel build() {
io.substrait.proto.ExpandRel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ExpandRel buildPartial() {
io.substrait.proto.ExpandRel result = new io.substrait.proto.ExpandRel(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.ExpandRel result) {
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.ExpandRel 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.input_ = inputBuilder_ == null
? input_
: inputBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.ExpandRel) {
return mergeFrom((io.substrait.proto.ExpandRel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ExpandRel other) {
if (other == io.substrait.proto.ExpandRel.getDefaultInstance()) return this;
if (other.hasCommon()) {
mergeCommon(other.getCommon());
}
if (other.hasInput()) {
mergeInput(other.getInput());
}
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000004);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldsFieldBuilder() : null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
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(
getInputFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 34: {
io.substrait.proto.ExpandRel.ExpandField m =
input.readMessage(
io.substrait.proto.ExpandRel.ExpandField.parser(),
extensionRegistry);
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(m);
} else {
fieldsBuilder_.addMessage(m);
}
break;
} // case 34
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 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.Rel input_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> inputBuilder_;
/**
* .substrait.Rel input = 2;
* @return Whether the input field is set.
*/
public boolean hasInput() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.Rel input = 2;
* @return The input.
*/
public io.substrait.proto.Rel getInput() {
if (inputBuilder_ == null) {
return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_;
} else {
return inputBuilder_.getMessage();
}
}
/**
* .substrait.Rel input = 2;
*/
public Builder setInput(io.substrait.proto.Rel value) {
if (inputBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
input_ = value;
} else {
inputBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.Rel input = 2;
*/
public Builder setInput(
io.substrait.proto.Rel.Builder builderForValue) {
if (inputBuilder_ == null) {
input_ = builderForValue.build();
} else {
inputBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .substrait.Rel input = 2;
*/
public Builder mergeInput(io.substrait.proto.Rel value) {
if (inputBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
input_ != null &&
input_ != io.substrait.proto.Rel.getDefaultInstance()) {
getInputBuilder().mergeFrom(value);
} else {
input_ = value;
}
} else {
inputBuilder_.mergeFrom(value);
}
if (input_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .substrait.Rel input = 2;
*/
public Builder clearInput() {
bitField0_ = (bitField0_ & ~0x00000002);
input_ = null;
if (inputBuilder_ != null) {
inputBuilder_.dispose();
inputBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.Rel input = 2;
*/
public io.substrait.proto.Rel.Builder getInputBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getInputFieldBuilder().getBuilder();
}
/**
* .substrait.Rel input = 2;
*/
public io.substrait.proto.RelOrBuilder getInputOrBuilder() {
if (inputBuilder_ != null) {
return inputBuilder_.getMessageOrBuilder();
} else {
return input_ == null ?
io.substrait.proto.Rel.getDefaultInstance() : input_;
}
}
/**
* .substrait.Rel input = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>
getInputFieldBuilder() {
if (inputBuilder_ == null) {
inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>(
getInput(),
getParentForChildren(),
isClean());
input_ = null;
}
return inputBuilder_;
}
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ExpandRel.ExpandField, io.substrait.proto.ExpandRel.ExpandField.Builder, io.substrait.proto.ExpandRel.ExpandFieldOrBuilder> fieldsBuilder_;
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public java.util.List getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public io.substrait.proto.ExpandRel.ExpandField getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public Builder setFields(
int index, io.substrait.proto.ExpandRel.ExpandField value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public Builder setFields(
int index, io.substrait.proto.ExpandRel.ExpandField.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public Builder addFields(io.substrait.proto.ExpandRel.ExpandField value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public Builder addFields(
int index, io.substrait.proto.ExpandRel.ExpandField value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public Builder addFields(
io.substrait.proto.ExpandRel.ExpandField.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public Builder addFields(
int index, io.substrait.proto.ExpandRel.ExpandField.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public Builder addAllFields(
java.lang.Iterable extends io.substrait.proto.ExpandRel.ExpandField> values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public io.substrait.proto.ExpandRel.ExpandField.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public io.substrait.proto.ExpandRel.ExpandFieldOrBuilder getFieldsOrBuilder(
int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index); } else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public java.util.List extends io.substrait.proto.ExpandRel.ExpandFieldOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public io.substrait.proto.ExpandRel.ExpandField.Builder addFieldsBuilder() {
return getFieldsFieldBuilder().addBuilder(
io.substrait.proto.ExpandRel.ExpandField.getDefaultInstance());
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public io.substrait.proto.ExpandRel.ExpandField.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder().addBuilder(
index, io.substrait.proto.ExpandRel.ExpandField.getDefaultInstance());
}
/**
*
* There should be one definition here for each input field. Any fields beyond the provided
* definitions will be emitted as is (as if a consistent_field record with an identity
* expression was provided).
*
*
* repeated .substrait.ExpandRel.ExpandField fields = 4;
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ExpandRel.ExpandField, io.substrait.proto.ExpandRel.ExpandField.Builder, io.substrait.proto.ExpandRel.ExpandFieldOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ExpandRel.ExpandField, io.substrait.proto.ExpandRel.ExpandField.Builder, io.substrait.proto.ExpandRel.ExpandFieldOrBuilder>(
fields_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
@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.ExpandRel)
}
// @@protoc_insertion_point(class_scope:substrait.ExpandRel)
private static final io.substrait.proto.ExpandRel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ExpandRel();
}
public static io.substrait.proto.ExpandRel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExpandRel 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.ExpandRel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy