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

io.substrait.proto.AdvancedExtension Maven / Gradle / Ivy

Go to download

Create a well-defined, cross-language specification for data compute operations

There is a newer version: 0.46.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: substrait/extensions/extensions.proto

// Protobuf Java Version: 3.25.5
package io.substrait.proto;

/**
 * 
 * A generic object that can be used to embed additional extension information
 * into the serialized substrait plan.
 * 
* * Protobuf type {@code substrait.extensions.AdvancedExtension} */ public final class AdvancedExtension extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.extensions.AdvancedExtension) AdvancedExtensionOrBuilder { private static final long serialVersionUID = 0L; // Use AdvancedExtension.newBuilder() to construct. private AdvancedExtension(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AdvancedExtension() { optimization_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AdvancedExtension(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Extensions.internal_static_substrait_extensions_AdvancedExtension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Extensions.internal_static_substrait_extensions_AdvancedExtension_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.AdvancedExtension.class, io.substrait.proto.AdvancedExtension.Builder.class); } private int bitField0_; public static final int OPTIMIZATION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List optimization_; /** *
   * An optimization is helpful information that don't influence semantics. May
   * be ignored by a consumer.
   * 
* * repeated .google.protobuf.Any optimization = 1; */ @java.lang.Override public java.util.List getOptimizationList() { return optimization_; } /** *
   * An optimization is helpful information that don't influence semantics. May
   * be ignored by a consumer.
   * 
* * repeated .google.protobuf.Any optimization = 1; */ @java.lang.Override public java.util.List getOptimizationOrBuilderList() { return optimization_; } /** *
   * An optimization is helpful information that don't influence semantics. May
   * be ignored by a consumer.
   * 
* * repeated .google.protobuf.Any optimization = 1; */ @java.lang.Override public int getOptimizationCount() { return optimization_.size(); } /** *
   * An optimization is helpful information that don't influence semantics. May
   * be ignored by a consumer.
   * 
* * repeated .google.protobuf.Any optimization = 1; */ @java.lang.Override public com.google.protobuf.Any getOptimization(int index) { return optimization_.get(index); } /** *
   * An optimization is helpful information that don't influence semantics. May
   * be ignored by a consumer.
   * 
* * repeated .google.protobuf.Any optimization = 1; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getOptimizationOrBuilder( int index) { return optimization_.get(index); } public static final int ENHANCEMENT_FIELD_NUMBER = 2; private com.google.protobuf.Any enhancement_; /** *
   * An enhancement alter semantics. Cannot be ignored by a consumer.
   * 
* * .google.protobuf.Any enhancement = 2; * @return Whether the enhancement field is set. */ @java.lang.Override public boolean hasEnhancement() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * An enhancement alter semantics. Cannot be ignored by a consumer.
   * 
* * .google.protobuf.Any enhancement = 2; * @return The enhancement. */ @java.lang.Override public com.google.protobuf.Any getEnhancement() { return enhancement_ == null ? com.google.protobuf.Any.getDefaultInstance() : enhancement_; } /** *
   * An enhancement alter semantics. Cannot be ignored by a consumer.
   * 
* * .google.protobuf.Any enhancement = 2; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getEnhancementOrBuilder() { return enhancement_ == null ? com.google.protobuf.Any.getDefaultInstance() : enhancement_; } 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 < optimization_.size(); i++) { output.writeMessage(1, optimization_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getEnhancement()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < optimization_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, optimization_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEnhancement()); } 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.AdvancedExtension)) { return super.equals(obj); } io.substrait.proto.AdvancedExtension other = (io.substrait.proto.AdvancedExtension) obj; if (!getOptimizationList() .equals(other.getOptimizationList())) return false; if (hasEnhancement() != other.hasEnhancement()) return false; if (hasEnhancement()) { if (!getEnhancement() .equals(other.getEnhancement())) 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 (getOptimizationCount() > 0) { hash = (37 * hash) + OPTIMIZATION_FIELD_NUMBER; hash = (53 * hash) + getOptimizationList().hashCode(); } if (hasEnhancement()) { hash = (37 * hash) + ENHANCEMENT_FIELD_NUMBER; hash = (53 * hash) + getEnhancement().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.AdvancedExtension parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.AdvancedExtension 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.AdvancedExtension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.AdvancedExtension 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.AdvancedExtension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.AdvancedExtension parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.AdvancedExtension parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.AdvancedExtension 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.AdvancedExtension parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.AdvancedExtension 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.AdvancedExtension parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.AdvancedExtension 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.AdvancedExtension 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; } /** *
   * A generic object that can be used to embed additional extension information
   * into the serialized substrait plan.
   * 
* * Protobuf type {@code substrait.extensions.AdvancedExtension} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.extensions.AdvancedExtension) io.substrait.proto.AdvancedExtensionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.Extensions.internal_static_substrait_extensions_AdvancedExtension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.Extensions.internal_static_substrait_extensions_AdvancedExtension_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.AdvancedExtension.class, io.substrait.proto.AdvancedExtension.Builder.class); } // Construct using io.substrait.proto.AdvancedExtension.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOptimizationFieldBuilder(); getEnhancementFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (optimizationBuilder_ == null) { optimization_ = java.util.Collections.emptyList(); } else { optimization_ = null; optimizationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); enhancement_ = null; if (enhancementBuilder_ != null) { enhancementBuilder_.dispose(); enhancementBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.Extensions.internal_static_substrait_extensions_AdvancedExtension_descriptor; } @java.lang.Override public io.substrait.proto.AdvancedExtension getDefaultInstanceForType() { return io.substrait.proto.AdvancedExtension.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.AdvancedExtension build() { io.substrait.proto.AdvancedExtension result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.AdvancedExtension buildPartial() { io.substrait.proto.AdvancedExtension result = new io.substrait.proto.AdvancedExtension(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.substrait.proto.AdvancedExtension result) { if (optimizationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { optimization_ = java.util.Collections.unmodifiableList(optimization_); bitField0_ = (bitField0_ & ~0x00000001); } result.optimization_ = optimization_; } else { result.optimization_ = optimizationBuilder_.build(); } } private void buildPartial0(io.substrait.proto.AdvancedExtension result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.enhancement_ = enhancementBuilder_ == null ? enhancement_ : enhancementBuilder_.build(); to_bitField0_ |= 0x00000001; } 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.AdvancedExtension) { return mergeFrom((io.substrait.proto.AdvancedExtension)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.AdvancedExtension other) { if (other == io.substrait.proto.AdvancedExtension.getDefaultInstance()) return this; if (optimizationBuilder_ == null) { if (!other.optimization_.isEmpty()) { if (optimization_.isEmpty()) { optimization_ = other.optimization_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOptimizationIsMutable(); optimization_.addAll(other.optimization_); } onChanged(); } } else { if (!other.optimization_.isEmpty()) { if (optimizationBuilder_.isEmpty()) { optimizationBuilder_.dispose(); optimizationBuilder_ = null; optimization_ = other.optimization_; bitField0_ = (bitField0_ & ~0x00000001); optimizationBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOptimizationFieldBuilder() : null; } else { optimizationBuilder_.addAllMessages(other.optimization_); } } } if (other.hasEnhancement()) { mergeEnhancement(other.getEnhancement()); } 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: { com.google.protobuf.Any m = input.readMessage( com.google.protobuf.Any.parser(), extensionRegistry); if (optimizationBuilder_ == null) { ensureOptimizationIsMutable(); optimization_.add(m); } else { optimizationBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getEnhancementFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 java.util.List optimization_ = java.util.Collections.emptyList(); private void ensureOptimizationIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { optimization_ = new java.util.ArrayList(optimization_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> optimizationBuilder_; /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public java.util.List getOptimizationList() { if (optimizationBuilder_ == null) { return java.util.Collections.unmodifiableList(optimization_); } else { return optimizationBuilder_.getMessageList(); } } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public int getOptimizationCount() { if (optimizationBuilder_ == null) { return optimization_.size(); } else { return optimizationBuilder_.getCount(); } } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public com.google.protobuf.Any getOptimization(int index) { if (optimizationBuilder_ == null) { return optimization_.get(index); } else { return optimizationBuilder_.getMessage(index); } } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public Builder setOptimization( int index, com.google.protobuf.Any value) { if (optimizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptimizationIsMutable(); optimization_.set(index, value); onChanged(); } else { optimizationBuilder_.setMessage(index, value); } return this; } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public Builder setOptimization( int index, com.google.protobuf.Any.Builder builderForValue) { if (optimizationBuilder_ == null) { ensureOptimizationIsMutable(); optimization_.set(index, builderForValue.build()); onChanged(); } else { optimizationBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public Builder addOptimization(com.google.protobuf.Any value) { if (optimizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptimizationIsMutable(); optimization_.add(value); onChanged(); } else { optimizationBuilder_.addMessage(value); } return this; } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public Builder addOptimization( int index, com.google.protobuf.Any value) { if (optimizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptimizationIsMutable(); optimization_.add(index, value); onChanged(); } else { optimizationBuilder_.addMessage(index, value); } return this; } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public Builder addOptimization( com.google.protobuf.Any.Builder builderForValue) { if (optimizationBuilder_ == null) { ensureOptimizationIsMutable(); optimization_.add(builderForValue.build()); onChanged(); } else { optimizationBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public Builder addOptimization( int index, com.google.protobuf.Any.Builder builderForValue) { if (optimizationBuilder_ == null) { ensureOptimizationIsMutable(); optimization_.add(index, builderForValue.build()); onChanged(); } else { optimizationBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public Builder addAllOptimization( java.lang.Iterable values) { if (optimizationBuilder_ == null) { ensureOptimizationIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, optimization_); onChanged(); } else { optimizationBuilder_.addAllMessages(values); } return this; } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public Builder clearOptimization() { if (optimizationBuilder_ == null) { optimization_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { optimizationBuilder_.clear(); } return this; } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public Builder removeOptimization(int index) { if (optimizationBuilder_ == null) { ensureOptimizationIsMutable(); optimization_.remove(index); onChanged(); } else { optimizationBuilder_.remove(index); } return this; } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public com.google.protobuf.Any.Builder getOptimizationBuilder( int index) { return getOptimizationFieldBuilder().getBuilder(index); } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public com.google.protobuf.AnyOrBuilder getOptimizationOrBuilder( int index) { if (optimizationBuilder_ == null) { return optimization_.get(index); } else { return optimizationBuilder_.getMessageOrBuilder(index); } } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public java.util.List getOptimizationOrBuilderList() { if (optimizationBuilder_ != null) { return optimizationBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(optimization_); } } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public com.google.protobuf.Any.Builder addOptimizationBuilder() { return getOptimizationFieldBuilder().addBuilder( com.google.protobuf.Any.getDefaultInstance()); } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public com.google.protobuf.Any.Builder addOptimizationBuilder( int index) { return getOptimizationFieldBuilder().addBuilder( index, com.google.protobuf.Any.getDefaultInstance()); } /** *
     * An optimization is helpful information that don't influence semantics. May
     * be ignored by a consumer.
     * 
* * repeated .google.protobuf.Any optimization = 1; */ public java.util.List getOptimizationBuilderList() { return getOptimizationFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getOptimizationFieldBuilder() { if (optimizationBuilder_ == null) { optimizationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( optimization_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); optimization_ = null; } return optimizationBuilder_; } private com.google.protobuf.Any enhancement_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> enhancementBuilder_; /** *
     * An enhancement alter semantics. Cannot be ignored by a consumer.
     * 
* * .google.protobuf.Any enhancement = 2; * @return Whether the enhancement field is set. */ public boolean hasEnhancement() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * An enhancement alter semantics. Cannot be ignored by a consumer.
     * 
* * .google.protobuf.Any enhancement = 2; * @return The enhancement. */ public com.google.protobuf.Any getEnhancement() { if (enhancementBuilder_ == null) { return enhancement_ == null ? com.google.protobuf.Any.getDefaultInstance() : enhancement_; } else { return enhancementBuilder_.getMessage(); } } /** *
     * An enhancement alter semantics. Cannot be ignored by a consumer.
     * 
* * .google.protobuf.Any enhancement = 2; */ public Builder setEnhancement(com.google.protobuf.Any value) { if (enhancementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } enhancement_ = value; } else { enhancementBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * An enhancement alter semantics. Cannot be ignored by a consumer.
     * 
* * .google.protobuf.Any enhancement = 2; */ public Builder setEnhancement( com.google.protobuf.Any.Builder builderForValue) { if (enhancementBuilder_ == null) { enhancement_ = builderForValue.build(); } else { enhancementBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * An enhancement alter semantics. Cannot be ignored by a consumer.
     * 
* * .google.protobuf.Any enhancement = 2; */ public Builder mergeEnhancement(com.google.protobuf.Any value) { if (enhancementBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && enhancement_ != null && enhancement_ != com.google.protobuf.Any.getDefaultInstance()) { getEnhancementBuilder().mergeFrom(value); } else { enhancement_ = value; } } else { enhancementBuilder_.mergeFrom(value); } if (enhancement_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * An enhancement alter semantics. Cannot be ignored by a consumer.
     * 
* * .google.protobuf.Any enhancement = 2; */ public Builder clearEnhancement() { bitField0_ = (bitField0_ & ~0x00000002); enhancement_ = null; if (enhancementBuilder_ != null) { enhancementBuilder_.dispose(); enhancementBuilder_ = null; } onChanged(); return this; } /** *
     * An enhancement alter semantics. Cannot be ignored by a consumer.
     * 
* * .google.protobuf.Any enhancement = 2; */ public com.google.protobuf.Any.Builder getEnhancementBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEnhancementFieldBuilder().getBuilder(); } /** *
     * An enhancement alter semantics. Cannot be ignored by a consumer.
     * 
* * .google.protobuf.Any enhancement = 2; */ public com.google.protobuf.AnyOrBuilder getEnhancementOrBuilder() { if (enhancementBuilder_ != null) { return enhancementBuilder_.getMessageOrBuilder(); } else { return enhancement_ == null ? com.google.protobuf.Any.getDefaultInstance() : enhancement_; } } /** *
     * An enhancement alter semantics. Cannot be ignored by a consumer.
     * 
* * .google.protobuf.Any enhancement = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getEnhancementFieldBuilder() { if (enhancementBuilder_ == null) { enhancementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getEnhancement(), getParentForChildren(), isClean()); enhancement_ = null; } return enhancementBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:substrait.extensions.AdvancedExtension) } // @@protoc_insertion_point(class_scope:substrait.extensions.AdvancedExtension) private static final io.substrait.proto.AdvancedExtension DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.AdvancedExtension(); } public static io.substrait.proto.AdvancedExtension getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AdvancedExtension 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.AdvancedExtension getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy