io.substrait.proto.Plan 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/plan.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.Plan}
*/
public final class Plan extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Plan)
PlanOrBuilder {
private static final long serialVersionUID = 0L;
// Use Plan.newBuilder() to construct.
private Plan(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Plan() {
extensionUris_ = java.util.Collections.emptyList();
extensions_ = java.util.Collections.emptyList();
relations_ = java.util.Collections.emptyList();
expectedTypeUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Plan();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_Plan_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_Plan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Plan.class, io.substrait.proto.Plan.Builder.class);
}
private int bitField0_;
public static final int VERSION_FIELD_NUMBER = 6;
private io.substrait.proto.Version version_;
/**
*
* Substrait version of the plan. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 6;
* @return Whether the version field is set.
*/
@java.lang.Override
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Substrait version of the plan. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 6;
* @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 plan. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 6;
*/
@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 plan 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 plan 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 plan 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 plan 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 plan 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 plan may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
@java.lang.Override
public java.util.List getExtensionsList() {
return extensions_;
}
/**
*
* a list of extensions this plan 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 plan may depend on
*
*
* repeated .substrait.extensions.SimpleExtensionDeclaration extensions = 2;
*/
@java.lang.Override
public int getExtensionsCount() {
return extensions_.size();
}
/**
*
* a list of extensions this plan 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 plan 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 RELATIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List relations_;
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
@java.lang.Override
public java.util.List getRelationsList() {
return relations_;
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
@java.lang.Override
public java.util.List extends io.substrait.proto.PlanRelOrBuilder>
getRelationsOrBuilderList() {
return relations_;
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
@java.lang.Override
public int getRelationsCount() {
return relations_.size();
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
@java.lang.Override
public io.substrait.proto.PlanRel getRelations(int index) {
return relations_.get(index);
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
@java.lang.Override
public io.substrait.proto.PlanRelOrBuilder getRelationsOrBuilder(
int index) {
return relations_.get(index);
}
public static final int ADVANCED_EXTENSIONS_FIELD_NUMBER = 4;
private io.substrait.proto.AdvancedExtension advancedExtensions_;
/**
*
* additional extensions associated with this plan.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 4;
* @return Whether the advancedExtensions field is set.
*/
@java.lang.Override
public boolean hasAdvancedExtensions() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* additional extensions associated with this plan.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 4;
* @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 plan.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 4;
*/
@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 = 5;
@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 = 5;
* @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 = 5;
* @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 = 5;
* @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 = 5;
* @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 < relations_.size(); i++) {
output.writeMessage(3, relations_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getAdvancedExtensions());
}
for (int i = 0; i < expectedTypeUrls_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, expectedTypeUrls_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(6, 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 < relations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, relations_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, 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(6, 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.Plan)) {
return super.equals(obj);
}
io.substrait.proto.Plan other = (io.substrait.proto.Plan) 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 (!getRelationsList()
.equals(other.getRelationsList())) 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 (getRelationsCount() > 0) {
hash = (37 * hash) + RELATIONS_FIELD_NUMBER;
hash = (53 * hash) + getRelationsList().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.Plan parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Plan 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.Plan parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Plan 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.Plan parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Plan parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Plan parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Plan 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.Plan parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Plan 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.Plan parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Plan 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.Plan 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.Plan}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Plan)
io.substrait.proto.PlanOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_Plan_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_Plan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Plan.class, io.substrait.proto.Plan.Builder.class);
}
// Construct using io.substrait.proto.Plan.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();
getRelationsFieldBuilder();
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 (relationsBuilder_ == null) {
relations_ = java.util.Collections.emptyList();
} else {
relations_ = null;
relationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
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.PlanOuterClass.internal_static_substrait_Plan_descriptor;
}
@java.lang.Override
public io.substrait.proto.Plan getDefaultInstanceForType() {
return io.substrait.proto.Plan.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Plan build() {
io.substrait.proto.Plan result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Plan buildPartial() {
io.substrait.proto.Plan result = new io.substrait.proto.Plan(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.substrait.proto.Plan 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 (relationsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
relations_ = java.util.Collections.unmodifiableList(relations_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.relations_ = relations_;
} else {
result.relations_ = relationsBuilder_.build();
}
}
private void buildPartial0(io.substrait.proto.Plan 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.advancedExtensions_ = advancedExtensionsBuilder_ == null
? advancedExtensions_
: advancedExtensionsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 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.Plan) {
return mergeFrom((io.substrait.proto.Plan)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Plan other) {
if (other == io.substrait.proto.Plan.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 (relationsBuilder_ == null) {
if (!other.relations_.isEmpty()) {
if (relations_.isEmpty()) {
relations_ = other.relations_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureRelationsIsMutable();
relations_.addAll(other.relations_);
}
onChanged();
}
} else {
if (!other.relations_.isEmpty()) {
if (relationsBuilder_.isEmpty()) {
relationsBuilder_.dispose();
relationsBuilder_ = null;
relations_ = other.relations_;
bitField0_ = (bitField0_ & ~0x00000008);
relationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRelationsFieldBuilder() : null;
} else {
relationsBuilder_.addAllMessages(other.relations_);
}
}
}
if (other.hasAdvancedExtensions()) {
mergeAdvancedExtensions(other.getAdvancedExtensions());
}
if (!other.expectedTypeUrls_.isEmpty()) {
if (expectedTypeUrls_.isEmpty()) {
expectedTypeUrls_ = other.expectedTypeUrls_;
bitField0_ |= 0x00000020;
} 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.PlanRel m =
input.readMessage(
io.substrait.proto.PlanRel.parser(),
extensionRegistry);
if (relationsBuilder_ == null) {
ensureRelationsIsMutable();
relations_.add(m);
} else {
relationsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
input.readMessage(
getAdvancedExtensionsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 34
case 42: {
java.lang.String s = input.readStringRequireUtf8();
ensureExpectedTypeUrlsIsMutable();
expectedTypeUrls_.add(s);
break;
} // case 42
case 50: {
input.readMessage(
getVersionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 50
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 plan. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 6;
* @return Whether the version field is set.
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Substrait version of the plan. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 6;
* @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 plan. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 6;
*/
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 plan. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 6;
*/
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 plan. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 6;
*/
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 plan. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 6;
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000001);
version_ = null;
if (versionBuilder_ != null) {
versionBuilder_.dispose();
versionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Substrait version of the plan. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 6;
*/
public io.substrait.proto.Version.Builder getVersionBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getVersionFieldBuilder().getBuilder();
}
/**
*
* Substrait version of the plan. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 6;
*/
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 plan. Optional up to 0.17.0, required for later
* versions.
*
*
* .substrait.Version version = 6;
*/
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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 plan 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 relations_ =
java.util.Collections.emptyList();
private void ensureRelationsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
relations_ = new java.util.ArrayList(relations_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.PlanRel, io.substrait.proto.PlanRel.Builder, io.substrait.proto.PlanRelOrBuilder> relationsBuilder_;
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public java.util.List getRelationsList() {
if (relationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(relations_);
} else {
return relationsBuilder_.getMessageList();
}
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public int getRelationsCount() {
if (relationsBuilder_ == null) {
return relations_.size();
} else {
return relationsBuilder_.getCount();
}
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public io.substrait.proto.PlanRel getRelations(int index) {
if (relationsBuilder_ == null) {
return relations_.get(index);
} else {
return relationsBuilder_.getMessage(index);
}
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public Builder setRelations(
int index, io.substrait.proto.PlanRel value) {
if (relationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRelationsIsMutable();
relations_.set(index, value);
onChanged();
} else {
relationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public Builder setRelations(
int index, io.substrait.proto.PlanRel.Builder builderForValue) {
if (relationsBuilder_ == null) {
ensureRelationsIsMutable();
relations_.set(index, builderForValue.build());
onChanged();
} else {
relationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public Builder addRelations(io.substrait.proto.PlanRel value) {
if (relationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRelationsIsMutable();
relations_.add(value);
onChanged();
} else {
relationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public Builder addRelations(
int index, io.substrait.proto.PlanRel value) {
if (relationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRelationsIsMutable();
relations_.add(index, value);
onChanged();
} else {
relationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public Builder addRelations(
io.substrait.proto.PlanRel.Builder builderForValue) {
if (relationsBuilder_ == null) {
ensureRelationsIsMutable();
relations_.add(builderForValue.build());
onChanged();
} else {
relationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public Builder addRelations(
int index, io.substrait.proto.PlanRel.Builder builderForValue) {
if (relationsBuilder_ == null) {
ensureRelationsIsMutable();
relations_.add(index, builderForValue.build());
onChanged();
} else {
relationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public Builder addAllRelations(
java.lang.Iterable extends io.substrait.proto.PlanRel> values) {
if (relationsBuilder_ == null) {
ensureRelationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, relations_);
onChanged();
} else {
relationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public Builder clearRelations() {
if (relationsBuilder_ == null) {
relations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
relationsBuilder_.clear();
}
return this;
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public Builder removeRelations(int index) {
if (relationsBuilder_ == null) {
ensureRelationsIsMutable();
relations_.remove(index);
onChanged();
} else {
relationsBuilder_.remove(index);
}
return this;
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public io.substrait.proto.PlanRel.Builder getRelationsBuilder(
int index) {
return getRelationsFieldBuilder().getBuilder(index);
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public io.substrait.proto.PlanRelOrBuilder getRelationsOrBuilder(
int index) {
if (relationsBuilder_ == null) {
return relations_.get(index); } else {
return relationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public java.util.List extends io.substrait.proto.PlanRelOrBuilder>
getRelationsOrBuilderList() {
if (relationsBuilder_ != null) {
return relationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(relations_);
}
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public io.substrait.proto.PlanRel.Builder addRelationsBuilder() {
return getRelationsFieldBuilder().addBuilder(
io.substrait.proto.PlanRel.getDefaultInstance());
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public io.substrait.proto.PlanRel.Builder addRelationsBuilder(
int index) {
return getRelationsFieldBuilder().addBuilder(
index, io.substrait.proto.PlanRel.getDefaultInstance());
}
/**
*
* one or more relation trees that are associated with this plan.
*
*
* repeated .substrait.PlanRel relations = 3;
*/
public java.util.List
getRelationsBuilderList() {
return getRelationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.PlanRel, io.substrait.proto.PlanRel.Builder, io.substrait.proto.PlanRelOrBuilder>
getRelationsFieldBuilder() {
if (relationsBuilder_ == null) {
relationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.substrait.proto.PlanRel, io.substrait.proto.PlanRel.Builder, io.substrait.proto.PlanRelOrBuilder>(
relations_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
relations_ = null;
}
return relationsBuilder_;
}
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 plan.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 4;
* @return Whether the advancedExtensions field is set.
*/
public boolean hasAdvancedExtensions() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* additional extensions associated with this plan.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 4;
* @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 plan.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 4;
*/
public Builder setAdvancedExtensions(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
advancedExtensions_ = value;
} else {
advancedExtensionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* additional extensions associated with this plan.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 4;
*/
public Builder setAdvancedExtensions(
io.substrait.proto.AdvancedExtension.Builder builderForValue) {
if (advancedExtensionsBuilder_ == null) {
advancedExtensions_ = builderForValue.build();
} else {
advancedExtensionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* additional extensions associated with this plan.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 4;
*/
public Builder mergeAdvancedExtensions(io.substrait.proto.AdvancedExtension value) {
if (advancedExtensionsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
advancedExtensions_ != null &&
advancedExtensions_ != io.substrait.proto.AdvancedExtension.getDefaultInstance()) {
getAdvancedExtensionsBuilder().mergeFrom(value);
} else {
advancedExtensions_ = value;
}
} else {
advancedExtensionsBuilder_.mergeFrom(value);
}
if (advancedExtensions_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* additional extensions associated with this plan.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 4;
*/
public Builder clearAdvancedExtensions() {
bitField0_ = (bitField0_ & ~0x00000010);
advancedExtensions_ = null;
if (advancedExtensionsBuilder_ != null) {
advancedExtensionsBuilder_.dispose();
advancedExtensionsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* additional extensions associated with this plan.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 4;
*/
public io.substrait.proto.AdvancedExtension.Builder getAdvancedExtensionsBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getAdvancedExtensionsFieldBuilder().getBuilder();
}
/**
*
* additional extensions associated with this plan.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 4;
*/
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 plan.
*
*
* .substrait.extensions.AdvancedExtension advanced_extensions = 4;
*/
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_ |= 0x00000020;
}
/**
*
* 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 = 5;
* @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 = 5;
* @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 = 5;
* @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 = 5;
* @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 = 5;
* @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_ |= 0x00000020;
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 = 5;
* @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_ |= 0x00000020;
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 = 5;
* @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_ |= 0x00000020;
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 = 5;
* @return This builder for chaining.
*/
public Builder clearExpectedTypeUrls() {
expectedTypeUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);;
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 = 5;
* @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_ |= 0x00000020;
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.Plan)
}
// @@protoc_insertion_point(class_scope:substrait.Plan)
private static final io.substrait.proto.Plan DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Plan();
}
public static io.substrait.proto.Plan getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Plan 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.Plan getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy