io.substrait.proto.ExtendedExpression 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/extended_expression.proto
// Protobuf Java Version: 3.25.5
package io.substrait.proto;
/**
*
* Describe a set of operations to complete.
* For compactness sake, identifiers are normalized at the plan level.
*
*
* Protobuf type {@code substrait.ExtendedExpression}
*/
public final class ExtendedExpression extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.ExtendedExpression)
ExtendedExpressionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExtendedExpression.newBuilder() to construct.
private ExtendedExpression(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExtendedExpression() {
extensionUris_ = java.util.Collections.emptyList();
extensions_ = java.util.Collections.emptyList();
referredExpr_ = java.util.Collections.emptyList();
expectedTypeUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExtendedExpression();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.ExtendedExpressionOuterClass.internal_static_substrait_ExtendedExpression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.ExtendedExpressionOuterClass.internal_static_substrait_ExtendedExpression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExtendedExpression.class, io.substrait.proto.ExtendedExpression.Builder.class);
}
private int bitField0_;
public static final int VERSION_FIELD_NUMBER = 7;
private io.substrait.proto.Version version_;
/**
*
* Substrait version of the expression. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 7;
* @return Whether the version field is set.
*/
@java.lang.Override
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Substrait version of the expression. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 7;
* @return The version.
*/
@java.lang.Override
public io.substrait.proto.Version getVersion() {
return version_ == null ? io.substrait.proto.Version.getDefaultInstance() : version_;
}
/**
*
* Substrait version of the expression. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 7;
*/
@java.lang.Override
public io.substrait.proto.VersionOrBuilder getVersionOrBuilder() {
return version_ == null ? io.substrait.proto.Version.getDefaultInstance() : version_;
}
public static final int EXTENSION_URIS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List extensionUris_;
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
@java.lang.Override
public java.util.List getExtensionUrisList() {
return extensionUris_;
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.SimpleExtensionURIOrBuilder>
getExtensionUrisOrBuilderList() {
return extensionUris_;
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
@java.lang.Override
public int getExtensionUrisCount() {
return extensionUris_.size();
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionURI getExtensionUris(int index) {
return extensionUris_.get(index);
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionURIOrBuilder getExtensionUrisOrBuilder(
int index) {
return extensionUris_.get(index);
}
public static final int EXTENSIONS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List extensions_;
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
@java.lang.Override
public java.util.List getExtensionsList() {
return extensions_;
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.SimpleExtensionDeclarationOrBuilder>
getExtensionsOrBuilderList() {
return extensions_;
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
@java.lang.Override
public int getExtensionsCount() {
return extensions_.size();
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclaration getExtensions(int index) {
return extensions_.get(index);
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
@java.lang.Override
public io.substrait.proto.SimpleExtensionDeclarationOrBuilder getExtensionsOrBuilder(
int index) {
return extensions_.get(index);
}
public static final int REFERRED_EXPR_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List referredExpr_;
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
@java.lang.Override
public java.util.List getReferredExprList() {
return referredExpr_;
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.ExpressionReferenceOrBuilder>
getReferredExprOrBuilderList() {
return referredExpr_;
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
@java.lang.Override
public int getReferredExprCount() {
return referredExpr_.size();
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
@java.lang.Override
public io.substrait.proto.ExpressionReference getReferredExpr(int index) {
return referredExpr_.get(index);
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
@java.lang.Override
public io.substrait.proto.ExpressionReferenceOrBuilder getReferredExprOrBuilder(
int index) {
return referredExpr_.get(index);
}
public static final int BASE_SCHEMA_FIELD_NUMBER = 4;
private io.substrait.proto.NamedStruct baseSchema_;
/**
* .substrait.NamedStruct base_schema = 4;
* @return Whether the baseSchema field is set.
*/
@java.lang.Override
public boolean hasBaseSchema() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .substrait.NamedStruct base_schema = 4;
* @return The baseSchema.
*/
@java.lang.Override
public io.substrait.proto.NamedStruct getBaseSchema() {
return baseSchema_ == null ? io.substrait.proto.NamedStruct.getDefaultInstance() : baseSchema_;
}
/**
* .substrait.NamedStruct base_schema = 4;
*/
@java.lang.Override
public io.substrait.proto.NamedStructOrBuilder getBaseSchemaOrBuilder() {
return baseSchema_ == null ? io.substrait.proto.NamedStruct.getDefaultInstance() : baseSchema_;
}
public static final int ADVANCED_EXTENSIONS_FIELD_NUMBER = 5;
private io.substrait.proto.AdvancedExtension advancedExtensions_;
/**
*
* additional extensions associated with this expression.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 5;
* @return Whether the advancedExtensions field is set.
*/
@java.lang.Override
public boolean hasAdvancedExtensions() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* additional extensions associated with this expression.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 5;
* @return The advancedExtensions.
*/
@java.lang.Override
public io.substrait.proto.AdvancedExtension getAdvancedExtensions() {
return advancedExtensions_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtensions_;
}
/**
*
* additional extensions associated with this expression.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 5;
*/
@java.lang.Override
public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionsOrBuilder() {
return advancedExtensions_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtensions_;
}
public static final int EXPECTED_TYPE_URLS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList expectedTypeUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* A list of com.google.Any entities that this plan may use. Can be used to
* warn if some embedded message types are unknown. Note that this list may
* include message types that are ignorable (optimizations) or that are
* unused. In many cases, a consumer may be able to work with a plan even if
* one or more message types defined here are unknown.
*
*
* repeated string expected_type_urls = 6;
* @return A list containing the expectedTypeUrls.
*/
public com.google.protobuf.ProtocolStringList
getExpectedTypeUrlsList() {
return expectedTypeUrls_;
}
/**
*
* A list of com.google.Any entities that this plan may use. Can be used to
* warn if some embedded message types are unknown. Note that this list may
* include message types that are ignorable (optimizations) or that are
* unused. In many cases, a consumer may be able to work with a plan even if
* one or more message types defined here are unknown.
*
*
* repeated string expected_type_urls = 6;
* @return The count of expectedTypeUrls.
*/
public int getExpectedTypeUrlsCount() {
return expectedTypeUrls_.size();
}
/**
*
* A list of com.google.Any entities that this plan may use. Can be used to
* warn if some embedded message types are unknown. Note that this list may
* include message types that are ignorable (optimizations) or that are
* unused. In many cases, a consumer may be able to work with a plan even if
* one or more message types defined here are unknown.
*
*
* repeated string expected_type_urls = 6;
* @param index The index of the element to return.
* @return The expectedTypeUrls at the given index.
*/
public java.lang.String getExpectedTypeUrls(int index) {
return expectedTypeUrls_.get(index);
}
/**
*
* A list of com.google.Any entities that this plan may use. Can be used to
* warn if some embedded message types are unknown. Note that this list may
* include message types that are ignorable (optimizations) or that are
* unused. In many cases, a consumer may be able to work with a plan even if
* one or more message types defined here are unknown.
*
*
* repeated string expected_type_urls = 6;
* @param index The index of the value to return.
* @return The bytes of the expectedTypeUrls at the given index.
*/
public com.google.protobuf.ByteString
getExpectedTypeUrlsBytes(int index) {
return expectedTypeUrls_.getByteString(index);
}
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 {
for (int i = 0; i < extensionUris_.size(); i++) {
output.writeMessage(1, extensionUris_.get(i));
}
for (int i = 0; i < extensions_.size(); i++) {
output.writeMessage(2, extensions_.get(i));
}
for (int i = 0; i < referredExpr_.size(); i++) {
output.writeMessage(3, referredExpr_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getBaseSchema());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getAdvancedExtensions());
}
for (int i = 0; i < expectedTypeUrls_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, expectedTypeUrls_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(7, getVersion());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < extensionUris_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, extensionUris_.get(i));
}
for (int i = 0; i < extensions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, extensions_.get(i));
}
for (int i = 0; i < referredExpr_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, referredExpr_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getBaseSchema());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getAdvancedExtensions());
}
{
int dataSize = 0;
for (int i = 0; i < expectedTypeUrls_.size(); i++) {
dataSize += computeStringSizeNoTag(expectedTypeUrls_.getRaw(i));
}
size += dataSize;
size += 1 * getExpectedTypeUrlsList().size();
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getVersion());
}
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.ExtendedExpression)) {
return super.equals(obj);
}
io.substrait.proto.ExtendedExpression other = (io.substrait.proto.ExtendedExpression) obj;
if (hasVersion() != other.hasVersion()) return false;
if (hasVersion()) {
if (!getVersion()
.equals(other.getVersion())) return false;
}
if (!getExtensionUrisList()
.equals(other.getExtensionUrisList())) return false;
if (!getExtensionsList()
.equals(other.getExtensionsList())) return false;
if (!getReferredExprList()
.equals(other.getReferredExprList())) return false;
if (hasBaseSchema() != other.hasBaseSchema()) return false;
if (hasBaseSchema()) {
if (!getBaseSchema()
.equals(other.getBaseSchema())) return false;
}
if (hasAdvancedExtensions() != other.hasAdvancedExtensions()) return false;
if (hasAdvancedExtensions()) {
if (!getAdvancedExtensions()
.equals(other.getAdvancedExtensions())) return false;
}
if (!getExpectedTypeUrlsList()
.equals(other.getExpectedTypeUrlsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
}
if (getExtensionUrisCount() > 0) {
hash = (37 * hash) + EXTENSION_URIS_FIELD_NUMBER;
hash = (53 * hash) + getExtensionUrisList().hashCode();
}
if (getExtensionsCount() > 0) {
hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER;
hash = (53 * hash) + getExtensionsList().hashCode();
}
if (getReferredExprCount() > 0) {
hash = (37 * hash) + REFERRED_EXPR_FIELD_NUMBER;
hash = (53 * hash) + getReferredExprList().hashCode();
}
if (hasBaseSchema()) {
hash = (37 * hash) + BASE_SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getBaseSchema().hashCode();
}
if (hasAdvancedExtensions()) {
hash = (37 * hash) + ADVANCED_EXTENSIONS_FIELD_NUMBER;
hash = (53 * hash) + getAdvancedExtensions().hashCode();
}
if (getExpectedTypeUrlsCount() > 0) {
hash = (37 * hash) + EXPECTED_TYPE_URLS_FIELD_NUMBER;
hash = (53 * hash) + getExpectedTypeUrlsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.ExtendedExpression parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExtendedExpression 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.ExtendedExpression parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExtendedExpression 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.ExtendedExpression parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.ExtendedExpression parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.ExtendedExpression parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExtendedExpression 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.ExtendedExpression parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.ExtendedExpression 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.ExtendedExpression parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.ExtendedExpression 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.ExtendedExpression 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;
}
/**
*
* Describe a set of operations to complete.
* For compactness sake, identifiers are normalized at the plan level.
*
*
* Protobuf type {@code substrait.ExtendedExpression}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.ExtendedExpression)
io.substrait.proto.ExtendedExpressionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.ExtendedExpressionOuterClass.internal_static_substrait_ExtendedExpression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.ExtendedExpressionOuterClass.internal_static_substrait_ExtendedExpression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.ExtendedExpression.class, io.substrait.proto.ExtendedExpression.Builder.class);
}
// Construct using io.substrait.proto.ExtendedExpression.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getVersionFieldBuilder();
getExtensionUrisFieldBuilder();
getExtensionsFieldBuilder();
getReferredExprFieldBuilder();
getBaseSchemaFieldBuilder();
getAdvancedExtensionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
version_ = null;
if (versionBuilder_ != null) {
versionBuilder_.dispose();
versionBuilder_ = null;
}
if (extensionUrisBuilder_ == null) {
extensionUris_ = java.util.Collections.emptyList();
} else {
extensionUris_ = null;
extensionUrisBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (extensionsBuilder_ == null) {
extensions_ = java.util.Collections.emptyList();
} else {
extensions_ = null;
extensionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (referredExprBuilder_ == null) {
referredExpr_ = java.util.Collections.emptyList();
} else {
referredExpr_ = null;
referredExprBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
baseSchema_ = null;
if (baseSchemaBuilder_ != null) {
baseSchemaBuilder_.dispose();
baseSchemaBuilder_ = null;
}
advancedExtensions_ = null;
if (advancedExtensionsBuilder_ != null) {
advancedExtensionsBuilder_.dispose();
advancedExtensionsBuilder_ = null;
}
expectedTypeUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.ExtendedExpressionOuterClass.internal_static_substrait_ExtendedExpression_descriptor;
}
@java.lang.Override
public io.substrait.proto.ExtendedExpression getDefaultInstanceForType() {
return io.substrait.proto.ExtendedExpression.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.ExtendedExpression build() {
io.substrait.proto.ExtendedExpression result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.ExtendedExpression buildPartial() {
io.substrait.proto.ExtendedExpression result = new io.substrait.proto.ExtendedExpression(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.ExtendedExpression result) {
if (extensionUrisBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
extensionUris_ = java.util.Collections.unmodifiableList(extensionUris_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.extensionUris_ = extensionUris_;
} else {
result.extensionUris_ = extensionUrisBuilder_.build();
}
if (extensionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
extensions_ = java.util.Collections.unmodifiableList(extensions_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.extensions_ = extensions_;
} else {
result.extensions_ = extensionsBuilder_.build();
}
if (referredExprBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
referredExpr_ = java.util.Collections.unmodifiableList(referredExpr_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.referredExpr_ = referredExpr_;
} else {
result.referredExpr_ = referredExprBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.ExtendedExpression result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.version_ = versionBuilder_ == null
? version_
: versionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.baseSchema_ = baseSchemaBuilder_ == null
? baseSchema_
: baseSchemaBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.advancedExtensions_ = advancedExtensionsBuilder_ == null
? advancedExtensions_
: advancedExtensionsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
expectedTypeUrls_.makeImmutable();
result.expectedTypeUrls_ = expectedTypeUrls_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.substrait.proto.ExtendedExpression) {
return mergeFrom((io.substrait.proto.ExtendedExpression)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.ExtendedExpression other) {
if (other == io.substrait.proto.ExtendedExpression.getDefaultInstance()) return this;
if (other.hasVersion()) {
mergeVersion(other.getVersion());
}
if (extensionUrisBuilder_ == null) {
if (!other.extensionUris_.isEmpty()) {
if (extensionUris_.isEmpty()) {
extensionUris_ = other.extensionUris_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureExtensionUrisIsMutable();
extensionUris_.addAll(other.extensionUris_);
}
onChanged();
}
} else {
if (!other.extensionUris_.isEmpty()) {
if (extensionUrisBuilder_.isEmpty()) {
extensionUrisBuilder_.dispose();
extensionUrisBuilder_ = null;
extensionUris_ = other.extensionUris_;
bitField0_ = (bitField0_ & ~0x00000002);
extensionUrisBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExtensionUrisFieldBuilder() : null;
} else {
extensionUrisBuilder_.addAllMessages(other.extensionUris_);
}
}
}
if (extensionsBuilder_ == null) {
if (!other.extensions_.isEmpty()) {
if (extensions_.isEmpty()) {
extensions_ = other.extensions_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureExtensionsIsMutable();
extensions_.addAll(other.extensions_);
}
onChanged();
}
} else {
if (!other.extensions_.isEmpty()) {
if (extensionsBuilder_.isEmpty()) {
extensionsBuilder_.dispose();
extensionsBuilder_ = null;
extensions_ = other.extensions_;
bitField0_ = (bitField0_ & ~0x00000004);
extensionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExtensionsFieldBuilder() : null;
} else {
extensionsBuilder_.addAllMessages(other.extensions_);
}
}
}
if (referredExprBuilder_ == null) {
if (!other.referredExpr_.isEmpty()) {
if (referredExpr_.isEmpty()) {
referredExpr_ = other.referredExpr_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureReferredExprIsMutable();
referredExpr_.addAll(other.referredExpr_);
}
onChanged();
}
} else {
if (!other.referredExpr_.isEmpty()) {
if (referredExprBuilder_.isEmpty()) {
referredExprBuilder_.dispose();
referredExprBuilder_ = null;
referredExpr_ = other.referredExpr_;
bitField0_ = (bitField0_ & ~0x00000008);
referredExprBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getReferredExprFieldBuilder() : null;
} else {
referredExprBuilder_.addAllMessages(other.referredExpr_);
}
}
}
if (other.hasBaseSchema()) {
mergeBaseSchema(other.getBaseSchema());
}
if (other.hasAdvancedExtensions()) {
mergeAdvancedExtensions(other.getAdvancedExtensions());
}
if (!other.expectedTypeUrls_.isEmpty()) {
if (expectedTypeUrls_.isEmpty()) {
expectedTypeUrls_ = other.expectedTypeUrls_;
bitField0_ |= 0x00000040;
} else {
ensureExpectedTypeUrlsIsMutable();
expectedTypeUrls_.addAll(other.expectedTypeUrls_);
}
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 10: {
io.substrait.proto.SimpleExtensionURI m =
input.readMessage(
io.substrait.proto.SimpleExtensionURI.parser(),
extensionRegistry);
if (extensionUrisBuilder_ == null) {
ensureExtensionUrisIsMutable();
extensionUris_.add(m);
} else {
extensionUrisBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
io.substrait.proto.SimpleExtensionDeclaration m =
input.readMessage(
io.substrait.proto.SimpleExtensionDeclaration.parser(),
extensionRegistry);
if (extensionsBuilder_ == null) {
ensureExtensionsIsMutable();
extensions_.add(m);
} else {
extensionsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
io.substrait.proto.ExpressionReference m =
input.readMessage(
io.substrait.proto.ExpressionReference.parser(),
extensionRegistry);
if (referredExprBuilder_ == null) {
ensureReferredExprIsMutable();
referredExpr_.add(m);
} else {
referredExprBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
input.readMessage(
getBaseSchemaFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 34
case 42: {
input.readMessage(
getAdvancedExtensionsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 42
case 50: {
java.lang.String s = input.readStringRequireUtf8();
ensureExpectedTypeUrlsIsMutable();
expectedTypeUrls_.add(s);
break;
} // case 50
case 58: {
input.readMessage(
getVersionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.substrait.proto.Version version_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Version, io.substrait.proto.Version.Builder, io.substrait.proto.VersionOrBuilder> versionBuilder_;
/**
*
* Substrait version of the expression. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 7;
* @return Whether the version field is set.
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Substrait version of the expression. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 7;
* @return The version.
*/
public io.substrait.proto.Version getVersion() {
if (versionBuilder_ == null) {
return version_ == null ? io.substrait.proto.Version.getDefaultInstance() : version_;
} else {
return versionBuilder_.getMessage();
}
}
/**
*
* Substrait version of the expression. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 7;
*/
public Builder setVersion(io.substrait.proto.Version value) {
if (versionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
} else {
versionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Substrait version of the expression. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 7;
*/
public Builder setVersion(
io.substrait.proto.Version.Builder builderForValue) {
if (versionBuilder_ == null) {
version_ = builderForValue.build();
} else {
versionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Substrait version of the expression. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 7;
*/
public Builder mergeVersion(io.substrait.proto.Version value) {
if (versionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
version_ != null &&
version_ != io.substrait.proto.Version.getDefaultInstance()) {
getVersionBuilder().mergeFrom(value);
} else {
version_ = value;
}
} else {
versionBuilder_.mergeFrom(value);
}
if (version_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Substrait version of the expression. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 7;
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000001);
version_ = null;
if (versionBuilder_ != null) {
versionBuilder_.dispose();
versionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Substrait version of the expression. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 7;
*/
public io.substrait.proto.Version.Builder getVersionBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getVersionFieldBuilder().getBuilder();
}
/**
*
* Substrait version of the expression. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 7;
*/
public io.substrait.proto.VersionOrBuilder getVersionOrBuilder() {
if (versionBuilder_ != null) {
return versionBuilder_.getMessageOrBuilder();
} else {
return version_ == null ?
io.substrait.proto.Version.getDefaultInstance() : version_;
}
}
/**
*
* Substrait version of the expression. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Version, io.substrait.proto.Version.Builder, io.substrait.proto.VersionOrBuilder>
getVersionFieldBuilder() {
if (versionBuilder_ == null) {
versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.Version, io.substrait.proto.Version.Builder, io.substrait.proto.VersionOrBuilder>(
getVersion(),
getParentForChildren(),
isClean());
version_ = null;
}
return versionBuilder_;
}
private java.util.List extensionUris_ =
java.util.Collections.emptyList();
private void ensureExtensionUrisIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
extensionUris_ = new java.util.ArrayList(extensionUris_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.SimpleExtensionURI, io.substrait.proto.SimpleExtensionURI.Builder, io.substrait.proto.SimpleExtensionURIOrBuilder> extensionUrisBuilder_;
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public java.util.List getExtensionUrisList() {
if (extensionUrisBuilder_ == null) {
return java.util.Collections.unmodifiableList(extensionUris_);
} else {
return extensionUrisBuilder_.getMessageList();
}
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public int getExtensionUrisCount() {
if (extensionUrisBuilder_ == null) {
return extensionUris_.size();
} else {
return extensionUrisBuilder_.getCount();
}
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public io.substrait.proto.SimpleExtensionURI getExtensionUris(int index) {
if (extensionUrisBuilder_ == null) {
return extensionUris_.get(index);
} else {
return extensionUrisBuilder_.getMessage(index);
}
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public Builder setExtensionUris(
int index, io.substrait.proto.SimpleExtensionURI value) {
if (extensionUrisBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtensionUrisIsMutable();
extensionUris_.set(index, value);
onChanged();
} else {
extensionUrisBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public Builder setExtensionUris(
int index, io.substrait.proto.SimpleExtensionURI.Builder builderForValue) {
if (extensionUrisBuilder_ == null) {
ensureExtensionUrisIsMutable();
extensionUris_.set(index, builderForValue.build());
onChanged();
} else {
extensionUrisBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public Builder addExtensionUris(io.substrait.proto.SimpleExtensionURI value) {
if (extensionUrisBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtensionUrisIsMutable();
extensionUris_.add(value);
onChanged();
} else {
extensionUrisBuilder_.addMessage(value);
}
return this;
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public Builder addExtensionUris(
int index, io.substrait.proto.SimpleExtensionURI value) {
if (extensionUrisBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtensionUrisIsMutable();
extensionUris_.add(index, value);
onChanged();
} else {
extensionUrisBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public Builder addExtensionUris(
io.substrait.proto.SimpleExtensionURI.Builder builderForValue) {
if (extensionUrisBuilder_ == null) {
ensureExtensionUrisIsMutable();
extensionUris_.add(builderForValue.build());
onChanged();
} else {
extensionUrisBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public Builder addExtensionUris(
int index, io.substrait.proto.SimpleExtensionURI.Builder builderForValue) {
if (extensionUrisBuilder_ == null) {
ensureExtensionUrisIsMutable();
extensionUris_.add(index, builderForValue.build());
onChanged();
} else {
extensionUrisBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public Builder addAllExtensionUris(
java.lang.Iterable extends io.substrait.proto.SimpleExtensionURI> values) {
if (extensionUrisBuilder_ == null) {
ensureExtensionUrisIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, extensionUris_);
onChanged();
} else {
extensionUrisBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public Builder clearExtensionUris() {
if (extensionUrisBuilder_ == null) {
extensionUris_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
extensionUrisBuilder_.clear();
}
return this;
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public Builder removeExtensionUris(int index) {
if (extensionUrisBuilder_ == null) {
ensureExtensionUrisIsMutable();
extensionUris_.remove(index);
onChanged();
} else {
extensionUrisBuilder_.remove(index);
}
return this;
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public io.substrait.proto.SimpleExtensionURI.Builder getExtensionUrisBuilder(
int index) {
return getExtensionUrisFieldBuilder().getBuilder(index);
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public io.substrait.proto.SimpleExtensionURIOrBuilder getExtensionUrisOrBuilder(
int index) {
if (extensionUrisBuilder_ == null) {
return extensionUris_.get(index); } else {
return extensionUrisBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public java.util.List extends io.substrait.proto.SimpleExtensionURIOrBuilder>
getExtensionUrisOrBuilderList() {
if (extensionUrisBuilder_ != null) {
return extensionUrisBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(extensionUris_);
}
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public io.substrait.proto.SimpleExtensionURI.Builder addExtensionUrisBuilder() {
return getExtensionUrisFieldBuilder().addBuilder(
io.substrait.proto.SimpleExtensionURI.getDefaultInstance());
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public io.substrait.proto.SimpleExtensionURI.Builder addExtensionUrisBuilder(
int index) {
return getExtensionUrisFieldBuilder().addBuilder(
index, io.substrait.proto.SimpleExtensionURI.getDefaultInstance());
}
/**
*
* a list of yaml specifications this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionURI extension_uris = 1;
*/
public java.util.List
getExtensionUrisBuilderList() {
return getExtensionUrisFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.SimpleExtensionURI, io.substrait.proto.SimpleExtensionURI.Builder, io.substrait.proto.SimpleExtensionURIOrBuilder>
getExtensionUrisFieldBuilder() {
if (extensionUrisBuilder_ == null) {
extensionUrisBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.SimpleExtensionURI, io.substrait.proto.SimpleExtensionURI.Builder, io.substrait.proto.SimpleExtensionURIOrBuilder>(
extensionUris_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
extensionUris_ = null;
}
return extensionUrisBuilder_;
}
private java.util.List extensions_ =
java.util.Collections.emptyList();
private void ensureExtensionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
extensions_ = new java.util.ArrayList(extensions_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.SimpleExtensionDeclaration, io.substrait.proto.SimpleExtensionDeclaration.Builder, io.substrait.proto.SimpleExtensionDeclarationOrBuilder> extensionsBuilder_;
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public java.util.List getExtensionsList() {
if (extensionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(extensions_);
} else {
return extensionsBuilder_.getMessageList();
}
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public int getExtensionsCount() {
if (extensionsBuilder_ == null) {
return extensions_.size();
} else {
return extensionsBuilder_.getCount();
}
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public io.substrait.proto.SimpleExtensionDeclaration getExtensions(int index) {
if (extensionsBuilder_ == null) {
return extensions_.get(index);
} else {
return extensionsBuilder_.getMessage(index);
}
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public Builder setExtensions(
int index, io.substrait.proto.SimpleExtensionDeclaration value) {
if (extensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtensionsIsMutable();
extensions_.set(index, value);
onChanged();
} else {
extensionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public Builder setExtensions(
int index, io.substrait.proto.SimpleExtensionDeclaration.Builder builderForValue) {
if (extensionsBuilder_ == null) {
ensureExtensionsIsMutable();
extensions_.set(index, builderForValue.build());
onChanged();
} else {
extensionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public Builder addExtensions(io.substrait.proto.SimpleExtensionDeclaration value) {
if (extensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtensionsIsMutable();
extensions_.add(value);
onChanged();
} else {
extensionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public Builder addExtensions(
int index, io.substrait.proto.SimpleExtensionDeclaration value) {
if (extensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtensionsIsMutable();
extensions_.add(index, value);
onChanged();
} else {
extensionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public Builder addExtensions(
io.substrait.proto.SimpleExtensionDeclaration.Builder builderForValue) {
if (extensionsBuilder_ == null) {
ensureExtensionsIsMutable();
extensions_.add(builderForValue.build());
onChanged();
} else {
extensionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public Builder addExtensions(
int index, io.substrait.proto.SimpleExtensionDeclaration.Builder builderForValue) {
if (extensionsBuilder_ == null) {
ensureExtensionsIsMutable();
extensions_.add(index, builderForValue.build());
onChanged();
} else {
extensionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public Builder addAllExtensions(
java.lang.Iterable extends io.substrait.proto.SimpleExtensionDeclaration> values) {
if (extensionsBuilder_ == null) {
ensureExtensionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, extensions_);
onChanged();
} else {
extensionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public Builder clearExtensions() {
if (extensionsBuilder_ == null) {
extensions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
extensionsBuilder_.clear();
}
return this;
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public Builder removeExtensions(int index) {
if (extensionsBuilder_ == null) {
ensureExtensionsIsMutable();
extensions_.remove(index);
onChanged();
} else {
extensionsBuilder_.remove(index);
}
return this;
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public io.substrait.proto.SimpleExtensionDeclaration.Builder getExtensionsBuilder(
int index) {
return getExtensionsFieldBuilder().getBuilder(index);
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public io.substrait.proto.SimpleExtensionDeclarationOrBuilder getExtensionsOrBuilder(
int index) {
if (extensionsBuilder_ == null) {
return extensions_.get(index); } else {
return extensionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public java.util.List extends io.substrait.proto.SimpleExtensionDeclarationOrBuilder>
getExtensionsOrBuilderList() {
if (extensionsBuilder_ != null) {
return extensionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(extensions_);
}
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public io.substrait.proto.SimpleExtensionDeclaration.Builder addExtensionsBuilder() {
return getExtensionsFieldBuilder().addBuilder(
io.substrait.proto.SimpleExtensionDeclaration.getDefaultInstance());
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public io.substrait.proto.SimpleExtensionDeclaration.Builder addExtensionsBuilder(
int index) {
return getExtensionsFieldBuilder().addBuilder(
index, io.substrait.proto.SimpleExtensionDeclaration.getDefaultInstance());
}
/**
*
* a list of extensions this expression may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
public java.util.List
getExtensionsBuilderList() {
return getExtensionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.SimpleExtensionDeclaration, io.substrait.proto.SimpleExtensionDeclaration.Builder, io.substrait.proto.SimpleExtensionDeclarationOrBuilder>
getExtensionsFieldBuilder() {
if (extensionsBuilder_ == null) {
extensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.SimpleExtensionDeclaration, io.substrait.proto.SimpleExtensionDeclaration.Builder, io.substrait.proto.SimpleExtensionDeclarationOrBuilder>(
extensions_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
extensions_ = null;
}
return extensionsBuilder_;
}
private java.util.List referredExpr_ =
java.util.Collections.emptyList();
private void ensureReferredExprIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
referredExpr_ = new java.util.ArrayList(referredExpr_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ExpressionReference, io.substrait.proto.ExpressionReference.Builder, io.substrait.proto.ExpressionReferenceOrBuilder> referredExprBuilder_;
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public java.util.List getReferredExprList() {
if (referredExprBuilder_ == null) {
return java.util.Collections.unmodifiableList(referredExpr_);
} else {
return referredExprBuilder_.getMessageList();
}
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public int getReferredExprCount() {
if (referredExprBuilder_ == null) {
return referredExpr_.size();
} else {
return referredExprBuilder_.getCount();
}
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public io.substrait.proto.ExpressionReference getReferredExpr(int index) {
if (referredExprBuilder_ == null) {
return referredExpr_.get(index);
} else {
return referredExprBuilder_.getMessage(index);
}
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public Builder setReferredExpr(
int index, io.substrait.proto.ExpressionReference value) {
if (referredExprBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReferredExprIsMutable();
referredExpr_.set(index, value);
onChanged();
} else {
referredExprBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public Builder setReferredExpr(
int index, io.substrait.proto.ExpressionReference.Builder builderForValue) {
if (referredExprBuilder_ == null) {
ensureReferredExprIsMutable();
referredExpr_.set(index, builderForValue.build());
onChanged();
} else {
referredExprBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public Builder addReferredExpr(io.substrait.proto.ExpressionReference value) {
if (referredExprBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReferredExprIsMutable();
referredExpr_.add(value);
onChanged();
} else {
referredExprBuilder_.addMessage(value);
}
return this;
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public Builder addReferredExpr(
int index, io.substrait.proto.ExpressionReference value) {
if (referredExprBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReferredExprIsMutable();
referredExpr_.add(index, value);
onChanged();
} else {
referredExprBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public Builder addReferredExpr(
io.substrait.proto.ExpressionReference.Builder builderForValue) {
if (referredExprBuilder_ == null) {
ensureReferredExprIsMutable();
referredExpr_.add(builderForValue.build());
onChanged();
} else {
referredExprBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public Builder addReferredExpr(
int index, io.substrait.proto.ExpressionReference.Builder builderForValue) {
if (referredExprBuilder_ == null) {
ensureReferredExprIsMutable();
referredExpr_.add(index, builderForValue.build());
onChanged();
} else {
referredExprBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public Builder addAllReferredExpr(
java.lang.Iterable extends io.substrait.proto.ExpressionReference> values) {
if (referredExprBuilder_ == null) {
ensureReferredExprIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, referredExpr_);
onChanged();
} else {
referredExprBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public Builder clearReferredExpr() {
if (referredExprBuilder_ == null) {
referredExpr_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
referredExprBuilder_.clear();
}
return this;
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public Builder removeReferredExpr(int index) {
if (referredExprBuilder_ == null) {
ensureReferredExprIsMutable();
referredExpr_.remove(index);
onChanged();
} else {
referredExprBuilder_.remove(index);
}
return this;
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public io.substrait.proto.ExpressionReference.Builder getReferredExprBuilder(
int index) {
return getReferredExprFieldBuilder().getBuilder(index);
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public io.substrait.proto.ExpressionReferenceOrBuilder getReferredExprOrBuilder(
int index) {
if (referredExprBuilder_ == null) {
return referredExpr_.get(index); } else {
return referredExprBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public java.util.List extends io.substrait.proto.ExpressionReferenceOrBuilder>
getReferredExprOrBuilderList() {
if (referredExprBuilder_ != null) {
return referredExprBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(referredExpr_);
}
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public io.substrait.proto.ExpressionReference.Builder addReferredExprBuilder() {
return getReferredExprFieldBuilder().addBuilder(
io.substrait.proto.ExpressionReference.getDefaultInstance());
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public io.substrait.proto.ExpressionReference.Builder addReferredExprBuilder(
int index) {
return getReferredExprFieldBuilder().addBuilder(
index, io.substrait.proto.ExpressionReference.getDefaultInstance());
}
/**
*
* one or more expression trees with same order in plan rel
*
*
* repeated .substrait.ExpressionReference referred_expr = 3;
*/
public java.util.List
getReferredExprBuilderList() {
return getReferredExprFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ExpressionReference, io.substrait.proto.ExpressionReference.Builder, io.substrait.proto.ExpressionReferenceOrBuilder>
getReferredExprFieldBuilder() {
if (referredExprBuilder_ == null) {
referredExprBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.ExpressionReference, io.substrait.proto.ExpressionReference.Builder, io.substrait.proto.ExpressionReferenceOrBuilder>(
referredExpr_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
referredExpr_ = null;
}
return referredExprBuilder_;
}
private io.substrait.proto.NamedStruct baseSchema_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.NamedStruct, io.substrait.proto.NamedStruct.Builder, io.substrait.proto.NamedStructOrBuilder> baseSchemaBuilder_;
/**
* .substrait.NamedStruct base_schema = 4;
* @return Whether the baseSchema field is set.
*/
public boolean hasBaseSchema() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .substrait.NamedStruct base_schema = 4;
* @return The baseSchema.
*/
public io.substrait.proto.NamedStruct getBaseSchema() {
if (baseSchemaBuilder_ == null) {
return baseSchema_ == null ? io.substrait.proto.NamedStruct.getDefaultInstance() : baseSchema_;
} else {
return baseSchemaBuilder_.getMessage();
}
}
/**
* .substrait.NamedStruct base_schema = 4;
*/
public Builder setBaseSchema(io.substrait.proto.NamedStruct value) {
if (baseSchemaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseSchema_ = value;
} else {
baseSchemaBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .substrait.NamedStruct base_schema = 4;
*/
public Builder setBaseSchema(
io.substrait.proto.NamedStruct.Builder builderForValue) {
if (baseSchemaBuilder_ == null) {
baseSchema_ = builderForValue.build();
} else {
baseSchemaBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .substrait.NamedStruct base_schema = 4;
*/
public Builder mergeBaseSchema(io.substrait.proto.NamedStruct value) {
if (baseSchemaBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
baseSchema_ != null &&
baseSchema_ != io.substrait.proto.NamedStruct.getDefaultInstance()) {
getBaseSchemaBuilder().mergeFrom(value);
} else {
baseSchema_ = value;
}
} else {
baseSchemaBuilder_.mergeFrom(value);
}
if (baseSchema_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* .substrait.NamedStruct base_schema = 4;
*/
public Builder clearBaseSchema() {
bitField0_ = (bitField0_ & ~0x00000010);
baseSchema_ = null;
if (baseSchemaBuilder_ != null) {
baseSchemaBuilder_.dispose();
baseSchemaBuilder_ = null;
}
onChanged();
return this;
}
/**
* .substrait.NamedStruct base_schema = 4;
*/
public io.substrait.proto.NamedStruct.Builder getBaseSchemaBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getBaseSchemaFieldBuilder().getBuilder();
}
/**
* .substrait.NamedStruct base_schema = 4;
*/
public io.substrait.proto.NamedStructOrBuilder getBaseSchemaOrBuilder() {
if (baseSchemaBuilder_ != null) {
return baseSchemaBuilder_.getMessageOrBuilder();
} else {
return baseSchema_ == null ?
io.substrait.proto.NamedStruct.getDefaultInstance() : baseSchema_;
}
}
/**
* .substrait.NamedStruct base_schema = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.NamedStruct, io.substrait.proto.NamedStruct.Builder, io.substrait.proto.NamedStructOrBuilder>
getBaseSchemaFieldBuilder() {
if (baseSchemaBuilder_ == null) {
baseSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.NamedStruct, io.substrait.proto.NamedStruct.Builder, io.substrait.proto.NamedStructOrBuilder>(
getBaseSchema(),
getParentForChildren(),
isClean());
baseSchema_ = null;
}
return baseSchemaBuilder_;
}
private io.substrait.proto.AdvancedExtension advancedExtensions_;
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder> advancedExtensionsBuilder_;
/**
*
* additional extensions associated with this expression.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 5;
* @return Whether the advancedExtensions field is set.
*/
public boolean hasAdvancedExtensions() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* additional extensions associated with this expression.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 5;
* @return The advancedExtensions.
*/
public io.substrait.proto.AdvancedExtension getAdvancedExtensions() {
if (advancedExtensionsBuilder_ == null) {
return advancedExtensions_ == null ? io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtensions_;
} else {
return advancedExtensionsBuilder_.getMessage();
}
}
/**
*
* additional extensions associated with this expression.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 5;
*/
public Builder setAdvancedExtensions(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
advancedExtensions_ = value;
} else {
advancedExtensionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* additional extensions associated with this expression.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 5;
*/
public Builder setAdvancedExtensions(
io.substrait.proto.AdvancedExtension.Builder builderForValue) {
if (advancedExtensionsBuilder_ == null) {
advancedExtensions_ = builderForValue.build();
} else {
advancedExtensionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* additional extensions associated with this expression.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 5;
*/
public Builder mergeAdvancedExtensions(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
advancedExtensions_ != null &&
advancedExtensions_ != io.substrait.proto.AdvancedExtension.getDefaultInstance()) {
getAdvancedExtensionsBuilder().mergeFrom(value);
} else {
advancedExtensions_ = value;
}
} else {
advancedExtensionsBuilder_.mergeFrom(value);
}
if (advancedExtensions_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* additional extensions associated with this expression.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 5;
*/
public Builder clearAdvancedExtensions() {
bitField0_ = (bitField0_ & ~0x00000020);
advancedExtensions_ = null;
if (advancedExtensionsBuilder_ != null) {
advancedExtensionsBuilder_.dispose();
advancedExtensionsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* additional extensions associated with this expression.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 5;
*/
public io.substrait.proto.AdvancedExtension.Builder getAdvancedExtensionsBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getAdvancedExtensionsFieldBuilder().getBuilder();
}
/**
*
* additional extensions associated with this expression.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 5;
*/
public io.substrait.proto.AdvancedExtensionOrBuilder getAdvancedExtensionsOrBuilder() {
if (advancedExtensionsBuilder_ != null) {
return advancedExtensionsBuilder_.getMessageOrBuilder();
} else {
return advancedExtensions_ == null ?
io.substrait.proto.AdvancedExtension.getDefaultInstance() : advancedExtensions_;
}
}
/**
*
* additional extensions associated with this expression.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>
getAdvancedExtensionsFieldBuilder() {
if (advancedExtensionsBuilder_ == null) {
advancedExtensionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.substrait.proto.AdvancedExtension, io.substrait.proto.AdvancedExtension.Builder, io.substrait.proto.AdvancedExtensionOrBuilder>(
getAdvancedExtensions(),
getParentForChildren(),
isClean());
advancedExtensions_ = null;
}
return advancedExtensionsBuilder_;
}
private com.google.protobuf.LazyStringArrayList expectedTypeUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExpectedTypeUrlsIsMutable() {
if (!expectedTypeUrls_.isModifiable()) {
expectedTypeUrls_ = new com.google.protobuf.LazyStringArrayList(expectedTypeUrls_);
}
bitField0_ |= 0x00000040;
}
/**
*
* A list of com.google.Any entities that this plan may use. Can be used to
* warn if some embedded message types are unknown. Note that this list may
* include message types that are ignorable (optimizations) or that are
* unused. In many cases, a consumer may be able to work with a plan even if
* one or more message types defined here are unknown.
*
*
* repeated string expected_type_urls = 6;
* @return A list containing the expectedTypeUrls.
*/
public com.google.protobuf.ProtocolStringList
getExpectedTypeUrlsList() {
expectedTypeUrls_.makeImmutable();
return expectedTypeUrls_;
}
/**
*
* A list of com.google.Any entities that this plan may use. Can be used to
* warn if some embedded message types are unknown. Note that this list may
* include message types that are ignorable (optimizations) or that are
* unused. In many cases, a consumer may be able to work with a plan even if
* one or more message types defined here are unknown.
*
*
* repeated string expected_type_urls = 6;
* @return The count of expectedTypeUrls.
*/
public int getExpectedTypeUrlsCount() {
return expectedTypeUrls_.size();
}
/**
*
* A list of com.google.Any entities that this plan may use. Can be used to
* warn if some embedded message types are unknown. Note that this list may
* include message types that are ignorable (optimizations) or that are
* unused. In many cases, a consumer may be able to work with a plan even if
* one or more message types defined here are unknown.
*
*
* repeated string expected_type_urls = 6;
* @param index The index of the element to return.
* @return The expectedTypeUrls at the given index.
*/
public java.lang.String getExpectedTypeUrls(int index) {
return expectedTypeUrls_.get(index);
}
/**
*
* A list of com.google.Any entities that this plan may use. Can be used to
* warn if some embedded message types are unknown. Note that this list may
* include message types that are ignorable (optimizations) or that are
* unused. In many cases, a consumer may be able to work with a plan even if
* one or more message types defined here are unknown.
*
*
* repeated string expected_type_urls = 6;
* @param index The index of the value to return.
* @return The bytes of the expectedTypeUrls at the given index.
*/
public com.google.protobuf.ByteString
getExpectedTypeUrlsBytes(int index) {
return expectedTypeUrls_.getByteString(index);
}
/**
*
* A list of com.google.Any entities that this plan may use. Can be used to
* warn if some embedded message types are unknown. Note that this list may
* include message types that are ignorable (optimizations) or that are
* unused. In many cases, a consumer may be able to work with a plan even if
* one or more message types defined here are unknown.
*
*
* repeated string expected_type_urls = 6;
* @param index The index to set the value at.
* @param value The expectedTypeUrls to set.
* @return This builder for chaining.
*/
public Builder setExpectedTypeUrls(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExpectedTypeUrlsIsMutable();
expectedTypeUrls_.set(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* A list of com.google.Any entities that this plan may use. Can be used to
* warn if some embedded message types are unknown. Note that this list may
* include message types that are ignorable (optimizations) or that are
* unused. In many cases, a consumer may be able to work with a plan even if
* one or more message types defined here are unknown.
*
*
* repeated string expected_type_urls = 6;
* @param value The expectedTypeUrls to add.
* @return This builder for chaining.
*/
public Builder addExpectedTypeUrls(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExpectedTypeUrlsIsMutable();
expectedTypeUrls_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* A list of com.google.Any entities that this plan may use. Can be used to
* warn if some embedded message types are unknown. Note that this list may
* include message types that are ignorable (optimizations) or that are
* unused. In many cases, a consumer may be able to work with a plan even if
* one or more message types defined here are unknown.
*
*
* repeated string expected_type_urls = 6;
* @param values The expectedTypeUrls to add.
* @return This builder for chaining.
*/
public Builder addAllExpectedTypeUrls(
java.lang.Iterable values) {
ensureExpectedTypeUrlsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, expectedTypeUrls_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* A list of com.google.Any entities that this plan may use. Can be used to
* warn if some embedded message types are unknown. Note that this list may
* include message types that are ignorable (optimizations) or that are
* unused. In many cases, a consumer may be able to work with a plan even if
* one or more message types defined here are unknown.
*
*
* repeated string expected_type_urls = 6;
* @return This builder for chaining.
*/
public Builder clearExpectedTypeUrls() {
expectedTypeUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);;
onChanged();
return this;
}
/**
*
* A list of com.google.Any entities that this plan may use. Can be used to
* warn if some embedded message types are unknown. Note that this list may
* include message types that are ignorable (optimizations) or that are
* unused. In many cases, a consumer may be able to work with a plan even if
* one or more message types defined here are unknown.
*
*
* repeated string expected_type_urls = 6;
* @param value The bytes of the expectedTypeUrls to add.
* @return This builder for chaining.
*/
public Builder addExpectedTypeUrlsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureExpectedTypeUrlsIsMutable();
expectedTypeUrls_.add(value);
bitField0_ |= 0x00000040;
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.ExtendedExpression)
}
// @@protoc_insertion_point(class_scope:substrait.ExtendedExpression)
private static final io.substrait.proto.ExtendedExpression DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.ExtendedExpression();
}
public static io.substrait.proto.ExtendedExpression getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExtendedExpression 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.ExtendedExpression getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy