io.substrait.proto.PlanRel 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/plan.proto
// Protobuf Java Version: 3.25.5
package io.substrait.proto;
/**
*
* Either a relation or root relation
*
*
* Protobuf type {@code substrait.PlanRel}
*/
public final class PlanRel extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.PlanRel)
PlanRelOrBuilder {
private static final long serialVersionUID = 0L;
// Use PlanRel.newBuilder() to construct.
private PlanRel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PlanRel() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PlanRel();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_PlanRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_PlanRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.PlanRel.class, io.substrait.proto.PlanRel.Builder.class);
}
private int relTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object relType_;
public enum RelTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
REL(1),
ROOT(2),
RELTYPE_NOT_SET(0);
private final int value;
private RelTypeCase(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 RelTypeCase valueOf(int value) {
return forNumber(value);
}
public static RelTypeCase forNumber(int value) {
switch (value) {
case 1: return REL;
case 2: return ROOT;
case 0: return RELTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public RelTypeCase
getRelTypeCase() {
return RelTypeCase.forNumber(
relTypeCase_);
}
public static final int REL_FIELD_NUMBER = 1;
/**
*
* Any relation (used for references and CTEs)
*
*
* .substrait.Rel rel = 1;
* @return Whether the rel field is set.
*/
@java.lang.Override
public boolean hasRel() {
return relTypeCase_ == 1;
}
/**
*
* Any relation (used for references and CTEs)
*
*
* .substrait.Rel rel = 1;
* @return The rel.
*/
@java.lang.Override
public io.substrait.proto.Rel getRel() {
if (relTypeCase_ == 1) {
return (io.substrait.proto.Rel) relType_;
}
return io.substrait.proto.Rel.getDefaultInstance();
}
/**
*
* Any relation (used for references and CTEs)
*
*
* .substrait.Rel rel = 1;
*/
@java.lang.Override
public io.substrait.proto.RelOrBuilder getRelOrBuilder() {
if (relTypeCase_ == 1) {
return (io.substrait.proto.Rel) relType_;
}
return io.substrait.proto.Rel.getDefaultInstance();
}
public static final int ROOT_FIELD_NUMBER = 2;
/**
*
* The root of a relation tree
*
*
* .substrait.RelRoot root = 2;
* @return Whether the root field is set.
*/
@java.lang.Override
public boolean hasRoot() {
return relTypeCase_ == 2;
}
/**
*
* The root of a relation tree
*
*
* .substrait.RelRoot root = 2;
* @return The root.
*/
@java.lang.Override
public io.substrait.proto.RelRoot getRoot() {
if (relTypeCase_ == 2) {
return (io.substrait.proto.RelRoot) relType_;
}
return io.substrait.proto.RelRoot.getDefaultInstance();
}
/**
*
* The root of a relation tree
*
*
* .substrait.RelRoot root = 2;
*/
@java.lang.Override
public io.substrait.proto.RelRootOrBuilder getRootOrBuilder() {
if (relTypeCase_ == 2) {
return (io.substrait.proto.RelRoot) relType_;
}
return io.substrait.proto.RelRoot.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 (relTypeCase_ == 1) {
output.writeMessage(1, (io.substrait.proto.Rel) relType_);
}
if (relTypeCase_ == 2) {
output.writeMessage(2, (io.substrait.proto.RelRoot) relType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (relTypeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.substrait.proto.Rel) relType_);
}
if (relTypeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.substrait.proto.RelRoot) relType_);
}
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.PlanRel)) {
return super.equals(obj);
}
io.substrait.proto.PlanRel other = (io.substrait.proto.PlanRel) obj;
if (!getRelTypeCase().equals(other.getRelTypeCase())) return false;
switch (relTypeCase_) {
case 1:
if (!getRel()
.equals(other.getRel())) return false;
break;
case 2:
if (!getRoot()
.equals(other.getRoot())) 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 (relTypeCase_) {
case 1:
hash = (37 * hash) + REL_FIELD_NUMBER;
hash = (53 * hash) + getRel().hashCode();
break;
case 2:
hash = (37 * hash) + ROOT_FIELD_NUMBER;
hash = (53 * hash) + getRoot().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.PlanRel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.PlanRel 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.PlanRel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.PlanRel 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.PlanRel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.PlanRel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.PlanRel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.PlanRel 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.PlanRel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.PlanRel 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.PlanRel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.PlanRel 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.PlanRel 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;
}
/**
*
* Either a relation or root relation
*
*
* Protobuf type {@code substrait.PlanRel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.PlanRel)
io.substrait.proto.PlanRelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_PlanRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_PlanRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.PlanRel.class, io.substrait.proto.PlanRel.Builder.class);
}
// Construct using io.substrait.proto.PlanRel.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (relBuilder_ != null) {
relBuilder_.clear();
}
if (rootBuilder_ != null) {
rootBuilder_.clear();
}
relTypeCase_ = 0;
relType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_PlanRel_descriptor;
}
@java.lang.Override
public io.substrait.proto.PlanRel getDefaultInstanceForType() {
return io.substrait.proto.PlanRel.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.PlanRel build() {
io.substrait.proto.PlanRel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.PlanRel buildPartial() {
io.substrait.proto.PlanRel result = new io.substrait.proto.PlanRel(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.PlanRel result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.substrait.proto.PlanRel result) {
result.relTypeCase_ = relTypeCase_;
result.relType_ = this.relType_;
if (relTypeCase_ == 1 &&
relBuilder_ != null) {
result.relType_ = relBuilder_.build();
}
if (relTypeCase_ == 2 &&
rootBuilder_ != null) {
result.relType_ = rootBuilder_.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.PlanRel) {
return mergeFrom((io.substrait.proto.PlanRel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.PlanRel other) {
if (other == io.substrait.proto.PlanRel.getDefaultInstance()) return this;
switch (other.getRelTypeCase()) {
case REL: {
mergeRel(other.getRel());
break;
}
case ROOT: {
mergeRoot(other.getRoot());
break;
}
case RELTYPE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getRelFieldBuilder().getBuilder(),
extensionRegistry);
relTypeCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getRootFieldBuilder().getBuilder(),
extensionRegistry);
relTypeCase_ = 2;
break;
} // case 18
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 relTypeCase_ = 0;
private java.lang.Object relType_;
public RelTypeCase
getRelTypeCase() {
return RelTypeCase.forNumber(
relTypeCase_);
}
public Builder clearRelType() {
relTypeCase_ = 0;
relType_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> relBuilder_;
/**
*
* Any relation (used for references and CTEs)
*
*
* .substrait.Rel rel = 1;
* @return Whether the rel field is set.
*/
@java.lang.Override
public boolean hasRel() {
return relTypeCase_ == 1;
}
/**
*
* Any relation (used for references and CTEs)
*
*
* .substrait.Rel rel = 1;
* @return The rel.
*/
@java.lang.Override
public io.substrait.proto.Rel getRel() {
if (relBuilder_ == null) {
if (relTypeCase_ == 1) {
return (io.substrait.proto.Rel) relType_;
}
return io.substrait.proto.Rel.getDefaultInstance();
} else {
if (relTypeCase_ == 1) {
return relBuilder_.getMessage();
}
return io.substrait.proto.Rel.getDefaultInstance();
}
}
/**
*
* Any relation (used for references and CTEs)
*
*
* .substrait.Rel rel = 1;
*/
public Builder setRel(io.substrait.proto.Rel value) {
if (relBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
relType_ = value;
onChanged();
} else {
relBuilder_.setMessage(value);
}
relTypeCase_ = 1;
return this;
}
/**
*
* Any relation (used for references and CTEs)
*
*
* .substrait.Rel rel = 1;
*/
public Builder setRel(
io.substrait.proto.Rel.Builder builderForValue) {
if (relBuilder_ == null) {
relType_ = builderForValue.build();
onChanged();
} else {
relBuilder_.setMessage(builderForValue.build());
}
relTypeCase_ = 1;
return this;
}
/**
*
* Any relation (used for references and CTEs)
*
*
* .substrait.Rel rel = 1;
*/
public Builder mergeRel(io.substrait.proto.Rel value) {
if (relBuilder_ == null) {
if (relTypeCase_ == 1 &&
relType_ != io.substrait.proto.Rel.getDefaultInstance()) {
relType_ = io.substrait.proto.Rel.newBuilder((io.substrait.proto.Rel) relType_)
.mergeFrom(value).buildPartial();
} else {
relType_ = value;
}
onChanged();
} else {
if (relTypeCase_ == 1) {
relBuilder_.mergeFrom(value);
} else {
relBuilder_.setMessage(value);
}
}
relTypeCase_ = 1;
return this;
}
/**
*
* Any relation (used for references and CTEs)
*
*
* .substrait.Rel rel = 1;
*/
public Builder clearRel() {
if (relBuilder_ == null) {
if (relTypeCase_ == 1) {
relTypeCase_ = 0;
relType_ = null;
onChanged();
}
} else {
if (relTypeCase_ == 1) {
relTypeCase_ = 0;
relType_ = null;
}
relBuilder_.clear();
}
return this;
}
/**
*
* Any relation (used for references and CTEs)
*
*
* .substrait.Rel rel = 1;
*/
public io.substrait.proto.Rel.Builder getRelBuilder() {
return getRelFieldBuilder().getBuilder();
}
/**
*
* Any relation (used for references and CTEs)
*
*
* .substrait.Rel rel = 1;
*/
@java.lang.Override
public io.substrait.proto.RelOrBuilder getRelOrBuilder() {
if ((relTypeCase_ == 1) && (relBuilder_ != null)) {
return relBuilder_.getMessageOrBuilder();
} else {
if (relTypeCase_ == 1) {
return (io.substrait.proto.Rel) relType_;
}
return io.substrait.proto.Rel.getDefaultInstance();
}
}
/**
*
* Any relation (used for references and CTEs)
*
*
* .substrait.Rel rel = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>
getRelFieldBuilder() {
if (relBuilder_ == null) {
if (!(relTypeCase_ == 1)) {
relType_ = io.substrait.proto.Rel.getDefaultInstance();
}
relBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>(
(io.substrait.proto.Rel) relType_,
getParentForChildren(),
isClean());
relType_ = null;
}
relTypeCase_ = 1;
onChanged();
return relBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.RelRoot, io.substrait.proto.RelRoot.Builder, io.substrait.proto.RelRootOrBuilder> rootBuilder_;
/**
*
* The root of a relation tree
*
*
* .substrait.RelRoot root = 2;
* @return Whether the root field is set.
*/
@java.lang.Override
public boolean hasRoot() {
return relTypeCase_ == 2;
}
/**
*
* The root of a relation tree
*
*
* .substrait.RelRoot root = 2;
* @return The root.
*/
@java.lang.Override
public io.substrait.proto.RelRoot getRoot() {
if (rootBuilder_ == null) {
if (relTypeCase_ == 2) {
return (io.substrait.proto.RelRoot) relType_;
}
return io.substrait.proto.RelRoot.getDefaultInstance();
} else {
if (relTypeCase_ == 2) {
return rootBuilder_.getMessage();
}
return io.substrait.proto.RelRoot.getDefaultInstance();
}
}
/**
*
* The root of a relation tree
*
*
* .substrait.RelRoot root = 2;
*/
public Builder setRoot(io.substrait.proto.RelRoot value) {
if (rootBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
relType_ = value;
onChanged();
} else {
rootBuilder_.setMessage(value);
}
relTypeCase_ = 2;
return this;
}
/**
*
* The root of a relation tree
*
*
* .substrait.RelRoot root = 2;
*/
public Builder setRoot(
io.substrait.proto.RelRoot.Builder builderForValue) {
if (rootBuilder_ == null) {
relType_ = builderForValue.build();
onChanged();
} else {
rootBuilder_.setMessage(builderForValue.build());
}
relTypeCase_ = 2;
return this;
}
/**
*
* The root of a relation tree
*
*
* .substrait.RelRoot root = 2;
*/
public Builder mergeRoot(io.substrait.proto.RelRoot value) {
if (rootBuilder_ == null) {
if (relTypeCase_ == 2 &&
relType_ != io.substrait.proto.RelRoot.getDefaultInstance()) {
relType_ = io.substrait.proto.RelRoot.newBuilder((io.substrait.proto.RelRoot) relType_)
.mergeFrom(value).buildPartial();
} else {
relType_ = value;
}
onChanged();
} else {
if (relTypeCase_ == 2) {
rootBuilder_.mergeFrom(value);
} else {
rootBuilder_.setMessage(value);
}
}
relTypeCase_ = 2;
return this;
}
/**
*
* The root of a relation tree
*
*
* .substrait.RelRoot root = 2;
*/
public Builder clearRoot() {
if (rootBuilder_ == null) {
if (relTypeCase_ == 2) {
relTypeCase_ = 0;
relType_ = null;
onChanged();
}
} else {
if (relTypeCase_ == 2) {
relTypeCase_ = 0;
relType_ = null;
}
rootBuilder_.clear();
}
return this;
}
/**
*
* The root of a relation tree
*
*
* .substrait.RelRoot root = 2;
*/
public io.substrait.proto.RelRoot.Builder getRootBuilder() {
return getRootFieldBuilder().getBuilder();
}
/**
*
* The root of a relation tree
*
*
* .substrait.RelRoot root = 2;
*/
@java.lang.Override
public io.substrait.proto.RelRootOrBuilder getRootOrBuilder() {
if ((relTypeCase_ == 2) && (rootBuilder_ != null)) {
return rootBuilder_.getMessageOrBuilder();
} else {
if (relTypeCase_ == 2) {
return (io.substrait.proto.RelRoot) relType_;
}
return io.substrait.proto.RelRoot.getDefaultInstance();
}
}
/**
*
* The root of a relation tree
*
*
* .substrait.RelRoot root = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.RelRoot, io.substrait.proto.RelRoot.Builder, io.substrait.proto.RelRootOrBuilder>
getRootFieldBuilder() {
if (rootBuilder_ == null) {
if (!(relTypeCase_ == 2)) {
relType_ = io.substrait.proto.RelRoot.getDefaultInstance();
}
rootBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.RelRoot, io.substrait.proto.RelRoot.Builder, io.substrait.proto.RelRootOrBuilder>(
(io.substrait.proto.RelRoot) relType_,
getParentForChildren(),
isClean());
relType_ = null;
}
relTypeCase_ = 2;
onChanged();
return rootBuilder_;
}
@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.PlanRel)
}
// @@protoc_insertion_point(class_scope:substrait.PlanRel)
private static final io.substrait.proto.PlanRel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.PlanRel();
}
public static io.substrait.proto.PlanRel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PlanRel 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.PlanRel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy