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

cz.proto.TableFormatInfo Maven / Gradle / Ivy

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

package cz.proto;

/**
 * Protobuf type {@code cz.proto.TableFormatInfo}
 */
public final class TableFormatInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:cz.proto.TableFormatInfo)
    TableFormatInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TableFormatInfo.newBuilder() to construct.
  private TableFormatInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private TableFormatInfo() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new TableFormatInfo();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private TableFormatInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {

            snapshotId_ = input.readInt64();
            break;
          }
          case 82: {
            cz.proto.TableFormatInfo.Iceberg.Builder subBuilder = null;
            if (formatCase_ == 10) {
              subBuilder = ((cz.proto.TableFormatInfo.Iceberg) format_).toBuilder();
            }
            format_ =
                input.readMessage(cz.proto.TableFormatInfo.Iceberg.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((cz.proto.TableFormatInfo.Iceberg) format_);
              format_ = subBuilder.buildPartial();
            }
            formatCase_ = 10;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableFormatInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableFormatInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            cz.proto.TableFormatInfo.class, cz.proto.TableFormatInfo.Builder.class);
  }

  public interface IcebergOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cz.proto.TableFormatInfo.Iceberg)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string metadata_location = 1;
     * @return The metadataLocation.
     */
    java.lang.String getMetadataLocation();
    /**
     * string metadata_location = 1;
     * @return The bytes for metadataLocation.
     */
    com.google.protobuf.ByteString
        getMetadataLocationBytes();

    /**
     * int64 current_version = 2;
     * @return The currentVersion.
     */
    long getCurrentVersion();
  }
  /**
   * Protobuf type {@code cz.proto.TableFormatInfo.Iceberg}
   */
  public static final class Iceberg extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:cz.proto.TableFormatInfo.Iceberg)
      IcebergOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Iceberg.newBuilder() to construct.
    private Iceberg(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Iceberg() {
      metadataLocation_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new Iceberg();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Iceberg(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              metadataLocation_ = s;
              break;
            }
            case 16: {

              currentVersion_ = input.readInt64();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableFormatInfo_Iceberg_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableFormatInfo_Iceberg_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              cz.proto.TableFormatInfo.Iceberg.class, cz.proto.TableFormatInfo.Iceberg.Builder.class);
    }

    public static final int METADATA_LOCATION_FIELD_NUMBER = 1;
    private volatile java.lang.Object metadataLocation_;
    /**
     * string metadata_location = 1;
     * @return The metadataLocation.
     */
    @java.lang.Override
    public java.lang.String getMetadataLocation() {
      java.lang.Object ref = metadataLocation_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        metadataLocation_ = s;
        return s;
      }
    }
    /**
     * string metadata_location = 1;
     * @return The bytes for metadataLocation.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getMetadataLocationBytes() {
      java.lang.Object ref = metadataLocation_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        metadataLocation_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int CURRENT_VERSION_FIELD_NUMBER = 2;
    private long currentVersion_;
    /**
     * int64 current_version = 2;
     * @return The currentVersion.
     */
    @java.lang.Override
    public long getCurrentVersion() {
      return currentVersion_;
    }

    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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataLocation_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metadataLocation_);
      }
      if (currentVersion_ != 0L) {
        output.writeInt64(2, currentVersion_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataLocation_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metadataLocation_);
      }
      if (currentVersion_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, currentVersion_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof cz.proto.TableFormatInfo.Iceberg)) {
        return super.equals(obj);
      }
      cz.proto.TableFormatInfo.Iceberg other = (cz.proto.TableFormatInfo.Iceberg) obj;

      if (!getMetadataLocation()
          .equals(other.getMetadataLocation())) return false;
      if (getCurrentVersion()
          != other.getCurrentVersion()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + METADATA_LOCATION_FIELD_NUMBER;
      hash = (53 * hash) + getMetadataLocation().hashCode();
      hash = (37 * hash) + CURRENT_VERSION_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getCurrentVersion());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static cz.proto.TableFormatInfo.Iceberg parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static cz.proto.TableFormatInfo.Iceberg parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static cz.proto.TableFormatInfo.Iceberg parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static cz.proto.TableFormatInfo.Iceberg parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static cz.proto.TableFormatInfo.Iceberg parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static cz.proto.TableFormatInfo.Iceberg parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static cz.proto.TableFormatInfo.Iceberg parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static cz.proto.TableFormatInfo.Iceberg 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 cz.proto.TableFormatInfo.Iceberg parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static cz.proto.TableFormatInfo.Iceberg 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 cz.proto.TableFormatInfo.Iceberg parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static cz.proto.TableFormatInfo.Iceberg 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(cz.proto.TableFormatInfo.Iceberg prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code cz.proto.TableFormatInfo.Iceberg}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:cz.proto.TableFormatInfo.Iceberg)
        cz.proto.TableFormatInfo.IcebergOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableFormatInfo_Iceberg_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableFormatInfo_Iceberg_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                cz.proto.TableFormatInfo.Iceberg.class, cz.proto.TableFormatInfo.Iceberg.Builder.class);
      }

      // Construct using cz.proto.TableFormatInfo.Iceberg.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        metadataLocation_ = "";

        currentVersion_ = 0L;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableFormatInfo_Iceberg_descriptor;
      }

      @java.lang.Override
      public cz.proto.TableFormatInfo.Iceberg getDefaultInstanceForType() {
        return cz.proto.TableFormatInfo.Iceberg.getDefaultInstance();
      }

      @java.lang.Override
      public cz.proto.TableFormatInfo.Iceberg build() {
        cz.proto.TableFormatInfo.Iceberg result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public cz.proto.TableFormatInfo.Iceberg buildPartial() {
        cz.proto.TableFormatInfo.Iceberg result = new cz.proto.TableFormatInfo.Iceberg(this);
        result.metadataLocation_ = metadataLocation_;
        result.currentVersion_ = currentVersion_;
        onBuilt();
        return result;
      }

      @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 cz.proto.TableFormatInfo.Iceberg) {
          return mergeFrom((cz.proto.TableFormatInfo.Iceberg)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(cz.proto.TableFormatInfo.Iceberg other) {
        if (other == cz.proto.TableFormatInfo.Iceberg.getDefaultInstance()) return this;
        if (!other.getMetadataLocation().isEmpty()) {
          metadataLocation_ = other.metadataLocation_;
          onChanged();
        }
        if (other.getCurrentVersion() != 0L) {
          setCurrentVersion(other.getCurrentVersion());
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        cz.proto.TableFormatInfo.Iceberg parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (cz.proto.TableFormatInfo.Iceberg) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object metadataLocation_ = "";
      /**
       * string metadata_location = 1;
       * @return The metadataLocation.
       */
      public java.lang.String getMetadataLocation() {
        java.lang.Object ref = metadataLocation_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          metadataLocation_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string metadata_location = 1;
       * @return The bytes for metadataLocation.
       */
      public com.google.protobuf.ByteString
          getMetadataLocationBytes() {
        java.lang.Object ref = metadataLocation_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          metadataLocation_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string metadata_location = 1;
       * @param value The metadataLocation to set.
       * @return This builder for chaining.
       */
      public Builder setMetadataLocation(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        metadataLocation_ = value;
        onChanged();
        return this;
      }
      /**
       * string metadata_location = 1;
       * @return This builder for chaining.
       */
      public Builder clearMetadataLocation() {
        
        metadataLocation_ = getDefaultInstance().getMetadataLocation();
        onChanged();
        return this;
      }
      /**
       * string metadata_location = 1;
       * @param value The bytes for metadataLocation to set.
       * @return This builder for chaining.
       */
      public Builder setMetadataLocationBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        metadataLocation_ = value;
        onChanged();
        return this;
      }

      private long currentVersion_ ;
      /**
       * int64 current_version = 2;
       * @return The currentVersion.
       */
      @java.lang.Override
      public long getCurrentVersion() {
        return currentVersion_;
      }
      /**
       * int64 current_version = 2;
       * @param value The currentVersion to set.
       * @return This builder for chaining.
       */
      public Builder setCurrentVersion(long value) {
        
        currentVersion_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 current_version = 2;
       * @return This builder for chaining.
       */
      public Builder clearCurrentVersion() {
        
        currentVersion_ = 0L;
        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:cz.proto.TableFormatInfo.Iceberg)
    }

    // @@protoc_insertion_point(class_scope:cz.proto.TableFormatInfo.Iceberg)
    private static final cz.proto.TableFormatInfo.Iceberg DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new cz.proto.TableFormatInfo.Iceberg();
    }

    public static cz.proto.TableFormatInfo.Iceberg getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Iceberg parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Iceberg(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public cz.proto.TableFormatInfo.Iceberg getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private int formatCase_ = 0;
  private java.lang.Object format_;
  public enum FormatCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    ICEBERG(10),
    FORMAT_NOT_SET(0);
    private final int value;
    private FormatCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static FormatCase valueOf(int value) {
      return forNumber(value);
    }

    public static FormatCase forNumber(int value) {
      switch (value) {
        case 10: return ICEBERG;
        case 0: return FORMAT_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public FormatCase
  getFormatCase() {
    return FormatCase.forNumber(
        formatCase_);
  }

  public static final int SNAPSHOT_ID_FIELD_NUMBER = 1;
  private long snapshotId_;
  /**
   * 
   * common fields
   * 
* * int64 snapshot_id = 1; * @return The snapshotId. */ @java.lang.Override public long getSnapshotId() { return snapshotId_; } public static final int ICEBERG_FIELD_NUMBER = 10; /** * .cz.proto.TableFormatInfo.Iceberg iceberg = 10; * @return Whether the iceberg field is set. */ @java.lang.Override public boolean hasIceberg() { return formatCase_ == 10; } /** * .cz.proto.TableFormatInfo.Iceberg iceberg = 10; * @return The iceberg. */ @java.lang.Override public cz.proto.TableFormatInfo.Iceberg getIceberg() { if (formatCase_ == 10) { return (cz.proto.TableFormatInfo.Iceberg) format_; } return cz.proto.TableFormatInfo.Iceberg.getDefaultInstance(); } /** * .cz.proto.TableFormatInfo.Iceberg iceberg = 10; */ @java.lang.Override public cz.proto.TableFormatInfo.IcebergOrBuilder getIcebergOrBuilder() { if (formatCase_ == 10) { return (cz.proto.TableFormatInfo.Iceberg) format_; } return cz.proto.TableFormatInfo.Iceberg.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (snapshotId_ != 0L) { output.writeInt64(1, snapshotId_); } if (formatCase_ == 10) { output.writeMessage(10, (cz.proto.TableFormatInfo.Iceberg) format_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (snapshotId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, snapshotId_); } if (formatCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (cz.proto.TableFormatInfo.Iceberg) format_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cz.proto.TableFormatInfo)) { return super.equals(obj); } cz.proto.TableFormatInfo other = (cz.proto.TableFormatInfo) obj; if (getSnapshotId() != other.getSnapshotId()) return false; if (!getFormatCase().equals(other.getFormatCase())) return false; switch (formatCase_) { case 10: if (!getIceberg() .equals(other.getIceberg())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SNAPSHOT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSnapshotId()); switch (formatCase_) { case 10: hash = (37 * hash) + ICEBERG_FIELD_NUMBER; hash = (53 * hash) + getIceberg().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cz.proto.TableFormatInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.TableFormatInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.TableFormatInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.TableFormatInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.TableFormatInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.TableFormatInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.TableFormatInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cz.proto.TableFormatInfo 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 cz.proto.TableFormatInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cz.proto.TableFormatInfo 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 cz.proto.TableFormatInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cz.proto.TableFormatInfo 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(cz.proto.TableFormatInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cz.proto.TableFormatInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cz.proto.TableFormatInfo) cz.proto.TableFormatInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableFormatInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableFormatInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cz.proto.TableFormatInfo.class, cz.proto.TableFormatInfo.Builder.class); } // Construct using cz.proto.TableFormatInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); snapshotId_ = 0L; formatCase_ = 0; format_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableFormatInfo_descriptor; } @java.lang.Override public cz.proto.TableFormatInfo getDefaultInstanceForType() { return cz.proto.TableFormatInfo.getDefaultInstance(); } @java.lang.Override public cz.proto.TableFormatInfo build() { cz.proto.TableFormatInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cz.proto.TableFormatInfo buildPartial() { cz.proto.TableFormatInfo result = new cz.proto.TableFormatInfo(this); result.snapshotId_ = snapshotId_; if (formatCase_ == 10) { if (icebergBuilder_ == null) { result.format_ = format_; } else { result.format_ = icebergBuilder_.build(); } } result.formatCase_ = formatCase_; onBuilt(); return result; } @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 cz.proto.TableFormatInfo) { return mergeFrom((cz.proto.TableFormatInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cz.proto.TableFormatInfo other) { if (other == cz.proto.TableFormatInfo.getDefaultInstance()) return this; if (other.getSnapshotId() != 0L) { setSnapshotId(other.getSnapshotId()); } switch (other.getFormatCase()) { case ICEBERG: { mergeIceberg(other.getIceberg()); break; } case FORMAT_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { cz.proto.TableFormatInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cz.proto.TableFormatInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int formatCase_ = 0; private java.lang.Object format_; public FormatCase getFormatCase() { return FormatCase.forNumber( formatCase_); } public Builder clearFormat() { formatCase_ = 0; format_ = null; onChanged(); return this; } private long snapshotId_ ; /** *
     * common fields
     * 
* * int64 snapshot_id = 1; * @return The snapshotId. */ @java.lang.Override public long getSnapshotId() { return snapshotId_; } /** *
     * common fields
     * 
* * int64 snapshot_id = 1; * @param value The snapshotId to set. * @return This builder for chaining. */ public Builder setSnapshotId(long value) { snapshotId_ = value; onChanged(); return this; } /** *
     * common fields
     * 
* * int64 snapshot_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotId() { snapshotId_ = 0L; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< cz.proto.TableFormatInfo.Iceberg, cz.proto.TableFormatInfo.Iceberg.Builder, cz.proto.TableFormatInfo.IcebergOrBuilder> icebergBuilder_; /** * .cz.proto.TableFormatInfo.Iceberg iceberg = 10; * @return Whether the iceberg field is set. */ @java.lang.Override public boolean hasIceberg() { return formatCase_ == 10; } /** * .cz.proto.TableFormatInfo.Iceberg iceberg = 10; * @return The iceberg. */ @java.lang.Override public cz.proto.TableFormatInfo.Iceberg getIceberg() { if (icebergBuilder_ == null) { if (formatCase_ == 10) { return (cz.proto.TableFormatInfo.Iceberg) format_; } return cz.proto.TableFormatInfo.Iceberg.getDefaultInstance(); } else { if (formatCase_ == 10) { return icebergBuilder_.getMessage(); } return cz.proto.TableFormatInfo.Iceberg.getDefaultInstance(); } } /** * .cz.proto.TableFormatInfo.Iceberg iceberg = 10; */ public Builder setIceberg(cz.proto.TableFormatInfo.Iceberg value) { if (icebergBuilder_ == null) { if (value == null) { throw new NullPointerException(); } format_ = value; onChanged(); } else { icebergBuilder_.setMessage(value); } formatCase_ = 10; return this; } /** * .cz.proto.TableFormatInfo.Iceberg iceberg = 10; */ public Builder setIceberg( cz.proto.TableFormatInfo.Iceberg.Builder builderForValue) { if (icebergBuilder_ == null) { format_ = builderForValue.build(); onChanged(); } else { icebergBuilder_.setMessage(builderForValue.build()); } formatCase_ = 10; return this; } /** * .cz.proto.TableFormatInfo.Iceberg iceberg = 10; */ public Builder mergeIceberg(cz.proto.TableFormatInfo.Iceberg value) { if (icebergBuilder_ == null) { if (formatCase_ == 10 && format_ != cz.proto.TableFormatInfo.Iceberg.getDefaultInstance()) { format_ = cz.proto.TableFormatInfo.Iceberg.newBuilder((cz.proto.TableFormatInfo.Iceberg) format_) .mergeFrom(value).buildPartial(); } else { format_ = value; } onChanged(); } else { if (formatCase_ == 10) { icebergBuilder_.mergeFrom(value); } icebergBuilder_.setMessage(value); } formatCase_ = 10; return this; } /** * .cz.proto.TableFormatInfo.Iceberg iceberg = 10; */ public Builder clearIceberg() { if (icebergBuilder_ == null) { if (formatCase_ == 10) { formatCase_ = 0; format_ = null; onChanged(); } } else { if (formatCase_ == 10) { formatCase_ = 0; format_ = null; } icebergBuilder_.clear(); } return this; } /** * .cz.proto.TableFormatInfo.Iceberg iceberg = 10; */ public cz.proto.TableFormatInfo.Iceberg.Builder getIcebergBuilder() { return getIcebergFieldBuilder().getBuilder(); } /** * .cz.proto.TableFormatInfo.Iceberg iceberg = 10; */ @java.lang.Override public cz.proto.TableFormatInfo.IcebergOrBuilder getIcebergOrBuilder() { if ((formatCase_ == 10) && (icebergBuilder_ != null)) { return icebergBuilder_.getMessageOrBuilder(); } else { if (formatCase_ == 10) { return (cz.proto.TableFormatInfo.Iceberg) format_; } return cz.proto.TableFormatInfo.Iceberg.getDefaultInstance(); } } /** * .cz.proto.TableFormatInfo.Iceberg iceberg = 10; */ private com.google.protobuf.SingleFieldBuilderV3< cz.proto.TableFormatInfo.Iceberg, cz.proto.TableFormatInfo.Iceberg.Builder, cz.proto.TableFormatInfo.IcebergOrBuilder> getIcebergFieldBuilder() { if (icebergBuilder_ == null) { if (!(formatCase_ == 10)) { format_ = cz.proto.TableFormatInfo.Iceberg.getDefaultInstance(); } icebergBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cz.proto.TableFormatInfo.Iceberg, cz.proto.TableFormatInfo.Iceberg.Builder, cz.proto.TableFormatInfo.IcebergOrBuilder>( (cz.proto.TableFormatInfo.Iceberg) format_, getParentForChildren(), isClean()); format_ = null; } formatCase_ = 10; onChanged();; return icebergBuilder_; } @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:cz.proto.TableFormatInfo) } // @@protoc_insertion_point(class_scope:cz.proto.TableFormatInfo) private static final cz.proto.TableFormatInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cz.proto.TableFormatInfo(); } public static cz.proto.TableFormatInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TableFormatInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TableFormatInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cz.proto.TableFormatInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy