io.substrait.proto.DdlRel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Create a well-defined, cross-language specification for data compute operations
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: substrait/algebra.proto
// Protobuf Java Version: 3.25.5
package io.substrait.proto;
/**
* Protobuf type {@code substrait.DdlRel}
*/
public final class DdlRel extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.DdlRel)
DdlRelOrBuilder {
private static final long serialVersionUID = 0L;
// Use DdlRel.newBuilder() to construct.
private DdlRel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DdlRel() {
object_ = 0;
op_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DdlRel();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_DdlRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_DdlRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.DdlRel.class, io.substrait.proto.DdlRel.Builder.class);
}
/**
* Protobuf enum {@code substrait.DdlRel.DdlObject}
*/
public enum DdlObject
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DDL_OBJECT_UNSPECIFIED = 0;
*/
DDL_OBJECT_UNSPECIFIED(0),
/**
*
* A Table object in the system
*
*
* DDL_OBJECT_TABLE = 1;
*/
DDL_OBJECT_TABLE(1),
/**
*
* A View object in the system
*
*
* DDL_OBJECT_VIEW = 2;
*/
DDL_OBJECT_VIEW(2),
UNRECOGNIZED(-1),
;
/**
* DDL_OBJECT_UNSPECIFIED = 0;
*/
public static final int DDL_OBJECT_UNSPECIFIED_VALUE = 0;
/**
*
* A Table object in the system
*
*
* DDL_OBJECT_TABLE = 1;
*/
public static final int DDL_OBJECT_TABLE_VALUE = 1;
/**
*
* A View object in the system
*
*
* DDL_OBJECT_VIEW = 2;
*/
public static final int DDL_OBJECT_VIEW_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 DdlObject 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 DdlObject forNumber(int value) {
switch (value) {
case 0: return DDL_OBJECT_UNSPECIFIED;
case 1: return DDL_OBJECT_TABLE;
case 2: return DDL_OBJECT_VIEW;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DdlObject> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DdlObject findValueByNumber(int number) {
return DdlObject.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.DdlRel.getDescriptor().getEnumTypes().get(0);
}
private static final DdlObject[] VALUES = values();
public static DdlObject 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 DdlObject(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:substrait.DdlRel.DdlObject)
}
/**
* Protobuf enum {@code substrait.DdlRel.DdlOp}
*/
public enum DdlOp
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DDL_OP_UNSPECIFIED = 0;
*/
DDL_OP_UNSPECIFIED(0),
/**
*
* A create operation (for any object)
*
*
* DDL_OP_CREATE = 1;
*/
DDL_OP_CREATE(1),
/**
*
* A create operation if the object does not exist, or replaces it (equivalent to a DROP + CREATE) if the object already exists
*
*
* DDL_OP_CREATE_OR_REPLACE = 2;
*/
DDL_OP_CREATE_OR_REPLACE(2),
/**
*
* An operation that modifies the schema (e.g., column names, types, default values) for the target object
*
*
* DDL_OP_ALTER = 3;
*/
DDL_OP_ALTER(3),
/**
*
* An operation that removes an object from the system
*
*
* DDL_OP_DROP = 4;
*/
DDL_OP_DROP(4),
/**
*
* An operation that removes an object from the system (without throwing an exception if the object did not exist)
*
*
* DDL_OP_DROP_IF_EXIST = 5;
*/
DDL_OP_DROP_IF_EXIST(5),
UNRECOGNIZED(-1),
;
/**
* DDL_OP_UNSPECIFIED = 0;
*/
public static final int DDL_OP_UNSPECIFIED_VALUE = 0;
/**
*
* A create operation (for any object)
*
*
* DDL_OP_CREATE = 1;
*/
public static final int DDL_OP_CREATE_VALUE = 1;
/**
*
* A create operation if the object does not exist, or replaces it (equivalent to a DROP + CREATE) if the object already exists
*
*
* DDL_OP_CREATE_OR_REPLACE = 2;
*/
public static final int DDL_OP_CREATE_OR_REPLACE_VALUE = 2;
/**
*
* An operation that modifies the schema (e.g., column names, types, default values) for the target object
*
*
* DDL_OP_ALTER = 3;
*/
public static final int DDL_OP_ALTER_VALUE = 3;
/**
*
* An operation that removes an object from the system
*
*
* DDL_OP_DROP = 4;
*/
public static final int DDL_OP_DROP_VALUE = 4;
/**
*
* An operation that removes an object from the system (without throwing an exception if the object did not exist)
*
*
* DDL_OP_DROP_IF_EXIST = 5;
*/
public static final int DDL_OP_DROP_IF_EXIST_VALUE = 5;
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 DdlOp 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 DdlOp forNumber(int value) {
switch (value) {
case 0: return DDL_OP_UNSPECIFIED;
case 1: return DDL_OP_CREATE;
case 2: return DDL_OP_CREATE_OR_REPLACE;
case 3: return DDL_OP_ALTER;
case 4: return DDL_OP_DROP;
case 5: return DDL_OP_DROP_IF_EXIST;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DdlOp> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DdlOp findValueByNumber(int number) {
return DdlOp.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.DdlRel.getDescriptor().getEnumTypes().get(1);
}
private static final DdlOp[] VALUES = values();
public static DdlOp 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 DdlOp(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:substrait.DdlRel.DdlOp)
}
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_OBJECT(1),
EXTENSION_OBJECT(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_OBJECT;
case 2: return EXTENSION_OBJECT;
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_OBJECT_FIELD_NUMBER = 1;
/**
* .substrait.NamedObjectWrite named_object = 1;
* @return Whether the namedObject field is set.
*/
@java.lang.Override
public boolean hasNamedObject() {
return writeTypeCase_ == 1;
}
/**
* .substrait.NamedObjectWrite named_object = 1;
* @return The namedObject.
*/
@java.lang.Override
public io.substrait.proto.NamedObjectWrite getNamedObject() {
if (writeTypeCase_ == 1) {
return (io.substrait.proto.NamedObjectWrite) writeType_;
}
return io.substrait.proto.NamedObjectWrite.getDefaultInstance();
}
/**
* .substrait.NamedObjectWrite named_object = 1;
*/
@java.lang.Override
public io.substrait.proto.NamedObjectWriteOrBuilder getNamedObjectOrBuilder() {
if (writeTypeCase_ == 1) {
return (io.substrait.proto.NamedObjectWrite) writeType_;
}
return io.substrait.proto.NamedObjectWrite.getDefaultInstance();
}
public static final int EXTENSION_OBJECT_FIELD_NUMBER = 2;
/**
* .substrait.ExtensionObject extension_object = 2;
* @return Whether the extensionObject field is set.
*/
@java.lang.Override
public boolean hasExtensionObject() {
return writeTypeCase_ == 2;
}
/**
* .substrait.ExtensionObject extension_object = 2;
* @return The extensionObject.
*/
@java.lang.Override
public io.substrait.proto.ExtensionObject getExtensionObject() {
if (writeTypeCase_ == 2) {
return (io.substrait.proto.ExtensionObject) writeType_;
}
return io.substrait.proto.ExtensionObject.getDefaultInstance();
}
/**
* .substrait.ExtensionObject extension_object = 2;
*/
@java.lang.Override
public io.substrait.proto.ExtensionObjectOrBuilder getExtensionObjectOrBuilder() {
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 columns that will be modified (representing after-image of a schema change)
*
*
* .substrait.NamedStruct table_schema = 3;
* @return Whether the tableSchema field is set.
*/
@java.lang.Override
public boolean hasTableSchema() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The columns that will be modified (representing after-image of a schema change)
*
*
* .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 columns that will be modified (representing after-image of a schema change)
*
*
* .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 TABLE_DEFAULTS_FIELD_NUMBER = 4;
private io.substrait.proto.Expression.Literal.Struct tableDefaults_;
/**
*
* The default values for the columns (representing after-image of a schema change)
* E.g., in case of an ALTER TABLE that changes some of the column default values, we expect
* the table_defaults Struct to report a full list of default values reflecting the result of applying
* the ALTER TABLE operator successfully
*
*
* .substrait.Expression.Literal.Struct table_defaults = 4;
* @return Whether the tableDefaults field is set.
*/
@java.lang.Override
public boolean hasTableDefaults() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The default values for the columns (representing after-image of a schema change)
* E.g., in case of an ALTER TABLE that changes some of the column default values, we expect
* the table_defaults Struct to report a full list of default values reflecting the result of applying
* the ALTER TABLE operator successfully
*
*
* .substrait.Expression.Literal.Struct table_defaults = 4;
* @return The tableDefaults.
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.Struct getTableDefaults() {
return tableDefaults_ == null ? io.substrait.proto.Expression.Literal.Struct.getDefaultInstance() : tableDefaults_;
}
/**
*
* The default values for the columns (representing after-image of a schema change)
* E.g., in case of an ALTER TABLE that changes some of the column default values, we expect
* the table_defaults Struct to report a full list of default values reflecting the result of applying
* the ALTER TABLE operator successfully
*
*
* .substrait.Expression.Literal.Struct table_defaults = 4;
*/
@java.lang.Override
public io.substrait.proto.Expression.Literal.StructOrBuilder getTableDefaultsOrBuilder() {
return tableDefaults_ == null ? io.substrait.proto.Expression.Literal.Struct.getDefaultInstance() : tableDefaults_;
}
public static final int OBJECT_FIELD_NUMBER = 5;
private int object_ = 0;
/**
*
* Which type of object we operate on
*
*
* .substrait.DdlRel.DdlObject object = 5;
* @return The enum numeric value on the wire for object.
*/
@java.lang.Override public int getObjectValue() {
return object_;
}
/**
*
* Which type of object we operate on
*
*
* .substrait.DdlRel.DdlObject object = 5;
* @return The object.
*/
@java.lang.Override public io.substrait.proto.DdlRel.DdlObject getObject() {
io.substrait.proto.DdlRel.DdlObject result = io.substrait.proto.DdlRel.DdlObject.forNumber(object_);
return result == null ? io.substrait.proto.DdlRel.DdlObject.UNRECOGNIZED : result;
}
public static final int OP_FIELD_NUMBER = 6;
private int op_ = 0;
/**
*
* The type of operation to perform
*
*
* .substrait.DdlRel.DdlOp op = 6;
* @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.DdlRel.DdlOp op = 6;
* @return The op.
*/
@java.lang.Override public io.substrait.proto.DdlRel.DdlOp getOp() {
io.substrait.proto.DdlRel.DdlOp result = io.substrait.proto.DdlRel.DdlOp.forNumber(op_);
return result == null ? io.substrait.proto.DdlRel.DdlOp.UNRECOGNIZED : result;
}
public static final int VIEW_DEFINITION_FIELD_NUMBER = 7;
private io.substrait.proto.Rel viewDefinition_;
/**
*
* The body of the CREATE VIEW
*
*
* .substrait.Rel view_definition = 7;
* @return Whether the viewDefinition field is set.
*/
@java.lang.Override
public boolean hasViewDefinition() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The body of the CREATE VIEW
*
*
* .substrait.Rel view_definition = 7;
* @return The viewDefinition.
*/
@java.lang.Override
public io.substrait.proto.Rel getViewDefinition() {
return viewDefinition_ == null ? io.substrait.proto.Rel.getDefaultInstance() : viewDefinition_;
}
/**
*
* The body of the CREATE VIEW
*
*
* .substrait.Rel view_definition = 7;
*/
@java.lang.Override
public io.substrait.proto.RelOrBuilder getViewDefinitionOrBuilder() {
return viewDefinition_ == null ? io.substrait.proto.Rel.getDefaultInstance() : viewDefinition_;
}
public static final int COMMON_FIELD_NUMBER = 8;
private io.substrait.proto.RelCommon common_;
/**
* .substrait.RelCommon common = 8;
* @return Whether the common field is set.
*/
@java.lang.Override
public boolean hasCommon() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .substrait.RelCommon common = 8;
* @return The common.
*/
@java.lang.Override
public io.substrait.proto.RelCommon getCommon() {
return common_ == null ? io.substrait.proto.RelCommon.getDefaultInstance() : common_;
}
/**
* .substrait.RelCommon common = 8;
*/
@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 (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getTableDefaults());
}
if (object_ != io.substrait.proto.DdlRel.DdlObject.DDL_OBJECT_UNSPECIFIED.getNumber()) {
output.writeEnum(5, object_);
}
if (op_ != io.substrait.proto.DdlRel.DdlOp.DDL_OP_UNSPECIFIED.getNumber()) {
output.writeEnum(6, op_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getViewDefinition());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(8, 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 (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getTableDefaults());
}
if (object_ != io.substrait.proto.DdlRel.DdlObject.DDL_OBJECT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, object_);
}
if (op_ != io.substrait.proto.DdlRel.DdlOp.DDL_OP_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, op_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getViewDefinition());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, 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.DdlRel)) {
return super.equals(obj);
}
io.substrait.proto.DdlRel other = (io.substrait.proto.DdlRel) obj;
if (hasTableSchema() != other.hasTableSchema()) return false;
if (hasTableSchema()) {
if (!getTableSchema()
.equals(other.getTableSchema())) return false;
}
if (hasTableDefaults() != other.hasTableDefaults()) return false;
if (hasTableDefaults()) {
if (!getTableDefaults()
.equals(other.getTableDefaults())) return false;
}
if (object_ != other.object_) return false;
if (op_ != other.op_) return false;
if (hasViewDefinition() != other.hasViewDefinition()) return false;
if (hasViewDefinition()) {
if (!getViewDefinition()
.equals(other.getViewDefinition())) 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 (!getNamedObject()
.equals(other.getNamedObject())) return false;
break;
case 2:
if (!getExtensionObject()
.equals(other.getExtensionObject())) 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();
}
if (hasTableDefaults()) {
hash = (37 * hash) + TABLE_DEFAULTS_FIELD_NUMBER;
hash = (53 * hash) + getTableDefaults().hashCode();
}
hash = (37 * hash) + OBJECT_FIELD_NUMBER;
hash = (53 * hash) + object_;
hash = (37 * hash) + OP_FIELD_NUMBER;
hash = (53 * hash) + op_;
if (hasViewDefinition()) {
hash = (37 * hash) + VIEW_DEFINITION_FIELD_NUMBER;
hash = (53 * hash) + getViewDefinition().hashCode();
}
if (hasCommon()) {
hash = (37 * hash) + COMMON_FIELD_NUMBER;
hash = (53 * hash) + getCommon().hashCode();
}
switch (writeTypeCase_) {
case 1:
hash = (37 * hash) + NAMED_OBJECT_FIELD_NUMBER;
hash = (53 * hash) + getNamedObject().hashCode();
break;
case 2:
hash = (37 * hash) + EXTENSION_OBJECT_FIELD_NUMBER;
hash = (53 * hash) + getExtensionObject().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.DdlRel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.DdlRel 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.DdlRel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.DdlRel 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.DdlRel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.DdlRel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.DdlRel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.DdlRel 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.DdlRel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.DdlRel 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.DdlRel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.DdlRel 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.DdlRel 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;
}
/**
* Protobuf type {@code substrait.DdlRel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.DdlRel)
io.substrait.proto.DdlRelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Algebra.internal_static_substrait_DdlRel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Algebra.internal_static_substrait_DdlRel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.DdlRel.class, io.substrait.proto.DdlRel.Builder.class);
}
// Construct using io.substrait.proto.DdlRel.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();
getTableDefaultsFieldBuilder();
getViewDefinitionFieldBuilder();
getCommonFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (namedObjectBuilder_ != null) {
namedObjectBuilder_.clear();
}
if (extensionObjectBuilder_ != null) {
extensionObjectBuilder_.clear();
}
tableSchema_ = null;
if (tableSchemaBuilder_ != null) {
tableSchemaBuilder_.dispose();
tableSchemaBuilder_ = null;
}
tableDefaults_ = null;
if (tableDefaultsBuilder_ != null) {
tableDefaultsBuilder_.dispose();
tableDefaultsBuilder_ = null;
}
object_ = 0;
op_ = 0;
viewDefinition_ = null;
if (viewDefinitionBuilder_ != null) {
viewDefinitionBuilder_.dispose();
viewDefinitionBuilder_ = null;
}
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_DdlRel_descriptor;
}
@java.lang.Override
public io.substrait.proto.DdlRel getDefaultInstanceForType() {
return io.substrait.proto.DdlRel.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.DdlRel build() {
io.substrait.proto.DdlRel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.DdlRel buildPartial() {
io.substrait.proto.DdlRel result = new io.substrait.proto.DdlRel(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.DdlRel 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.tableDefaults_ = tableDefaultsBuilder_ == null
? tableDefaults_
: tableDefaultsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.object_ = object_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.op_ = op_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.viewDefinition_ = viewDefinitionBuilder_ == null
? viewDefinition_
: viewDefinitionBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.common_ = commonBuilder_ == null
? common_
: commonBuilder_.build();
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(io.substrait.proto.DdlRel result) {
result.writeTypeCase_ = writeTypeCase_;
result.writeType_ = this.writeType_;
if (writeTypeCase_ == 1 &&
namedObjectBuilder_ != null) {
result.writeType_ = namedObjectBuilder_.build();
}
if (writeTypeCase_ == 2 &&
extensionObjectBuilder_ != null) {
result.writeType_ = extensionObjectBuilder_.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.DdlRel) {
return mergeFrom((io.substrait.proto.DdlRel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.DdlRel other) {
if (other == io.substrait.proto.DdlRel.getDefaultInstance()) return this;
if (other.hasTableSchema()) {
mergeTableSchema(other.getTableSchema());
}
if (other.hasTableDefaults()) {
mergeTableDefaults(other.getTableDefaults());
}
if (other.object_ != 0) {
setObjectValue(other.getObjectValue());
}
if (other.op_ != 0) {
setOpValue(other.getOpValue());
}
if (other.hasViewDefinition()) {
mergeViewDefinition(other.getViewDefinition());
}
if (other.hasCommon()) {
mergeCommon(other.getCommon());
}
switch (other.getWriteTypeCase()) {
case NAMED_OBJECT: {
mergeNamedObject(other.getNamedObject());
break;
}
case EXTENSION_OBJECT: {
mergeExtensionObject(other.getExtensionObject());
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(
getNamedObjectFieldBuilder().getBuilder(),
extensionRegistry);
writeTypeCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getExtensionObjectFieldBuilder().getBuilder(),
extensionRegistry);
writeTypeCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getTableSchemaFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getTableDefaultsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
object_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
op_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
input.readMessage(
getViewDefinitionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getCommonFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
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> namedObjectBuilder_;
/**
* .substrait.NamedObjectWrite named_object = 1;
* @return Whether the namedObject field is set.
*/
@java.lang.Override
public boolean hasNamedObject() {
return writeTypeCase_ == 1;
}
/**
* .substrait.NamedObjectWrite named_object = 1;
* @return The namedObject.
*/
@java.lang.Override
public io.substrait.proto.NamedObjectWrite getNamedObject() {
if (namedObjectBuilder_ == null) {
if (writeTypeCase_ == 1) {
return (io.substrait.proto.NamedObjectWrite) writeType_;
}
return io.substrait.proto.NamedObjectWrite.getDefaultInstance();
} else {
if (writeTypeCase_ == 1) {
return namedObjectBuilder_.getMessage();
}
return io.substrait.proto.NamedObjectWrite.getDefaultInstance();
}
}
/**
* .substrait.NamedObjectWrite named_object = 1;
*/
public Builder setNamedObject(io.substrait.proto.NamedObjectWrite value) {
if (namedObjectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
writeType_ = value;
onChanged();
} else {
namedObjectBuilder_.setMessage(value);
}
writeTypeCase_ = 1;
return this;
}
/**
* .substrait.NamedObjectWrite named_object = 1;
*/
public Builder setNamedObject(
io.substrait.proto.NamedObjectWrite.Builder builderForValue) {
if (namedObjectBuilder_ == null) {
writeType_ = builderForValue.build();
onChanged();
} else {
namedObjectBuilder_.setMessage(builderForValue.build());
}
writeTypeCase_ = 1;
return this;
}
/**
* .substrait.NamedObjectWrite named_object = 1;
*/
public Builder mergeNamedObject(io.substrait.proto.NamedObjectWrite value) {
if (namedObjectBuilder_ == 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) {
namedObjectBuilder_.mergeFrom(value);
} else {
namedObjectBuilder_.setMessage(value);
}
}
writeTypeCase_ = 1;
return this;
}
/**
* .substrait.NamedObjectWrite named_object = 1;
*/
public Builder clearNamedObject() {
if (namedObjectBuilder_ == null) {
if (writeTypeCase_ == 1) {
writeTypeCase_ = 0;
writeType_ = null;
onChanged();
}
} else {
if (writeTypeCase_ == 1) {
writeTypeCase_ = 0;
writeType_ = null;
}
namedObjectBuilder_.clear();
}
return this;
}
/**
* .substrait.NamedObjectWrite named_object = 1;
*/
public io.substrait.proto.NamedObjectWrite.Builder getNamedObjectBuilder() {
return getNamedObjectFieldBuilder().getBuilder();
}
/**
* .substrait.NamedObjectWrite named_object = 1;
*/
@java.lang.Override
public io.substrait.proto.NamedObjectWriteOrBuilder getNamedObjectOrBuilder() {
if ((writeTypeCase_ == 1) && (namedObjectBuilder_ != null)) {
return namedObjectBuilder_.getMessageOrBuilder();
} else {
if (writeTypeCase_ == 1) {
return (io.substrait.proto.NamedObjectWrite) writeType_;
}
return io.substrait.proto.NamedObjectWrite.getDefaultInstance();
}
}
/**
* .substrait.NamedObjectWrite named_object = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.NamedObjectWrite, io.substrait.proto.NamedObjectWrite.Builder, io.substrait.proto.NamedObjectWriteOrBuilder>
getNamedObjectFieldBuilder() {
if (namedObjectBuilder_ == null) {
if (!(writeTypeCase_ == 1)) {
writeType_ = io.substrait.proto.NamedObjectWrite.getDefaultInstance();
}
namedObjectBuilder_ = 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 namedObjectBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExtensionObject, io.substrait.proto.ExtensionObject.Builder, io.substrait.proto.ExtensionObjectOrBuilder> extensionObjectBuilder_;
/**
* .substrait.ExtensionObject extension_object = 2;
* @return Whether the extensionObject field is set.
*/
@java.lang.Override
public boolean hasExtensionObject() {
return writeTypeCase_ == 2;
}
/**
* .substrait.ExtensionObject extension_object = 2;
* @return The extensionObject.
*/
@java.lang.Override
public io.substrait.proto.ExtensionObject getExtensionObject() {
if (extensionObjectBuilder_ == null) {
if (writeTypeCase_ == 2) {
return (io.substrait.proto.ExtensionObject) writeType_;
}
return io.substrait.proto.ExtensionObject.getDefaultInstance();
} else {
if (writeTypeCase_ == 2) {
return extensionObjectBuilder_.getMessage();
}
return io.substrait.proto.ExtensionObject.getDefaultInstance();
}
}
/**
* .substrait.ExtensionObject extension_object = 2;
*/
public Builder setExtensionObject(io.substrait.proto.ExtensionObject value) {
if (extensionObjectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
writeType_ = value;
onChanged();
} else {
extensionObjectBuilder_.setMessage(value);
}
writeTypeCase_ = 2;
return this;
}
/**
* .substrait.ExtensionObject extension_object = 2;
*/
public Builder setExtensionObject(
io.substrait.proto.ExtensionObject.Builder builderForValue) {
if (extensionObjectBuilder_ == null) {
writeType_ = builderForValue.build();
onChanged();
} else {
extensionObjectBuilder_.setMessage(builderForValue.build());
}
writeTypeCase_ = 2;
return this;
}
/**
* .substrait.ExtensionObject extension_object = 2;
*/
public Builder mergeExtensionObject(io.substrait.proto.ExtensionObject value) {
if (extensionObjectBuilder_ == 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) {
extensionObjectBuilder_.mergeFrom(value);
} else {
extensionObjectBuilder_.setMessage(value);
}
}
writeTypeCase_ = 2;
return this;
}
/**
* .substrait.ExtensionObject extension_object = 2;
*/
public Builder clearExtensionObject() {
if (extensionObjectBuilder_ == null) {
if (writeTypeCase_ == 2) {
writeTypeCase_ = 0;
writeType_ = null;
onChanged();
}
} else {
if (writeTypeCase_ == 2) {
writeTypeCase_ = 0;
writeType_ = null;
}
extensionObjectBuilder_.clear();
}
return this;
}
/**
* .substrait.ExtensionObject extension_object = 2;
*/
public io.substrait.proto.ExtensionObject.Builder getExtensionObjectBuilder() {
return getExtensionObjectFieldBuilder().getBuilder();
}
/**
* .substrait.ExtensionObject extension_object = 2;
*/
@java.lang.Override
public io.substrait.proto.ExtensionObjectOrBuilder getExtensionObjectOrBuilder() {
if ((writeTypeCase_ == 2) && (extensionObjectBuilder_ != null)) {
return extensionObjectBuilder_.getMessageOrBuilder();
} else {
if (writeTypeCase_ == 2) {
return (io.substrait.proto.ExtensionObject) writeType_;
}
return io.substrait.proto.ExtensionObject.getDefaultInstance();
}
}
/**
* .substrait.ExtensionObject extension_object = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.ExtensionObject, io.substrait.proto.ExtensionObject.Builder, io.substrait.proto.ExtensionObjectOrBuilder>
getExtensionObjectFieldBuilder() {
if (extensionObjectBuilder_ == null) {
if (!(writeTypeCase_ == 2)) {
writeType_ = io.substrait.proto.ExtensionObject.getDefaultInstance();
}
extensionObjectBuilder_ = 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 extensionObjectBuilder_;
}
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 columns that will be modified (representing after-image of a schema change)
*
*
* .substrait.NamedStruct table_schema = 3;
* @return Whether the tableSchema field is set.
*/
public boolean hasTableSchema() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The columns that will be modified (representing after-image of a schema change)
*
*
* .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 columns that will be modified (representing after-image of a schema change)
*
*
* .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 columns that will be modified (representing after-image of a schema change)
*
*
* .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 columns that will be modified (representing after-image of a schema change)
*
*
* .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 columns that will be modified (representing after-image of a schema change)
*
*
* .substrait.NamedStruct table_schema = 3;
*/
public Builder clearTableSchema() {
bitField0_ = (bitField0_ & ~0x00000004);
tableSchema_ = null;
if (tableSchemaBuilder_ != null) {
tableSchemaBuilder_.dispose();
tableSchemaBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The columns that will be modified (representing after-image of a schema change)
*
*
* .substrait.NamedStruct table_schema = 3;
*/
public io.substrait.proto.NamedStruct.Builder getTableSchemaBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTableSchemaFieldBuilder().getBuilder();
}
/**
*
* The columns that will be modified (representing after-image of a schema change)
*
*
* .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 columns that will be modified (representing after-image of a schema change)
*
*
* .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 io.substrait.proto.Expression.Literal.Struct tableDefaults_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Struct, io.substrait.proto.Expression.Literal.Struct.Builder, io.substrait.proto.Expression.Literal.StructOrBuilder> tableDefaultsBuilder_;
/**
*
* The default values for the columns (representing after-image of a schema change)
* E.g., in case of an ALTER TABLE that changes some of the column default values, we expect
* the table_defaults Struct to report a full list of default values reflecting the result of applying
* the ALTER TABLE operator successfully
*
*
* .substrait.Expression.Literal.Struct table_defaults = 4;
* @return Whether the tableDefaults field is set.
*/
public boolean hasTableDefaults() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The default values for the columns (representing after-image of a schema change)
* E.g., in case of an ALTER TABLE that changes some of the column default values, we expect
* the table_defaults Struct to report a full list of default values reflecting the result of applying
* the ALTER TABLE operator successfully
*
*
* .substrait.Expression.Literal.Struct table_defaults = 4;
* @return The tableDefaults.
*/
public io.substrait.proto.Expression.Literal.Struct getTableDefaults() {
if (tableDefaultsBuilder_ == null) {
return tableDefaults_ == null ? io.substrait.proto.Expression.Literal.Struct.getDefaultInstance() : tableDefaults_;
} else {
return tableDefaultsBuilder_.getMessage();
}
}
/**
*
* The default values for the columns (representing after-image of a schema change)
* E.g., in case of an ALTER TABLE that changes some of the column default values, we expect
* the table_defaults Struct to report a full list of default values reflecting the result of applying
* the ALTER TABLE operator successfully
*
*
* .substrait.Expression.Literal.Struct table_defaults = 4;
*/
public Builder setTableDefaults(io.substrait.proto.Expression.Literal.Struct value) {
if (tableDefaultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tableDefaults_ = value;
} else {
tableDefaultsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The default values for the columns (representing after-image of a schema change)
* E.g., in case of an ALTER TABLE that changes some of the column default values, we expect
* the table_defaults Struct to report a full list of default values reflecting the result of applying
* the ALTER TABLE operator successfully
*
*
* .substrait.Expression.Literal.Struct table_defaults = 4;
*/
public Builder setTableDefaults(
io.substrait.proto.Expression.Literal.Struct.Builder builderForValue) {
if (tableDefaultsBuilder_ == null) {
tableDefaults_ = builderForValue.build();
} else {
tableDefaultsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The default values for the columns (representing after-image of a schema change)
* E.g., in case of an ALTER TABLE that changes some of the column default values, we expect
* the table_defaults Struct to report a full list of default values reflecting the result of applying
* the ALTER TABLE operator successfully
*
*
* .substrait.Expression.Literal.Struct table_defaults = 4;
*/
public Builder mergeTableDefaults(io.substrait.proto.Expression.Literal.Struct value) {
if (tableDefaultsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
tableDefaults_ != null &&
tableDefaults_ != io.substrait.proto.Expression.Literal.Struct.getDefaultInstance()) {
getTableDefaultsBuilder().mergeFrom(value);
} else {
tableDefaults_ = value;
}
} else {
tableDefaultsBuilder_.mergeFrom(value);
}
if (tableDefaults_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* The default values for the columns (representing after-image of a schema change)
* E.g., in case of an ALTER TABLE that changes some of the column default values, we expect
* the table_defaults Struct to report a full list of default values reflecting the result of applying
* the ALTER TABLE operator successfully
*
*
* .substrait.Expression.Literal.Struct table_defaults = 4;
*/
public Builder clearTableDefaults() {
bitField0_ = (bitField0_ & ~0x00000008);
tableDefaults_ = null;
if (tableDefaultsBuilder_ != null) {
tableDefaultsBuilder_.dispose();
tableDefaultsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The default values for the columns (representing after-image of a schema change)
* E.g., in case of an ALTER TABLE that changes some of the column default values, we expect
* the table_defaults Struct to report a full list of default values reflecting the result of applying
* the ALTER TABLE operator successfully
*
*
* .substrait.Expression.Literal.Struct table_defaults = 4;
*/
public io.substrait.proto.Expression.Literal.Struct.Builder getTableDefaultsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getTableDefaultsFieldBuilder().getBuilder();
}
/**
*
* The default values for the columns (representing after-image of a schema change)
* E.g., in case of an ALTER TABLE that changes some of the column default values, we expect
* the table_defaults Struct to report a full list of default values reflecting the result of applying
* the ALTER TABLE operator successfully
*
*
* .substrait.Expression.Literal.Struct table_defaults = 4;
*/
public io.substrait.proto.Expression.Literal.StructOrBuilder getTableDefaultsOrBuilder() {
if (tableDefaultsBuilder_ != null) {
return tableDefaultsBuilder_.getMessageOrBuilder();
} else {
return tableDefaults_ == null ?
io.substrait.proto.Expression.Literal.Struct.getDefaultInstance() : tableDefaults_;
}
}
/**
*
* The default values for the columns (representing after-image of a schema change)
* E.g., in case of an ALTER TABLE that changes some of the column default values, we expect
* the table_defaults Struct to report a full list of default values reflecting the result of applying
* the ALTER TABLE operator successfully
*
*
* .substrait.Expression.Literal.Struct table_defaults = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Struct, io.substrait.proto.Expression.Literal.Struct.Builder, io.substrait.proto.Expression.Literal.StructOrBuilder>
getTableDefaultsFieldBuilder() {
if (tableDefaultsBuilder_ == null) {
tableDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Expression.Literal.Struct, io.substrait.proto.Expression.Literal.Struct.Builder, io.substrait.proto.Expression.Literal.StructOrBuilder>(
getTableDefaults(),
getParentForChildren(),
isClean());
tableDefaults_ = null;
}
return tableDefaultsBuilder_;
}
private int object_ = 0;
/**
*
* Which type of object we operate on
*
*
* .substrait.DdlRel.DdlObject object = 5;
* @return The enum numeric value on the wire for object.
*/
@java.lang.Override public int getObjectValue() {
return object_;
}
/**
*
* Which type of object we operate on
*
*
* .substrait.DdlRel.DdlObject object = 5;
* @param value The enum numeric value on the wire for object to set.
* @return This builder for chaining.
*/
public Builder setObjectValue(int value) {
object_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Which type of object we operate on
*
*
* .substrait.DdlRel.DdlObject object = 5;
* @return The object.
*/
@java.lang.Override
public io.substrait.proto.DdlRel.DdlObject getObject() {
io.substrait.proto.DdlRel.DdlObject result = io.substrait.proto.DdlRel.DdlObject.forNumber(object_);
return result == null ? io.substrait.proto.DdlRel.DdlObject.UNRECOGNIZED : result;
}
/**
*
* Which type of object we operate on
*
*
* .substrait.DdlRel.DdlObject object = 5;
* @param value The object to set.
* @return This builder for chaining.
*/
public Builder setObject(io.substrait.proto.DdlRel.DdlObject value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
object_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Which type of object we operate on
*
*
* .substrait.DdlRel.DdlObject object = 5;
* @return This builder for chaining.
*/
public Builder clearObject() {
bitField0_ = (bitField0_ & ~0x00000010);
object_ = 0;
onChanged();
return this;
}
private int op_ = 0;
/**
*
* The type of operation to perform
*
*
* .substrait.DdlRel.DdlOp op = 6;
* @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.DdlRel.DdlOp op = 6;
* @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_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* The type of operation to perform
*
*
* .substrait.DdlRel.DdlOp op = 6;
* @return The op.
*/
@java.lang.Override
public io.substrait.proto.DdlRel.DdlOp getOp() {
io.substrait.proto.DdlRel.DdlOp result = io.substrait.proto.DdlRel.DdlOp.forNumber(op_);
return result == null ? io.substrait.proto.DdlRel.DdlOp.UNRECOGNIZED : result;
}
/**
*
* The type of operation to perform
*
*
* .substrait.DdlRel.DdlOp op = 6;
* @param value The op to set.
* @return This builder for chaining.
*/
public Builder setOp(io.substrait.proto.DdlRel.DdlOp value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
op_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The type of operation to perform
*
*
* .substrait.DdlRel.DdlOp op = 6;
* @return This builder for chaining.
*/
public Builder clearOp() {
bitField0_ = (bitField0_ & ~0x00000020);
op_ = 0;
onChanged();
return this;
}
private io.substrait.proto.Rel viewDefinition_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder> viewDefinitionBuilder_;
/**
*
* The body of the CREATE VIEW
*
*
* .substrait.Rel view_definition = 7;
* @return Whether the viewDefinition field is set.
*/
public boolean hasViewDefinition() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* The body of the CREATE VIEW
*
*
* .substrait.Rel view_definition = 7;
* @return The viewDefinition.
*/
public io.substrait.proto.Rel getViewDefinition() {
if (viewDefinitionBuilder_ == null) {
return viewDefinition_ == null ? io.substrait.proto.Rel.getDefaultInstance() : viewDefinition_;
} else {
return viewDefinitionBuilder_.getMessage();
}
}
/**
*
* The body of the CREATE VIEW
*
*
* .substrait.Rel view_definition = 7;
*/
public Builder setViewDefinition(io.substrait.proto.Rel value) {
if (viewDefinitionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
viewDefinition_ = value;
} else {
viewDefinitionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* The body of the CREATE VIEW
*
*
* .substrait.Rel view_definition = 7;
*/
public Builder setViewDefinition(
io.substrait.proto.Rel.Builder builderForValue) {
if (viewDefinitionBuilder_ == null) {
viewDefinition_ = builderForValue.build();
} else {
viewDefinitionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* The body of the CREATE VIEW
*
*
* .substrait.Rel view_definition = 7;
*/
public Builder mergeViewDefinition(io.substrait.proto.Rel value) {
if (viewDefinitionBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
viewDefinition_ != null &&
viewDefinition_ != io.substrait.proto.Rel.getDefaultInstance()) {
getViewDefinitionBuilder().mergeFrom(value);
} else {
viewDefinition_ = value;
}
} else {
viewDefinitionBuilder_.mergeFrom(value);
}
if (viewDefinition_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
* The body of the CREATE VIEW
*
*
* .substrait.Rel view_definition = 7;
*/
public Builder clearViewDefinition() {
bitField0_ = (bitField0_ & ~0x00000040);
viewDefinition_ = null;
if (viewDefinitionBuilder_ != null) {
viewDefinitionBuilder_.dispose();
viewDefinitionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The body of the CREATE VIEW
*
*
* .substrait.Rel view_definition = 7;
*/
public io.substrait.proto.Rel.Builder getViewDefinitionBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getViewDefinitionFieldBuilder().getBuilder();
}
/**
*
* The body of the CREATE VIEW
*
*
* .substrait.Rel view_definition = 7;
*/
public io.substrait.proto.RelOrBuilder getViewDefinitionOrBuilder() {
if (viewDefinitionBuilder_ != null) {
return viewDefinitionBuilder_.getMessageOrBuilder();
} else {
return viewDefinition_ == null ?
io.substrait.proto.Rel.getDefaultInstance() : viewDefinition_;
}
}
/**
*
* The body of the CREATE VIEW
*
*
* .substrait.Rel view_definition = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>
getViewDefinitionFieldBuilder() {
if (viewDefinitionBuilder_ == null) {
viewDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Rel, io.substrait.proto.Rel.Builder, io.substrait.proto.RelOrBuilder>(
getViewDefinition(),
getParentForChildren(),
isClean());
viewDefinition_ = null;
}
return viewDefinitionBuilder_;
}
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 = 8;
* @return Whether the common field is set.
*/
public boolean hasCommon() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* .substrait.RelCommon common = 8;
* @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 = 8;
*/
public Builder setCommon(io.substrait.proto.RelCommon value) {
if (commonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
common_ = value;
} else {
commonBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* .substrait.RelCommon common = 8;
*/
public Builder setCommon(
io.substrait.proto.RelCommon.Builder builderForValue) {
if (commonBuilder_ == null) {
common_ = builderForValue.build();
} else {
commonBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* .substrait.RelCommon common = 8;
*/
public Builder mergeCommon(io.substrait.proto.RelCommon value) {
if (commonBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
common_ != null &&
common_ != io.substrait.proto.RelCommon.getDefaultInstance()) {
getCommonBuilder().mergeFrom(value);
} else {
common_ = value;
}
} else {
commonBuilder_.mergeFrom(value);
}
if (common_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
* .substrait.RelCommon common = 8;
*/
public Builder clearCommon() {
bitField0_ = (bitField0_ & ~0x00000080);
common_ = null;
if (commonBuilder_ != null) {
commonBuilder_.dispose();
commonBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.RelCommon common = 8;
*/
public io.substrait.proto.RelCommon.Builder getCommonBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getCommonFieldBuilder().getBuilder();
}
/**
* .substrait.RelCommon common = 8;
*/
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 = 8;
*/
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.DdlRel)
}
// @@protoc_insertion_point(class_scope:substrait.DdlRel)
private static final io.substrait.proto.DdlRel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.DdlRel();
}
public static io.substrait.proto.DdlRel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DdlRel 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.DdlRel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy