io.substrait.proto.ProjectRel 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;
/**
*
* This operator allows to represent calculated expressions of fields (e.g., a+b). Direct/Emit are used to represent classical relational projections
*
*
* Protobuf type {@code substrait.ProjectRel}
*/
public final class ProjectRel extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ProjectRel)
ProjectRelOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProjectRel.newBuilder() to construct.
private ProjectRel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProjectRel() {
expressions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProjectRel();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ProjectRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ProjectRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ProjectRel.class, io.substrait.proto.ProjectRel.Builder.class);
}
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 EXPRESSIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List expressions_;
/**
* repeated .substrait.Expression expressions = 3;
*/
@java.lang.Override
public java.util.List getExpressionsList() {
return expressions_;
}
/**
* repeated .substrait.Expression expressions = 3;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getExpressionsOrBuilderList() {
return expressions_;
}
/**
* repeated .substrait.Expression expressions = 3;
*/
@java.lang.Override
public int getExpressionsCount() {
return expressions_.size();
}
/**
* repeated .substrait.Expression expressions = 3;
*/
@java.lang.Override
public io.substrait.proto.Expression getExpressions(int index) {
return expressions_.get(index);
}
/**
* repeated .substrait.Expression expressions = 3;
*/
@java.lang.Override
public io.substrait.proto.ExpressionOrBuilder getExpressionsOrBuilder(
int index) {
return expressions_.get(index);
}
public static final int ADVANCED_EXTENSION_FIELD_NUMBER = 10;
private io.substrait.proto.AdvancedExtension advancedExtension_;
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return Whether the advancedExtension field is set.
*/
@java.lang.Override
public boolean hasAdvancedExtension() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return The advancedExtension.
*/
@java.lang.Override
public io.substrait.proto.AdvancedExtension getAdvancedExtension() {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
@java.lang.Override
public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getCommon());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getInput());
}
for (int i = 0; i < expressions_.size(); i++) {
output.writeMessage(3, expressions_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(10, getAdvancedExtension());
}
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 < expressions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, expressions_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getAdvancedExtension());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.substrait.proto.ProjectRel)) {
return super.equals(obj);
}
io.substrait.proto.ProjectRel other = (io.substrait.proto.ProjectRel) 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 (!getExpressionsList()
.equals(other.getExpressionsList())) return false;
if (hasAdvancedExtension() != other.hasAdvancedExtension()) return false;
if (hasAdvancedExtension()) {
if (!getAdvancedExtension()
.equals(other.getAdvancedExtension())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (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 (getExpressionsCount() > 0) {
hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER;
hash = (53 * hash) + getExpressionsList().hashCode();
}
if (hasAdvancedExtension()) {
hash = (37 * hash) + ADVANCED_EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getAdvancedExtension().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ProjectRel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ProjectRel 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.ProjectRel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ProjectRel 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.ProjectRel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ProjectRel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ProjectRel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ProjectRel 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.ProjectRel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ProjectRel 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.ProjectRel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ProjectRel 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.ProjectRel 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;
}
/**
*
* This operator allows to represent calculated expressions of fields (e.g., a+b). Direct/Emit are used to represent classical relational projections
*
*
* Protobuf type {@code substrait.ProjectRel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ProjectRel)
io.substrait.proto.ProjectRelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_ProjectRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_ProjectRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ProjectRel.class, io.substrait.proto.ProjectRel.Builder.class);
}
// Construct using io.substrait.proto.ProjectRel.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();
getExpressionsFieldBuilder();
getAdvancedExtensionFieldBuilder();
}
}
@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 (expressionsBuilder_ == null) {
expressions_ = java.util.Collections.emptyList();
} else {
expressions_ = null;
expressionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
advancedExtension_ = null;
if (advancedExtensionBuilder_ != null) {
advancedExtensionBuilder_.dispose();
advancedExtensionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Algebra.internal_static_substrait_ProjectRel_descriptor;
}
@java.lang.Override
public io.substrait.proto.ProjectRel getDefaultInstanceForType() {
return io.substrait.proto.ProjectRel.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ProjectRel build() {
io.substrait.proto.ProjectRel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ProjectRel buildPartial() {
io.substrait.proto.ProjectRel result = new io.substrait.proto.ProjectRel(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.ProjectRel result) {
if (expressionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
expressions_ = java.util.Collections.unmodifiableList(expressions_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.expressions_ = expressions_;
} else {
result.expressions_ = expressionsBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.ProjectRel 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;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.advancedExtension_ = advancedExtensionBuilder_ == null
? advancedExtension_
: advancedExtensionBuilder_.build();
to_bitField0_ |= 0x00000004;
}
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.ProjectRel) {
return mergeFrom((io.substrait.proto.ProjectRel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ProjectRel other) {
if (other == io.substrait.proto.ProjectRel.getDefaultInstance()) return this;
if (other.hasCommon()) {
mergeCommon(other.getCommon());
}
if (other.hasInput()) {
mergeInput(other.getInput());
}
if (expressionsBuilder_ == null) {
if (!other.expressions_.isEmpty()) {
if (expressions_.isEmpty()) {
expressions_ = other.expressions_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureExpressionsIsMutable();
expressions_.addAll(other.expressions_);
}
onChanged();
}
} else {
if (!other.expressions_.isEmpty()) {
if (expressionsBuilder_.isEmpty()) {
expressionsBuilder_.dispose();
expressionsBuilder_ = null;
expressions_ = other.expressions_;
bitField0_ = (bitField0_ & ~0x00000004);
expressionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExpressionsFieldBuilder() : null;
} else {
expressionsBuilder_.addAllMessages(other.expressions_);
}
}
}
if (other.hasAdvancedExtension()) {
mergeAdvancedExtension(other.getAdvancedExtension());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getCommonFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getInputFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
io.substrait.proto.Expression m =
input.readMessage(
io.substrait.proto.Expression.parser(),
extensionRegistry);
if (expressionsBuilder_ == null) {
ensureExpressionsIsMutable();
expressions_.add(m);
} else {
expressionsBuilder_.addMessage(m);
}
break;
} // case 26
case 82: {
input.readMessage(
getAdvancedExtensionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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 expressions_ =
java.util.Collections.emptyList();
private void ensureExpressionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
expressions_ = new java.util.ArrayList(expressions_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder> expressionsBuilder_;
/**
* repeated .substrait.Expression expressions = 3;
*/
public java.util.List getExpressionsList() {
if (expressionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(expressions_);
} else {
return expressionsBuilder_.getMessageList();
}
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public int getExpressionsCount() {
if (expressionsBuilder_ == null) {
return expressions_.size();
} else {
return expressionsBuilder_.getCount();
}
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public io.substrait.proto.Expression getExpressions(int index) {
if (expressionsBuilder_ == null) {
return expressions_.get(index);
} else {
return expressionsBuilder_.getMessage(index);
}
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public Builder setExpressions(
int index, io.substrait.proto.Expression value) {
if (expressionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExpressionsIsMutable();
expressions_.set(index, value);
onChanged();
} else {
expressionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public Builder setExpressions(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (expressionsBuilder_ == null) {
ensureExpressionsIsMutable();
expressions_.set(index, builderForValue.build());
onChanged();
} else {
expressionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public Builder addExpressions(io.substrait.proto.Expression value) {
if (expressionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExpressionsIsMutable();
expressions_.add(value);
onChanged();
} else {
expressionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public Builder addExpressions(
int index, io.substrait.proto.Expression value) {
if (expressionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExpressionsIsMutable();
expressions_.add(index, value);
onChanged();
} else {
expressionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public Builder addExpressions(
io.substrait.proto.Expression.Builder builderForValue) {
if (expressionsBuilder_ == null) {
ensureExpressionsIsMutable();
expressions_.add(builderForValue.build());
onChanged();
} else {
expressionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public Builder addExpressions(
int index, io.substrait.proto.Expression.Builder builderForValue) {
if (expressionsBuilder_ == null) {
ensureExpressionsIsMutable();
expressions_.add(index, builderForValue.build());
onChanged();
} else {
expressionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public Builder addAllExpressions(
java.lang.Iterable extends io.substrait.proto.Expression> values) {
if (expressionsBuilder_ == null) {
ensureExpressionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, expressions_);
onChanged();
} else {
expressionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public Builder clearExpressions() {
if (expressionsBuilder_ == null) {
expressions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
expressionsBuilder_.clear();
}
return this;
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public Builder removeExpressions(int index) {
if (expressionsBuilder_ == null) {
ensureExpressionsIsMutable();
expressions_.remove(index);
onChanged();
} else {
expressionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public io.substrait.proto.Expression.Builder getExpressionsBuilder(
int index) {
return getExpressionsFieldBuilder().getBuilder(index);
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public io.substrait.proto.ExpressionOrBuilder getExpressionsOrBuilder(
int index) {
if (expressionsBuilder_ == null) {
return expressions_.get(index); } else {
return expressionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public java.util.List extends io.substrait.proto.ExpressionOrBuilder>
getExpressionsOrBuilderList() {
if (expressionsBuilder_ != null) {
return expressionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(expressions_);
}
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public io.substrait.proto.Expression.Builder addExpressionsBuilder() {
return getExpressionsFieldBuilder().addBuilder(
io.substrait.proto.Expression.getDefaultInstance());
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public io.substrait.proto.Expression.Builder addExpressionsBuilder(
int index) {
return getExpressionsFieldBuilder().addBuilder(
index, io.substrait.proto.Expression.getDefaultInstance());
}
/**
* repeated .substrait.Expression expressions = 3;
*/
public java.util.List
getExpressionsBuilderList() {
return getExpressionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>
getExpressionsFieldBuilder() {
if (expressionsBuilder_ == null) {
expressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.Expression, io.substrait.proto.Expression.Builder, io.substrait.proto.ExpressionOrBuilder>(
expressions_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
expressions_ = null;
}
return expressionsBuilder_;
}
private io.substrait.proto.AdvancedExtension advancedExtension_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder> advancedExtensionBuilder_;
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return Whether the advancedExtension field is set.
*/
public boolean hasAdvancedExtension() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
* @return The advancedExtension.
*/
public io.substrait.proto.AdvancedExtension getAdvancedExtension() {
if (advancedExtensionBuilder_ == null) {
return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
} else {
return advancedExtensionBuilder_.getMessage();
}
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder setAdvancedExtension(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
advancedExtension_ = value;
} else {
advancedExtensionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder setAdvancedExtension(
io.substrait.proto.AdvancedExtension.Builder builderForValue) {
if (advancedExtensionBuilder_ == null) {
advancedExtension_ = builderForValue.build();
} else {
advancedExtensionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder mergeAdvancedExtension(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
advancedExtension_ != null &&
advancedExtension_ != io.substrait.proto.AdvancedExtension.getDefaultInstance()) {
getAdvancedExtensionBuilder().mergeFrom(value);
} else {
advancedExtension_ = value;
}
} else {
advancedExtensionBuilder_.mergeFrom(value);
}
if (advancedExtension_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public Builder clearAdvancedExtension() {
bitField0_ = (bitField0_ & ~0x00000008);
advancedExtension_ = null;
if (advancedExtensionBuilder_ != null) {
advancedExtensionBuilder_.dispose();
advancedExtensionBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public io.substrait.proto.AdvancedExtension.Builder getAdvancedExtensionBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getAdvancedExtensionFieldBuilder().getBuilder();
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() {
if (advancedExtensionBuilder_ != null) {
return advancedExtensionBuilder_.getMessageOrBuilder();
} else {
return advancedExtension_ == null ?
io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_;
}
}
/**
* .substrait.extensions.AdvancedExtension advanced_extension = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>
getAdvancedExtensionFieldBuilder() {
if (advancedExtensionBuilder_ == null) {
advancedExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>(
getAdvancedExtension(),
getParentForChildren(),
isClean());
advancedExtension_ = null;
}
return advancedExtensionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:substrait.ProjectRel)
}
// @@protoc_insertion_point(class_scope:substrait.ProjectRel)
private static final io.substrait.proto.ProjectRel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ProjectRel();
}
public static io.substrait.proto.ProjectRel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProjectRel 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.ProjectRel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy