All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.substrait.proto.Rel Maven / Gradle / Ivy

Go to download

Create a well-defined, cross-language specification for data compute operations

There is a newer version: 0.46.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: substrait/algebra.proto

// Protobuf Java Version: 3.25.5
package io.substrait.proto;

/**
 * 
 * A relation (used internally in a plan)
 * 
* * Protobuf type {@code substrait.Rel} */ public final class Rel extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Rel) RelOrBuilder { private static final long serialVersionUID = 0L; // Use Rel.newBuilder() to construct. private Rel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Rel() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Rel(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Rel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Rel_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Rel.class, io.substrait.proto.Rel.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 { READ(1), FILTER(2), FETCH(3), AGGREGATE(4), SORT(5), JOIN(6), PROJECT(7), SET(8), EXTENSION_SINGLE(9), EXTENSION_MULTI(10), EXTENSION_LEAF(11), CROSS(12), REFERENCE(21), WRITE(19), DDL(20), HASH_JOIN(13), MERGE_JOIN(14), NESTED_LOOP_JOIN(18), WINDOW(17), EXCHANGE(15), EXPAND(16), 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 READ; case 2: return FILTER; case 3: return FETCH; case 4: return AGGREGATE; case 5: return SORT; case 6: return JOIN; case 7: return PROJECT; case 8: return SET; case 9: return EXTENSION_SINGLE; case 10: return EXTENSION_MULTI; case 11: return EXTENSION_LEAF; case 12: return CROSS; case 21: return REFERENCE; case 19: return WRITE; case 20: return DDL; case 13: return HASH_JOIN; case 14: return MERGE_JOIN; case 18: return NESTED_LOOP_JOIN; case 17: return WINDOW; case 15: return EXCHANGE; case 16: return EXPAND; 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 READ_FIELD_NUMBER = 1; /** * .substrait.ReadRel read = 1; * @return Whether the read field is set. */ @java.lang.Override public boolean hasRead() { return relTypeCase_ == 1; } /** * .substrait.ReadRel read = 1; * @return The read. */ @java.lang.Override public io.substrait.proto.ReadRel getRead() { if (relTypeCase_ == 1) { return (io.substrait.proto.ReadRel) relType_; } return io.substrait.proto.ReadRel.getDefaultInstance(); } /** * .substrait.ReadRel read = 1; */ @java.lang.Override public io.substrait.proto.ReadRelOrBuilder getReadOrBuilder() { if (relTypeCase_ == 1) { return (io.substrait.proto.ReadRel) relType_; } return io.substrait.proto.ReadRel.getDefaultInstance(); } public static final int FILTER_FIELD_NUMBER = 2; /** * .substrait.FilterRel filter = 2; * @return Whether the filter field is set. */ @java.lang.Override public boolean hasFilter() { return relTypeCase_ == 2; } /** * .substrait.FilterRel filter = 2; * @return The filter. */ @java.lang.Override public io.substrait.proto.FilterRel getFilter() { if (relTypeCase_ == 2) { return (io.substrait.proto.FilterRel) relType_; } return io.substrait.proto.FilterRel.getDefaultInstance(); } /** * .substrait.FilterRel filter = 2; */ @java.lang.Override public io.substrait.proto.FilterRelOrBuilder getFilterOrBuilder() { if (relTypeCase_ == 2) { return (io.substrait.proto.FilterRel) relType_; } return io.substrait.proto.FilterRel.getDefaultInstance(); } public static final int FETCH_FIELD_NUMBER = 3; /** * .substrait.FetchRel fetch = 3; * @return Whether the fetch field is set. */ @java.lang.Override public boolean hasFetch() { return relTypeCase_ == 3; } /** * .substrait.FetchRel fetch = 3; * @return The fetch. */ @java.lang.Override public io.substrait.proto.FetchRel getFetch() { if (relTypeCase_ == 3) { return (io.substrait.proto.FetchRel) relType_; } return io.substrait.proto.FetchRel.getDefaultInstance(); } /** * .substrait.FetchRel fetch = 3; */ @java.lang.Override public io.substrait.proto.FetchRelOrBuilder getFetchOrBuilder() { if (relTypeCase_ == 3) { return (io.substrait.proto.FetchRel) relType_; } return io.substrait.proto.FetchRel.getDefaultInstance(); } public static final int AGGREGATE_FIELD_NUMBER = 4; /** * .substrait.AggregateRel aggregate = 4; * @return Whether the aggregate field is set. */ @java.lang.Override public boolean hasAggregate() { return relTypeCase_ == 4; } /** * .substrait.AggregateRel aggregate = 4; * @return The aggregate. */ @java.lang.Override public io.substrait.proto.AggregateRel getAggregate() { if (relTypeCase_ == 4) { return (io.substrait.proto.AggregateRel) relType_; } return io.substrait.proto.AggregateRel.getDefaultInstance(); } /** * .substrait.AggregateRel aggregate = 4; */ @java.lang.Override public io.substrait.proto.AggregateRelOrBuilder getAggregateOrBuilder() { if (relTypeCase_ == 4) { return (io.substrait.proto.AggregateRel) relType_; } return io.substrait.proto.AggregateRel.getDefaultInstance(); } public static final int SORT_FIELD_NUMBER = 5; /** * .substrait.SortRel sort = 5; * @return Whether the sort field is set. */ @java.lang.Override public boolean hasSort() { return relTypeCase_ == 5; } /** * .substrait.SortRel sort = 5; * @return The sort. */ @java.lang.Override public io.substrait.proto.SortRel getSort() { if (relTypeCase_ == 5) { return (io.substrait.proto.SortRel) relType_; } return io.substrait.proto.SortRel.getDefaultInstance(); } /** * .substrait.SortRel sort = 5; */ @java.lang.Override public io.substrait.proto.SortRelOrBuilder getSortOrBuilder() { if (relTypeCase_ == 5) { return (io.substrait.proto.SortRel) relType_; } return io.substrait.proto.SortRel.getDefaultInstance(); } public static final int JOIN_FIELD_NUMBER = 6; /** * .substrait.JoinRel join = 6; * @return Whether the join field is set. */ @java.lang.Override public boolean hasJoin() { return relTypeCase_ == 6; } /** * .substrait.JoinRel join = 6; * @return The join. */ @java.lang.Override public io.substrait.proto.JoinRel getJoin() { if (relTypeCase_ == 6) { return (io.substrait.proto.JoinRel) relType_; } return io.substrait.proto.JoinRel.getDefaultInstance(); } /** * .substrait.JoinRel join = 6; */ @java.lang.Override public io.substrait.proto.JoinRelOrBuilder getJoinOrBuilder() { if (relTypeCase_ == 6) { return (io.substrait.proto.JoinRel) relType_; } return io.substrait.proto.JoinRel.getDefaultInstance(); } public static final int PROJECT_FIELD_NUMBER = 7; /** * .substrait.ProjectRel project = 7; * @return Whether the project field is set. */ @java.lang.Override public boolean hasProject() { return relTypeCase_ == 7; } /** * .substrait.ProjectRel project = 7; * @return The project. */ @java.lang.Override public io.substrait.proto.ProjectRel getProject() { if (relTypeCase_ == 7) { return (io.substrait.proto.ProjectRel) relType_; } return io.substrait.proto.ProjectRel.getDefaultInstance(); } /** * .substrait.ProjectRel project = 7; */ @java.lang.Override public io.substrait.proto.ProjectRelOrBuilder getProjectOrBuilder() { if (relTypeCase_ == 7) { return (io.substrait.proto.ProjectRel) relType_; } return io.substrait.proto.ProjectRel.getDefaultInstance(); } public static final int SET_FIELD_NUMBER = 8; /** * .substrait.SetRel set = 8; * @return Whether the set field is set. */ @java.lang.Override public boolean hasSet() { return relTypeCase_ == 8; } /** * .substrait.SetRel set = 8; * @return The set. */ @java.lang.Override public io.substrait.proto.SetRel getSet() { if (relTypeCase_ == 8) { return (io.substrait.proto.SetRel) relType_; } return io.substrait.proto.SetRel.getDefaultInstance(); } /** * .substrait.SetRel set = 8; */ @java.lang.Override public io.substrait.proto.SetRelOrBuilder getSetOrBuilder() { if (relTypeCase_ == 8) { return (io.substrait.proto.SetRel) relType_; } return io.substrait.proto.SetRel.getDefaultInstance(); } public static final int EXTENSION_SINGLE_FIELD_NUMBER = 9; /** * .substrait.ExtensionSingleRel extension_single = 9; * @return Whether the extensionSingle field is set. */ @java.lang.Override public boolean hasExtensionSingle() { return relTypeCase_ == 9; } /** * .substrait.ExtensionSingleRel extension_single = 9; * @return The extensionSingle. */ @java.lang.Override public io.substrait.proto.ExtensionSingleRel getExtensionSingle() { if (relTypeCase_ == 9) { return (io.substrait.proto.ExtensionSingleRel) relType_; } return io.substrait.proto.ExtensionSingleRel.getDefaultInstance(); } /** * .substrait.ExtensionSingleRel extension_single = 9; */ @java.lang.Override public io.substrait.proto.ExtensionSingleRelOrBuilder getExtensionSingleOrBuilder() { if (relTypeCase_ == 9) { return (io.substrait.proto.ExtensionSingleRel) relType_; } return io.substrait.proto.ExtensionSingleRel.getDefaultInstance(); } public static final int EXTENSION_MULTI_FIELD_NUMBER = 10; /** * .substrait.ExtensionMultiRel extension_multi = 10; * @return Whether the extensionMulti field is set. */ @java.lang.Override public boolean hasExtensionMulti() { return relTypeCase_ == 10; } /** * .substrait.ExtensionMultiRel extension_multi = 10; * @return The extensionMulti. */ @java.lang.Override public io.substrait.proto.ExtensionMultiRel getExtensionMulti() { if (relTypeCase_ == 10) { return (io.substrait.proto.ExtensionMultiRel) relType_; } return io.substrait.proto.ExtensionMultiRel.getDefaultInstance(); } /** * .substrait.ExtensionMultiRel extension_multi = 10; */ @java.lang.Override public io.substrait.proto.ExtensionMultiRelOrBuilder getExtensionMultiOrBuilder() { if (relTypeCase_ == 10) { return (io.substrait.proto.ExtensionMultiRel) relType_; } return io.substrait.proto.ExtensionMultiRel.getDefaultInstance(); } public static final int EXTENSION_LEAF_FIELD_NUMBER = 11; /** * .substrait.ExtensionLeafRel extension_leaf = 11; * @return Whether the extensionLeaf field is set. */ @java.lang.Override public boolean hasExtensionLeaf() { return relTypeCase_ == 11; } /** * .substrait.ExtensionLeafRel extension_leaf = 11; * @return The extensionLeaf. */ @java.lang.Override public io.substrait.proto.ExtensionLeafRel getExtensionLeaf() { if (relTypeCase_ == 11) { return (io.substrait.proto.ExtensionLeafRel) relType_; } return io.substrait.proto.ExtensionLeafRel.getDefaultInstance(); } /** * .substrait.ExtensionLeafRel extension_leaf = 11; */ @java.lang.Override public io.substrait.proto.ExtensionLeafRelOrBuilder getExtensionLeafOrBuilder() { if (relTypeCase_ == 11) { return (io.substrait.proto.ExtensionLeafRel) relType_; } return io.substrait.proto.ExtensionLeafRel.getDefaultInstance(); } public static final int CROSS_FIELD_NUMBER = 12; /** * .substrait.CrossRel cross = 12; * @return Whether the cross field is set. */ @java.lang.Override public boolean hasCross() { return relTypeCase_ == 12; } /** * .substrait.CrossRel cross = 12; * @return The cross. */ @java.lang.Override public io.substrait.proto.CrossRel getCross() { if (relTypeCase_ == 12) { return (io.substrait.proto.CrossRel) relType_; } return io.substrait.proto.CrossRel.getDefaultInstance(); } /** * .substrait.CrossRel cross = 12; */ @java.lang.Override public io.substrait.proto.CrossRelOrBuilder getCrossOrBuilder() { if (relTypeCase_ == 12) { return (io.substrait.proto.CrossRel) relType_; } return io.substrait.proto.CrossRel.getDefaultInstance(); } public static final int REFERENCE_FIELD_NUMBER = 21; /** * .substrait.ReferenceRel reference = 21; * @return Whether the reference field is set. */ @java.lang.Override public boolean hasReference() { return relTypeCase_ == 21; } /** * .substrait.ReferenceRel reference = 21; * @return The reference. */ @java.lang.Override public io.substrait.proto.ReferenceRel getReference() { if (relTypeCase_ == 21) { return (io.substrait.proto.ReferenceRel) relType_; } return io.substrait.proto.ReferenceRel.getDefaultInstance(); } /** * .substrait.ReferenceRel reference = 21; */ @java.lang.Override public io.substrait.proto.ReferenceRelOrBuilder getReferenceOrBuilder() { if (relTypeCase_ == 21) { return (io.substrait.proto.ReferenceRel) relType_; } return io.substrait.proto.ReferenceRel.getDefaultInstance(); } public static final int WRITE_FIELD_NUMBER = 19; /** * .substrait.WriteRel write = 19; * @return Whether the write field is set. */ @java.lang.Override public boolean hasWrite() { return relTypeCase_ == 19; } /** * .substrait.WriteRel write = 19; * @return The write. */ @java.lang.Override public io.substrait.proto.WriteRel getWrite() { if (relTypeCase_ == 19) { return (io.substrait.proto.WriteRel) relType_; } return io.substrait.proto.WriteRel.getDefaultInstance(); } /** * .substrait.WriteRel write = 19; */ @java.lang.Override public io.substrait.proto.WriteRelOrBuilder getWriteOrBuilder() { if (relTypeCase_ == 19) { return (io.substrait.proto.WriteRel) relType_; } return io.substrait.proto.WriteRel.getDefaultInstance(); } public static final int DDL_FIELD_NUMBER = 20; /** * .substrait.DdlRel ddl = 20; * @return Whether the ddl field is set. */ @java.lang.Override public boolean hasDdl() { return relTypeCase_ == 20; } /** * .substrait.DdlRel ddl = 20; * @return The ddl. */ @java.lang.Override public io.substrait.proto.DdlRel getDdl() { if (relTypeCase_ == 20) { return (io.substrait.proto.DdlRel) relType_; } return io.substrait.proto.DdlRel.getDefaultInstance(); } /** * .substrait.DdlRel ddl = 20; */ @java.lang.Override public io.substrait.proto.DdlRelOrBuilder getDdlOrBuilder() { if (relTypeCase_ == 20) { return (io.substrait.proto.DdlRel) relType_; } return io.substrait.proto.DdlRel.getDefaultInstance(); } public static final int HASH_JOIN_FIELD_NUMBER = 13; /** *
   * Physical relations
   * 
* * .substrait.HashJoinRel hash_join = 13; * @return Whether the hashJoin field is set. */ @java.lang.Override public boolean hasHashJoin() { return relTypeCase_ == 13; } /** *
   * Physical relations
   * 
* * .substrait.HashJoinRel hash_join = 13; * @return The hashJoin. */ @java.lang.Override public io.substrait.proto.HashJoinRel getHashJoin() { if (relTypeCase_ == 13) { return (io.substrait.proto.HashJoinRel) relType_; } return io.substrait.proto.HashJoinRel.getDefaultInstance(); } /** *
   * Physical relations
   * 
* * .substrait.HashJoinRel hash_join = 13; */ @java.lang.Override public io.substrait.proto.HashJoinRelOrBuilder getHashJoinOrBuilder() { if (relTypeCase_ == 13) { return (io.substrait.proto.HashJoinRel) relType_; } return io.substrait.proto.HashJoinRel.getDefaultInstance(); } public static final int MERGE_JOIN_FIELD_NUMBER = 14; /** * .substrait.MergeJoinRel merge_join = 14; * @return Whether the mergeJoin field is set. */ @java.lang.Override public boolean hasMergeJoin() { return relTypeCase_ == 14; } /** * .substrait.MergeJoinRel merge_join = 14; * @return The mergeJoin. */ @java.lang.Override public io.substrait.proto.MergeJoinRel getMergeJoin() { if (relTypeCase_ == 14) { return (io.substrait.proto.MergeJoinRel) relType_; } return io.substrait.proto.MergeJoinRel.getDefaultInstance(); } /** * .substrait.MergeJoinRel merge_join = 14; */ @java.lang.Override public io.substrait.proto.MergeJoinRelOrBuilder getMergeJoinOrBuilder() { if (relTypeCase_ == 14) { return (io.substrait.proto.MergeJoinRel) relType_; } return io.substrait.proto.MergeJoinRel.getDefaultInstance(); } public static final int NESTED_LOOP_JOIN_FIELD_NUMBER = 18; /** * .substrait.NestedLoopJoinRel nested_loop_join = 18; * @return Whether the nestedLoopJoin field is set. */ @java.lang.Override public boolean hasNestedLoopJoin() { return relTypeCase_ == 18; } /** * .substrait.NestedLoopJoinRel nested_loop_join = 18; * @return The nestedLoopJoin. */ @java.lang.Override public io.substrait.proto.NestedLoopJoinRel getNestedLoopJoin() { if (relTypeCase_ == 18) { return (io.substrait.proto.NestedLoopJoinRel) relType_; } return io.substrait.proto.NestedLoopJoinRel.getDefaultInstance(); } /** * .substrait.NestedLoopJoinRel nested_loop_join = 18; */ @java.lang.Override public io.substrait.proto.NestedLoopJoinRelOrBuilder getNestedLoopJoinOrBuilder() { if (relTypeCase_ == 18) { return (io.substrait.proto.NestedLoopJoinRel) relType_; } return io.substrait.proto.NestedLoopJoinRel.getDefaultInstance(); } public static final int WINDOW_FIELD_NUMBER = 17; /** * .substrait.ConsistentPartitionWindowRel window = 17; * @return Whether the window field is set. */ @java.lang.Override public boolean hasWindow() { return relTypeCase_ == 17; } /** * .substrait.ConsistentPartitionWindowRel window = 17; * @return The window. */ @java.lang.Override public io.substrait.proto.ConsistentPartitionWindowRel getWindow() { if (relTypeCase_ == 17) { return (io.substrait.proto.ConsistentPartitionWindowRel) relType_; } return io.substrait.proto.ConsistentPartitionWindowRel.getDefaultInstance(); } /** * .substrait.ConsistentPartitionWindowRel window = 17; */ @java.lang.Override public io.substrait.proto.ConsistentPartitionWindowRelOrBuilder getWindowOrBuilder() { if (relTypeCase_ == 17) { return (io.substrait.proto.ConsistentPartitionWindowRel) relType_; } return io.substrait.proto.ConsistentPartitionWindowRel.getDefaultInstance(); } public static final int EXCHANGE_FIELD_NUMBER = 15; /** * .substrait.ExchangeRel exchange = 15; * @return Whether the exchange field is set. */ @java.lang.Override public boolean hasExchange() { return relTypeCase_ == 15; } /** * .substrait.ExchangeRel exchange = 15; * @return The exchange. */ @java.lang.Override public io.substrait.proto.ExchangeRel getExchange() { if (relTypeCase_ == 15) { return (io.substrait.proto.ExchangeRel) relType_; } return io.substrait.proto.ExchangeRel.getDefaultInstance(); } /** * .substrait.ExchangeRel exchange = 15; */ @java.lang.Override public io.substrait.proto.ExchangeRelOrBuilder getExchangeOrBuilder() { if (relTypeCase_ == 15) { return (io.substrait.proto.ExchangeRel) relType_; } return io.substrait.proto.ExchangeRel.getDefaultInstance(); } public static final int EXPAND_FIELD_NUMBER = 16; /** * .substrait.ExpandRel expand = 16; * @return Whether the expand field is set. */ @java.lang.Override public boolean hasExpand() { return relTypeCase_ == 16; } /** * .substrait.ExpandRel expand = 16; * @return The expand. */ @java.lang.Override public io.substrait.proto.ExpandRel getExpand() { if (relTypeCase_ == 16) { return (io.substrait.proto.ExpandRel) relType_; } return io.substrait.proto.ExpandRel.getDefaultInstance(); } /** * .substrait.ExpandRel expand = 16; */ @java.lang.Override public io.substrait.proto.ExpandRelOrBuilder getExpandOrBuilder() { if (relTypeCase_ == 16) { return (io.substrait.proto.ExpandRel) relType_; } return io.substrait.proto.ExpandRel.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.ReadRel) relType_); } if (relTypeCase_ == 2) { output.writeMessage(2, (io.substrait.proto.FilterRel) relType_); } if (relTypeCase_ == 3) { output.writeMessage(3, (io.substrait.proto.FetchRel) relType_); } if (relTypeCase_ == 4) { output.writeMessage(4, (io.substrait.proto.AggregateRel) relType_); } if (relTypeCase_ == 5) { output.writeMessage(5, (io.substrait.proto.SortRel) relType_); } if (relTypeCase_ == 6) { output.writeMessage(6, (io.substrait.proto.JoinRel) relType_); } if (relTypeCase_ == 7) { output.writeMessage(7, (io.substrait.proto.ProjectRel) relType_); } if (relTypeCase_ == 8) { output.writeMessage(8, (io.substrait.proto.SetRel) relType_); } if (relTypeCase_ == 9) { output.writeMessage(9, (io.substrait.proto.ExtensionSingleRel) relType_); } if (relTypeCase_ == 10) { output.writeMessage(10, (io.substrait.proto.ExtensionMultiRel) relType_); } if (relTypeCase_ == 11) { output.writeMessage(11, (io.substrait.proto.ExtensionLeafRel) relType_); } if (relTypeCase_ == 12) { output.writeMessage(12, (io.substrait.proto.CrossRel) relType_); } if (relTypeCase_ == 13) { output.writeMessage(13, (io.substrait.proto.HashJoinRel) relType_); } if (relTypeCase_ == 14) { output.writeMessage(14, (io.substrait.proto.MergeJoinRel) relType_); } if (relTypeCase_ == 15) { output.writeMessage(15, (io.substrait.proto.ExchangeRel) relType_); } if (relTypeCase_ == 16) { output.writeMessage(16, (io.substrait.proto.ExpandRel) relType_); } if (relTypeCase_ == 17) { output.writeMessage(17, (io.substrait.proto.ConsistentPartitionWindowRel) relType_); } if (relTypeCase_ == 18) { output.writeMessage(18, (io.substrait.proto.NestedLoopJoinRel) relType_); } if (relTypeCase_ == 19) { output.writeMessage(19, (io.substrait.proto.WriteRel) relType_); } if (relTypeCase_ == 20) { output.writeMessage(20, (io.substrait.proto.DdlRel) relType_); } if (relTypeCase_ == 21) { output.writeMessage(21, (io.substrait.proto.ReferenceRel) 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.ReadRel) relType_); } if (relTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.substrait.proto.FilterRel) relType_); } if (relTypeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.substrait.proto.FetchRel) relType_); } if (relTypeCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.substrait.proto.AggregateRel) relType_); } if (relTypeCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (io.substrait.proto.SortRel) relType_); } if (relTypeCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (io.substrait.proto.JoinRel) relType_); } if (relTypeCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (io.substrait.proto.ProjectRel) relType_); } if (relTypeCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (io.substrait.proto.SetRel) relType_); } if (relTypeCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (io.substrait.proto.ExtensionSingleRel) relType_); } if (relTypeCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (io.substrait.proto.ExtensionMultiRel) relType_); } if (relTypeCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (io.substrait.proto.ExtensionLeafRel) relType_); } if (relTypeCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (io.substrait.proto.CrossRel) relType_); } if (relTypeCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (io.substrait.proto.HashJoinRel) relType_); } if (relTypeCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (io.substrait.proto.MergeJoinRel) relType_); } if (relTypeCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (io.substrait.proto.ExchangeRel) relType_); } if (relTypeCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (io.substrait.proto.ExpandRel) relType_); } if (relTypeCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (io.substrait.proto.ConsistentPartitionWindowRel) relType_); } if (relTypeCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (io.substrait.proto.NestedLoopJoinRel) relType_); } if (relTypeCase_ == 19) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, (io.substrait.proto.WriteRel) relType_); } if (relTypeCase_ == 20) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (io.substrait.proto.DdlRel) relType_); } if (relTypeCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (io.substrait.proto.ReferenceRel) 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.Rel)) { return super.equals(obj); } io.substrait.proto.Rel other = (io.substrait.proto.Rel) obj; if (!getRelTypeCase().equals(other.getRelTypeCase())) return false; switch (relTypeCase_) { case 1: if (!getRead() .equals(other.getRead())) return false; break; case 2: if (!getFilter() .equals(other.getFilter())) return false; break; case 3: if (!getFetch() .equals(other.getFetch())) return false; break; case 4: if (!getAggregate() .equals(other.getAggregate())) return false; break; case 5: if (!getSort() .equals(other.getSort())) return false; break; case 6: if (!getJoin() .equals(other.getJoin())) return false; break; case 7: if (!getProject() .equals(other.getProject())) return false; break; case 8: if (!getSet() .equals(other.getSet())) return false; break; case 9: if (!getExtensionSingle() .equals(other.getExtensionSingle())) return false; break; case 10: if (!getExtensionMulti() .equals(other.getExtensionMulti())) return false; break; case 11: if (!getExtensionLeaf() .equals(other.getExtensionLeaf())) return false; break; case 12: if (!getCross() .equals(other.getCross())) return false; break; case 21: if (!getReference() .equals(other.getReference())) return false; break; case 19: if (!getWrite() .equals(other.getWrite())) return false; break; case 20: if (!getDdl() .equals(other.getDdl())) return false; break; case 13: if (!getHashJoin() .equals(other.getHashJoin())) return false; break; case 14: if (!getMergeJoin() .equals(other.getMergeJoin())) return false; break; case 18: if (!getNestedLoopJoin() .equals(other.getNestedLoopJoin())) return false; break; case 17: if (!getWindow() .equals(other.getWindow())) return false; break; case 15: if (!getExchange() .equals(other.getExchange())) return false; break; case 16: if (!getExpand() .equals(other.getExpand())) 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) + READ_FIELD_NUMBER; hash = (53 * hash) + getRead().hashCode(); break; case 2: hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); break; case 3: hash = (37 * hash) + FETCH_FIELD_NUMBER; hash = (53 * hash) + getFetch().hashCode(); break; case 4: hash = (37 * hash) + AGGREGATE_FIELD_NUMBER; hash = (53 * hash) + getAggregate().hashCode(); break; case 5: hash = (37 * hash) + SORT_FIELD_NUMBER; hash = (53 * hash) + getSort().hashCode(); break; case 6: hash = (37 * hash) + JOIN_FIELD_NUMBER; hash = (53 * hash) + getJoin().hashCode(); break; case 7: hash = (37 * hash) + PROJECT_FIELD_NUMBER; hash = (53 * hash) + getProject().hashCode(); break; case 8: hash = (37 * hash) + SET_FIELD_NUMBER; hash = (53 * hash) + getSet().hashCode(); break; case 9: hash = (37 * hash) + EXTENSION_SINGLE_FIELD_NUMBER; hash = (53 * hash) + getExtensionSingle().hashCode(); break; case 10: hash = (37 * hash) + EXTENSION_MULTI_FIELD_NUMBER; hash = (53 * hash) + getExtensionMulti().hashCode(); break; case 11: hash = (37 * hash) + EXTENSION_LEAF_FIELD_NUMBER; hash = (53 * hash) + getExtensionLeaf().hashCode(); break; case 12: hash = (37 * hash) + CROSS_FIELD_NUMBER; hash = (53 * hash) + getCross().hashCode(); break; case 21: hash = (37 * hash) + REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getReference().hashCode(); break; case 19: hash = (37 * hash) + WRITE_FIELD_NUMBER; hash = (53 * hash) + getWrite().hashCode(); break; case 20: hash = (37 * hash) + DDL_FIELD_NUMBER; hash = (53 * hash) + getDdl().hashCode(); break; case 13: hash = (37 * hash) + HASH_JOIN_FIELD_NUMBER; hash = (53 * hash) + getHashJoin().hashCode(); break; case 14: hash = (37 * hash) + MERGE_JOIN_FIELD_NUMBER; hash = (53 * hash) + getMergeJoin().hashCode(); break; case 18: hash = (37 * hash) + NESTED_LOOP_JOIN_FIELD_NUMBER; hash = (53 * hash) + getNestedLoopJoin().hashCode(); break; case 17: hash = (37 * hash) + WINDOW_FIELD_NUMBER; hash = (53 * hash) + getWindow().hashCode(); break; case 15: hash = (37 * hash) + EXCHANGE_FIELD_NUMBER; hash = (53 * hash) + getExchange().hashCode(); break; case 16: hash = (37 * hash) + EXPAND_FIELD_NUMBER; hash = (53 * hash) + getExpand().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Rel parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Rel 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.Rel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Rel 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.Rel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Rel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Rel parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Rel 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.Rel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Rel 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.Rel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Rel 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.Rel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * A relation (used internally in a plan)
   * 
* * Protobuf type {@code substrait.Rel} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Rel) io.substrait.proto.RelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_Rel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_Rel_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Rel.class, io.substrait.proto.Rel.Builder.class); } // Construct using io.substrait.proto.Rel.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (readBuilder_ != null) { readBuilder_.clear(); } if (filterBuilder_ != null) { filterBuilder_.clear(); } if (fetchBuilder_ != null) { fetchBuilder_.clear(); } if (aggregateBuilder_ != null) { aggregateBuilder_.clear(); } if (sortBuilder_ != null) { sortBuilder_.clear(); } if (joinBuilder_ != null) { joinBuilder_.clear(); } if (projectBuilder_ != null) { projectBuilder_.clear(); } if (setBuilder_ != null) { setBuilder_.clear(); } if (extensionSingleBuilder_ != null) { extensionSingleBuilder_.clear(); } if (extensionMultiBuilder_ != null) { extensionMultiBuilder_.clear(); } if (extensionLeafBuilder_ != null) { extensionLeafBuilder_.clear(); } if (crossBuilder_ != null) { crossBuilder_.clear(); } if (referenceBuilder_ != null) { referenceBuilder_.clear(); } if (writeBuilder_ != null) { writeBuilder_.clear(); } if (ddlBuilder_ != null) { ddlBuilder_.clear(); } if (hashJoinBuilder_ != null) { hashJoinBuilder_.clear(); } if (mergeJoinBuilder_ != null) { mergeJoinBuilder_.clear(); } if (nestedLoopJoinBuilder_ != null) { nestedLoopJoinBuilder_.clear(); } if (windowBuilder_ != null) { windowBuilder_.clear(); } if (exchangeBuilder_ != null) { exchangeBuilder_.clear(); } if (expandBuilder_ != null) { expandBuilder_.clear(); } relTypeCase_ = 0; relType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_Rel_descriptor; } @java.lang.Override public io.substrait.proto.Rel getDefaultInstanceForType() { return io.substrait.proto.Rel.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Rel build() { io.substrait.proto.Rel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Rel buildPartial() { io.substrait.proto.Rel result = new io.substrait.proto.Rel(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Rel result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(io.substrait.proto.Rel result) { result.relTypeCase_ = relTypeCase_; result.relType_ = this.relType_; if (relTypeCase_ == 1 && readBuilder_ != null) { result.relType_ = readBuilder_.build(); } if (relTypeCase_ == 2 && filterBuilder_ != null) { result.relType_ = filterBuilder_.build(); } if (relTypeCase_ == 3 && fetchBuilder_ != null) { result.relType_ = fetchBuilder_.build(); } if (relTypeCase_ == 4 && aggregateBuilder_ != null) { result.relType_ = aggregateBuilder_.build(); } if (relTypeCase_ == 5 && sortBuilder_ != null) { result.relType_ = sortBuilder_.build(); } if (relTypeCase_ == 6 && joinBuilder_ != null) { result.relType_ = joinBuilder_.build(); } if (relTypeCase_ == 7 && projectBuilder_ != null) { result.relType_ = projectBuilder_.build(); } if (relTypeCase_ == 8 && setBuilder_ != null) { result.relType_ = setBuilder_.build(); } if (relTypeCase_ == 9 && extensionSingleBuilder_ != null) { result.relType_ = extensionSingleBuilder_.build(); } if (relTypeCase_ == 10 && extensionMultiBuilder_ != null) { result.relType_ = extensionMultiBuilder_.build(); } if (relTypeCase_ == 11 && extensionLeafBuilder_ != null) { result.relType_ = extensionLeafBuilder_.build(); } if (relTypeCase_ == 12 && crossBuilder_ != null) { result.relType_ = crossBuilder_.build(); } if (relTypeCase_ == 21 && referenceBuilder_ != null) { result.relType_ = referenceBuilder_.build(); } if (relTypeCase_ == 19 && writeBuilder_ != null) { result.relType_ = writeBuilder_.build(); } if (relTypeCase_ == 20 && ddlBuilder_ != null) { result.relType_ = ddlBuilder_.build(); } if (relTypeCase_ == 13 && hashJoinBuilder_ != null) { result.relType_ = hashJoinBuilder_.build(); } if (relTypeCase_ == 14 && mergeJoinBuilder_ != null) { result.relType_ = mergeJoinBuilder_.build(); } if (relTypeCase_ == 18 && nestedLoopJoinBuilder_ != null) { result.relType_ = nestedLoopJoinBuilder_.build(); } if (relTypeCase_ == 17 && windowBuilder_ != null) { result.relType_ = windowBuilder_.build(); } if (relTypeCase_ == 15 && exchangeBuilder_ != null) { result.relType_ = exchangeBuilder_.build(); } if (relTypeCase_ == 16 && expandBuilder_ != null) { result.relType_ = expandBuilder_.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.Rel) { return mergeFrom((io.substrait.proto.Rel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Rel other) { if (other == io.substrait.proto.Rel.getDefaultInstance()) return this; switch (other.getRelTypeCase()) { case READ: { mergeRead(other.getRead()); break; } case FILTER: { mergeFilter(other.getFilter()); break; } case FETCH: { mergeFetch(other.getFetch()); break; } case AGGREGATE: { mergeAggregate(other.getAggregate()); break; } case SORT: { mergeSort(other.getSort()); break; } case JOIN: { mergeJoin(other.getJoin()); break; } case PROJECT: { mergeProject(other.getProject()); break; } case SET: { mergeSet(other.getSet()); break; } case EXTENSION_SINGLE: { mergeExtensionSingle(other.getExtensionSingle()); break; } case EXTENSION_MULTI: { mergeExtensionMulti(other.getExtensionMulti()); break; } case EXTENSION_LEAF: { mergeExtensionLeaf(other.getExtensionLeaf()); break; } case CROSS: { mergeCross(other.getCross()); break; } case REFERENCE: { mergeReference(other.getReference()); break; } case WRITE: { mergeWrite(other.getWrite()); break; } case DDL: { mergeDdl(other.getDdl()); break; } case HASH_JOIN: { mergeHashJoin(other.getHashJoin()); break; } case MERGE_JOIN: { mergeMergeJoin(other.getMergeJoin()); break; } case NESTED_LOOP_JOIN: { mergeNestedLoopJoin(other.getNestedLoopJoin()); break; } case WINDOW: { mergeWindow(other.getWindow()); break; } case EXCHANGE: { mergeExchange(other.getExchange()); break; } case EXPAND: { mergeExpand(other.getExpand()); 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( getReadFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 1; break; } // case 10 case 18: { input.readMessage( getFilterFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 2; break; } // case 18 case 26: { input.readMessage( getFetchFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 3; break; } // case 26 case 34: { input.readMessage( getAggregateFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 4; break; } // case 34 case 42: { input.readMessage( getSortFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 5; break; } // case 42 case 50: { input.readMessage( getJoinFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 6; break; } // case 50 case 58: { input.readMessage( getProjectFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 7; break; } // case 58 case 66: { input.readMessage( getSetFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 8; break; } // case 66 case 74: { input.readMessage( getExtensionSingleFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 9; break; } // case 74 case 82: { input.readMessage( getExtensionMultiFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 10; break; } // case 82 case 90: { input.readMessage( getExtensionLeafFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 11; break; } // case 90 case 98: { input.readMessage( getCrossFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 12; break; } // case 98 case 106: { input.readMessage( getHashJoinFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 13; break; } // case 106 case 114: { input.readMessage( getMergeJoinFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 14; break; } // case 114 case 122: { input.readMessage( getExchangeFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 15; break; } // case 122 case 130: { input.readMessage( getExpandFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 16; break; } // case 130 case 138: { input.readMessage( getWindowFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 17; break; } // case 138 case 146: { input.readMessage( getNestedLoopJoinFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 18; break; } // case 146 case 154: { input.readMessage( getWriteFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 19; break; } // case 154 case 162: { input.readMessage( getDdlFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 20; break; } // case 162 case 170: { input.readMessage( getReferenceFieldBuilder().getBuilder(), extensionRegistry); relTypeCase_ = 21; break; } // case 170 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.ReadRel, io.substrait.proto.ReadRel.Builder, io.substrait.proto.ReadRelOrBuilder> readBuilder_; /** * .substrait.ReadRel read = 1; * @return Whether the read field is set. */ @java.lang.Override public boolean hasRead() { return relTypeCase_ == 1; } /** * .substrait.ReadRel read = 1; * @return The read. */ @java.lang.Override public io.substrait.proto.ReadRel getRead() { if (readBuilder_ == null) { if (relTypeCase_ == 1) { return (io.substrait.proto.ReadRel) relType_; } return io.substrait.proto.ReadRel.getDefaultInstance(); } else { if (relTypeCase_ == 1) { return readBuilder_.getMessage(); } return io.substrait.proto.ReadRel.getDefaultInstance(); } } /** * .substrait.ReadRel read = 1; */ public Builder setRead(io.substrait.proto.ReadRel value) { if (readBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { readBuilder_.setMessage(value); } relTypeCase_ = 1; return this; } /** * .substrait.ReadRel read = 1; */ public Builder setRead( io.substrait.proto.ReadRel.Builder builderForValue) { if (readBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { readBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 1; return this; } /** * .substrait.ReadRel read = 1; */ public Builder mergeRead(io.substrait.proto.ReadRel value) { if (readBuilder_ == null) { if (relTypeCase_ == 1 && relType_ != io.substrait.proto.ReadRel.getDefaultInstance()) { relType_ = io.substrait.proto.ReadRel.newBuilder((io.substrait.proto.ReadRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 1) { readBuilder_.mergeFrom(value); } else { readBuilder_.setMessage(value); } } relTypeCase_ = 1; return this; } /** * .substrait.ReadRel read = 1; */ public Builder clearRead() { if (readBuilder_ == null) { if (relTypeCase_ == 1) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 1) { relTypeCase_ = 0; relType_ = null; } readBuilder_.clear(); } return this; } /** * .substrait.ReadRel read = 1; */ public io.substrait.proto.ReadRel.Builder getReadBuilder() { return getReadFieldBuilder().getBuilder(); } /** * .substrait.ReadRel read = 1; */ @java.lang.Override public io.substrait.proto.ReadRelOrBuilder getReadOrBuilder() { if ((relTypeCase_ == 1) && (readBuilder_ != null)) { return readBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 1) { return (io.substrait.proto.ReadRel) relType_; } return io.substrait.proto.ReadRel.getDefaultInstance(); } } /** * .substrait.ReadRel read = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ReadRel, io.substrait.proto.ReadRel.Builder, io.substrait.proto.ReadRelOrBuilder> getReadFieldBuilder() { if (readBuilder_ == null) { if (!(relTypeCase_ == 1)) { relType_ = io.substrait.proto.ReadRel.getDefaultInstance(); } readBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ReadRel, io.substrait.proto.ReadRel.Builder, io.substrait.proto.ReadRelOrBuilder>( (io.substrait.proto.ReadRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 1; onChanged(); return readBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.FilterRel, io.substrait.proto.FilterRel.Builder, io.substrait.proto.FilterRelOrBuilder> filterBuilder_; /** * .substrait.FilterRel filter = 2; * @return Whether the filter field is set. */ @java.lang.Override public boolean hasFilter() { return relTypeCase_ == 2; } /** * .substrait.FilterRel filter = 2; * @return The filter. */ @java.lang.Override public io.substrait.proto.FilterRel getFilter() { if (filterBuilder_ == null) { if (relTypeCase_ == 2) { return (io.substrait.proto.FilterRel) relType_; } return io.substrait.proto.FilterRel.getDefaultInstance(); } else { if (relTypeCase_ == 2) { return filterBuilder_.getMessage(); } return io.substrait.proto.FilterRel.getDefaultInstance(); } } /** * .substrait.FilterRel filter = 2; */ public Builder setFilter(io.substrait.proto.FilterRel value) { if (filterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { filterBuilder_.setMessage(value); } relTypeCase_ = 2; return this; } /** * .substrait.FilterRel filter = 2; */ public Builder setFilter( io.substrait.proto.FilterRel.Builder builderForValue) { if (filterBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { filterBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 2; return this; } /** * .substrait.FilterRel filter = 2; */ public Builder mergeFilter(io.substrait.proto.FilterRel value) { if (filterBuilder_ == null) { if (relTypeCase_ == 2 && relType_ != io.substrait.proto.FilterRel.getDefaultInstance()) { relType_ = io.substrait.proto.FilterRel.newBuilder((io.substrait.proto.FilterRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 2) { filterBuilder_.mergeFrom(value); } else { filterBuilder_.setMessage(value); } } relTypeCase_ = 2; return this; } /** * .substrait.FilterRel filter = 2; */ public Builder clearFilter() { if (filterBuilder_ == null) { if (relTypeCase_ == 2) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 2) { relTypeCase_ = 0; relType_ = null; } filterBuilder_.clear(); } return this; } /** * .substrait.FilterRel filter = 2; */ public io.substrait.proto.FilterRel.Builder getFilterBuilder() { return getFilterFieldBuilder().getBuilder(); } /** * .substrait.FilterRel filter = 2; */ @java.lang.Override public io.substrait.proto.FilterRelOrBuilder getFilterOrBuilder() { if ((relTypeCase_ == 2) && (filterBuilder_ != null)) { return filterBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 2) { return (io.substrait.proto.FilterRel) relType_; } return io.substrait.proto.FilterRel.getDefaultInstance(); } } /** * .substrait.FilterRel filter = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.FilterRel, io.substrait.proto.FilterRel.Builder, io.substrait.proto.FilterRelOrBuilder> getFilterFieldBuilder() { if (filterBuilder_ == null) { if (!(relTypeCase_ == 2)) { relType_ = io.substrait.proto.FilterRel.getDefaultInstance(); } filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.FilterRel, io.substrait.proto.FilterRel.Builder, io.substrait.proto.FilterRelOrBuilder>( (io.substrait.proto.FilterRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 2; onChanged(); return filterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.FetchRel, io.substrait.proto.FetchRel.Builder, io.substrait.proto.FetchRelOrBuilder> fetchBuilder_; /** * .substrait.FetchRel fetch = 3; * @return Whether the fetch field is set. */ @java.lang.Override public boolean hasFetch() { return relTypeCase_ == 3; } /** * .substrait.FetchRel fetch = 3; * @return The fetch. */ @java.lang.Override public io.substrait.proto.FetchRel getFetch() { if (fetchBuilder_ == null) { if (relTypeCase_ == 3) { return (io.substrait.proto.FetchRel) relType_; } return io.substrait.proto.FetchRel.getDefaultInstance(); } else { if (relTypeCase_ == 3) { return fetchBuilder_.getMessage(); } return io.substrait.proto.FetchRel.getDefaultInstance(); } } /** * .substrait.FetchRel fetch = 3; */ public Builder setFetch(io.substrait.proto.FetchRel value) { if (fetchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { fetchBuilder_.setMessage(value); } relTypeCase_ = 3; return this; } /** * .substrait.FetchRel fetch = 3; */ public Builder setFetch( io.substrait.proto.FetchRel.Builder builderForValue) { if (fetchBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { fetchBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 3; return this; } /** * .substrait.FetchRel fetch = 3; */ public Builder mergeFetch(io.substrait.proto.FetchRel value) { if (fetchBuilder_ == null) { if (relTypeCase_ == 3 && relType_ != io.substrait.proto.FetchRel.getDefaultInstance()) { relType_ = io.substrait.proto.FetchRel.newBuilder((io.substrait.proto.FetchRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 3) { fetchBuilder_.mergeFrom(value); } else { fetchBuilder_.setMessage(value); } } relTypeCase_ = 3; return this; } /** * .substrait.FetchRel fetch = 3; */ public Builder clearFetch() { if (fetchBuilder_ == null) { if (relTypeCase_ == 3) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 3) { relTypeCase_ = 0; relType_ = null; } fetchBuilder_.clear(); } return this; } /** * .substrait.FetchRel fetch = 3; */ public io.substrait.proto.FetchRel.Builder getFetchBuilder() { return getFetchFieldBuilder().getBuilder(); } /** * .substrait.FetchRel fetch = 3; */ @java.lang.Override public io.substrait.proto.FetchRelOrBuilder getFetchOrBuilder() { if ((relTypeCase_ == 3) && (fetchBuilder_ != null)) { return fetchBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 3) { return (io.substrait.proto.FetchRel) relType_; } return io.substrait.proto.FetchRel.getDefaultInstance(); } } /** * .substrait.FetchRel fetch = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.FetchRel, io.substrait.proto.FetchRel.Builder, io.substrait.proto.FetchRelOrBuilder> getFetchFieldBuilder() { if (fetchBuilder_ == null) { if (!(relTypeCase_ == 3)) { relType_ = io.substrait.proto.FetchRel.getDefaultInstance(); } fetchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.FetchRel, io.substrait.proto.FetchRel.Builder, io.substrait.proto.FetchRelOrBuilder>( (io.substrait.proto.FetchRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 3; onChanged(); return fetchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AggregateRel, io.substrait.proto.AggregateRel.Builder, io.substrait.proto.AggregateRelOrBuilder> aggregateBuilder_; /** * .substrait.AggregateRel aggregate = 4; * @return Whether the aggregate field is set. */ @java.lang.Override public boolean hasAggregate() { return relTypeCase_ == 4; } /** * .substrait.AggregateRel aggregate = 4; * @return The aggregate. */ @java.lang.Override public io.substrait.proto.AggregateRel getAggregate() { if (aggregateBuilder_ == null) { if (relTypeCase_ == 4) { return (io.substrait.proto.AggregateRel) relType_; } return io.substrait.proto.AggregateRel.getDefaultInstance(); } else { if (relTypeCase_ == 4) { return aggregateBuilder_.getMessage(); } return io.substrait.proto.AggregateRel.getDefaultInstance(); } } /** * .substrait.AggregateRel aggregate = 4; */ public Builder setAggregate(io.substrait.proto.AggregateRel value) { if (aggregateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { aggregateBuilder_.setMessage(value); } relTypeCase_ = 4; return this; } /** * .substrait.AggregateRel aggregate = 4; */ public Builder setAggregate( io.substrait.proto.AggregateRel.Builder builderForValue) { if (aggregateBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { aggregateBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 4; return this; } /** * .substrait.AggregateRel aggregate = 4; */ public Builder mergeAggregate(io.substrait.proto.AggregateRel value) { if (aggregateBuilder_ == null) { if (relTypeCase_ == 4 && relType_ != io.substrait.proto.AggregateRel.getDefaultInstance()) { relType_ = io.substrait.proto.AggregateRel.newBuilder((io.substrait.proto.AggregateRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 4) { aggregateBuilder_.mergeFrom(value); } else { aggregateBuilder_.setMessage(value); } } relTypeCase_ = 4; return this; } /** * .substrait.AggregateRel aggregate = 4; */ public Builder clearAggregate() { if (aggregateBuilder_ == null) { if (relTypeCase_ == 4) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 4) { relTypeCase_ = 0; relType_ = null; } aggregateBuilder_.clear(); } return this; } /** * .substrait.AggregateRel aggregate = 4; */ public io.substrait.proto.AggregateRel.Builder getAggregateBuilder() { return getAggregateFieldBuilder().getBuilder(); } /** * .substrait.AggregateRel aggregate = 4; */ @java.lang.Override public io.substrait.proto.AggregateRelOrBuilder getAggregateOrBuilder() { if ((relTypeCase_ == 4) && (aggregateBuilder_ != null)) { return aggregateBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 4) { return (io.substrait.proto.AggregateRel) relType_; } return io.substrait.proto.AggregateRel.getDefaultInstance(); } } /** * .substrait.AggregateRel aggregate = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AggregateRel, io.substrait.proto.AggregateRel.Builder, io.substrait.proto.AggregateRelOrBuilder> getAggregateFieldBuilder() { if (aggregateBuilder_ == null) { if (!(relTypeCase_ == 4)) { relType_ = io.substrait.proto.AggregateRel.getDefaultInstance(); } aggregateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AggregateRel, io.substrait.proto.AggregateRel.Builder, io.substrait.proto.AggregateRelOrBuilder>( (io.substrait.proto.AggregateRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 4; onChanged(); return aggregateBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.SortRel, io.substrait.proto.SortRel.Builder, io.substrait.proto.SortRelOrBuilder> sortBuilder_; /** * .substrait.SortRel sort = 5; * @return Whether the sort field is set. */ @java.lang.Override public boolean hasSort() { return relTypeCase_ == 5; } /** * .substrait.SortRel sort = 5; * @return The sort. */ @java.lang.Override public io.substrait.proto.SortRel getSort() { if (sortBuilder_ == null) { if (relTypeCase_ == 5) { return (io.substrait.proto.SortRel) relType_; } return io.substrait.proto.SortRel.getDefaultInstance(); } else { if (relTypeCase_ == 5) { return sortBuilder_.getMessage(); } return io.substrait.proto.SortRel.getDefaultInstance(); } } /** * .substrait.SortRel sort = 5; */ public Builder setSort(io.substrait.proto.SortRel value) { if (sortBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { sortBuilder_.setMessage(value); } relTypeCase_ = 5; return this; } /** * .substrait.SortRel sort = 5; */ public Builder setSort( io.substrait.proto.SortRel.Builder builderForValue) { if (sortBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { sortBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 5; return this; } /** * .substrait.SortRel sort = 5; */ public Builder mergeSort(io.substrait.proto.SortRel value) { if (sortBuilder_ == null) { if (relTypeCase_ == 5 && relType_ != io.substrait.proto.SortRel.getDefaultInstance()) { relType_ = io.substrait.proto.SortRel.newBuilder((io.substrait.proto.SortRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 5) { sortBuilder_.mergeFrom(value); } else { sortBuilder_.setMessage(value); } } relTypeCase_ = 5; return this; } /** * .substrait.SortRel sort = 5; */ public Builder clearSort() { if (sortBuilder_ == null) { if (relTypeCase_ == 5) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 5) { relTypeCase_ = 0; relType_ = null; } sortBuilder_.clear(); } return this; } /** * .substrait.SortRel sort = 5; */ public io.substrait.proto.SortRel.Builder getSortBuilder() { return getSortFieldBuilder().getBuilder(); } /** * .substrait.SortRel sort = 5; */ @java.lang.Override public io.substrait.proto.SortRelOrBuilder getSortOrBuilder() { if ((relTypeCase_ == 5) && (sortBuilder_ != null)) { return sortBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 5) { return (io.substrait.proto.SortRel) relType_; } return io.substrait.proto.SortRel.getDefaultInstance(); } } /** * .substrait.SortRel sort = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.SortRel, io.substrait.proto.SortRel.Builder, io.substrait.proto.SortRelOrBuilder> getSortFieldBuilder() { if (sortBuilder_ == null) { if (!(relTypeCase_ == 5)) { relType_ = io.substrait.proto.SortRel.getDefaultInstance(); } sortBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.SortRel, io.substrait.proto.SortRel.Builder, io.substrait.proto.SortRelOrBuilder>( (io.substrait.proto.SortRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 5; onChanged(); return sortBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.JoinRel, io.substrait.proto.JoinRel.Builder, io.substrait.proto.JoinRelOrBuilder> joinBuilder_; /** * .substrait.JoinRel join = 6; * @return Whether the join field is set. */ @java.lang.Override public boolean hasJoin() { return relTypeCase_ == 6; } /** * .substrait.JoinRel join = 6; * @return The join. */ @java.lang.Override public io.substrait.proto.JoinRel getJoin() { if (joinBuilder_ == null) { if (relTypeCase_ == 6) { return (io.substrait.proto.JoinRel) relType_; } return io.substrait.proto.JoinRel.getDefaultInstance(); } else { if (relTypeCase_ == 6) { return joinBuilder_.getMessage(); } return io.substrait.proto.JoinRel.getDefaultInstance(); } } /** * .substrait.JoinRel join = 6; */ public Builder setJoin(io.substrait.proto.JoinRel value) { if (joinBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { joinBuilder_.setMessage(value); } relTypeCase_ = 6; return this; } /** * .substrait.JoinRel join = 6; */ public Builder setJoin( io.substrait.proto.JoinRel.Builder builderForValue) { if (joinBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { joinBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 6; return this; } /** * .substrait.JoinRel join = 6; */ public Builder mergeJoin(io.substrait.proto.JoinRel value) { if (joinBuilder_ == null) { if (relTypeCase_ == 6 && relType_ != io.substrait.proto.JoinRel.getDefaultInstance()) { relType_ = io.substrait.proto.JoinRel.newBuilder((io.substrait.proto.JoinRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 6) { joinBuilder_.mergeFrom(value); } else { joinBuilder_.setMessage(value); } } relTypeCase_ = 6; return this; } /** * .substrait.JoinRel join = 6; */ public Builder clearJoin() { if (joinBuilder_ == null) { if (relTypeCase_ == 6) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 6) { relTypeCase_ = 0; relType_ = null; } joinBuilder_.clear(); } return this; } /** * .substrait.JoinRel join = 6; */ public io.substrait.proto.JoinRel.Builder getJoinBuilder() { return getJoinFieldBuilder().getBuilder(); } /** * .substrait.JoinRel join = 6; */ @java.lang.Override public io.substrait.proto.JoinRelOrBuilder getJoinOrBuilder() { if ((relTypeCase_ == 6) && (joinBuilder_ != null)) { return joinBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 6) { return (io.substrait.proto.JoinRel) relType_; } return io.substrait.proto.JoinRel.getDefaultInstance(); } } /** * .substrait.JoinRel join = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.JoinRel, io.substrait.proto.JoinRel.Builder, io.substrait.proto.JoinRelOrBuilder> getJoinFieldBuilder() { if (joinBuilder_ == null) { if (!(relTypeCase_ == 6)) { relType_ = io.substrait.proto.JoinRel.getDefaultInstance(); } joinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.JoinRel, io.substrait.proto.JoinRel.Builder, io.substrait.proto.JoinRelOrBuilder>( (io.substrait.proto.JoinRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 6; onChanged(); return joinBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ProjectRel, io.substrait.proto.ProjectRel.Builder, io.substrait.proto.ProjectRelOrBuilder> projectBuilder_; /** * .substrait.ProjectRel project = 7; * @return Whether the project field is set. */ @java.lang.Override public boolean hasProject() { return relTypeCase_ == 7; } /** * .substrait.ProjectRel project = 7; * @return The project. */ @java.lang.Override public io.substrait.proto.ProjectRel getProject() { if (projectBuilder_ == null) { if (relTypeCase_ == 7) { return (io.substrait.proto.ProjectRel) relType_; } return io.substrait.proto.ProjectRel.getDefaultInstance(); } else { if (relTypeCase_ == 7) { return projectBuilder_.getMessage(); } return io.substrait.proto.ProjectRel.getDefaultInstance(); } } /** * .substrait.ProjectRel project = 7; */ public Builder setProject(io.substrait.proto.ProjectRel value) { if (projectBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { projectBuilder_.setMessage(value); } relTypeCase_ = 7; return this; } /** * .substrait.ProjectRel project = 7; */ public Builder setProject( io.substrait.proto.ProjectRel.Builder builderForValue) { if (projectBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { projectBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 7; return this; } /** * .substrait.ProjectRel project = 7; */ public Builder mergeProject(io.substrait.proto.ProjectRel value) { if (projectBuilder_ == null) { if (relTypeCase_ == 7 && relType_ != io.substrait.proto.ProjectRel.getDefaultInstance()) { relType_ = io.substrait.proto.ProjectRel.newBuilder((io.substrait.proto.ProjectRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 7) { projectBuilder_.mergeFrom(value); } else { projectBuilder_.setMessage(value); } } relTypeCase_ = 7; return this; } /** * .substrait.ProjectRel project = 7; */ public Builder clearProject() { if (projectBuilder_ == null) { if (relTypeCase_ == 7) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 7) { relTypeCase_ = 0; relType_ = null; } projectBuilder_.clear(); } return this; } /** * .substrait.ProjectRel project = 7; */ public io.substrait.proto.ProjectRel.Builder getProjectBuilder() { return getProjectFieldBuilder().getBuilder(); } /** * .substrait.ProjectRel project = 7; */ @java.lang.Override public io.substrait.proto.ProjectRelOrBuilder getProjectOrBuilder() { if ((relTypeCase_ == 7) && (projectBuilder_ != null)) { return projectBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 7) { return (io.substrait.proto.ProjectRel) relType_; } return io.substrait.proto.ProjectRel.getDefaultInstance(); } } /** * .substrait.ProjectRel project = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ProjectRel, io.substrait.proto.ProjectRel.Builder, io.substrait.proto.ProjectRelOrBuilder> getProjectFieldBuilder() { if (projectBuilder_ == null) { if (!(relTypeCase_ == 7)) { relType_ = io.substrait.proto.ProjectRel.getDefaultInstance(); } projectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ProjectRel, io.substrait.proto.ProjectRel.Builder, io.substrait.proto.ProjectRelOrBuilder>( (io.substrait.proto.ProjectRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 7; onChanged(); return projectBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.SetRel, io.substrait.proto.SetRel.Builder, io.substrait.proto.SetRelOrBuilder> setBuilder_; /** * .substrait.SetRel set = 8; * @return Whether the set field is set. */ @java.lang.Override public boolean hasSet() { return relTypeCase_ == 8; } /** * .substrait.SetRel set = 8; * @return The set. */ @java.lang.Override public io.substrait.proto.SetRel getSet() { if (setBuilder_ == null) { if (relTypeCase_ == 8) { return (io.substrait.proto.SetRel) relType_; } return io.substrait.proto.SetRel.getDefaultInstance(); } else { if (relTypeCase_ == 8) { return setBuilder_.getMessage(); } return io.substrait.proto.SetRel.getDefaultInstance(); } } /** * .substrait.SetRel set = 8; */ public Builder setSet(io.substrait.proto.SetRel value) { if (setBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { setBuilder_.setMessage(value); } relTypeCase_ = 8; return this; } /** * .substrait.SetRel set = 8; */ public Builder setSet( io.substrait.proto.SetRel.Builder builderForValue) { if (setBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { setBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 8; return this; } /** * .substrait.SetRel set = 8; */ public Builder mergeSet(io.substrait.proto.SetRel value) { if (setBuilder_ == null) { if (relTypeCase_ == 8 && relType_ != io.substrait.proto.SetRel.getDefaultInstance()) { relType_ = io.substrait.proto.SetRel.newBuilder((io.substrait.proto.SetRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 8) { setBuilder_.mergeFrom(value); } else { setBuilder_.setMessage(value); } } relTypeCase_ = 8; return this; } /** * .substrait.SetRel set = 8; */ public Builder clearSet() { if (setBuilder_ == null) { if (relTypeCase_ == 8) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 8) { relTypeCase_ = 0; relType_ = null; } setBuilder_.clear(); } return this; } /** * .substrait.SetRel set = 8; */ public io.substrait.proto.SetRel.Builder getSetBuilder() { return getSetFieldBuilder().getBuilder(); } /** * .substrait.SetRel set = 8; */ @java.lang.Override public io.substrait.proto.SetRelOrBuilder getSetOrBuilder() { if ((relTypeCase_ == 8) && (setBuilder_ != null)) { return setBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 8) { return (io.substrait.proto.SetRel) relType_; } return io.substrait.proto.SetRel.getDefaultInstance(); } } /** * .substrait.SetRel set = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.SetRel, io.substrait.proto.SetRel.Builder, io.substrait.proto.SetRelOrBuilder> getSetFieldBuilder() { if (setBuilder_ == null) { if (!(relTypeCase_ == 8)) { relType_ = io.substrait.proto.SetRel.getDefaultInstance(); } setBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.SetRel, io.substrait.proto.SetRel.Builder, io.substrait.proto.SetRelOrBuilder>( (io.substrait.proto.SetRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 8; onChanged(); return setBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExtensionSingleRel, io.substrait.proto.ExtensionSingleRel.Builder, io.substrait.proto.ExtensionSingleRelOrBuilder> extensionSingleBuilder_; /** * .substrait.ExtensionSingleRel extension_single = 9; * @return Whether the extensionSingle field is set. */ @java.lang.Override public boolean hasExtensionSingle() { return relTypeCase_ == 9; } /** * .substrait.ExtensionSingleRel extension_single = 9; * @return The extensionSingle. */ @java.lang.Override public io.substrait.proto.ExtensionSingleRel getExtensionSingle() { if (extensionSingleBuilder_ == null) { if (relTypeCase_ == 9) { return (io.substrait.proto.ExtensionSingleRel) relType_; } return io.substrait.proto.ExtensionSingleRel.getDefaultInstance(); } else { if (relTypeCase_ == 9) { return extensionSingleBuilder_.getMessage(); } return io.substrait.proto.ExtensionSingleRel.getDefaultInstance(); } } /** * .substrait.ExtensionSingleRel extension_single = 9; */ public Builder setExtensionSingle(io.substrait.proto.ExtensionSingleRel value) { if (extensionSingleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { extensionSingleBuilder_.setMessage(value); } relTypeCase_ = 9; return this; } /** * .substrait.ExtensionSingleRel extension_single = 9; */ public Builder setExtensionSingle( io.substrait.proto.ExtensionSingleRel.Builder builderForValue) { if (extensionSingleBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { extensionSingleBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 9; return this; } /** * .substrait.ExtensionSingleRel extension_single = 9; */ public Builder mergeExtensionSingle(io.substrait.proto.ExtensionSingleRel value) { if (extensionSingleBuilder_ == null) { if (relTypeCase_ == 9 && relType_ != io.substrait.proto.ExtensionSingleRel.getDefaultInstance()) { relType_ = io.substrait.proto.ExtensionSingleRel.newBuilder((io.substrait.proto.ExtensionSingleRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 9) { extensionSingleBuilder_.mergeFrom(value); } else { extensionSingleBuilder_.setMessage(value); } } relTypeCase_ = 9; return this; } /** * .substrait.ExtensionSingleRel extension_single = 9; */ public Builder clearExtensionSingle() { if (extensionSingleBuilder_ == null) { if (relTypeCase_ == 9) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 9) { relTypeCase_ = 0; relType_ = null; } extensionSingleBuilder_.clear(); } return this; } /** * .substrait.ExtensionSingleRel extension_single = 9; */ public io.substrait.proto.ExtensionSingleRel.Builder getExtensionSingleBuilder() { return getExtensionSingleFieldBuilder().getBuilder(); } /** * .substrait.ExtensionSingleRel extension_single = 9; */ @java.lang.Override public io.substrait.proto.ExtensionSingleRelOrBuilder getExtensionSingleOrBuilder() { if ((relTypeCase_ == 9) && (extensionSingleBuilder_ != null)) { return extensionSingleBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 9) { return (io.substrait.proto.ExtensionSingleRel) relType_; } return io.substrait.proto.ExtensionSingleRel.getDefaultInstance(); } } /** * .substrait.ExtensionSingleRel extension_single = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExtensionSingleRel, io.substrait.proto.ExtensionSingleRel.Builder, io.substrait.proto.ExtensionSingleRelOrBuilder> getExtensionSingleFieldBuilder() { if (extensionSingleBuilder_ == null) { if (!(relTypeCase_ == 9)) { relType_ = io.substrait.proto.ExtensionSingleRel.getDefaultInstance(); } extensionSingleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExtensionSingleRel, io.substrait.proto.ExtensionSingleRel.Builder, io.substrait.proto.ExtensionSingleRelOrBuilder>( (io.substrait.proto.ExtensionSingleRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 9; onChanged(); return extensionSingleBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExtensionMultiRel, io.substrait.proto.ExtensionMultiRel.Builder, io.substrait.proto.ExtensionMultiRelOrBuilder> extensionMultiBuilder_; /** * .substrait.ExtensionMultiRel extension_multi = 10; * @return Whether the extensionMulti field is set. */ @java.lang.Override public boolean hasExtensionMulti() { return relTypeCase_ == 10; } /** * .substrait.ExtensionMultiRel extension_multi = 10; * @return The extensionMulti. */ @java.lang.Override public io.substrait.proto.ExtensionMultiRel getExtensionMulti() { if (extensionMultiBuilder_ == null) { if (relTypeCase_ == 10) { return (io.substrait.proto.ExtensionMultiRel) relType_; } return io.substrait.proto.ExtensionMultiRel.getDefaultInstance(); } else { if (relTypeCase_ == 10) { return extensionMultiBuilder_.getMessage(); } return io.substrait.proto.ExtensionMultiRel.getDefaultInstance(); } } /** * .substrait.ExtensionMultiRel extension_multi = 10; */ public Builder setExtensionMulti(io.substrait.proto.ExtensionMultiRel value) { if (extensionMultiBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { extensionMultiBuilder_.setMessage(value); } relTypeCase_ = 10; return this; } /** * .substrait.ExtensionMultiRel extension_multi = 10; */ public Builder setExtensionMulti( io.substrait.proto.ExtensionMultiRel.Builder builderForValue) { if (extensionMultiBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { extensionMultiBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 10; return this; } /** * .substrait.ExtensionMultiRel extension_multi = 10; */ public Builder mergeExtensionMulti(io.substrait.proto.ExtensionMultiRel value) { if (extensionMultiBuilder_ == null) { if (relTypeCase_ == 10 && relType_ != io.substrait.proto.ExtensionMultiRel.getDefaultInstance()) { relType_ = io.substrait.proto.ExtensionMultiRel.newBuilder((io.substrait.proto.ExtensionMultiRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 10) { extensionMultiBuilder_.mergeFrom(value); } else { extensionMultiBuilder_.setMessage(value); } } relTypeCase_ = 10; return this; } /** * .substrait.ExtensionMultiRel extension_multi = 10; */ public Builder clearExtensionMulti() { if (extensionMultiBuilder_ == null) { if (relTypeCase_ == 10) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 10) { relTypeCase_ = 0; relType_ = null; } extensionMultiBuilder_.clear(); } return this; } /** * .substrait.ExtensionMultiRel extension_multi = 10; */ public io.substrait.proto.ExtensionMultiRel.Builder getExtensionMultiBuilder() { return getExtensionMultiFieldBuilder().getBuilder(); } /** * .substrait.ExtensionMultiRel extension_multi = 10; */ @java.lang.Override public io.substrait.proto.ExtensionMultiRelOrBuilder getExtensionMultiOrBuilder() { if ((relTypeCase_ == 10) && (extensionMultiBuilder_ != null)) { return extensionMultiBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 10) { return (io.substrait.proto.ExtensionMultiRel) relType_; } return io.substrait.proto.ExtensionMultiRel.getDefaultInstance(); } } /** * .substrait.ExtensionMultiRel extension_multi = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExtensionMultiRel, io.substrait.proto.ExtensionMultiRel.Builder, io.substrait.proto.ExtensionMultiRelOrBuilder> getExtensionMultiFieldBuilder() { if (extensionMultiBuilder_ == null) { if (!(relTypeCase_ == 10)) { relType_ = io.substrait.proto.ExtensionMultiRel.getDefaultInstance(); } extensionMultiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExtensionMultiRel, io.substrait.proto.ExtensionMultiRel.Builder, io.substrait.proto.ExtensionMultiRelOrBuilder>( (io.substrait.proto.ExtensionMultiRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 10; onChanged(); return extensionMultiBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExtensionLeafRel, io.substrait.proto.ExtensionLeafRel.Builder, io.substrait.proto.ExtensionLeafRelOrBuilder> extensionLeafBuilder_; /** * .substrait.ExtensionLeafRel extension_leaf = 11; * @return Whether the extensionLeaf field is set. */ @java.lang.Override public boolean hasExtensionLeaf() { return relTypeCase_ == 11; } /** * .substrait.ExtensionLeafRel extension_leaf = 11; * @return The extensionLeaf. */ @java.lang.Override public io.substrait.proto.ExtensionLeafRel getExtensionLeaf() { if (extensionLeafBuilder_ == null) { if (relTypeCase_ == 11) { return (io.substrait.proto.ExtensionLeafRel) relType_; } return io.substrait.proto.ExtensionLeafRel.getDefaultInstance(); } else { if (relTypeCase_ == 11) { return extensionLeafBuilder_.getMessage(); } return io.substrait.proto.ExtensionLeafRel.getDefaultInstance(); } } /** * .substrait.ExtensionLeafRel extension_leaf = 11; */ public Builder setExtensionLeaf(io.substrait.proto.ExtensionLeafRel value) { if (extensionLeafBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { extensionLeafBuilder_.setMessage(value); } relTypeCase_ = 11; return this; } /** * .substrait.ExtensionLeafRel extension_leaf = 11; */ public Builder setExtensionLeaf( io.substrait.proto.ExtensionLeafRel.Builder builderForValue) { if (extensionLeafBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { extensionLeafBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 11; return this; } /** * .substrait.ExtensionLeafRel extension_leaf = 11; */ public Builder mergeExtensionLeaf(io.substrait.proto.ExtensionLeafRel value) { if (extensionLeafBuilder_ == null) { if (relTypeCase_ == 11 && relType_ != io.substrait.proto.ExtensionLeafRel.getDefaultInstance()) { relType_ = io.substrait.proto.ExtensionLeafRel.newBuilder((io.substrait.proto.ExtensionLeafRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 11) { extensionLeafBuilder_.mergeFrom(value); } else { extensionLeafBuilder_.setMessage(value); } } relTypeCase_ = 11; return this; } /** * .substrait.ExtensionLeafRel extension_leaf = 11; */ public Builder clearExtensionLeaf() { if (extensionLeafBuilder_ == null) { if (relTypeCase_ == 11) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 11) { relTypeCase_ = 0; relType_ = null; } extensionLeafBuilder_.clear(); } return this; } /** * .substrait.ExtensionLeafRel extension_leaf = 11; */ public io.substrait.proto.ExtensionLeafRel.Builder getExtensionLeafBuilder() { return getExtensionLeafFieldBuilder().getBuilder(); } /** * .substrait.ExtensionLeafRel extension_leaf = 11; */ @java.lang.Override public io.substrait.proto.ExtensionLeafRelOrBuilder getExtensionLeafOrBuilder() { if ((relTypeCase_ == 11) && (extensionLeafBuilder_ != null)) { return extensionLeafBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 11) { return (io.substrait.proto.ExtensionLeafRel) relType_; } return io.substrait.proto.ExtensionLeafRel.getDefaultInstance(); } } /** * .substrait.ExtensionLeafRel extension_leaf = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExtensionLeafRel, io.substrait.proto.ExtensionLeafRel.Builder, io.substrait.proto.ExtensionLeafRelOrBuilder> getExtensionLeafFieldBuilder() { if (extensionLeafBuilder_ == null) { if (!(relTypeCase_ == 11)) { relType_ = io.substrait.proto.ExtensionLeafRel.getDefaultInstance(); } extensionLeafBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExtensionLeafRel, io.substrait.proto.ExtensionLeafRel.Builder, io.substrait.proto.ExtensionLeafRelOrBuilder>( (io.substrait.proto.ExtensionLeafRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 11; onChanged(); return extensionLeafBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.CrossRel, io.substrait.proto.CrossRel.Builder, io.substrait.proto.CrossRelOrBuilder> crossBuilder_; /** * .substrait.CrossRel cross = 12; * @return Whether the cross field is set. */ @java.lang.Override public boolean hasCross() { return relTypeCase_ == 12; } /** * .substrait.CrossRel cross = 12; * @return The cross. */ @java.lang.Override public io.substrait.proto.CrossRel getCross() { if (crossBuilder_ == null) { if (relTypeCase_ == 12) { return (io.substrait.proto.CrossRel) relType_; } return io.substrait.proto.CrossRel.getDefaultInstance(); } else { if (relTypeCase_ == 12) { return crossBuilder_.getMessage(); } return io.substrait.proto.CrossRel.getDefaultInstance(); } } /** * .substrait.CrossRel cross = 12; */ public Builder setCross(io.substrait.proto.CrossRel value) { if (crossBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { crossBuilder_.setMessage(value); } relTypeCase_ = 12; return this; } /** * .substrait.CrossRel cross = 12; */ public Builder setCross( io.substrait.proto.CrossRel.Builder builderForValue) { if (crossBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { crossBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 12; return this; } /** * .substrait.CrossRel cross = 12; */ public Builder mergeCross(io.substrait.proto.CrossRel value) { if (crossBuilder_ == null) { if (relTypeCase_ == 12 && relType_ != io.substrait.proto.CrossRel.getDefaultInstance()) { relType_ = io.substrait.proto.CrossRel.newBuilder((io.substrait.proto.CrossRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 12) { crossBuilder_.mergeFrom(value); } else { crossBuilder_.setMessage(value); } } relTypeCase_ = 12; return this; } /** * .substrait.CrossRel cross = 12; */ public Builder clearCross() { if (crossBuilder_ == null) { if (relTypeCase_ == 12) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 12) { relTypeCase_ = 0; relType_ = null; } crossBuilder_.clear(); } return this; } /** * .substrait.CrossRel cross = 12; */ public io.substrait.proto.CrossRel.Builder getCrossBuilder() { return getCrossFieldBuilder().getBuilder(); } /** * .substrait.CrossRel cross = 12; */ @java.lang.Override public io.substrait.proto.CrossRelOrBuilder getCrossOrBuilder() { if ((relTypeCase_ == 12) && (crossBuilder_ != null)) { return crossBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 12) { return (io.substrait.proto.CrossRel) relType_; } return io.substrait.proto.CrossRel.getDefaultInstance(); } } /** * .substrait.CrossRel cross = 12; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.CrossRel, io.substrait.proto.CrossRel.Builder, io.substrait.proto.CrossRelOrBuilder> getCrossFieldBuilder() { if (crossBuilder_ == null) { if (!(relTypeCase_ == 12)) { relType_ = io.substrait.proto.CrossRel.getDefaultInstance(); } crossBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.CrossRel, io.substrait.proto.CrossRel.Builder, io.substrait.proto.CrossRelOrBuilder>( (io.substrait.proto.CrossRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 12; onChanged(); return crossBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ReferenceRel, io.substrait.proto.ReferenceRel.Builder, io.substrait.proto.ReferenceRelOrBuilder> referenceBuilder_; /** * .substrait.ReferenceRel reference = 21; * @return Whether the reference field is set. */ @java.lang.Override public boolean hasReference() { return relTypeCase_ == 21; } /** * .substrait.ReferenceRel reference = 21; * @return The reference. */ @java.lang.Override public io.substrait.proto.ReferenceRel getReference() { if (referenceBuilder_ == null) { if (relTypeCase_ == 21) { return (io.substrait.proto.ReferenceRel) relType_; } return io.substrait.proto.ReferenceRel.getDefaultInstance(); } else { if (relTypeCase_ == 21) { return referenceBuilder_.getMessage(); } return io.substrait.proto.ReferenceRel.getDefaultInstance(); } } /** * .substrait.ReferenceRel reference = 21; */ public Builder setReference(io.substrait.proto.ReferenceRel value) { if (referenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { referenceBuilder_.setMessage(value); } relTypeCase_ = 21; return this; } /** * .substrait.ReferenceRel reference = 21; */ public Builder setReference( io.substrait.proto.ReferenceRel.Builder builderForValue) { if (referenceBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { referenceBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 21; return this; } /** * .substrait.ReferenceRel reference = 21; */ public Builder mergeReference(io.substrait.proto.ReferenceRel value) { if (referenceBuilder_ == null) { if (relTypeCase_ == 21 && relType_ != io.substrait.proto.ReferenceRel.getDefaultInstance()) { relType_ = io.substrait.proto.ReferenceRel.newBuilder((io.substrait.proto.ReferenceRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 21) { referenceBuilder_.mergeFrom(value); } else { referenceBuilder_.setMessage(value); } } relTypeCase_ = 21; return this; } /** * .substrait.ReferenceRel reference = 21; */ public Builder clearReference() { if (referenceBuilder_ == null) { if (relTypeCase_ == 21) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 21) { relTypeCase_ = 0; relType_ = null; } referenceBuilder_.clear(); } return this; } /** * .substrait.ReferenceRel reference = 21; */ public io.substrait.proto.ReferenceRel.Builder getReferenceBuilder() { return getReferenceFieldBuilder().getBuilder(); } /** * .substrait.ReferenceRel reference = 21; */ @java.lang.Override public io.substrait.proto.ReferenceRelOrBuilder getReferenceOrBuilder() { if ((relTypeCase_ == 21) && (referenceBuilder_ != null)) { return referenceBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 21) { return (io.substrait.proto.ReferenceRel) relType_; } return io.substrait.proto.ReferenceRel.getDefaultInstance(); } } /** * .substrait.ReferenceRel reference = 21; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ReferenceRel, io.substrait.proto.ReferenceRel.Builder, io.substrait.proto.ReferenceRelOrBuilder> getReferenceFieldBuilder() { if (referenceBuilder_ == null) { if (!(relTypeCase_ == 21)) { relType_ = io.substrait.proto.ReferenceRel.getDefaultInstance(); } referenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ReferenceRel, io.substrait.proto.ReferenceRel.Builder, io.substrait.proto.ReferenceRelOrBuilder>( (io.substrait.proto.ReferenceRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 21; onChanged(); return referenceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.WriteRel, io.substrait.proto.WriteRel.Builder, io.substrait.proto.WriteRelOrBuilder> writeBuilder_; /** * .substrait.WriteRel write = 19; * @return Whether the write field is set. */ @java.lang.Override public boolean hasWrite() { return relTypeCase_ == 19; } /** * .substrait.WriteRel write = 19; * @return The write. */ @java.lang.Override public io.substrait.proto.WriteRel getWrite() { if (writeBuilder_ == null) { if (relTypeCase_ == 19) { return (io.substrait.proto.WriteRel) relType_; } return io.substrait.proto.WriteRel.getDefaultInstance(); } else { if (relTypeCase_ == 19) { return writeBuilder_.getMessage(); } return io.substrait.proto.WriteRel.getDefaultInstance(); } } /** * .substrait.WriteRel write = 19; */ public Builder setWrite(io.substrait.proto.WriteRel value) { if (writeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { writeBuilder_.setMessage(value); } relTypeCase_ = 19; return this; } /** * .substrait.WriteRel write = 19; */ public Builder setWrite( io.substrait.proto.WriteRel.Builder builderForValue) { if (writeBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { writeBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 19; return this; } /** * .substrait.WriteRel write = 19; */ public Builder mergeWrite(io.substrait.proto.WriteRel value) { if (writeBuilder_ == null) { if (relTypeCase_ == 19 && relType_ != io.substrait.proto.WriteRel.getDefaultInstance()) { relType_ = io.substrait.proto.WriteRel.newBuilder((io.substrait.proto.WriteRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 19) { writeBuilder_.mergeFrom(value); } else { writeBuilder_.setMessage(value); } } relTypeCase_ = 19; return this; } /** * .substrait.WriteRel write = 19; */ public Builder clearWrite() { if (writeBuilder_ == null) { if (relTypeCase_ == 19) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 19) { relTypeCase_ = 0; relType_ = null; } writeBuilder_.clear(); } return this; } /** * .substrait.WriteRel write = 19; */ public io.substrait.proto.WriteRel.Builder getWriteBuilder() { return getWriteFieldBuilder().getBuilder(); } /** * .substrait.WriteRel write = 19; */ @java.lang.Override public io.substrait.proto.WriteRelOrBuilder getWriteOrBuilder() { if ((relTypeCase_ == 19) && (writeBuilder_ != null)) { return writeBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 19) { return (io.substrait.proto.WriteRel) relType_; } return io.substrait.proto.WriteRel.getDefaultInstance(); } } /** * .substrait.WriteRel write = 19; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.WriteRel, io.substrait.proto.WriteRel.Builder, io.substrait.proto.WriteRelOrBuilder> getWriteFieldBuilder() { if (writeBuilder_ == null) { if (!(relTypeCase_ == 19)) { relType_ = io.substrait.proto.WriteRel.getDefaultInstance(); } writeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.WriteRel, io.substrait.proto.WriteRel.Builder, io.substrait.proto.WriteRelOrBuilder>( (io.substrait.proto.WriteRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 19; onChanged(); return writeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.DdlRel, io.substrait.proto.DdlRel.Builder, io.substrait.proto.DdlRelOrBuilder> ddlBuilder_; /** * .substrait.DdlRel ddl = 20; * @return Whether the ddl field is set. */ @java.lang.Override public boolean hasDdl() { return relTypeCase_ == 20; } /** * .substrait.DdlRel ddl = 20; * @return The ddl. */ @java.lang.Override public io.substrait.proto.DdlRel getDdl() { if (ddlBuilder_ == null) { if (relTypeCase_ == 20) { return (io.substrait.proto.DdlRel) relType_; } return io.substrait.proto.DdlRel.getDefaultInstance(); } else { if (relTypeCase_ == 20) { return ddlBuilder_.getMessage(); } return io.substrait.proto.DdlRel.getDefaultInstance(); } } /** * .substrait.DdlRel ddl = 20; */ public Builder setDdl(io.substrait.proto.DdlRel value) { if (ddlBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { ddlBuilder_.setMessage(value); } relTypeCase_ = 20; return this; } /** * .substrait.DdlRel ddl = 20; */ public Builder setDdl( io.substrait.proto.DdlRel.Builder builderForValue) { if (ddlBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { ddlBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 20; return this; } /** * .substrait.DdlRel ddl = 20; */ public Builder mergeDdl(io.substrait.proto.DdlRel value) { if (ddlBuilder_ == null) { if (relTypeCase_ == 20 && relType_ != io.substrait.proto.DdlRel.getDefaultInstance()) { relType_ = io.substrait.proto.DdlRel.newBuilder((io.substrait.proto.DdlRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 20) { ddlBuilder_.mergeFrom(value); } else { ddlBuilder_.setMessage(value); } } relTypeCase_ = 20; return this; } /** * .substrait.DdlRel ddl = 20; */ public Builder clearDdl() { if (ddlBuilder_ == null) { if (relTypeCase_ == 20) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 20) { relTypeCase_ = 0; relType_ = null; } ddlBuilder_.clear(); } return this; } /** * .substrait.DdlRel ddl = 20; */ public io.substrait.proto.DdlRel.Builder getDdlBuilder() { return getDdlFieldBuilder().getBuilder(); } /** * .substrait.DdlRel ddl = 20; */ @java.lang.Override public io.substrait.proto.DdlRelOrBuilder getDdlOrBuilder() { if ((relTypeCase_ == 20) && (ddlBuilder_ != null)) { return ddlBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 20) { return (io.substrait.proto.DdlRel) relType_; } return io.substrait.proto.DdlRel.getDefaultInstance(); } } /** * .substrait.DdlRel ddl = 20; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.DdlRel, io.substrait.proto.DdlRel.Builder, io.substrait.proto.DdlRelOrBuilder> getDdlFieldBuilder() { if (ddlBuilder_ == null) { if (!(relTypeCase_ == 20)) { relType_ = io.substrait.proto.DdlRel.getDefaultInstance(); } ddlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.DdlRel, io.substrait.proto.DdlRel.Builder, io.substrait.proto.DdlRelOrBuilder>( (io.substrait.proto.DdlRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 20; onChanged(); return ddlBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.HashJoinRel, io.substrait.proto.HashJoinRel.Builder, io.substrait.proto.HashJoinRelOrBuilder> hashJoinBuilder_; /** *
     * Physical relations
     * 
* * .substrait.HashJoinRel hash_join = 13; * @return Whether the hashJoin field is set. */ @java.lang.Override public boolean hasHashJoin() { return relTypeCase_ == 13; } /** *
     * Physical relations
     * 
* * .substrait.HashJoinRel hash_join = 13; * @return The hashJoin. */ @java.lang.Override public io.substrait.proto.HashJoinRel getHashJoin() { if (hashJoinBuilder_ == null) { if (relTypeCase_ == 13) { return (io.substrait.proto.HashJoinRel) relType_; } return io.substrait.proto.HashJoinRel.getDefaultInstance(); } else { if (relTypeCase_ == 13) { return hashJoinBuilder_.getMessage(); } return io.substrait.proto.HashJoinRel.getDefaultInstance(); } } /** *
     * Physical relations
     * 
* * .substrait.HashJoinRel hash_join = 13; */ public Builder setHashJoin(io.substrait.proto.HashJoinRel value) { if (hashJoinBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { hashJoinBuilder_.setMessage(value); } relTypeCase_ = 13; return this; } /** *
     * Physical relations
     * 
* * .substrait.HashJoinRel hash_join = 13; */ public Builder setHashJoin( io.substrait.proto.HashJoinRel.Builder builderForValue) { if (hashJoinBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { hashJoinBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 13; return this; } /** *
     * Physical relations
     * 
* * .substrait.HashJoinRel hash_join = 13; */ public Builder mergeHashJoin(io.substrait.proto.HashJoinRel value) { if (hashJoinBuilder_ == null) { if (relTypeCase_ == 13 && relType_ != io.substrait.proto.HashJoinRel.getDefaultInstance()) { relType_ = io.substrait.proto.HashJoinRel.newBuilder((io.substrait.proto.HashJoinRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 13) { hashJoinBuilder_.mergeFrom(value); } else { hashJoinBuilder_.setMessage(value); } } relTypeCase_ = 13; return this; } /** *
     * Physical relations
     * 
* * .substrait.HashJoinRel hash_join = 13; */ public Builder clearHashJoin() { if (hashJoinBuilder_ == null) { if (relTypeCase_ == 13) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 13) { relTypeCase_ = 0; relType_ = null; } hashJoinBuilder_.clear(); } return this; } /** *
     * Physical relations
     * 
* * .substrait.HashJoinRel hash_join = 13; */ public io.substrait.proto.HashJoinRel.Builder getHashJoinBuilder() { return getHashJoinFieldBuilder().getBuilder(); } /** *
     * Physical relations
     * 
* * .substrait.HashJoinRel hash_join = 13; */ @java.lang.Override public io.substrait.proto.HashJoinRelOrBuilder getHashJoinOrBuilder() { if ((relTypeCase_ == 13) && (hashJoinBuilder_ != null)) { return hashJoinBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 13) { return (io.substrait.proto.HashJoinRel) relType_; } return io.substrait.proto.HashJoinRel.getDefaultInstance(); } } /** *
     * Physical relations
     * 
* * .substrait.HashJoinRel hash_join = 13; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.HashJoinRel, io.substrait.proto.HashJoinRel.Builder, io.substrait.proto.HashJoinRelOrBuilder> getHashJoinFieldBuilder() { if (hashJoinBuilder_ == null) { if (!(relTypeCase_ == 13)) { relType_ = io.substrait.proto.HashJoinRel.getDefaultInstance(); } hashJoinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.HashJoinRel, io.substrait.proto.HashJoinRel.Builder, io.substrait.proto.HashJoinRelOrBuilder>( (io.substrait.proto.HashJoinRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 13; onChanged(); return hashJoinBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.MergeJoinRel, io.substrait.proto.MergeJoinRel.Builder, io.substrait.proto.MergeJoinRelOrBuilder> mergeJoinBuilder_; /** * .substrait.MergeJoinRel merge_join = 14; * @return Whether the mergeJoin field is set. */ @java.lang.Override public boolean hasMergeJoin() { return relTypeCase_ == 14; } /** * .substrait.MergeJoinRel merge_join = 14; * @return The mergeJoin. */ @java.lang.Override public io.substrait.proto.MergeJoinRel getMergeJoin() { if (mergeJoinBuilder_ == null) { if (relTypeCase_ == 14) { return (io.substrait.proto.MergeJoinRel) relType_; } return io.substrait.proto.MergeJoinRel.getDefaultInstance(); } else { if (relTypeCase_ == 14) { return mergeJoinBuilder_.getMessage(); } return io.substrait.proto.MergeJoinRel.getDefaultInstance(); } } /** * .substrait.MergeJoinRel merge_join = 14; */ public Builder setMergeJoin(io.substrait.proto.MergeJoinRel value) { if (mergeJoinBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { mergeJoinBuilder_.setMessage(value); } relTypeCase_ = 14; return this; } /** * .substrait.MergeJoinRel merge_join = 14; */ public Builder setMergeJoin( io.substrait.proto.MergeJoinRel.Builder builderForValue) { if (mergeJoinBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { mergeJoinBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 14; return this; } /** * .substrait.MergeJoinRel merge_join = 14; */ public Builder mergeMergeJoin(io.substrait.proto.MergeJoinRel value) { if (mergeJoinBuilder_ == null) { if (relTypeCase_ == 14 && relType_ != io.substrait.proto.MergeJoinRel.getDefaultInstance()) { relType_ = io.substrait.proto.MergeJoinRel.newBuilder((io.substrait.proto.MergeJoinRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 14) { mergeJoinBuilder_.mergeFrom(value); } else { mergeJoinBuilder_.setMessage(value); } } relTypeCase_ = 14; return this; } /** * .substrait.MergeJoinRel merge_join = 14; */ public Builder clearMergeJoin() { if (mergeJoinBuilder_ == null) { if (relTypeCase_ == 14) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 14) { relTypeCase_ = 0; relType_ = null; } mergeJoinBuilder_.clear(); } return this; } /** * .substrait.MergeJoinRel merge_join = 14; */ public io.substrait.proto.MergeJoinRel.Builder getMergeJoinBuilder() { return getMergeJoinFieldBuilder().getBuilder(); } /** * .substrait.MergeJoinRel merge_join = 14; */ @java.lang.Override public io.substrait.proto.MergeJoinRelOrBuilder getMergeJoinOrBuilder() { if ((relTypeCase_ == 14) && (mergeJoinBuilder_ != null)) { return mergeJoinBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 14) { return (io.substrait.proto.MergeJoinRel) relType_; } return io.substrait.proto.MergeJoinRel.getDefaultInstance(); } } /** * .substrait.MergeJoinRel merge_join = 14; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.MergeJoinRel, io.substrait.proto.MergeJoinRel.Builder, io.substrait.proto.MergeJoinRelOrBuilder> getMergeJoinFieldBuilder() { if (mergeJoinBuilder_ == null) { if (!(relTypeCase_ == 14)) { relType_ = io.substrait.proto.MergeJoinRel.getDefaultInstance(); } mergeJoinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.MergeJoinRel, io.substrait.proto.MergeJoinRel.Builder, io.substrait.proto.MergeJoinRelOrBuilder>( (io.substrait.proto.MergeJoinRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 14; onChanged(); return mergeJoinBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.NestedLoopJoinRel, io.substrait.proto.NestedLoopJoinRel.Builder, io.substrait.proto.NestedLoopJoinRelOrBuilder> nestedLoopJoinBuilder_; /** * .substrait.NestedLoopJoinRel nested_loop_join = 18; * @return Whether the nestedLoopJoin field is set. */ @java.lang.Override public boolean hasNestedLoopJoin() { return relTypeCase_ == 18; } /** * .substrait.NestedLoopJoinRel nested_loop_join = 18; * @return The nestedLoopJoin. */ @java.lang.Override public io.substrait.proto.NestedLoopJoinRel getNestedLoopJoin() { if (nestedLoopJoinBuilder_ == null) { if (relTypeCase_ == 18) { return (io.substrait.proto.NestedLoopJoinRel) relType_; } return io.substrait.proto.NestedLoopJoinRel.getDefaultInstance(); } else { if (relTypeCase_ == 18) { return nestedLoopJoinBuilder_.getMessage(); } return io.substrait.proto.NestedLoopJoinRel.getDefaultInstance(); } } /** * .substrait.NestedLoopJoinRel nested_loop_join = 18; */ public Builder setNestedLoopJoin(io.substrait.proto.NestedLoopJoinRel value) { if (nestedLoopJoinBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { nestedLoopJoinBuilder_.setMessage(value); } relTypeCase_ = 18; return this; } /** * .substrait.NestedLoopJoinRel nested_loop_join = 18; */ public Builder setNestedLoopJoin( io.substrait.proto.NestedLoopJoinRel.Builder builderForValue) { if (nestedLoopJoinBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { nestedLoopJoinBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 18; return this; } /** * .substrait.NestedLoopJoinRel nested_loop_join = 18; */ public Builder mergeNestedLoopJoin(io.substrait.proto.NestedLoopJoinRel value) { if (nestedLoopJoinBuilder_ == null) { if (relTypeCase_ == 18 && relType_ != io.substrait.proto.NestedLoopJoinRel.getDefaultInstance()) { relType_ = io.substrait.proto.NestedLoopJoinRel.newBuilder((io.substrait.proto.NestedLoopJoinRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 18) { nestedLoopJoinBuilder_.mergeFrom(value); } else { nestedLoopJoinBuilder_.setMessage(value); } } relTypeCase_ = 18; return this; } /** * .substrait.NestedLoopJoinRel nested_loop_join = 18; */ public Builder clearNestedLoopJoin() { if (nestedLoopJoinBuilder_ == null) { if (relTypeCase_ == 18) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 18) { relTypeCase_ = 0; relType_ = null; } nestedLoopJoinBuilder_.clear(); } return this; } /** * .substrait.NestedLoopJoinRel nested_loop_join = 18; */ public io.substrait.proto.NestedLoopJoinRel.Builder getNestedLoopJoinBuilder() { return getNestedLoopJoinFieldBuilder().getBuilder(); } /** * .substrait.NestedLoopJoinRel nested_loop_join = 18; */ @java.lang.Override public io.substrait.proto.NestedLoopJoinRelOrBuilder getNestedLoopJoinOrBuilder() { if ((relTypeCase_ == 18) && (nestedLoopJoinBuilder_ != null)) { return nestedLoopJoinBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 18) { return (io.substrait.proto.NestedLoopJoinRel) relType_; } return io.substrait.proto.NestedLoopJoinRel.getDefaultInstance(); } } /** * .substrait.NestedLoopJoinRel nested_loop_join = 18; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.NestedLoopJoinRel, io.substrait.proto.NestedLoopJoinRel.Builder, io.substrait.proto.NestedLoopJoinRelOrBuilder> getNestedLoopJoinFieldBuilder() { if (nestedLoopJoinBuilder_ == null) { if (!(relTypeCase_ == 18)) { relType_ = io.substrait.proto.NestedLoopJoinRel.getDefaultInstance(); } nestedLoopJoinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.NestedLoopJoinRel, io.substrait.proto.NestedLoopJoinRel.Builder, io.substrait.proto.NestedLoopJoinRelOrBuilder>( (io.substrait.proto.NestedLoopJoinRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 18; onChanged(); return nestedLoopJoinBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ConsistentPartitionWindowRel, io.substrait.proto.ConsistentPartitionWindowRel.Builder, io.substrait.proto.ConsistentPartitionWindowRelOrBuilder> windowBuilder_; /** * .substrait.ConsistentPartitionWindowRel window = 17; * @return Whether the window field is set. */ @java.lang.Override public boolean hasWindow() { return relTypeCase_ == 17; } /** * .substrait.ConsistentPartitionWindowRel window = 17; * @return The window. */ @java.lang.Override public io.substrait.proto.ConsistentPartitionWindowRel getWindow() { if (windowBuilder_ == null) { if (relTypeCase_ == 17) { return (io.substrait.proto.ConsistentPartitionWindowRel) relType_; } return io.substrait.proto.ConsistentPartitionWindowRel.getDefaultInstance(); } else { if (relTypeCase_ == 17) { return windowBuilder_.getMessage(); } return io.substrait.proto.ConsistentPartitionWindowRel.getDefaultInstance(); } } /** * .substrait.ConsistentPartitionWindowRel window = 17; */ public Builder setWindow(io.substrait.proto.ConsistentPartitionWindowRel value) { if (windowBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { windowBuilder_.setMessage(value); } relTypeCase_ = 17; return this; } /** * .substrait.ConsistentPartitionWindowRel window = 17; */ public Builder setWindow( io.substrait.proto.ConsistentPartitionWindowRel.Builder builderForValue) { if (windowBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { windowBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 17; return this; } /** * .substrait.ConsistentPartitionWindowRel window = 17; */ public Builder mergeWindow(io.substrait.proto.ConsistentPartitionWindowRel value) { if (windowBuilder_ == null) { if (relTypeCase_ == 17 && relType_ != io.substrait.proto.ConsistentPartitionWindowRel.getDefaultInstance()) { relType_ = io.substrait.proto.ConsistentPartitionWindowRel.newBuilder((io.substrait.proto.ConsistentPartitionWindowRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 17) { windowBuilder_.mergeFrom(value); } else { windowBuilder_.setMessage(value); } } relTypeCase_ = 17; return this; } /** * .substrait.ConsistentPartitionWindowRel window = 17; */ public Builder clearWindow() { if (windowBuilder_ == null) { if (relTypeCase_ == 17) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 17) { relTypeCase_ = 0; relType_ = null; } windowBuilder_.clear(); } return this; } /** * .substrait.ConsistentPartitionWindowRel window = 17; */ public io.substrait.proto.ConsistentPartitionWindowRel.Builder getWindowBuilder() { return getWindowFieldBuilder().getBuilder(); } /** * .substrait.ConsistentPartitionWindowRel window = 17; */ @java.lang.Override public io.substrait.proto.ConsistentPartitionWindowRelOrBuilder getWindowOrBuilder() { if ((relTypeCase_ == 17) && (windowBuilder_ != null)) { return windowBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 17) { return (io.substrait.proto.ConsistentPartitionWindowRel) relType_; } return io.substrait.proto.ConsistentPartitionWindowRel.getDefaultInstance(); } } /** * .substrait.ConsistentPartitionWindowRel window = 17; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ConsistentPartitionWindowRel, io.substrait.proto.ConsistentPartitionWindowRel.Builder, io.substrait.proto.ConsistentPartitionWindowRelOrBuilder> getWindowFieldBuilder() { if (windowBuilder_ == null) { if (!(relTypeCase_ == 17)) { relType_ = io.substrait.proto.ConsistentPartitionWindowRel.getDefaultInstance(); } windowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ConsistentPartitionWindowRel, io.substrait.proto.ConsistentPartitionWindowRel.Builder, io.substrait.proto.ConsistentPartitionWindowRelOrBuilder>( (io.substrait.proto.ConsistentPartitionWindowRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 17; onChanged(); return windowBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExchangeRel, io.substrait.proto.ExchangeRel.Builder, io.substrait.proto.ExchangeRelOrBuilder> exchangeBuilder_; /** * .substrait.ExchangeRel exchange = 15; * @return Whether the exchange field is set. */ @java.lang.Override public boolean hasExchange() { return relTypeCase_ == 15; } /** * .substrait.ExchangeRel exchange = 15; * @return The exchange. */ @java.lang.Override public io.substrait.proto.ExchangeRel getExchange() { if (exchangeBuilder_ == null) { if (relTypeCase_ == 15) { return (io.substrait.proto.ExchangeRel) relType_; } return io.substrait.proto.ExchangeRel.getDefaultInstance(); } else { if (relTypeCase_ == 15) { return exchangeBuilder_.getMessage(); } return io.substrait.proto.ExchangeRel.getDefaultInstance(); } } /** * .substrait.ExchangeRel exchange = 15; */ public Builder setExchange(io.substrait.proto.ExchangeRel value) { if (exchangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { exchangeBuilder_.setMessage(value); } relTypeCase_ = 15; return this; } /** * .substrait.ExchangeRel exchange = 15; */ public Builder setExchange( io.substrait.proto.ExchangeRel.Builder builderForValue) { if (exchangeBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { exchangeBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 15; return this; } /** * .substrait.ExchangeRel exchange = 15; */ public Builder mergeExchange(io.substrait.proto.ExchangeRel value) { if (exchangeBuilder_ == null) { if (relTypeCase_ == 15 && relType_ != io.substrait.proto.ExchangeRel.getDefaultInstance()) { relType_ = io.substrait.proto.ExchangeRel.newBuilder((io.substrait.proto.ExchangeRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 15) { exchangeBuilder_.mergeFrom(value); } else { exchangeBuilder_.setMessage(value); } } relTypeCase_ = 15; return this; } /** * .substrait.ExchangeRel exchange = 15; */ public Builder clearExchange() { if (exchangeBuilder_ == null) { if (relTypeCase_ == 15) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 15) { relTypeCase_ = 0; relType_ = null; } exchangeBuilder_.clear(); } return this; } /** * .substrait.ExchangeRel exchange = 15; */ public io.substrait.proto.ExchangeRel.Builder getExchangeBuilder() { return getExchangeFieldBuilder().getBuilder(); } /** * .substrait.ExchangeRel exchange = 15; */ @java.lang.Override public io.substrait.proto.ExchangeRelOrBuilder getExchangeOrBuilder() { if ((relTypeCase_ == 15) && (exchangeBuilder_ != null)) { return exchangeBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 15) { return (io.substrait.proto.ExchangeRel) relType_; } return io.substrait.proto.ExchangeRel.getDefaultInstance(); } } /** * .substrait.ExchangeRel exchange = 15; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExchangeRel, io.substrait.proto.ExchangeRel.Builder, io.substrait.proto.ExchangeRelOrBuilder> getExchangeFieldBuilder() { if (exchangeBuilder_ == null) { if (!(relTypeCase_ == 15)) { relType_ = io.substrait.proto.ExchangeRel.getDefaultInstance(); } exchangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExchangeRel, io.substrait.proto.ExchangeRel.Builder, io.substrait.proto.ExchangeRelOrBuilder>( (io.substrait.proto.ExchangeRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 15; onChanged(); return exchangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExpandRel, io.substrait.proto.ExpandRel.Builder, io.substrait.proto.ExpandRelOrBuilder> expandBuilder_; /** * .substrait.ExpandRel expand = 16; * @return Whether the expand field is set. */ @java.lang.Override public boolean hasExpand() { return relTypeCase_ == 16; } /** * .substrait.ExpandRel expand = 16; * @return The expand. */ @java.lang.Override public io.substrait.proto.ExpandRel getExpand() { if (expandBuilder_ == null) { if (relTypeCase_ == 16) { return (io.substrait.proto.ExpandRel) relType_; } return io.substrait.proto.ExpandRel.getDefaultInstance(); } else { if (relTypeCase_ == 16) { return expandBuilder_.getMessage(); } return io.substrait.proto.ExpandRel.getDefaultInstance(); } } /** * .substrait.ExpandRel expand = 16; */ public Builder setExpand(io.substrait.proto.ExpandRel value) { if (expandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relType_ = value; onChanged(); } else { expandBuilder_.setMessage(value); } relTypeCase_ = 16; return this; } /** * .substrait.ExpandRel expand = 16; */ public Builder setExpand( io.substrait.proto.ExpandRel.Builder builderForValue) { if (expandBuilder_ == null) { relType_ = builderForValue.build(); onChanged(); } else { expandBuilder_.setMessage(builderForValue.build()); } relTypeCase_ = 16; return this; } /** * .substrait.ExpandRel expand = 16; */ public Builder mergeExpand(io.substrait.proto.ExpandRel value) { if (expandBuilder_ == null) { if (relTypeCase_ == 16 && relType_ != io.substrait.proto.ExpandRel.getDefaultInstance()) { relType_ = io.substrait.proto.ExpandRel.newBuilder((io.substrait.proto.ExpandRel) relType_) .mergeFrom(value).buildPartial(); } else { relType_ = value; } onChanged(); } else { if (relTypeCase_ == 16) { expandBuilder_.mergeFrom(value); } else { expandBuilder_.setMessage(value); } } relTypeCase_ = 16; return this; } /** * .substrait.ExpandRel expand = 16; */ public Builder clearExpand() { if (expandBuilder_ == null) { if (relTypeCase_ == 16) { relTypeCase_ = 0; relType_ = null; onChanged(); } } else { if (relTypeCase_ == 16) { relTypeCase_ = 0; relType_ = null; } expandBuilder_.clear(); } return this; } /** * .substrait.ExpandRel expand = 16; */ public io.substrait.proto.ExpandRel.Builder getExpandBuilder() { return getExpandFieldBuilder().getBuilder(); } /** * .substrait.ExpandRel expand = 16; */ @java.lang.Override public io.substrait.proto.ExpandRelOrBuilder getExpandOrBuilder() { if ((relTypeCase_ == 16) && (expandBuilder_ != null)) { return expandBuilder_.getMessageOrBuilder(); } else { if (relTypeCase_ == 16) { return (io.substrait.proto.ExpandRel) relType_; } return io.substrait.proto.ExpandRel.getDefaultInstance(); } } /** * .substrait.ExpandRel expand = 16; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExpandRel, io.substrait.proto.ExpandRel.Builder, io.substrait.proto.ExpandRelOrBuilder> getExpandFieldBuilder() { if (expandBuilder_ == null) { if (!(relTypeCase_ == 16)) { relType_ = io.substrait.proto.ExpandRel.getDefaultInstance(); } expandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExpandRel, io.substrait.proto.ExpandRel.Builder, io.substrait.proto.ExpandRelOrBuilder>( (io.substrait.proto.ExpandRel) relType_, getParentForChildren(), isClean()); relType_ = null; } relTypeCase_ = 16; onChanged(); return expandBuilder_; } @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.Rel) } // @@protoc_insertion_point(class_scope:substrait.Rel) private static final io.substrait.proto.Rel DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Rel(); } public static io.substrait.proto.Rel getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Rel 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.Rel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy