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

io.substrait.proto.WriteRel 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 operator that modifies the content of a database (operates on 1 table at a time, but record-selection/source can be
 * based on joining of multiple tables).
 * 
* * Protobuf type {@code substrait.WriteRel} */ public final class WriteRel extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.WriteRel) WriteRelOrBuilder { private static final long serialVersionUID = 0L; // Use WriteRel.newBuilder() to construct. private WriteRel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WriteRel() { op_ = 0; output_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WriteRel(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_WriteRel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_WriteRel_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.WriteRel.class, io.substrait.proto.WriteRel.Builder.class); } /** * Protobuf enum {@code substrait.WriteRel.WriteOp} */ public enum WriteOp implements com.google.protobuf.ProtocolMessageEnum { /** * WRITE_OP_UNSPECIFIED = 0; */ WRITE_OP_UNSPECIFIED(0), /** *
     * The insert of new records in a table
     * 
* * WRITE_OP_INSERT = 1; */ WRITE_OP_INSERT(1), /** *
     * The removal of records from a table
     * 
* * WRITE_OP_DELETE = 2; */ WRITE_OP_DELETE(2), /** *
     * The modification of existing records within a table
     * 
* * WRITE_OP_UPDATE = 3; */ WRITE_OP_UPDATE(3), /** *
     * The Creation of a new table, and the insert of new records in the table
     * 
* * WRITE_OP_CTAS = 4; */ WRITE_OP_CTAS(4), UNRECOGNIZED(-1), ; /** * WRITE_OP_UNSPECIFIED = 0; */ public static final int WRITE_OP_UNSPECIFIED_VALUE = 0; /** *
     * The insert of new records in a table
     * 
* * WRITE_OP_INSERT = 1; */ public static final int WRITE_OP_INSERT_VALUE = 1; /** *
     * The removal of records from a table
     * 
* * WRITE_OP_DELETE = 2; */ public static final int WRITE_OP_DELETE_VALUE = 2; /** *
     * The modification of existing records within a table
     * 
* * WRITE_OP_UPDATE = 3; */ public static final int WRITE_OP_UPDATE_VALUE = 3; /** *
     * The Creation of a new table, and the insert of new records in the table
     * 
* * WRITE_OP_CTAS = 4; */ public static final int WRITE_OP_CTAS_VALUE = 4; 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 WriteOp 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 WriteOp forNumber(int value) { switch (value) { case 0: return WRITE_OP_UNSPECIFIED; case 1: return WRITE_OP_INSERT; case 2: return WRITE_OP_DELETE; case 3: return WRITE_OP_UPDATE; case 4: return WRITE_OP_CTAS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< WriteOp> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public WriteOp findValueByNumber(int number) { return WriteOp.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.WriteRel.getDescriptor().getEnumTypes().get(0); } private static final WriteOp[] VALUES = values(); public static WriteOp 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 WriteOp(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:substrait.WriteRel.WriteOp) } /** * Protobuf enum {@code substrait.WriteRel.OutputMode} */ public enum OutputMode implements com.google.protobuf.ProtocolMessageEnum { /** * OUTPUT_MODE_UNSPECIFIED = 0; */ OUTPUT_MODE_UNSPECIFIED(0), /** *
     * return no records at all
     * 
* * OUTPUT_MODE_NO_OUTPUT = 1; */ OUTPUT_MODE_NO_OUTPUT(1), /** *
     * this mode makes the operator return all the record INSERTED/DELETED/UPDATED by the operator.
     * The operator returns the AFTER-image of any change. This can be further manipulated by operators upstreams
     * (e.g., retunring the typical "count of modified records").
     * For scenarios in which the BEFORE image is required, the user must implement a spool (via references to
     * subplans in the body of the Rel input) and return those with anounter PlanRel.relations.
     * 
* * OUTPUT_MODE_MODIFIED_RECORDS = 2; */ OUTPUT_MODE_MODIFIED_RECORDS(2), UNRECOGNIZED(-1), ; /** * OUTPUT_MODE_UNSPECIFIED = 0; */ public static final int OUTPUT_MODE_UNSPECIFIED_VALUE = 0; /** *
     * return no records at all
     * 
* * OUTPUT_MODE_NO_OUTPUT = 1; */ public static final int OUTPUT_MODE_NO_OUTPUT_VALUE = 1; /** *
     * this mode makes the operator return all the record INSERTED/DELETED/UPDATED by the operator.
     * The operator returns the AFTER-image of any change. This can be further manipulated by operators upstreams
     * (e.g., retunring the typical "count of modified records").
     * For scenarios in which the BEFORE image is required, the user must implement a spool (via references to
     * subplans in the body of the Rel input) and return those with anounter PlanRel.relations.
     * 
* * OUTPUT_MODE_MODIFIED_RECORDS = 2; */ public static final int OUTPUT_MODE_MODIFIED_RECORDS_VALUE = 2; 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 OutputMode 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 OutputMode forNumber(int value) { switch (value) { case 0: return OUTPUT_MODE_UNSPECIFIED; case 1: return OUTPUT_MODE_NO_OUTPUT; case 2: return OUTPUT_MODE_MODIFIED_RECORDS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< OutputMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public OutputMode findValueByNumber(int number) { return OutputMode.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.WriteRel.getDescriptor().getEnumTypes().get(1); } private static final OutputMode[] VALUES = values(); public static OutputMode 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 OutputMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:substrait.WriteRel.OutputMode) } private int bitField0_; private int writeTypeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object writeType_; public enum WriteTypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NAMED_TABLE(1), EXTENSION_TABLE(2), WRITETYPE_NOT_SET(0); private final int value; private WriteTypeCase(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 WriteTypeCase valueOf(int value) { return forNumber(value); } public static WriteTypeCase forNumber(int value) { switch (value) { case 1: return NAMED_TABLE; case 2: return EXTENSION_TABLE; case 0: return WRITETYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public WriteTypeCase getWriteTypeCase() { return WriteTypeCase.forNumber( writeTypeCase_); } public static final int NAMED_TABLE_FIELD_NUMBER = 1; /** * .substrait.NamedObjectWrite named_table = 1; * @return Whether the namedTable field is set. */ @java.lang.Override public boolean hasNamedTable() { return writeTypeCase_ == 1; } /** * .substrait.NamedObjectWrite named_table = 1; * @return The namedTable. */ @java.lang.Override public io.substrait.proto.NamedObjectWrite getNamedTable() { if (writeTypeCase_ == 1) { return (io.substrait.proto.NamedObjectWrite) writeType_; } return io.substrait.proto.NamedObjectWrite.getDefaultInstance(); } /** * .substrait.NamedObjectWrite named_table = 1; */ @java.lang.Override public io.substrait.proto.NamedObjectWriteOrBuilder getNamedTableOrBuilder() { if (writeTypeCase_ == 1) { return (io.substrait.proto.NamedObjectWrite) writeType_; } return io.substrait.proto.NamedObjectWrite.getDefaultInstance(); } public static final int EXTENSION_TABLE_FIELD_NUMBER = 2; /** * .substrait.ExtensionObject extension_table = 2; * @return Whether the extensionTable field is set. */ @java.lang.Override public boolean hasExtensionTable() { return writeTypeCase_ == 2; } /** * .substrait.ExtensionObject extension_table = 2; * @return The extensionTable. */ @java.lang.Override public io.substrait.proto.ExtensionObject getExtensionTable() { if (writeTypeCase_ == 2) { return (io.substrait.proto.ExtensionObject) writeType_; } return io.substrait.proto.ExtensionObject.getDefaultInstance(); } /** * .substrait.ExtensionObject extension_table = 2; */ @java.lang.Override public io.substrait.proto.ExtensionObjectOrBuilder getExtensionTableOrBuilder() { if (writeTypeCase_ == 2) { return (io.substrait.proto.ExtensionObject) writeType_; } return io.substrait.proto.ExtensionObject.getDefaultInstance(); } public static final int TABLE_SCHEMA_FIELD_NUMBER = 3; private io.substrait.proto.NamedStruct tableSchema_; /** *
   * The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
   * 
* * .substrait.NamedStruct table_schema = 3; * @return Whether the tableSchema field is set. */ @java.lang.Override public boolean hasTableSchema() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
   * 
* * .substrait.NamedStruct table_schema = 3; * @return The tableSchema. */ @java.lang.Override public io.substrait.proto.NamedStruct getTableSchema() { return tableSchema_ == null ? io.substrait.proto.NamedStruct.getDefaultInstance() : tableSchema_; } /** *
   * The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
   * 
* * .substrait.NamedStruct table_schema = 3; */ @java.lang.Override public io.substrait.proto.NamedStructOrBuilder getTableSchemaOrBuilder() { return tableSchema_ == null ? io.substrait.proto.NamedStruct.getDefaultInstance() : tableSchema_; } public static final int OP_FIELD_NUMBER = 4; private int op_ = 0; /** *
   * The type of operation to perform
   * 
* * .substrait.WriteRel.WriteOp op = 4; * @return The enum numeric value on the wire for op. */ @java.lang.Override public int getOpValue() { return op_; } /** *
   * The type of operation to perform
   * 
* * .substrait.WriteRel.WriteOp op = 4; * @return The op. */ @java.lang.Override public io.substrait.proto.WriteRel.WriteOp getOp() { io.substrait.proto.WriteRel.WriteOp result = io.substrait.proto.WriteRel.WriteOp.forNumber(op_); return result == null ? io.substrait.proto.WriteRel.WriteOp.UNRECOGNIZED : result; } public static final int INPUT_FIELD_NUMBER = 5; private io.substrait.proto.Rel input_; /** *
   * The relation that determines the records to add/remove/modify
   * the schema must match with table_schema. Default values must be explicitly stated
   * in a ProjectRel at the top of the input. The match must also
   * occur in case of DELETE to ensure multi-engine plans are unequivocal.
   * 
* * .substrait.Rel input = 5; * @return Whether the input field is set. */ @java.lang.Override public boolean hasInput() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The relation that determines the records to add/remove/modify
   * the schema must match with table_schema. Default values must be explicitly stated
   * in a ProjectRel at the top of the input. The match must also
   * occur in case of DELETE to ensure multi-engine plans are unequivocal.
   * 
* * .substrait.Rel input = 5; * @return The input. */ @java.lang.Override public io.substrait.proto.Rel getInput() { return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_; } /** *
   * The relation that determines the records to add/remove/modify
   * the schema must match with table_schema. Default values must be explicitly stated
   * in a ProjectRel at the top of the input. The match must also
   * occur in case of DELETE to ensure multi-engine plans are unequivocal.
   * 
* * .substrait.Rel input = 5; */ @java.lang.Override public io.substrait.proto.RelOrBuilder getInputOrBuilder() { return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_; } public static final int OUTPUT_FIELD_NUMBER = 6; private int output_ = 0; /** *
   * Output mode determines what is the output of executing this rel
   * 
* * .substrait.WriteRel.OutputMode output = 6; * @return The enum numeric value on the wire for output. */ @java.lang.Override public int getOutputValue() { return output_; } /** *
   * Output mode determines what is the output of executing this rel
   * 
* * .substrait.WriteRel.OutputMode output = 6; * @return The output. */ @java.lang.Override public io.substrait.proto.WriteRel.OutputMode getOutput() { io.substrait.proto.WriteRel.OutputMode result = io.substrait.proto.WriteRel.OutputMode.forNumber(output_); return result == null ? io.substrait.proto.WriteRel.OutputMode.UNRECOGNIZED : result; } public static final int COMMON_FIELD_NUMBER = 7; private io.substrait.proto.RelCommon common_; /** * .substrait.RelCommon common = 7; * @return Whether the common field is set. */ @java.lang.Override public boolean hasCommon() { return ((bitField0_ & 0x00000004) != 0); } /** * .substrait.RelCommon common = 7; * @return The common. */ @java.lang.Override public io.substrait.proto.RelCommon getCommon() { return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_; } /** * .substrait.RelCommon common = 7; */ @java.lang.Override public io.substrait.proto.RelCommonOrBuilder getCommonOrBuilder() { return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_; } 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 (writeTypeCase_ == 1) { output.writeMessage(1, (io.substrait.proto.NamedObjectWrite) writeType_); } if (writeTypeCase_ == 2) { output.writeMessage(2, (io.substrait.proto.ExtensionObject) writeType_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getTableSchema()); } if (op_ != io.substrait.proto.WriteRel.WriteOp.WRITE_OP_UNSPECIFIED.getNumber()) { output.writeEnum(4, op_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getInput()); } if (output_ != io.substrait.proto.WriteRel.OutputMode.OUTPUT_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(6, output_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getCommon()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (writeTypeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.substrait.proto.NamedObjectWrite) writeType_); } if (writeTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.substrait.proto.ExtensionObject) writeType_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTableSchema()); } if (op_ != io.substrait.proto.WriteRel.WriteOp.WRITE_OP_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, op_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getInput()); } if (output_ != io.substrait.proto.WriteRel.OutputMode.OUTPUT_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, output_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCommon()); } 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.WriteRel)) { return super.equals(obj); } io.substrait.proto.WriteRel other = (io.substrait.proto.WriteRel) obj; if (hasTableSchema() != other.hasTableSchema()) return false; if (hasTableSchema()) { if (!getTableSchema() .equals(other.getTableSchema())) return false; } if (op_ != other.op_) return false; if (hasInput() != other.hasInput()) return false; if (hasInput()) { if (!getInput() .equals(other.getInput())) return false; } if (output_ != other.output_) return false; if (hasCommon() != other.hasCommon()) return false; if (hasCommon()) { if (!getCommon() .equals(other.getCommon())) return false; } if (!getWriteTypeCase().equals(other.getWriteTypeCase())) return false; switch (writeTypeCase_) { case 1: if (!getNamedTable() .equals(other.getNamedTable())) return false; break; case 2: if (!getExtensionTable() .equals(other.getExtensionTable())) 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(); if (hasTableSchema()) { hash = (37 * hash) + TABLE_SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getTableSchema().hashCode(); } hash = (37 * hash) + OP_FIELD_NUMBER; hash = (53 * hash) + op_; if (hasInput()) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } hash = (37 * hash) + OUTPUT_FIELD_NUMBER; hash = (53 * hash) + output_; if (hasCommon()) { hash = (37 * hash) + COMMON_FIELD_NUMBER; hash = (53 * hash) + getCommon().hashCode(); } switch (writeTypeCase_) { case 1: hash = (37 * hash) + NAMED_TABLE_FIELD_NUMBER; hash = (53 * hash) + getNamedTable().hashCode(); break; case 2: hash = (37 * hash) + EXTENSION_TABLE_FIELD_NUMBER; hash = (53 * hash) + getExtensionTable().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.WriteRel parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.WriteRel 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.WriteRel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.WriteRel 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.WriteRel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.WriteRel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.WriteRel parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.WriteRel 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.WriteRel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.WriteRel 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.WriteRel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.WriteRel 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.WriteRel 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 operator that modifies the content of a database (operates on 1 table at a time, but record-selection/source can be
   * based on joining of multiple tables).
   * 
* * Protobuf type {@code substrait.WriteRel} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.WriteRel) io.substrait.proto.WriteRelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Algebra.internal_static_substrait_WriteRel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Algebra.internal_static_substrait_WriteRel_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.WriteRel.class, io.substrait.proto.WriteRel.Builder.class); } // Construct using io.substrait.proto.WriteRel.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTableSchemaFieldBuilder(); getInputFieldBuilder(); getCommonFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (namedTableBuilder_ != null) { namedTableBuilder_.clear(); } if (extensionTableBuilder_ != null) { extensionTableBuilder_.clear(); } tableSchema_ = null; if (tableSchemaBuilder_ != null) { tableSchemaBuilder_.dispose(); tableSchemaBuilder_ = null; } op_ = 0; input_ = null; if (inputBuilder_ != null) { inputBuilder_.dispose(); inputBuilder_ = null; } output_ = 0; common_ = null; if (commonBuilder_ != null) { commonBuilder_.dispose(); commonBuilder_ = null; } writeTypeCase_ = 0; writeType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Algebra.internal_static_substrait_WriteRel_descriptor; } @java.lang.Override public io.substrait.proto.WriteRel getDefaultInstanceForType() { return io.substrait.proto.WriteRel.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.WriteRel build() { io.substrait.proto.WriteRel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.WriteRel buildPartial() { io.substrait.proto.WriteRel result = new io.substrait.proto.WriteRel(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.substrait.proto.WriteRel result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.tableSchema_ = tableSchemaBuilder_ == null ? tableSchema_ : tableSchemaBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.op_ = op_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.input_ = inputBuilder_ == null ? input_ : inputBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.output_ = output_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(io.substrait.proto.WriteRel result) { result.writeTypeCase_ = writeTypeCase_; result.writeType_ = this.writeType_; if (writeTypeCase_ == 1 && namedTableBuilder_ != null) { result.writeType_ = namedTableBuilder_.build(); } if (writeTypeCase_ == 2 && extensionTableBuilder_ != null) { result.writeType_ = extensionTableBuilder_.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.WriteRel) { return mergeFrom((io.substrait.proto.WriteRel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.WriteRel other) { if (other == io.substrait.proto.WriteRel.getDefaultInstance()) return this; if (other.hasTableSchema()) { mergeTableSchema(other.getTableSchema()); } if (other.op_ != 0) { setOpValue(other.getOpValue()); } if (other.hasInput()) { mergeInput(other.getInput()); } if (other.output_ != 0) { setOutputValue(other.getOutputValue()); } if (other.hasCommon()) { mergeCommon(other.getCommon()); } switch (other.getWriteTypeCase()) { case NAMED_TABLE: { mergeNamedTable(other.getNamedTable()); break; } case EXTENSION_TABLE: { mergeExtensionTable(other.getExtensionTable()); break; } case WRITETYPE_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( getNamedTableFieldBuilder().getBuilder(), extensionRegistry); writeTypeCase_ = 1; break; } // case 10 case 18: { input.readMessage( getExtensionTableFieldBuilder().getBuilder(), extensionRegistry); writeTypeCase_ = 2; break; } // case 18 case 26: { input.readMessage( getTableSchemaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 32: { op_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage( getInputFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 48: { output_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { input.readMessage( getCommonFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 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 writeTypeCase_ = 0; private java.lang.Object writeType_; public WriteTypeCase getWriteTypeCase() { return WriteTypeCase.forNumber( writeTypeCase_); } public Builder clearWriteType() { writeTypeCase_ = 0; writeType_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.NamedObjectWrite, io.substrait.proto.NamedObjectWrite.Builder, io.substrait.proto.NamedObjectWriteOrBuilder> namedTableBuilder_; /** * .substrait.NamedObjectWrite named_table = 1; * @return Whether the namedTable field is set. */ @java.lang.Override public boolean hasNamedTable() { return writeTypeCase_ == 1; } /** * .substrait.NamedObjectWrite named_table = 1; * @return The namedTable. */ @java.lang.Override public io.substrait.proto.NamedObjectWrite getNamedTable() { if (namedTableBuilder_ == null) { if (writeTypeCase_ == 1) { return (io.substrait.proto.NamedObjectWrite) writeType_; } return io.substrait.proto.NamedObjectWrite.getDefaultInstance(); } else { if (writeTypeCase_ == 1) { return namedTableBuilder_.getMessage(); } return io.substrait.proto.NamedObjectWrite.getDefaultInstance(); } } /** * .substrait.NamedObjectWrite named_table = 1; */ public Builder setNamedTable(io.substrait.proto.NamedObjectWrite value) { if (namedTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } writeType_ = value; onChanged(); } else { namedTableBuilder_.setMessage(value); } writeTypeCase_ = 1; return this; } /** * .substrait.NamedObjectWrite named_table = 1; */ public Builder setNamedTable( io.substrait.proto.NamedObjectWrite.Builder builderForValue) { if (namedTableBuilder_ == null) { writeType_ = builderForValue.build(); onChanged(); } else { namedTableBuilder_.setMessage(builderForValue.build()); } writeTypeCase_ = 1; return this; } /** * .substrait.NamedObjectWrite named_table = 1; */ public Builder mergeNamedTable(io.substrait.proto.NamedObjectWrite value) { if (namedTableBuilder_ == null) { if (writeTypeCase_ == 1 && writeType_ != io.substrait.proto.NamedObjectWrite.getDefaultInstance()) { writeType_ = io.substrait.proto.NamedObjectWrite.newBuilder((io.substrait.proto.NamedObjectWrite) writeType_) .mergeFrom(value).buildPartial(); } else { writeType_ = value; } onChanged(); } else { if (writeTypeCase_ == 1) { namedTableBuilder_.mergeFrom(value); } else { namedTableBuilder_.setMessage(value); } } writeTypeCase_ = 1; return this; } /** * .substrait.NamedObjectWrite named_table = 1; */ public Builder clearNamedTable() { if (namedTableBuilder_ == null) { if (writeTypeCase_ == 1) { writeTypeCase_ = 0; writeType_ = null; onChanged(); } } else { if (writeTypeCase_ == 1) { writeTypeCase_ = 0; writeType_ = null; } namedTableBuilder_.clear(); } return this; } /** * .substrait.NamedObjectWrite named_table = 1; */ public io.substrait.proto.NamedObjectWrite.Builder getNamedTableBuilder() { return getNamedTableFieldBuilder().getBuilder(); } /** * .substrait.NamedObjectWrite named_table = 1; */ @java.lang.Override public io.substrait.proto.NamedObjectWriteOrBuilder getNamedTableOrBuilder() { if ((writeTypeCase_ == 1) && (namedTableBuilder_ != null)) { return namedTableBuilder_.getMessageOrBuilder(); } else { if (writeTypeCase_ == 1) { return (io.substrait.proto.NamedObjectWrite) writeType_; } return io.substrait.proto.NamedObjectWrite.getDefaultInstance(); } } /** * .substrait.NamedObjectWrite named_table = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.NamedObjectWrite, io.substrait.proto.NamedObjectWrite.Builder, io.substrait.proto.NamedObjectWriteOrBuilder> getNamedTableFieldBuilder() { if (namedTableBuilder_ == null) { if (!(writeTypeCase_ == 1)) { writeType_ = io.substrait.proto.NamedObjectWrite.getDefaultInstance(); } namedTableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.NamedObjectWrite, io.substrait.proto.NamedObjectWrite.Builder, io.substrait.proto.NamedObjectWriteOrBuilder>( (io.substrait.proto.NamedObjectWrite) writeType_, getParentForChildren(), isClean()); writeType_ = null; } writeTypeCase_ = 1; onChanged(); return namedTableBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExtensionObject, io.substrait.proto.ExtensionObject.Builder, io.substrait.proto.ExtensionObjectOrBuilder> extensionTableBuilder_; /** * .substrait.ExtensionObject extension_table = 2; * @return Whether the extensionTable field is set. */ @java.lang.Override public boolean hasExtensionTable() { return writeTypeCase_ == 2; } /** * .substrait.ExtensionObject extension_table = 2; * @return The extensionTable. */ @java.lang.Override public io.substrait.proto.ExtensionObject getExtensionTable() { if (extensionTableBuilder_ == null) { if (writeTypeCase_ == 2) { return (io.substrait.proto.ExtensionObject) writeType_; } return io.substrait.proto.ExtensionObject.getDefaultInstance(); } else { if (writeTypeCase_ == 2) { return extensionTableBuilder_.getMessage(); } return io.substrait.proto.ExtensionObject.getDefaultInstance(); } } /** * .substrait.ExtensionObject extension_table = 2; */ public Builder setExtensionTable(io.substrait.proto.ExtensionObject value) { if (extensionTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } writeType_ = value; onChanged(); } else { extensionTableBuilder_.setMessage(value); } writeTypeCase_ = 2; return this; } /** * .substrait.ExtensionObject extension_table = 2; */ public Builder setExtensionTable( io.substrait.proto.ExtensionObject.Builder builderForValue) { if (extensionTableBuilder_ == null) { writeType_ = builderForValue.build(); onChanged(); } else { extensionTableBuilder_.setMessage(builderForValue.build()); } writeTypeCase_ = 2; return this; } /** * .substrait.ExtensionObject extension_table = 2; */ public Builder mergeExtensionTable(io.substrait.proto.ExtensionObject value) { if (extensionTableBuilder_ == null) { if (writeTypeCase_ == 2 && writeType_ != io.substrait.proto.ExtensionObject.getDefaultInstance()) { writeType_ = io.substrait.proto.ExtensionObject.newBuilder((io.substrait.proto.ExtensionObject) writeType_) .mergeFrom(value).buildPartial(); } else { writeType_ = value; } onChanged(); } else { if (writeTypeCase_ == 2) { extensionTableBuilder_.mergeFrom(value); } else { extensionTableBuilder_.setMessage(value); } } writeTypeCase_ = 2; return this; } /** * .substrait.ExtensionObject extension_table = 2; */ public Builder clearExtensionTable() { if (extensionTableBuilder_ == null) { if (writeTypeCase_ == 2) { writeTypeCase_ = 0; writeType_ = null; onChanged(); } } else { if (writeTypeCase_ == 2) { writeTypeCase_ = 0; writeType_ = null; } extensionTableBuilder_.clear(); } return this; } /** * .substrait.ExtensionObject extension_table = 2; */ public io.substrait.proto.ExtensionObject.Builder getExtensionTableBuilder() { return getExtensionTableFieldBuilder().getBuilder(); } /** * .substrait.ExtensionObject extension_table = 2; */ @java.lang.Override public io.substrait.proto.ExtensionObjectOrBuilder getExtensionTableOrBuilder() { if ((writeTypeCase_ == 2) && (extensionTableBuilder_ != null)) { return extensionTableBuilder_.getMessageOrBuilder(); } else { if (writeTypeCase_ == 2) { return (io.substrait.proto.ExtensionObject) writeType_; } return io.substrait.proto.ExtensionObject.getDefaultInstance(); } } /** * .substrait.ExtensionObject extension_table = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExtensionObject, io.substrait.proto.ExtensionObject.Builder, io.substrait.proto.ExtensionObjectOrBuilder> getExtensionTableFieldBuilder() { if (extensionTableBuilder_ == null) { if (!(writeTypeCase_ == 2)) { writeType_ = io.substrait.proto.ExtensionObject.getDefaultInstance(); } extensionTableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.ExtensionObject, io.substrait.proto.ExtensionObject.Builder, io.substrait.proto.ExtensionObjectOrBuilder>( (io.substrait.proto.ExtensionObject) writeType_, getParentForChildren(), isClean()); writeType_ = null; } writeTypeCase_ = 2; onChanged(); return extensionTableBuilder_; } private io.substrait.proto.NamedStruct tableSchema_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.NamedStruct, io.substrait.proto.NamedStruct.Builder, io.substrait.proto.NamedStructOrBuilder> tableSchemaBuilder_; /** *
     * The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
     * 
* * .substrait.NamedStruct table_schema = 3; * @return Whether the tableSchema field is set. */ public boolean hasTableSchema() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
     * 
* * .substrait.NamedStruct table_schema = 3; * @return The tableSchema. */ public io.substrait.proto.NamedStruct getTableSchema() { if (tableSchemaBuilder_ == null) { return tableSchema_ == null ? io.substrait.proto.NamedStruct.getDefaultInstance() : tableSchema_; } else { return tableSchemaBuilder_.getMessage(); } } /** *
     * The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
     * 
* * .substrait.NamedStruct table_schema = 3; */ public Builder setTableSchema(io.substrait.proto.NamedStruct value) { if (tableSchemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tableSchema_ = value; } else { tableSchemaBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
     * 
* * .substrait.NamedStruct table_schema = 3; */ public Builder setTableSchema( io.substrait.proto.NamedStruct.Builder builderForValue) { if (tableSchemaBuilder_ == null) { tableSchema_ = builderForValue.build(); } else { tableSchemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
     * 
* * .substrait.NamedStruct table_schema = 3; */ public Builder mergeTableSchema(io.substrait.proto.NamedStruct value) { if (tableSchemaBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && tableSchema_ != null && tableSchema_ != io.substrait.proto.NamedStruct.getDefaultInstance()) { getTableSchemaBuilder().mergeFrom(value); } else { tableSchema_ = value; } } else { tableSchemaBuilder_.mergeFrom(value); } if (tableSchema_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
     * 
* * .substrait.NamedStruct table_schema = 3; */ public Builder clearTableSchema() { bitField0_ = (bitField0_ & ~0x00000004); tableSchema_ = null; if (tableSchemaBuilder_ != null) { tableSchemaBuilder_.dispose(); tableSchemaBuilder_ = null; } onChanged(); return this; } /** *
     * The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
     * 
* * .substrait.NamedStruct table_schema = 3; */ public io.substrait.proto.NamedStruct.Builder getTableSchemaBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTableSchemaFieldBuilder().getBuilder(); } /** *
     * The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
     * 
* * .substrait.NamedStruct table_schema = 3; */ public io.substrait.proto.NamedStructOrBuilder getTableSchemaOrBuilder() { if (tableSchemaBuilder_ != null) { return tableSchemaBuilder_.getMessageOrBuilder(); } else { return tableSchema_ == null ? io.substrait.proto.NamedStruct.getDefaultInstance() : tableSchema_; } } /** *
     * The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
     * 
* * .substrait.NamedStruct table_schema = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.NamedStruct, io.substrait.proto.NamedStruct.Builder, io.substrait.proto.NamedStructOrBuilder> getTableSchemaFieldBuilder() { if (tableSchemaBuilder_ == null) { tableSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.NamedStruct, io.substrait.proto.NamedStruct.Builder, io.substrait.proto.NamedStructOrBuilder>( getTableSchema(), getParentForChildren(), isClean()); tableSchema_ = null; } return tableSchemaBuilder_; } private int op_ = 0; /** *
     * The type of operation to perform
     * 
* * .substrait.WriteRel.WriteOp op = 4; * @return The enum numeric value on the wire for op. */ @java.lang.Override public int getOpValue() { return op_; } /** *
     * The type of operation to perform
     * 
* * .substrait.WriteRel.WriteOp op = 4; * @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_ |= 0x00000008; onChanged(); return this; } /** *
     * The type of operation to perform
     * 
* * .substrait.WriteRel.WriteOp op = 4; * @return The op. */ @java.lang.Override public io.substrait.proto.WriteRel.WriteOp getOp() { io.substrait.proto.WriteRel.WriteOp result = io.substrait.proto.WriteRel.WriteOp.forNumber(op_); return result == null ? io.substrait.proto.WriteRel.WriteOp.UNRECOGNIZED : result; } /** *
     * The type of operation to perform
     * 
* * .substrait.WriteRel.WriteOp op = 4; * @param value The op to set. * @return This builder for chaining. */ public Builder setOp(io.substrait.proto.WriteRel.WriteOp value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; op_ = value.getNumber(); onChanged(); return this; } /** *
     * The type of operation to perform
     * 
* * .substrait.WriteRel.WriteOp op = 4; * @return This builder for chaining. */ public Builder clearOp() { bitField0_ = (bitField0_ & ~0x00000008); op_ = 0; onChanged(); return this; } private io.substrait.proto.Rel input_; private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> inputBuilder_; /** *
     * The relation that determines the records to add/remove/modify
     * the schema must match with table_schema. Default values must be explicitly stated
     * in a ProjectRel at the top of the input. The match must also
     * occur in case of DELETE to ensure multi-engine plans are unequivocal.
     * 
* * .substrait.Rel input = 5; * @return Whether the input field is set. */ public boolean hasInput() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * The relation that determines the records to add/remove/modify
     * the schema must match with table_schema. Default values must be explicitly stated
     * in a ProjectRel at the top of the input. The match must also
     * occur in case of DELETE to ensure multi-engine plans are unequivocal.
     * 
* * .substrait.Rel input = 5; * @return The input. */ public io.substrait.proto.Rel getInput() { if (inputBuilder_ == null) { return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_; } else { return inputBuilder_.getMessage(); } } /** *
     * The relation that determines the records to add/remove/modify
     * the schema must match with table_schema. Default values must be explicitly stated
     * in a ProjectRel at the top of the input. The match must also
     * occur in case of DELETE to ensure multi-engine plans are unequivocal.
     * 
* * .substrait.Rel input = 5; */ public Builder setInput(io.substrait.proto.Rel value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } input_ = value; } else { inputBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The relation that determines the records to add/remove/modify
     * the schema must match with table_schema. Default values must be explicitly stated
     * in a ProjectRel at the top of the input. The match must also
     * occur in case of DELETE to ensure multi-engine plans are unequivocal.
     * 
* * .substrait.Rel input = 5; */ public Builder setInput( io.substrait.proto.Rel.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); } else { inputBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The relation that determines the records to add/remove/modify
     * the schema must match with table_schema. Default values must be explicitly stated
     * in a ProjectRel at the top of the input. The match must also
     * occur in case of DELETE to ensure multi-engine plans are unequivocal.
     * 
* * .substrait.Rel input = 5; */ public Builder mergeInput(io.substrait.proto.Rel value) { if (inputBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && input_ != null && input_ != io.substrait.proto.Rel.getDefaultInstance()) { getInputBuilder().mergeFrom(value); } else { input_ = value; } } else { inputBuilder_.mergeFrom(value); } if (input_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     * The relation that determines the records to add/remove/modify
     * the schema must match with table_schema. Default values must be explicitly stated
     * in a ProjectRel at the top of the input. The match must also
     * occur in case of DELETE to ensure multi-engine plans are unequivocal.
     * 
* * .substrait.Rel input = 5; */ public Builder clearInput() { bitField0_ = (bitField0_ & ~0x00000010); input_ = null; if (inputBuilder_ != null) { inputBuilder_.dispose(); inputBuilder_ = null; } onChanged(); return this; } /** *
     * The relation that determines the records to add/remove/modify
     * the schema must match with table_schema. Default values must be explicitly stated
     * in a ProjectRel at the top of the input. The match must also
     * occur in case of DELETE to ensure multi-engine plans are unequivocal.
     * 
* * .substrait.Rel input = 5; */ public io.substrait.proto.Rel.Builder getInputBuilder() { bitField0_ |= 0x00000010; onChanged(); return getInputFieldBuilder().getBuilder(); } /** *
     * The relation that determines the records to add/remove/modify
     * the schema must match with table_schema. Default values must be explicitly stated
     * in a ProjectRel at the top of the input. The match must also
     * occur in case of DELETE to ensure multi-engine plans are unequivocal.
     * 
* * .substrait.Rel input = 5; */ public io.substrait.proto.RelOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { return input_ == null ? io.substrait.proto.Rel.getDefaultInstance() : input_; } } /** *
     * The relation that determines the records to add/remove/modify
     * the schema must match with table_schema. Default values must be explicitly stated
     * in a ProjectRel at the top of the input. The match must also
     * occur in case of DELETE to ensure multi-engine plans are unequivocal.
     * 
* * .substrait.Rel input = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>( getInput(), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; } private int output_ = 0; /** *
     * Output mode determines what is the output of executing this rel
     * 
* * .substrait.WriteRel.OutputMode output = 6; * @return The enum numeric value on the wire for output. */ @java.lang.Override public int getOutputValue() { return output_; } /** *
     * Output mode determines what is the output of executing this rel
     * 
* * .substrait.WriteRel.OutputMode output = 6; * @param value The enum numeric value on the wire for output to set. * @return This builder for chaining. */ public Builder setOutputValue(int value) { output_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Output mode determines what is the output of executing this rel
     * 
* * .substrait.WriteRel.OutputMode output = 6; * @return The output. */ @java.lang.Override public io.substrait.proto.WriteRel.OutputMode getOutput() { io.substrait.proto.WriteRel.OutputMode result = io.substrait.proto.WriteRel.OutputMode.forNumber(output_); return result == null ? io.substrait.proto.WriteRel.OutputMode.UNRECOGNIZED : result; } /** *
     * Output mode determines what is the output of executing this rel
     * 
* * .substrait.WriteRel.OutputMode output = 6; * @param value The output to set. * @return This builder for chaining. */ public Builder setOutput(io.substrait.proto.WriteRel.OutputMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; output_ = value.getNumber(); onChanged(); return this; } /** *
     * Output mode determines what is the output of executing this rel
     * 
* * .substrait.WriteRel.OutputMode output = 6; * @return This builder for chaining. */ public Builder clearOutput() { bitField0_ = (bitField0_ & ~0x00000020); output_ = 0; onChanged(); return this; } 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 = 7; * @return Whether the common field is set. */ public boolean hasCommon() { return ((bitField0_ & 0x00000040) != 0); } /** * .substrait.RelCommon common = 7; * @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 = 7; */ public Builder setCommon(io.substrait.proto.RelCommon value) { if (commonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } common_ = value; } else { commonBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * .substrait.RelCommon common = 7; */ public Builder setCommon( io.substrait.proto.RelCommon.Builder builderForValue) { if (commonBuilder_ == null) { common_ = builderForValue.build(); } else { commonBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * .substrait.RelCommon common = 7; */ public Builder mergeCommon(io.substrait.proto.RelCommon value) { if (commonBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && common_ != null && common_ != io.substrait.proto.RelCommon.getDefaultInstance()) { getCommonBuilder().mergeFrom(value); } else { common_ = value; } } else { commonBuilder_.mergeFrom(value); } if (common_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** * .substrait.RelCommon common = 7; */ public Builder clearCommon() { bitField0_ = (bitField0_ & ~0x00000040); common_ = null; if (commonBuilder_ != null) { commonBuilder_.dispose(); commonBuilder_ = null; } onChanged(); return this; } /** * .substrait.RelCommon common = 7; */ public io.substrait.proto.RelCommon.Builder getCommonBuilder() { bitField0_ |= 0x00000040; onChanged(); return getCommonFieldBuilder().getBuilder(); } /** * .substrait.RelCommon common = 7; */ 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 = 7; */ 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_; } @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.WriteRel) } // @@protoc_insertion_point(class_scope:substrait.WriteRel) private static final io.substrait.proto.WriteRel DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.WriteRel(); } public static io.substrait.proto.WriteRel getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WriteRel 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.WriteRel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy