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

io.substrait.proto.PlanVersion 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/plan.proto

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

/**
 * 
 * This message type can be used to deserialize only the version of a Substrait
 * Plan message. This prevents deserialization errors when there were breaking
 * changes between the Substrait version of the tool that produced the plan and
 * the Substrait version used to deserialize it, such that a consumer can emit
 * a more helpful error message in this case.
 * 
* * Protobuf type {@code substrait.PlanVersion} */ public final class PlanVersion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.PlanVersion) PlanVersionOrBuilder { private static final long serialVersionUID = 0L; // Use PlanVersion.newBuilder() to construct. private PlanVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlanVersion() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PlanVersion(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.PlanOuterClass.internal_static_substrait_PlanVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.PlanOuterClass.internal_static_substrait_PlanVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.PlanVersion.class, io.substrait.proto.PlanVersion.Builder.class); } private int bitField0_; public static final int VERSION_FIELD_NUMBER = 6; private io.substrait.proto.Version version_; /** * .substrait.Version version = 6; * @return Whether the version field is set. */ @java.lang.Override public boolean hasVersion() { return ((bitField0_ & 0x00000001) != 0); } /** * .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 version = 6; */ @java.lang.Override public io.substrait.proto.VersionOrBuilder getVersionOrBuilder() { return version_ == null ? io.substrait.proto.Version.getDefaultInstance() : version_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((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; 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.PlanVersion)) { return super.equals(obj); } io.substrait.proto.PlanVersion other = (io.substrait.proto.PlanVersion) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { if (!getVersion() .equals(other.getVersion())) 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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.PlanVersion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.PlanVersion 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.PlanVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.PlanVersion 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.PlanVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.PlanVersion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.PlanVersion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.PlanVersion 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.PlanVersion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.PlanVersion 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.PlanVersion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.PlanVersion 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.PlanVersion 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; } /** *
   * This message type can be used to deserialize only the version of a Substrait
   * Plan message. This prevents deserialization errors when there were breaking
   * changes between the Substrait version of the tool that produced the plan and
   * the Substrait version used to deserialize it, such that a consumer can emit
   * a more helpful error message in this case.
   * 
* * Protobuf type {@code substrait.PlanVersion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.PlanVersion) io.substrait.proto.PlanVersionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.PlanOuterClass.internal_static_substrait_PlanVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.PlanOuterClass.internal_static_substrait_PlanVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.PlanVersion.class, io.substrait.proto.PlanVersion.Builder.class); } // Construct using io.substrait.proto.PlanVersion.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(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; version_ = null; if (versionBuilder_ != null) { versionBuilder_.dispose(); versionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.PlanOuterClass.internal_static_substrait_PlanVersion_descriptor; } @java.lang.Override public io.substrait.proto.PlanVersion getDefaultInstanceForType() { return io.substrait.proto.PlanVersion.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.PlanVersion build() { io.substrait.proto.PlanVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.PlanVersion buildPartial() { io.substrait.proto.PlanVersion result = new io.substrait.proto.PlanVersion(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.PlanVersion result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.version_ = versionBuilder_ == null ? version_ : versionBuilder_.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.PlanVersion) { return mergeFrom((io.substrait.proto.PlanVersion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.PlanVersion other) { if (other == io.substrait.proto.PlanVersion.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } 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 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 version = 6; * @return Whether the version field is set. */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) != 0); } /** * .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 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 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 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 version = 6; */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000001); version_ = null; if (versionBuilder_ != null) { versionBuilder_.dispose(); versionBuilder_ = null; } onChanged(); return this; } /** * .substrait.Version version = 6; */ public io.substrait.proto.Version.Builder getVersionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getVersionFieldBuilder().getBuilder(); } /** * .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 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_; } @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.PlanVersion) } // @@protoc_insertion_point(class_scope:substrait.PlanVersion) private static final io.substrait.proto.PlanVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.PlanVersion(); } public static io.substrait.proto.PlanVersion getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PlanVersion 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.PlanVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy