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

com.clickhouse.client.grpc.impl.ObsoleteTransportCompression Maven / Gradle / Ivy

Go to download

gRPC client for ClickHouse planed to be deprecated from version 0.6.0 and removed at 0.7.0

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

package com.clickhouse.client.grpc.impl;

/**
 * Protobuf type {@code clickhouse.grpc.ObsoleteTransportCompression}
 */
public final class ObsoleteTransportCompression extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:clickhouse.grpc.ObsoleteTransportCompression)
    ObsoleteTransportCompressionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ObsoleteTransportCompression.newBuilder() to construct.
  private ObsoleteTransportCompression(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ObsoleteTransportCompression() {
    algorithm_ = 0;
    level_ = 0;
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.clickhouse.client.grpc.impl.ClickHouseGrpcImpl.internal_static_clickhouse_grpc_ObsoleteTransportCompression_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.clickhouse.client.grpc.impl.ClickHouseGrpcImpl.internal_static_clickhouse_grpc_ObsoleteTransportCompression_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.class, com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.Builder.class);
  }

  /**
   * Protobuf enum {@code clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm}
   */
  public enum CompressionAlgorithm
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * NO_COMPRESSION = 0;
     */
    NO_COMPRESSION(0),
    /**
     * DEFLATE = 1;
     */
    DEFLATE(1),
    /**
     * GZIP = 2;
     */
    GZIP(2),
    /**
     * STREAM_GZIP = 3;
     */
    STREAM_GZIP(3),
    UNRECOGNIZED(-1),
    ;

    /**
     * NO_COMPRESSION = 0;
     */
    public static final int NO_COMPRESSION_VALUE = 0;
    /**
     * DEFLATE = 1;
     */
    public static final int DEFLATE_VALUE = 1;
    /**
     * GZIP = 2;
     */
    public static final int GZIP_VALUE = 2;
    /**
     * STREAM_GZIP = 3;
     */
    public static final int STREAM_GZIP_VALUE = 3;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static CompressionAlgorithm valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static CompressionAlgorithm forNumber(int value) {
      switch (value) {
        case 0: return NO_COMPRESSION;
        case 1: return DEFLATE;
        case 2: return GZIP;
        case 3: return STREAM_GZIP;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        CompressionAlgorithm> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public CompressionAlgorithm findValueByNumber(int number) {
              return CompressionAlgorithm.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.getDescriptor().getEnumTypes().get(0);
    }

    private static final CompressionAlgorithm[] VALUES = values();

    public static CompressionAlgorithm valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private CompressionAlgorithm(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm)
  }

  /**
   * Protobuf enum {@code clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel}
   */
  public enum CompressionLevel
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * COMPRESSION_NONE = 0;
     */
    COMPRESSION_NONE(0),
    /**
     * COMPRESSION_LOW = 1;
     */
    COMPRESSION_LOW(1),
    /**
     * COMPRESSION_MEDIUM = 2;
     */
    COMPRESSION_MEDIUM(2),
    /**
     * COMPRESSION_HIGH = 3;
     */
    COMPRESSION_HIGH(3),
    UNRECOGNIZED(-1),
    ;

    /**
     * COMPRESSION_NONE = 0;
     */
    public static final int COMPRESSION_NONE_VALUE = 0;
    /**
     * COMPRESSION_LOW = 1;
     */
    public static final int COMPRESSION_LOW_VALUE = 1;
    /**
     * COMPRESSION_MEDIUM = 2;
     */
    public static final int COMPRESSION_MEDIUM_VALUE = 2;
    /**
     * COMPRESSION_HIGH = 3;
     */
    public static final int COMPRESSION_HIGH_VALUE = 3;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static CompressionLevel valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static CompressionLevel forNumber(int value) {
      switch (value) {
        case 0: return COMPRESSION_NONE;
        case 1: return COMPRESSION_LOW;
        case 2: return COMPRESSION_MEDIUM;
        case 3: return COMPRESSION_HIGH;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        CompressionLevel> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public CompressionLevel findValueByNumber(int number) {
              return CompressionLevel.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.getDescriptor().getEnumTypes().get(1);
    }

    private static final CompressionLevel[] VALUES = values();

    public static CompressionLevel valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private CompressionLevel(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel)
  }

  public static final int ALGORITHM_FIELD_NUMBER = 1;
  private int algorithm_ = 0;
  /**
   * .clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm algorithm = 1;
   * @return The enum numeric value on the wire for algorithm.
   */
  @java.lang.Override public int getAlgorithmValue() {
    return algorithm_;
  }
  /**
   * .clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm algorithm = 1;
   * @return The algorithm.
   */
  @java.lang.Override public com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionAlgorithm getAlgorithm() {
    com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionAlgorithm result = com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionAlgorithm.forNumber(algorithm_);
    return result == null ? com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionAlgorithm.UNRECOGNIZED : result;
  }

  public static final int LEVEL_FIELD_NUMBER = 2;
  private int level_ = 0;
  /**
   * .clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel level = 2;
   * @return The enum numeric value on the wire for level.
   */
  @java.lang.Override public int getLevelValue() {
    return level_;
  }
  /**
   * .clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel level = 2;
   * @return The level.
   */
  @java.lang.Override public com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionLevel getLevel() {
    com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionLevel result = com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionLevel.forNumber(level_);
    return result == null ? com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionLevel.UNRECOGNIZED : result;
  }

  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 (algorithm_ != com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionAlgorithm.NO_COMPRESSION.getNumber()) {
      output.writeEnum(1, algorithm_);
    }
    if (level_ != com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionLevel.COMPRESSION_NONE.getNumber()) {
      output.writeEnum(2, level_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (algorithm_ != com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionAlgorithm.NO_COMPRESSION.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(1, algorithm_);
    }
    if (level_ != com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionLevel.COMPRESSION_NONE.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(2, level_);
    }
    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 com.clickhouse.client.grpc.impl.ObsoleteTransportCompression)) {
      return super.equals(obj);
    }
    com.clickhouse.client.grpc.impl.ObsoleteTransportCompression other = (com.clickhouse.client.grpc.impl.ObsoleteTransportCompression) obj;

    if (algorithm_ != other.algorithm_) return false;
    if (level_ != other.level_) 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();
    hash = (37 * hash) + ALGORITHM_FIELD_NUMBER;
    hash = (53 * hash) + algorithm_;
    hash = (37 * hash) + LEVEL_FIELD_NUMBER;
    hash = (53 * hash) + level_;
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.clickhouse.client.grpc.impl.ObsoleteTransportCompression parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.clickhouse.client.grpc.impl.ObsoleteTransportCompression parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.clickhouse.client.grpc.impl.ObsoleteTransportCompression parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.clickhouse.client.grpc.impl.ObsoleteTransportCompression parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.clickhouse.client.grpc.impl.ObsoleteTransportCompression parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.clickhouse.client.grpc.impl.ObsoleteTransportCompression parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.clickhouse.client.grpc.impl.ObsoleteTransportCompression parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.clickhouse.client.grpc.impl.ObsoleteTransportCompression 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 com.clickhouse.client.grpc.impl.ObsoleteTransportCompression parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static com.clickhouse.client.grpc.impl.ObsoleteTransportCompression 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 com.clickhouse.client.grpc.impl.ObsoleteTransportCompression parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.clickhouse.client.grpc.impl.ObsoleteTransportCompression 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(com.clickhouse.client.grpc.impl.ObsoleteTransportCompression 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 clickhouse.grpc.ObsoleteTransportCompression}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:clickhouse.grpc.ObsoleteTransportCompression)
      com.clickhouse.client.grpc.impl.ObsoleteTransportCompressionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.clickhouse.client.grpc.impl.ClickHouseGrpcImpl.internal_static_clickhouse_grpc_ObsoleteTransportCompression_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.clickhouse.client.grpc.impl.ClickHouseGrpcImpl.internal_static_clickhouse_grpc_ObsoleteTransportCompression_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.class, com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.Builder.class);
    }

    // Construct using com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      algorithm_ = 0;
      level_ = 0;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.clickhouse.client.grpc.impl.ClickHouseGrpcImpl.internal_static_clickhouse_grpc_ObsoleteTransportCompression_descriptor;
    }

    @java.lang.Override
    public com.clickhouse.client.grpc.impl.ObsoleteTransportCompression getDefaultInstanceForType() {
      return com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.getDefaultInstance();
    }

    @java.lang.Override
    public com.clickhouse.client.grpc.impl.ObsoleteTransportCompression build() {
      com.clickhouse.client.grpc.impl.ObsoleteTransportCompression result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.clickhouse.client.grpc.impl.ObsoleteTransportCompression buildPartial() {
      com.clickhouse.client.grpc.impl.ObsoleteTransportCompression result = new com.clickhouse.client.grpc.impl.ObsoleteTransportCompression(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.clickhouse.client.grpc.impl.ObsoleteTransportCompression result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.algorithm_ = algorithm_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.level_ = level_;
      }
    }

    @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 com.clickhouse.client.grpc.impl.ObsoleteTransportCompression) {
        return mergeFrom((com.clickhouse.client.grpc.impl.ObsoleteTransportCompression)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.clickhouse.client.grpc.impl.ObsoleteTransportCompression other) {
      if (other == com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.getDefaultInstance()) return this;
      if (other.algorithm_ != 0) {
        setAlgorithmValue(other.getAlgorithmValue());
      }
      if (other.level_ != 0) {
        setLevelValue(other.getLevelValue());
      }
      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 8: {
              algorithm_ = input.readEnum();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 16: {
              level_ = input.readEnum();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            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 int algorithm_ = 0;
    /**
     * .clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm algorithm = 1;
     * @return The enum numeric value on the wire for algorithm.
     */
    @java.lang.Override public int getAlgorithmValue() {
      return algorithm_;
    }
    /**
     * .clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm algorithm = 1;
     * @param value The enum numeric value on the wire for algorithm to set.
     * @return This builder for chaining.
     */
    public Builder setAlgorithmValue(int value) {
      algorithm_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm algorithm = 1;
     * @return The algorithm.
     */
    @java.lang.Override
    public com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionAlgorithm getAlgorithm() {
      com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionAlgorithm result = com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionAlgorithm.forNumber(algorithm_);
      return result == null ? com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionAlgorithm.UNRECOGNIZED : result;
    }
    /**
     * .clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm algorithm = 1;
     * @param value The algorithm to set.
     * @return This builder for chaining.
     */
    public Builder setAlgorithm(com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionAlgorithm value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000001;
      algorithm_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .clickhouse.grpc.ObsoleteTransportCompression.CompressionAlgorithm algorithm = 1;
     * @return This builder for chaining.
     */
    public Builder clearAlgorithm() {
      bitField0_ = (bitField0_ & ~0x00000001);
      algorithm_ = 0;
      onChanged();
      return this;
    }

    private int level_ = 0;
    /**
     * .clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel level = 2;
     * @return The enum numeric value on the wire for level.
     */
    @java.lang.Override public int getLevelValue() {
      return level_;
    }
    /**
     * .clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel level = 2;
     * @param value The enum numeric value on the wire for level to set.
     * @return This builder for chaining.
     */
    public Builder setLevelValue(int value) {
      level_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel level = 2;
     * @return The level.
     */
    @java.lang.Override
    public com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionLevel getLevel() {
      com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionLevel result = com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionLevel.forNumber(level_);
      return result == null ? com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionLevel.UNRECOGNIZED : result;
    }
    /**
     * .clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel level = 2;
     * @param value The level to set.
     * @return This builder for chaining.
     */
    public Builder setLevel(com.clickhouse.client.grpc.impl.ObsoleteTransportCompression.CompressionLevel value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000002;
      level_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .clickhouse.grpc.ObsoleteTransportCompression.CompressionLevel level = 2;
     * @return This builder for chaining.
     */
    public Builder clearLevel() {
      bitField0_ = (bitField0_ & ~0x00000002);
      level_ = 0;
      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:clickhouse.grpc.ObsoleteTransportCompression)
  }

  // @@protoc_insertion_point(class_scope:clickhouse.grpc.ObsoleteTransportCompression)
  private static final com.clickhouse.client.grpc.impl.ObsoleteTransportCompression DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.clickhouse.client.grpc.impl.ObsoleteTransportCompression();
  }

  public static com.clickhouse.client.grpc.impl.ObsoleteTransportCompression getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public ObsoleteTransportCompression 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 com.clickhouse.client.grpc.impl.ObsoleteTransportCompression getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy