io.substrait.proto.SimpleExtensionDeclaration 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/extensions/extensions.proto
// Protobuf Java Version: 3.25.5
package io.substrait.proto;
/**
*
* Describes a mapping between a specific extension entity and the uri where
* that extension can be found.
*
*
* Protobuf type {@code substrait.extensions.SimpleExtensionDeclaration}
*/
public final class SimpleExtensionDeclaration extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.extensions.SimpleExtensionDeclaration)
SimpleExtensionDeclarationOrBuilder {
private static final long serialVersionUID = 0L;
// Use SimpleExtensionDeclaration.newBuilder() to construct.
private SimpleExtensionDeclaration(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SimpleExtensionDeclaration() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SimpleExtensionDeclaration();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.SimpleExtensionDeclaration.class, io.substrait.proto.SimpleExtensionDeclaration.Builder.class);
}
public interface ExtensionTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.extensions.SimpleExtensionDeclaration.ExtensionType)
com.google.protobuf.MessageOrBuilder {
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @return The extensionUriReference.
*/
int getExtensionUriReference();
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific extension type
*
*
* uint32 type_anchor = 2;
* @return The typeAnchor.
*/
int getTypeAnchor();
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return The name.
*/
java.lang.String getName();
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
*
* Describes a Type
*
*
* Protobuf type {@code substrait.extensions.SimpleExtensionDeclaration.ExtensionType}
*/
public static final class ExtensionType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.extensions.SimpleExtensionDeclaration.ExtensionType)
ExtensionTypeOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExtensionType.newBuilder() to construct.
private ExtensionType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExtensionType() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExtensionType();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.class, io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.Builder.class);
}
public static final int EXTENSION_URI_REFERENCE_FIELD_NUMBER = 1;
private int extensionUriReference_ = 0;
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @return The extensionUriReference.
*/
@java.lang.Override
public int getExtensionUriReference() {
return extensionUriReference_;
}
public static final int TYPE_ANCHOR_FIELD_NUMBER = 2;
private int typeAnchor_ = 0;
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific extension type
*
*
* uint32 type_anchor = 2;
* @return The typeAnchor.
*/
@java.lang.Override
public int getTypeAnchor() {
return typeAnchor_;
}
public static final int NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (extensionUriReference_ != 0) {
output.writeUInt32(1, extensionUriReference_);
}
if (typeAnchor_ != 0) {
output.writeUInt32(2, typeAnchor_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (extensionUriReference_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, extensionUriReference_);
}
if (typeAnchor_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, typeAnchor_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
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.SimpleExtensionDeclaration.ExtensionType)) {
return super.equals(obj);
}
io.substrait.proto.SimpleExtensionDeclaration.ExtensionType other = (io.substrait.proto.SimpleExtensionDeclaration.ExtensionType) obj;
if (getExtensionUriReference()
!= other.getExtensionUriReference()) return false;
if (getTypeAnchor()
!= other.getTypeAnchor()) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + EXTENSION_URI_REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getExtensionUriReference();
hash = (37 * hash) + TYPE_ANCHOR_FIELD_NUMBER;
hash = (53 * hash) + getTypeAnchor();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionType parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionType 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.SimpleExtensionDeclaration.ExtensionType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionType 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.SimpleExtensionDeclaration.ExtensionType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionType 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.SimpleExtensionDeclaration.ExtensionType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionType 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.SimpleExtensionDeclaration.ExtensionType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionType 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.SimpleExtensionDeclaration.ExtensionType 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;
}
/**
*
* Describes a Type
*
*
* Protobuf type {@code substrait.extensions.SimpleExtensionDeclaration.ExtensionType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.extensions.SimpleExtensionDeclaration.ExtensionType)
io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionType_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.class, io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.Builder.class);
}
// Construct using io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
extensionUriReference_ = 0;
typeAnchor_ = 0;
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionType_descriptor;
}
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionType getDefaultInstanceForType() {
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionType build() {
io.substrait.proto.SimpleExtensionDeclaration.ExtensionType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionType buildPartial() {
io.substrait.proto.SimpleExtensionDeclaration.ExtensionType result = new io.substrait.proto.SimpleExtensionDeclaration.ExtensionType(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.SimpleExtensionDeclaration.ExtensionType result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.extensionUriReference_ = extensionUriReference_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.typeAnchor_ = typeAnchor_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.name_ = name_;
}
}
@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.SimpleExtensionDeclaration.ExtensionType) {
return mergeFrom((io.substrait.proto.SimpleExtensionDeclaration.ExtensionType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.SimpleExtensionDeclaration.ExtensionType other) {
if (other == io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.getDefaultInstance()) return this;
if (other.getExtensionUriReference() != 0) {
setExtensionUriReference(other.getExtensionUriReference());
}
if (other.getTypeAnchor() != 0) {
setTypeAnchor(other.getTypeAnchor());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000004;
onChanged();
}
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 8: {
extensionUriReference_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
typeAnchor_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int extensionUriReference_ ;
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @return The extensionUriReference.
*/
@java.lang.Override
public int getExtensionUriReference() {
return extensionUriReference_;
}
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @param value The extensionUriReference to set.
* @return This builder for chaining.
*/
public Builder setExtensionUriReference(int value) {
extensionUriReference_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @return This builder for chaining.
*/
public Builder clearExtensionUriReference() {
bitField0_ = (bitField0_ & ~0x00000001);
extensionUriReference_ = 0;
onChanged();
return this;
}
private int typeAnchor_ ;
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific extension type
*
*
* uint32 type_anchor = 2;
* @return The typeAnchor.
*/
@java.lang.Override
public int getTypeAnchor() {
return typeAnchor_;
}
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific extension type
*
*
* uint32 type_anchor = 2;
* @param value The typeAnchor to set.
* @return This builder for chaining.
*/
public Builder setTypeAnchor(int value) {
typeAnchor_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific extension type
*
*
* uint32 type_anchor = 2;
* @return This builder for chaining.
*/
public Builder clearTypeAnchor() {
bitField0_ = (bitField0_ & ~0x00000002);
typeAnchor_ = 0;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@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.extensions.SimpleExtensionDeclaration.ExtensionType)
}
// @@protoc_insertion_point(class_scope:substrait.extensions.SimpleExtensionDeclaration.ExtensionType)
private static final io.substrait.proto.SimpleExtensionDeclaration.ExtensionType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.SimpleExtensionDeclaration.ExtensionType();
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExtensionType 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.SimpleExtensionDeclaration.ExtensionType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExtensionTypeVariationOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation)
com.google.protobuf.MessageOrBuilder {
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @return The extensionUriReference.
*/
int getExtensionUriReference();
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific type variation
*
*
* uint32 type_variation_anchor = 2;
* @return The typeVariationAnchor.
*/
int getTypeVariationAnchor();
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return The name.
*/
java.lang.String getName();
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
* Protobuf type {@code substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation}
*/
public static final class ExtensionTypeVariation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation)
ExtensionTypeVariationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExtensionTypeVariation.newBuilder() to construct.
private ExtensionTypeVariation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExtensionTypeVariation() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExtensionTypeVariation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionTypeVariation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionTypeVariation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.class, io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.Builder.class);
}
public static final int EXTENSION_URI_REFERENCE_FIELD_NUMBER = 1;
private int extensionUriReference_ = 0;
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @return The extensionUriReference.
*/
@java.lang.Override
public int getExtensionUriReference() {
return extensionUriReference_;
}
public static final int TYPE_VARIATION_ANCHOR_FIELD_NUMBER = 2;
private int typeVariationAnchor_ = 0;
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific type variation
*
*
* uint32 type_variation_anchor = 2;
* @return The typeVariationAnchor.
*/
@java.lang.Override
public int getTypeVariationAnchor() {
return typeVariationAnchor_;
}
public static final int NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (extensionUriReference_ != 0) {
output.writeUInt32(1, extensionUriReference_);
}
if (typeVariationAnchor_ != 0) {
output.writeUInt32(2, typeVariationAnchor_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (extensionUriReference_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, extensionUriReference_);
}
if (typeVariationAnchor_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, typeVariationAnchor_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
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.SimpleExtensionDeclaration.ExtensionTypeVariation)) {
return super.equals(obj);
}
io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation other = (io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation) obj;
if (getExtensionUriReference()
!= other.getExtensionUriReference()) return false;
if (getTypeVariationAnchor()
!= other.getTypeVariationAnchor()) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + EXTENSION_URI_REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getExtensionUriReference();
hash = (37 * hash) + TYPE_VARIATION_ANCHOR_FIELD_NUMBER;
hash = (53 * hash) + getTypeVariationAnchor();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation 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.SimpleExtensionDeclaration.ExtensionTypeVariation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation 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.SimpleExtensionDeclaration.ExtensionTypeVariation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation 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.SimpleExtensionDeclaration.ExtensionTypeVariation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation 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.SimpleExtensionDeclaration.ExtensionTypeVariation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation 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.SimpleExtensionDeclaration.ExtensionTypeVariation 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.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation)
io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionTypeVariation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionTypeVariation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.class, io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.Builder.class);
}
// Construct using io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
extensionUriReference_ = 0;
typeVariationAnchor_ = 0;
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionTypeVariation_descriptor;
}
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation getDefaultInstanceForType() {
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation build() {
io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation buildPartial() {
io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation result = new io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.extensionUriReference_ = extensionUriReference_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.typeVariationAnchor_ = typeVariationAnchor_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.name_ = name_;
}
}
@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.SimpleExtensionDeclaration.ExtensionTypeVariation) {
return mergeFrom((io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation other) {
if (other == io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.getDefaultInstance()) return this;
if (other.getExtensionUriReference() != 0) {
setExtensionUriReference(other.getExtensionUriReference());
}
if (other.getTypeVariationAnchor() != 0) {
setTypeVariationAnchor(other.getTypeVariationAnchor());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000004;
onChanged();
}
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 8: {
extensionUriReference_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
typeVariationAnchor_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int extensionUriReference_ ;
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @return The extensionUriReference.
*/
@java.lang.Override
public int getExtensionUriReference() {
return extensionUriReference_;
}
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @param value The extensionUriReference to set.
* @return This builder for chaining.
*/
public Builder setExtensionUriReference(int value) {
extensionUriReference_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @return This builder for chaining.
*/
public Builder clearExtensionUriReference() {
bitField0_ = (bitField0_ & ~0x00000001);
extensionUriReference_ = 0;
onChanged();
return this;
}
private int typeVariationAnchor_ ;
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific type variation
*
*
* uint32 type_variation_anchor = 2;
* @return The typeVariationAnchor.
*/
@java.lang.Override
public int getTypeVariationAnchor() {
return typeVariationAnchor_;
}
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific type variation
*
*
* uint32 type_variation_anchor = 2;
* @param value The typeVariationAnchor to set.
* @return This builder for chaining.
*/
public Builder setTypeVariationAnchor(int value) {
typeVariationAnchor_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific type variation
*
*
* uint32 type_variation_anchor = 2;
* @return This builder for chaining.
*/
public Builder clearTypeVariationAnchor() {
bitField0_ = (bitField0_ & ~0x00000002);
typeVariationAnchor_ = 0;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* the name of the type in the defined extension YAML.
*
*
* string name = 3;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@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.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation)
}
// @@protoc_insertion_point(class_scope:substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation)
private static final io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation();
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExtensionTypeVariation 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.SimpleExtensionDeclaration.ExtensionTypeVariation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExtensionFunctionOrBuilder extends
// @@protoc_insertion_point(interface_extends:substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction)
com.google.protobuf.MessageOrBuilder {
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @return The extensionUriReference.
*/
int getExtensionUriReference();
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific function
*
*
* uint32 function_anchor = 2;
* @return The functionAnchor.
*/
int getFunctionAnchor();
/**
*
* A function signature compound name
*
*
* string name = 3;
* @return The name.
*/
java.lang.String getName();
/**
*
* A function signature compound name
*
*
* string name = 3;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
* Protobuf type {@code substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction}
*/
public static final class ExtensionFunction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction)
ExtensionFunctionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExtensionFunction.newBuilder() to construct.
private ExtensionFunction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExtensionFunction() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExtensionFunction();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionFunction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionFunction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.class, io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.Builder.class);
}
public static final int EXTENSION_URI_REFERENCE_FIELD_NUMBER = 1;
private int extensionUriReference_ = 0;
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @return The extensionUriReference.
*/
@java.lang.Override
public int getExtensionUriReference() {
return extensionUriReference_;
}
public static final int FUNCTION_ANCHOR_FIELD_NUMBER = 2;
private int functionAnchor_ = 0;
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific function
*
*
* uint32 function_anchor = 2;
* @return The functionAnchor.
*/
@java.lang.Override
public int getFunctionAnchor() {
return functionAnchor_;
}
public static final int NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* A function signature compound name
*
*
* string name = 3;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* A function signature compound name
*
*
* string name = 3;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (extensionUriReference_ != 0) {
output.writeUInt32(1, extensionUriReference_);
}
if (functionAnchor_ != 0) {
output.writeUInt32(2, functionAnchor_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (extensionUriReference_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, extensionUriReference_);
}
if (functionAnchor_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, functionAnchor_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
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.SimpleExtensionDeclaration.ExtensionFunction)) {
return super.equals(obj);
}
io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction other = (io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction) obj;
if (getExtensionUriReference()
!= other.getExtensionUriReference()) return false;
if (getFunctionAnchor()
!= other.getFunctionAnchor()) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + EXTENSION_URI_REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getExtensionUriReference();
hash = (37 * hash) + FUNCTION_ANCHOR_FIELD_NUMBER;
hash = (53 * hash) + getFunctionAnchor();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction 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.SimpleExtensionDeclaration.ExtensionFunction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction 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.SimpleExtensionDeclaration.ExtensionFunction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction 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.SimpleExtensionDeclaration.ExtensionFunction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction 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.SimpleExtensionDeclaration.ExtensionFunction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction 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.SimpleExtensionDeclaration.ExtensionFunction 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.extensions.SimpleExtensionDeclaration.ExtensionFunction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction)
io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunctionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionFunction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionFunction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.class, io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.Builder.class);
}
// Construct using io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
extensionUriReference_ = 0;
functionAnchor_ = 0;
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_ExtensionFunction_descriptor;
}
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction getDefaultInstanceForType() {
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction build() {
io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction buildPartial() {
io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction result = new io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.extensionUriReference_ = extensionUriReference_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.functionAnchor_ = functionAnchor_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.name_ = name_;
}
}
@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.SimpleExtensionDeclaration.ExtensionFunction) {
return mergeFrom((io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction other) {
if (other == io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.getDefaultInstance()) return this;
if (other.getExtensionUriReference() != 0) {
setExtensionUriReference(other.getExtensionUriReference());
}
if (other.getFunctionAnchor() != 0) {
setFunctionAnchor(other.getFunctionAnchor());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000004;
onChanged();
}
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 8: {
extensionUriReference_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
functionAnchor_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int extensionUriReference_ ;
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @return The extensionUriReference.
*/
@java.lang.Override
public int getExtensionUriReference() {
return extensionUriReference_;
}
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @param value The extensionUriReference to set.
* @return This builder for chaining.
*/
public Builder setExtensionUriReference(int value) {
extensionUriReference_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* references the extension_uri_anchor defined for a specific extension URI.
*
*
* uint32 extension_uri_reference = 1;
* @return This builder for chaining.
*/
public Builder clearExtensionUriReference() {
bitField0_ = (bitField0_ & ~0x00000001);
extensionUriReference_ = 0;
onChanged();
return this;
}
private int functionAnchor_ ;
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific function
*
*
* uint32 function_anchor = 2;
* @return The functionAnchor.
*/
@java.lang.Override
public int getFunctionAnchor() {
return functionAnchor_;
}
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific function
*
*
* uint32 function_anchor = 2;
* @param value The functionAnchor to set.
* @return This builder for chaining.
*/
public Builder setFunctionAnchor(int value) {
functionAnchor_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* A surrogate key used in the context of a single plan to reference a
* specific function
*
*
* uint32 function_anchor = 2;
* @return This builder for chaining.
*/
public Builder clearFunctionAnchor() {
bitField0_ = (bitField0_ & ~0x00000002);
functionAnchor_ = 0;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* A function signature compound name
*
*
* string name = 3;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A function signature compound name
*
*
* string name = 3;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A function signature compound name
*
*
* string name = 3;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* A function signature compound name
*
*
* string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* A function signature compound name
*
*
* string name = 3;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@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.extensions.SimpleExtensionDeclaration.ExtensionFunction)
}
// @@protoc_insertion_point(class_scope:substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction)
private static final io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction();
}
public static io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExtensionFunction 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.SimpleExtensionDeclaration.ExtensionFunction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int mappingTypeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object mappingType_;
public enum MappingTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
EXTENSION_TYPE(1),
EXTENSION_TYPE_VARIATION(2),
EXTENSION_FUNCTION(3),
MAPPINGTYPE_NOT_SET(0);
private final int value;
private MappingTypeCase(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 MappingTypeCase valueOf(int value) {
return forNumber(value);
}
public static MappingTypeCase forNumber(int value) {
switch (value) {
case 1: return EXTENSION_TYPE;
case 2: return EXTENSION_TYPE_VARIATION;
case 3: return EXTENSION_FUNCTION;
case 0: return MAPPINGTYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public MappingTypeCase
getMappingTypeCase() {
return MappingTypeCase.forNumber(
mappingTypeCase_);
}
public static final int EXTENSION_TYPE_FIELD_NUMBER = 1;
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionType extension_type = 1;
* @return Whether the extensionType field is set.
*/
@java.lang.Override
public boolean hasExtensionType() {
return mappingTypeCase_ == 1;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionType extension_type = 1;
* @return The extensionType.
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionType getExtensionType() {
if (mappingTypeCase_ == 1) {
return (io.substrait.proto.SimpleExtensionDeclaration.ExtensionType) mappingType_;
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.getDefaultInstance();
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionType extension_type = 1;
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeOrBuilder getExtensionTypeOrBuilder() {
if (mappingTypeCase_ == 1) {
return (io.substrait.proto.SimpleExtensionDeclaration.ExtensionType) mappingType_;
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.getDefaultInstance();
}
public static final int EXTENSION_TYPE_VARIATION_FIELD_NUMBER = 2;
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation extension_type_variation = 2;
* @return Whether the extensionTypeVariation field is set.
*/
@java.lang.Override
public boolean hasExtensionTypeVariation() {
return mappingTypeCase_ == 2;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation extension_type_variation = 2;
* @return The extensionTypeVariation.
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation getExtensionTypeVariation() {
if (mappingTypeCase_ == 2) {
return (io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation) mappingType_;
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.getDefaultInstance();
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation extension_type_variation = 2;
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariationOrBuilder getExtensionTypeVariationOrBuilder() {
if (mappingTypeCase_ == 2) {
return (io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation) mappingType_;
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.getDefaultInstance();
}
public static final int EXTENSION_FUNCTION_FIELD_NUMBER = 3;
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction extension_function = 3;
* @return Whether the extensionFunction field is set.
*/
@java.lang.Override
public boolean hasExtensionFunction() {
return mappingTypeCase_ == 3;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction extension_function = 3;
* @return The extensionFunction.
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction getExtensionFunction() {
if (mappingTypeCase_ == 3) {
return (io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction) mappingType_;
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.getDefaultInstance();
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction extension_function = 3;
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunctionOrBuilder getExtensionFunctionOrBuilder() {
if (mappingTypeCase_ == 3) {
return (io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction) mappingType_;
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (mappingTypeCase_ == 1) {
output.writeMessage(1, (io.substrait.proto.SimpleExtensionDeclaration.ExtensionType) mappingType_);
}
if (mappingTypeCase_ == 2) {
output.writeMessage(2, (io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation) mappingType_);
}
if (mappingTypeCase_ == 3) {
output.writeMessage(3, (io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction) mappingType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (mappingTypeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.substrait.proto.SimpleExtensionDeclaration.ExtensionType) mappingType_);
}
if (mappingTypeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation) mappingType_);
}
if (mappingTypeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction) mappingType_);
}
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.SimpleExtensionDeclaration)) {
return super.equals(obj);
}
io.substrait.proto.SimpleExtensionDeclaration other = (io.substrait.proto.SimpleExtensionDeclaration) obj;
if (!getMappingTypeCase().equals(other.getMappingTypeCase())) return false;
switch (mappingTypeCase_) {
case 1:
if (!getExtensionType()
.equals(other.getExtensionType())) return false;
break;
case 2:
if (!getExtensionTypeVariation()
.equals(other.getExtensionTypeVariation())) return false;
break;
case 3:
if (!getExtensionFunction()
.equals(other.getExtensionFunction())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (mappingTypeCase_) {
case 1:
hash = (37 * hash) + EXTENSION_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getExtensionType().hashCode();
break;
case 2:
hash = (37 * hash) + EXTENSION_TYPE_VARIATION_FIELD_NUMBER;
hash = (53 * hash) + getExtensionTypeVariation().hashCode();
break;
case 3:
hash = (37 * hash) + EXTENSION_FUNCTION_FIELD_NUMBER;
hash = (53 * hash) + getExtensionFunction().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.SimpleExtensionDeclaration parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.SimpleExtensionDeclaration 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.SimpleExtensionDeclaration parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.SimpleExtensionDeclaration 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.SimpleExtensionDeclaration parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.SimpleExtensionDeclaration parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.SimpleExtensionDeclaration parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.SimpleExtensionDeclaration 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.SimpleExtensionDeclaration parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.SimpleExtensionDeclaration 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.SimpleExtensionDeclaration parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.SimpleExtensionDeclaration 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.SimpleExtensionDeclaration 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;
}
/**
*
* Describes a mapping between a specific extension entity and the uri where
* that extension can be found.
*
*
* Protobuf type {@code substrait.extensions.SimpleExtensionDeclaration}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.extensions.SimpleExtensionDeclaration)
io.substrait.proto.SimpleExtensionDeclarationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.SimpleExtensionDeclaration.class, io.substrait.proto.SimpleExtensionDeclaration.Builder.class);
}
// Construct using io.substrait.proto.SimpleExtensionDeclaration.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (extensionTypeBuilder_ != null) {
extensionTypeBuilder_.clear();
}
if (extensionTypeVariationBuilder_ != null) {
extensionTypeVariationBuilder_.clear();
}
if (extensionFunctionBuilder_ != null) {
extensionFunctionBuilder_.clear();
}
mappingTypeCase_ = 0;
mappingType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.Extensions.internal_static_substrait_extensions_SimpleExtensionDeclaration_descriptor;
}
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration getDefaultInstanceForType() {
return io.substrait.proto.SimpleExtensionDeclaration.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration build() {
io.substrait.proto.SimpleExtensionDeclaration result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration buildPartial() {
io.substrait.proto.SimpleExtensionDeclaration result = new io.substrait.proto.SimpleExtensionDeclaration(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.SimpleExtensionDeclaration result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.substrait.proto.SimpleExtensionDeclaration result) {
result.mappingTypeCase_ = mappingTypeCase_;
result.mappingType_ = this.mappingType_;
if (mappingTypeCase_ == 1 &&
extensionTypeBuilder_ != null) {
result.mappingType_ = extensionTypeBuilder_.build();
}
if (mappingTypeCase_ == 2 &&
extensionTypeVariationBuilder_ != null) {
result.mappingType_ = extensionTypeVariationBuilder_.build();
}
if (mappingTypeCase_ == 3 &&
extensionFunctionBuilder_ != null) {
result.mappingType_ = extensionFunctionBuilder_.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.SimpleExtensionDeclaration) {
return mergeFrom((io.substrait.proto.SimpleExtensionDeclaration)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.SimpleExtensionDeclaration other) {
if (other == io.substrait.proto.SimpleExtensionDeclaration.getDefaultInstance()) return this;
switch (other.getMappingTypeCase()) {
case EXTENSION_TYPE: {
mergeExtensionType(other.getExtensionType());
break;
}
case EXTENSION_TYPE_VARIATION: {
mergeExtensionTypeVariation(other.getExtensionTypeVariation());
break;
}
case EXTENSION_FUNCTION: {
mergeExtensionFunction(other.getExtensionFunction());
break;
}
case MAPPINGTYPE_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(
getExtensionTypeFieldBuilder().getBuilder(),
extensionRegistry);
mappingTypeCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getExtensionTypeVariationFieldBuilder().getBuilder(),
extensionRegistry);
mappingTypeCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getExtensionFunctionFieldBuilder().getBuilder(),
extensionRegistry);
mappingTypeCase_ = 3;
break;
} // case 26
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 mappingTypeCase_ = 0;
private java.lang.Object mappingType_;
public MappingTypeCase
getMappingTypeCase() {
return MappingTypeCase.forNumber(
mappingTypeCase_);
}
public Builder clearMappingType() {
mappingTypeCase_ = 0;
mappingType_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.SimpleExtensionDeclaration.ExtensionType, io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.Builder, io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeOrBuilder> extensionTypeBuilder_;
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionType extension_type = 1;
* @return Whether the extensionType field is set.
*/
@java.lang.Override
public boolean hasExtensionType() {
return mappingTypeCase_ == 1;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionType extension_type = 1;
* @return The extensionType.
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionType getExtensionType() {
if (extensionTypeBuilder_ == null) {
if (mappingTypeCase_ == 1) {
return (io.substrait.proto.SimpleExtensionDeclaration.ExtensionType) mappingType_;
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.getDefaultInstance();
} else {
if (mappingTypeCase_ == 1) {
return extensionTypeBuilder_.getMessage();
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.getDefaultInstance();
}
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionType extension_type = 1;
*/
public Builder setExtensionType(io.substrait.proto.SimpleExtensionDeclaration.ExtensionType value) {
if (extensionTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
mappingType_ = value;
onChanged();
} else {
extensionTypeBuilder_.setMessage(value);
}
mappingTypeCase_ = 1;
return this;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionType extension_type = 1;
*/
public Builder setExtensionType(
io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.Builder builderForValue) {
if (extensionTypeBuilder_ == null) {
mappingType_ = builderForValue.build();
onChanged();
} else {
extensionTypeBuilder_.setMessage(builderForValue.build());
}
mappingTypeCase_ = 1;
return this;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionType extension_type = 1;
*/
public Builder mergeExtensionType(io.substrait.proto.SimpleExtensionDeclaration.ExtensionType value) {
if (extensionTypeBuilder_ == null) {
if (mappingTypeCase_ == 1 &&
mappingType_ != io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.getDefaultInstance()) {
mappingType_ = io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.newBuilder((io.substrait.proto.SimpleExtensionDeclaration.ExtensionType) mappingType_)
.mergeFrom(value).buildPartial();
} else {
mappingType_ = value;
}
onChanged();
} else {
if (mappingTypeCase_ == 1) {
extensionTypeBuilder_.mergeFrom(value);
} else {
extensionTypeBuilder_.setMessage(value);
}
}
mappingTypeCase_ = 1;
return this;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionType extension_type = 1;
*/
public Builder clearExtensionType() {
if (extensionTypeBuilder_ == null) {
if (mappingTypeCase_ == 1) {
mappingTypeCase_ = 0;
mappingType_ = null;
onChanged();
}
} else {
if (mappingTypeCase_ == 1) {
mappingTypeCase_ = 0;
mappingType_ = null;
}
extensionTypeBuilder_.clear();
}
return this;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionType extension_type = 1;
*/
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.Builder getExtensionTypeBuilder() {
return getExtensionTypeFieldBuilder().getBuilder();
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionType extension_type = 1;
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeOrBuilder getExtensionTypeOrBuilder() {
if ((mappingTypeCase_ == 1) && (extensionTypeBuilder_ != null)) {
return extensionTypeBuilder_.getMessageOrBuilder();
} else {
if (mappingTypeCase_ == 1) {
return (io.substrait.proto.SimpleExtensionDeclaration.ExtensionType) mappingType_;
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.getDefaultInstance();
}
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionType extension_type = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.SimpleExtensionDeclaration.ExtensionType, io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.Builder, io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeOrBuilder>
getExtensionTypeFieldBuilder() {
if (extensionTypeBuilder_ == null) {
if (!(mappingTypeCase_ == 1)) {
mappingType_ = io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.getDefaultInstance();
}
extensionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.SimpleExtensionDeclaration.ExtensionType, io.substrait.proto.SimpleExtensionDeclaration.ExtensionType.Builder, io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeOrBuilder>(
(io.substrait.proto.SimpleExtensionDeclaration.ExtensionType) mappingType_,
getParentForChildren(),
isClean());
mappingType_ = null;
}
mappingTypeCase_ = 1;
onChanged();
return extensionTypeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation, io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.Builder, io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariationOrBuilder> extensionTypeVariationBuilder_;
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation extension_type_variation = 2;
* @return Whether the extensionTypeVariation field is set.
*/
@java.lang.Override
public boolean hasExtensionTypeVariation() {
return mappingTypeCase_ == 2;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation extension_type_variation = 2;
* @return The extensionTypeVariation.
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation getExtensionTypeVariation() {
if (extensionTypeVariationBuilder_ == null) {
if (mappingTypeCase_ == 2) {
return (io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation) mappingType_;
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.getDefaultInstance();
} else {
if (mappingTypeCase_ == 2) {
return extensionTypeVariationBuilder_.getMessage();
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.getDefaultInstance();
}
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation extension_type_variation = 2;
*/
public Builder setExtensionTypeVariation(io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation value) {
if (extensionTypeVariationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
mappingType_ = value;
onChanged();
} else {
extensionTypeVariationBuilder_.setMessage(value);
}
mappingTypeCase_ = 2;
return this;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation extension_type_variation = 2;
*/
public Builder setExtensionTypeVariation(
io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.Builder builderForValue) {
if (extensionTypeVariationBuilder_ == null) {
mappingType_ = builderForValue.build();
onChanged();
} else {
extensionTypeVariationBuilder_.setMessage(builderForValue.build());
}
mappingTypeCase_ = 2;
return this;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation extension_type_variation = 2;
*/
public Builder mergeExtensionTypeVariation(io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation value) {
if (extensionTypeVariationBuilder_ == null) {
if (mappingTypeCase_ == 2 &&
mappingType_ != io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.getDefaultInstance()) {
mappingType_ = io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.newBuilder((io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation) mappingType_)
.mergeFrom(value).buildPartial();
} else {
mappingType_ = value;
}
onChanged();
} else {
if (mappingTypeCase_ == 2) {
extensionTypeVariationBuilder_.mergeFrom(value);
} else {
extensionTypeVariationBuilder_.setMessage(value);
}
}
mappingTypeCase_ = 2;
return this;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation extension_type_variation = 2;
*/
public Builder clearExtensionTypeVariation() {
if (extensionTypeVariationBuilder_ == null) {
if (mappingTypeCase_ == 2) {
mappingTypeCase_ = 0;
mappingType_ = null;
onChanged();
}
} else {
if (mappingTypeCase_ == 2) {
mappingTypeCase_ = 0;
mappingType_ = null;
}
extensionTypeVariationBuilder_.clear();
}
return this;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation extension_type_variation = 2;
*/
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.Builder getExtensionTypeVariationBuilder() {
return getExtensionTypeVariationFieldBuilder().getBuilder();
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation extension_type_variation = 2;
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariationOrBuilder getExtensionTypeVariationOrBuilder() {
if ((mappingTypeCase_ == 2) && (extensionTypeVariationBuilder_ != null)) {
return extensionTypeVariationBuilder_.getMessageOrBuilder();
} else {
if (mappingTypeCase_ == 2) {
return (io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation) mappingType_;
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.getDefaultInstance();
}
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionTypeVariation extension_type_variation = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation, io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.Builder, io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariationOrBuilder>
getExtensionTypeVariationFieldBuilder() {
if (extensionTypeVariationBuilder_ == null) {
if (!(mappingTypeCase_ == 2)) {
mappingType_ = io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.getDefaultInstance();
}
extensionTypeVariationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation, io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation.Builder, io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariationOrBuilder>(
(io.substrait.proto.SimpleExtensionDeclaration.ExtensionTypeVariation) mappingType_,
getParentForChildren(),
isClean());
mappingType_ = null;
}
mappingTypeCase_ = 2;
onChanged();
return extensionTypeVariationBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction, io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.Builder, io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunctionOrBuilder> extensionFunctionBuilder_;
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction extension_function = 3;
* @return Whether the extensionFunction field is set.
*/
@java.lang.Override
public boolean hasExtensionFunction() {
return mappingTypeCase_ == 3;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction extension_function = 3;
* @return The extensionFunction.
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction getExtensionFunction() {
if (extensionFunctionBuilder_ == null) {
if (mappingTypeCase_ == 3) {
return (io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction) mappingType_;
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.getDefaultInstance();
} else {
if (mappingTypeCase_ == 3) {
return extensionFunctionBuilder_.getMessage();
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.getDefaultInstance();
}
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction extension_function = 3;
*/
public Builder setExtensionFunction(io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction value) {
if (extensionFunctionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
mappingType_ = value;
onChanged();
} else {
extensionFunctionBuilder_.setMessage(value);
}
mappingTypeCase_ = 3;
return this;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction extension_function = 3;
*/
public Builder setExtensionFunction(
io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.Builder builderForValue) {
if (extensionFunctionBuilder_ == null) {
mappingType_ = builderForValue.build();
onChanged();
} else {
extensionFunctionBuilder_.setMessage(builderForValue.build());
}
mappingTypeCase_ = 3;
return this;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction extension_function = 3;
*/
public Builder mergeExtensionFunction(io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction value) {
if (extensionFunctionBuilder_ == null) {
if (mappingTypeCase_ == 3 &&
mappingType_ != io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.getDefaultInstance()) {
mappingType_ = io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.newBuilder((io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction) mappingType_)
.mergeFrom(value).buildPartial();
} else {
mappingType_ = value;
}
onChanged();
} else {
if (mappingTypeCase_ == 3) {
extensionFunctionBuilder_.mergeFrom(value);
} else {
extensionFunctionBuilder_.setMessage(value);
}
}
mappingTypeCase_ = 3;
return this;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction extension_function = 3;
*/
public Builder clearExtensionFunction() {
if (extensionFunctionBuilder_ == null) {
if (mappingTypeCase_ == 3) {
mappingTypeCase_ = 0;
mappingType_ = null;
onChanged();
}
} else {
if (mappingTypeCase_ == 3) {
mappingTypeCase_ = 0;
mappingType_ = null;
}
extensionFunctionBuilder_.clear();
}
return this;
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction extension_function = 3;
*/
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.Builder getExtensionFunctionBuilder() {
return getExtensionFunctionFieldBuilder().getBuilder();
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction extension_function = 3;
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunctionOrBuilder getExtensionFunctionOrBuilder() {
if ((mappingTypeCase_ == 3) && (extensionFunctionBuilder_ != null)) {
return extensionFunctionBuilder_.getMessageOrBuilder();
} else {
if (mappingTypeCase_ == 3) {
return (io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction) mappingType_;
}
return io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.getDefaultInstance();
}
}
/**
* .substrait.extensions.SimpleExtensionDeclaration.ExtensionFunction extension_function = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction, io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.Builder, io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunctionOrBuilder>
getExtensionFunctionFieldBuilder() {
if (extensionFunctionBuilder_ == null) {
if (!(mappingTypeCase_ == 3)) {
mappingType_ = io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.getDefaultInstance();
}
extensionFunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction, io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction.Builder, io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunctionOrBuilder>(
(io.substrait.proto.SimpleExtensionDeclaration.ExtensionFunction) mappingType_,
getParentForChildren(),
isClean());
mappingType_ = null;
}
mappingTypeCase_ = 3;
onChanged();
return extensionFunctionBuilder_;
}
@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.extensions.SimpleExtensionDeclaration)
}
// @@protoc_insertion_point(class_scope:substrait.extensions.SimpleExtensionDeclaration)
private static final io.substrait.proto.SimpleExtensionDeclaration DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.SimpleExtensionDeclaration();
}
public static io.substrait.proto.SimpleExtensionDeclaration getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SimpleExtensionDeclaration 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.SimpleExtensionDeclaration getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy