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

io.substrait.proto.SetRel 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;

/**
 * 
 * The relational set operators (intersection/union/etc..)
 * 
* * Protobuf type {@code substrait.SetRel} */ public final class SetRel extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.SetRel) SetRelOrBuilder { private static final long serialVersionUID = 0L; // Use SetRel.newBuilder() to construct. private SetRel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SetRel() { inputs_ = java.util.Collections.emptyList(); op_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SetRel(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_SetRel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_SetRel_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.SetRel.class, io.substrait.proto.SetRel.Builder.class); } /** * Protobuf enum {@code substrait.SetRel.SetOp} */ public enum SetOp implements com.google.protobuf.ProtocolMessageEnum { /** * SET_OP_UNSPECIFIED = 0; */ SET_OP_UNSPECIFIED(0), /** * SET_OP_MINUS_PRIMARY = 1; */ SET_OP_MINUS_PRIMARY(1), /** * SET_OP_MINUS_PRIMARY_ALL = 7; */ SET_OP_MINUS_PRIMARY_ALL(7), /** * SET_OP_MINUS_MULTISET = 2; */ SET_OP_MINUS_MULTISET(2), /** * SET_OP_INTERSECTION_PRIMARY = 3; */ SET_OP_INTERSECTION_PRIMARY(3), /** * SET_OP_INTERSECTION_MULTISET = 4; */ SET_OP_INTERSECTION_MULTISET(4), /** * SET_OP_INTERSECTION_MULTISET_ALL = 8; */ SET_OP_INTERSECTION_MULTISET_ALL(8), /** * SET_OP_UNION_DISTINCT = 5; */ SET_OP_UNION_DISTINCT(5), /** * SET_OP_UNION_ALL = 6; */ SET_OP_UNION_ALL(6), UNRECOGNIZED(-1), ; /** * SET_OP_UNSPECIFIED = 0; */ public static final int SET_OP_UNSPECIFIED_VALUE = 0; /** * SET_OP_MINUS_PRIMARY = 1; */ public static final int SET_OP_MINUS_PRIMARY_VALUE = 1; /** * SET_OP_MINUS_PRIMARY_ALL = 7; */ public static final int SET_OP_MINUS_PRIMARY_ALL_VALUE = 7; /** * SET_OP_MINUS_MULTISET = 2; */ public static final int SET_OP_MINUS_MULTISET_VALUE = 2; /** * SET_OP_INTERSECTION_PRIMARY = 3; */ public static final int SET_OP_INTERSECTION_PRIMARY_VALUE = 3; /** * SET_OP_INTERSECTION_MULTISET = 4; */ public static final int SET_OP_INTERSECTION_MULTISET_VALUE = 4; /** * SET_OP_INTERSECTION_MULTISET_ALL = 8; */ public static final int SET_OP_INTERSECTION_MULTISET_ALL_VALUE = 8; /** * SET_OP_UNION_DISTINCT = 5; */ public static final int SET_OP_UNION_DISTINCT_VALUE = 5; /** * SET_OP_UNION_ALL = 6; */ public static final int SET_OP_UNION_ALL_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SetOp valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static SetOp forNumber(int value) { switch (value) { case 0: return SET_OP_UNSPECIFIED; case 1: return SET_OP_MINUS_PRIMARY; case 7: return SET_OP_MINUS_PRIMARY_ALL; case 2: return SET_OP_MINUS_MULTISET; case 3: return SET_OP_INTERSECTION_PRIMARY; case 4: return SET_OP_INTERSECTION_MULTISET; case 8: return SET_OP_INTERSECTION_MULTISET_ALL; case 5: return SET_OP_UNION_DISTINCT; case 6: return SET_OP_UNION_ALL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SetOp> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SetOp findValueByNumber(int number) { return SetOp.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.substrait.proto.SetRel.getDescriptor().getEnumTypes().get(0); } private static final SetOp[] VALUES = values(); public static SetOp valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SetOp(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:substrait.SetRel.SetOp) } private int bitField0_; public static final int COMMON_FIELD_NUMBER = 1; private io.substrait.proto.RelCommon common_; /** * .substrait.RelCommon common = 1; * @return Whether the common field is set. */ @java.lang.Override public boolean hasCommon() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.RelCommon common = 1; * @return The common. */ @java.lang.Override public io.substrait.proto.RelCommon getCommon() { return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_; } /** * .substrait.RelCommon common = 1; */ @java.lang.Override public io.substrait.proto.RelCommonOrBuilder getCommonOrBuilder() { return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_; } public static final int INPUTS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List inputs_; /** *
   * The first input is the primary input, the remaining are secondary
   * inputs.  There must be at least two inputs.
   * 
* * repeated .substrait.Rel inputs = 2; */ @java.lang.Override public java.util.List getInputsList() { return inputs_; } /** *
   * The first input is the primary input, the remaining are secondary
   * inputs.  There must be at least two inputs.
   * 
* * repeated .substrait.Rel inputs = 2; */ @java.lang.Override public java.util.List getInputsOrBuilderList() { return inputs_; } /** *
   * The first input is the primary input, the remaining are secondary
   * inputs.  There must be at least two inputs.
   * 
* * repeated .substrait.Rel inputs = 2; */ @java.lang.Override public int getInputsCount() { return inputs_.size(); } /** *
   * The first input is the primary input, the remaining are secondary
   * inputs.  There must be at least two inputs.
   * 
* * repeated .substrait.Rel inputs = 2; */ @java.lang.Override public io.substrait.proto.Rel getInputs(int index) { return inputs_.get(index); } /** *
   * The first input is the primary input, the remaining are secondary
   * inputs.  There must be at least two inputs.
   * 
* * repeated .substrait.Rel inputs = 2; */ @java.lang.Override public io.substrait.proto.RelOrBuilder getInputsOrBuilder( int index) { return inputs_.get(index); } public static final int OP_FIELD_NUMBER = 3; private int op_ = 0; /** * .substrait.SetRel.SetOp op = 3; * @return The enum numeric value on the wire for op. */ @java.lang.Override public int getOpValue() { return op_; } /** * .substrait.SetRel.SetOp op = 3; * @return The op. */ @java.lang.Override public io.substrait.proto.SetRel.SetOp getOp() { io.substrait.proto.SetRel.SetOp result = io.substrait.proto.SetRel.SetOp.forNumber(op_); return result == null ? io.substrait.proto.SetRel.SetOp.UNRECOGNIZED : result; } public static final int ADVANCED_EXTENSION_FIELD_NUMBER = 10; private io.substrait.proto.AdvancedExtension advancedExtension_; /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; * @return Whether the advancedExtension field is set. */ @java.lang.Override public boolean hasAdvancedExtension() { return ((bitField0_ & 0x00000002) != 0); } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; * @return The advancedExtension. */ @java.lang.Override public io.substrait.proto.AdvancedExtension getAdvancedExtension() { return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_; } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ @java.lang.Override public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() { return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCommon()); } for (int i = 0; i < inputs_.size(); i++) { output.writeMessage(2, inputs_.get(i)); } if (op_ != io.substrait.proto.SetRel.SetOp.SET_OP_UNSPECIFIED.getNumber()) { output.writeEnum(3, op_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(10, getAdvancedExtension()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCommon()); } for (int i = 0; i < inputs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, inputs_.get(i)); } if (op_ != io.substrait.proto.SetRel.SetOp.SET_OP_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, op_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getAdvancedExtension()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.substrait.proto.SetRel)) { return super.equals(obj); } io.substrait.proto.SetRel other = (io.substrait.proto.SetRel) obj; if (hasCommon() != other.hasCommon()) return false; if (hasCommon()) { if (!getCommon() .equals(other.getCommon())) return false; } if (!getInputsList() .equals(other.getInputsList())) return false; if (op_ != other.op_) return false; if (hasAdvancedExtension() != other.hasAdvancedExtension()) return false; if (hasAdvancedExtension()) { if (!getAdvancedExtension() .equals(other.getAdvancedExtension())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCommon()) { hash = (37 * hash) + COMMON_FIELD_NUMBER; hash = (53 * hash) + getCommon().hashCode(); } if (getInputsCount() > 0) { hash = (37 * hash) + INPUTS_FIELD_NUMBER; hash = (53 * hash) + getInputsList().hashCode(); } hash = (37 * hash) + OP_FIELD_NUMBER; hash = (53 * hash) + op_; if (hasAdvancedExtension()) { hash = (37 * hash) + ADVANCED_EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getAdvancedExtension().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.SetRel parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.SetRel 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.SetRel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.SetRel 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.SetRel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.SetRel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.SetRel parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.SetRel 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.SetRel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.SetRel 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.SetRel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.SetRel 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.SetRel prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * The relational set operators (intersection/union/etc..)
   * 
* * Protobuf type {@code substrait.SetRel} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.SetRel) io.substrait.proto.SetRelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_SetRel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_SetRel_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.SetRel.class, io.substrait.proto.SetRel.Builder.class); } // Construct using io.substrait.proto.SetRel.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCommonFieldBuilder(); getInputsFieldBuilder(); getAdvancedExtensionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; common_ = null; if (commonBuilder_ != null) { commonBuilder_.dispose(); commonBuilder_ = null; } if (inputsBuilder_ == null) { inputs_ = java.util.Collections.emptyList(); } else { inputs_ = null; inputsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); op_ = 0; advancedExtension_ = null; if (advancedExtensionBuilder_ != null) { advancedExtensionBuilder_.dispose(); advancedExtensionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_SetRel_descriptor; } @java.lang.Override public io.substrait.proto.SetRel getDefaultInstanceForType() { return io.substrait.proto.SetRel.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.SetRel build() { io.substrait.proto.SetRel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.SetRel buildPartial() { io.substrait.proto.SetRel result = new io.substrait.proto.SetRel(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.substrait.proto.SetRel result) { if (inputsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { inputs_ = java.util.Collections.unmodifiableList(inputs_); bitField0_ = (bitField0_ & ~0x00000002); } result.inputs_ = inputs_; } else { result.inputs_ = inputsBuilder_.build(); } } private void buildPartial0(io.substrait.proto.SetRel result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.op_ = op_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.advancedExtension_ = advancedExtensionBuilder_ == null ? advancedExtension_ : advancedExtensionBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.substrait.proto.SetRel) { return mergeFrom((io.substrait.proto.SetRel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.SetRel other) { if (other == io.substrait.proto.SetRel.getDefaultInstance()) return this; if (other.hasCommon()) { mergeCommon(other.getCommon()); } if (inputsBuilder_ == null) { if (!other.inputs_.isEmpty()) { if (inputs_.isEmpty()) { inputs_ = other.inputs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInputsIsMutable(); inputs_.addAll(other.inputs_); } onChanged(); } } else { if (!other.inputs_.isEmpty()) { if (inputsBuilder_.isEmpty()) { inputsBuilder_.dispose(); inputsBuilder_ = null; inputs_ = other.inputs_; bitField0_ = (bitField0_ & ~0x00000002); inputsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInputsFieldBuilder() : null; } else { inputsBuilder_.addAllMessages(other.inputs_); } } } if (other.op_ != 0) { setOpValue(other.getOpValue()); } if (other.hasAdvancedExtension()) { mergeAdvancedExtension(other.getAdvancedExtension()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getCommonFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { io.substrait.proto.Rel m = input.readMessage( io.substrait.proto.Rel.parser(), extensionRegistry); if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.add(m); } else { inputsBuilder_.addMessage(m); } break; } // case 18 case 24: { op_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 82: { input.readMessage( getAdvancedExtensionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private io.substrait.proto.RelCommon common_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.RelCommon, io.substrait.proto.RelCommon.Builder, io.substrait.proto.RelCommonOrBuilder> commonBuilder_; /** * .substrait.RelCommon common = 1; * @return Whether the common field is set. */ public boolean hasCommon() { return ((bitField0_ & 0x00000001) != 0); } /** * .substrait.RelCommon common = 1; * @return The common. */ public io.substrait.proto.RelCommon getCommon() { if (commonBuilder_ == null) { return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_; } else { return commonBuilder_.getMessage(); } } /** * .substrait.RelCommon common = 1; */ public Builder setCommon(io.substrait.proto.RelCommon value) { if (commonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } common_ = value; } else { commonBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.RelCommon common = 1; */ public Builder setCommon( io.substrait.proto.RelCommon.Builder builderForValue) { if (commonBuilder_ == null) { common_ = builderForValue.build(); } else { commonBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .substrait.RelCommon common = 1; */ public Builder mergeCommon(io.substrait.proto.RelCommon value) { if (commonBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && common_ != null && common_ != io.substrait.proto.RelCommon.getDefaultInstance()) { getCommonBuilder().mergeFrom(value); } else { common_ = value; } } else { commonBuilder_.mergeFrom(value); } if (common_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .substrait.RelCommon common = 1; */ public Builder clearCommon() { bitField0_ = (bitField0_ & ~0x00000001); common_ = null; if (commonBuilder_ != null) { commonBuilder_.dispose(); commonBuilder_ = null; } onChanged(); return this; } /** * .substrait.RelCommon common = 1; */ public io.substrait.proto.RelCommon.Builder getCommonBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCommonFieldBuilder().getBuilder(); } /** * .substrait.RelCommon common = 1; */ public io.substrait.proto.RelCommonOrBuilder getCommonOrBuilder() { if (commonBuilder_ != null) { return commonBuilder_.getMessageOrBuilder(); } else { return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_; } } /** * .substrait.RelCommon common = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.RelCommon, io.substrait.proto.RelCommon.Builder, io.substrait.proto.RelCommonOrBuilder> getCommonFieldBuilder() { if (commonBuilder_ == null) { commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.RelCommon, io.substrait.proto.RelCommon.Builder, io.substrait.proto.RelCommonOrBuilder>( getCommon(), getParentForChildren(), isClean()); common_ = null; } return commonBuilder_; } private java.util.List inputs_ = java.util.Collections.emptyList(); private void ensureInputsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { inputs_ = new java.util.ArrayList(inputs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> inputsBuilder_; /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public java.util.List getInputsList() { if (inputsBuilder_ == null) { return java.util.Collections.unmodifiableList(inputs_); } else { return inputsBuilder_.getMessageList(); } } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public int getInputsCount() { if (inputsBuilder_ == null) { return inputs_.size(); } else { return inputsBuilder_.getCount(); } } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public io.substrait.proto.Rel getInputs(int index) { if (inputsBuilder_ == null) { return inputs_.get(index); } else { return inputsBuilder_.getMessage(index); } } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public Builder setInputs( int index, io.substrait.proto.Rel value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.set(index, value); onChanged(); } else { inputsBuilder_.setMessage(index, value); } return this; } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public Builder setInputs( int index, io.substrait.proto.Rel.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.set(index, builderForValue.build()); onChanged(); } else { inputsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public Builder addInputs(io.substrait.proto.Rel value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.add(value); onChanged(); } else { inputsBuilder_.addMessage(value); } return this; } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public Builder addInputs( int index, io.substrait.proto.Rel value) { if (inputsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInputsIsMutable(); inputs_.add(index, value); onChanged(); } else { inputsBuilder_.addMessage(index, value); } return this; } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public Builder addInputs( io.substrait.proto.Rel.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.add(builderForValue.build()); onChanged(); } else { inputsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public Builder addInputs( int index, io.substrait.proto.Rel.Builder builderForValue) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.add(index, builderForValue.build()); onChanged(); } else { inputsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public Builder addAllInputs( java.lang.Iterable values) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, inputs_); onChanged(); } else { inputsBuilder_.addAllMessages(values); } return this; } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public Builder clearInputs() { if (inputsBuilder_ == null) { inputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { inputsBuilder_.clear(); } return this; } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public Builder removeInputs(int index) { if (inputsBuilder_ == null) { ensureInputsIsMutable(); inputs_.remove(index); onChanged(); } else { inputsBuilder_.remove(index); } return this; } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public io.substrait.proto.Rel.Builder getInputsBuilder( int index) { return getInputsFieldBuilder().getBuilder(index); } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public io.substrait.proto.RelOrBuilder getInputsOrBuilder( int index) { if (inputsBuilder_ == null) { return inputs_.get(index); } else { return inputsBuilder_.getMessageOrBuilder(index); } } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public java.util.List getInputsOrBuilderList() { if (inputsBuilder_ != null) { return inputsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(inputs_); } } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public io.substrait.proto.Rel.Builder addInputsBuilder() { return getInputsFieldBuilder().addBuilder( io.substrait.proto.Rel.getDefaultInstance()); } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public io.substrait.proto.Rel.Builder addInputsBuilder( int index) { return getInputsFieldBuilder().addBuilder( index, io.substrait.proto.Rel.getDefaultInstance()); } /** *
     * The first input is the primary input, the remaining are secondary
     * inputs.  There must be at least two inputs.
     * 
* * repeated .substrait.Rel inputs = 2; */ public java.util.List getInputsBuilderList() { return getInputsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> getInputsFieldBuilder() { if (inputsBuilder_ == null) { inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>( inputs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); inputs_ = null; } return inputsBuilder_; } private int op_ = 0; /** * .substrait.SetRel.SetOp op = 3; * @return The enum numeric value on the wire for op. */ @java.lang.Override public int getOpValue() { return op_; } /** * .substrait.SetRel.SetOp op = 3; * @param value The enum numeric value on the wire for op to set. * @return This builder for chaining. */ public Builder setOpValue(int value) { op_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * .substrait.SetRel.SetOp op = 3; * @return The op. */ @java.lang.Override public io.substrait.proto.SetRel.SetOp getOp() { io.substrait.proto.SetRel.SetOp result = io.substrait.proto.SetRel.SetOp.forNumber(op_); return result == null ? io.substrait.proto.SetRel.SetOp.UNRECOGNIZED : result; } /** * .substrait.SetRel.SetOp op = 3; * @param value The op to set. * @return This builder for chaining. */ public Builder setOp(io.substrait.proto.SetRel.SetOp value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; op_ = value.getNumber(); onChanged(); return this; } /** * .substrait.SetRel.SetOp op = 3; * @return This builder for chaining. */ public Builder clearOp() { bitField0_ = (bitField0_ & ~0x00000004); op_ = 0; onChanged(); return this; } private io.substrait.proto.AdvancedExtension advancedExtension_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder> advancedExtensionBuilder_; /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; * @return Whether the advancedExtension field is set. */ public boolean hasAdvancedExtension() { return ((bitField0_ & 0x00000008) != 0); } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; * @return The advancedExtension. */ public io.substrait.proto.AdvancedExtension getAdvancedExtension() { if (advancedExtensionBuilder_ == null) { return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_; } else { return advancedExtensionBuilder_.getMessage(); } } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ public Builder setAdvancedExtension(io.substrait.proto.AdvancedExtension value) { if (advancedExtensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } advancedExtension_ = value; } else { advancedExtensionBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ public Builder setAdvancedExtension( io.substrait.proto.AdvancedExtension.Builder builderForValue) { if (advancedExtensionBuilder_ == null) { advancedExtension_ = builderForValue.build(); } else { advancedExtensionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ public Builder mergeAdvancedExtension(io.substrait.proto.AdvancedExtension value) { if (advancedExtensionBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && advancedExtension_ != null && advancedExtension_ != io.substrait.proto.AdvancedExtension.getDefaultInstance()) { getAdvancedExtensionBuilder().mergeFrom(value); } else { advancedExtension_ = value; } } else { advancedExtensionBuilder_.mergeFrom(value); } if (advancedExtension_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ public Builder clearAdvancedExtension() { bitField0_ = (bitField0_ & ~0x00000008); advancedExtension_ = null; if (advancedExtensionBuilder_ != null) { advancedExtensionBuilder_.dispose(); advancedExtensionBuilder_ = null; } onChanged(); return this; } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ public io.substrait.proto.AdvancedExtension.Builder getAdvancedExtensionBuilder() { bitField0_ |= 0x00000008; onChanged(); return getAdvancedExtensionFieldBuilder().getBuilder(); } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionOrBuilder() { if (advancedExtensionBuilder_ != null) { return advancedExtensionBuilder_.getMessageOrBuilder(); } else { return advancedExtension_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtension_; } } /** * .substrait.extensions.AdvancedExtension advanced_extension = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder> getAdvancedExtensionFieldBuilder() { if (advancedExtensionBuilder_ == null) { advancedExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>( getAdvancedExtension(), getParentForChildren(), isClean()); advancedExtension_ = null; } return advancedExtensionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:substrait.SetRel) } // @@protoc_insertion_point(class_scope:substrait.SetRel) private static final io.substrait.proto.SetRel DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.SetRel(); } public static io.substrait.proto.SetRel getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SetRel 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.SetRel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy