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

com.clickhouse.client.grpc.impl.Stats 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.Stats}
 */
public final class Stats extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:clickhouse.grpc.Stats)
    StatsOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Stats.newBuilder() to construct.
  private Stats(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Stats() {
  }

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

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

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

  public static final int ROWS_FIELD_NUMBER = 1;
  private long rows_ = 0L;
  /**
   * uint64 rows = 1;
   * @return The rows.
   */
  @java.lang.Override
  public long getRows() {
    return rows_;
  }

  public static final int BLOCKS_FIELD_NUMBER = 2;
  private long blocks_ = 0L;
  /**
   * uint64 blocks = 2;
   * @return The blocks.
   */
  @java.lang.Override
  public long getBlocks() {
    return blocks_;
  }

  public static final int ALLOCATED_BYTES_FIELD_NUMBER = 3;
  private long allocatedBytes_ = 0L;
  /**
   * uint64 allocated_bytes = 3;
   * @return The allocatedBytes.
   */
  @java.lang.Override
  public long getAllocatedBytes() {
    return allocatedBytes_;
  }

  public static final int APPLIED_LIMIT_FIELD_NUMBER = 4;
  private boolean appliedLimit_ = false;
  /**
   * bool applied_limit = 4;
   * @return The appliedLimit.
   */
  @java.lang.Override
  public boolean getAppliedLimit() {
    return appliedLimit_;
  }

  public static final int ROWS_BEFORE_LIMIT_FIELD_NUMBER = 5;
  private long rowsBeforeLimit_ = 0L;
  /**
   * uint64 rows_before_limit = 5;
   * @return The rowsBeforeLimit.
   */
  @java.lang.Override
  public long getRowsBeforeLimit() {
    return rowsBeforeLimit_;
  }

  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 (rows_ != 0L) {
      output.writeUInt64(1, rows_);
    }
    if (blocks_ != 0L) {
      output.writeUInt64(2, blocks_);
    }
    if (allocatedBytes_ != 0L) {
      output.writeUInt64(3, allocatedBytes_);
    }
    if (appliedLimit_ != false) {
      output.writeBool(4, appliedLimit_);
    }
    if (rowsBeforeLimit_ != 0L) {
      output.writeUInt64(5, rowsBeforeLimit_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (rows_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(1, rows_);
    }
    if (blocks_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(2, blocks_);
    }
    if (allocatedBytes_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(3, allocatedBytes_);
    }
    if (appliedLimit_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(4, appliedLimit_);
    }
    if (rowsBeforeLimit_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(5, rowsBeforeLimit_);
    }
    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.Stats)) {
      return super.equals(obj);
    }
    com.clickhouse.client.grpc.impl.Stats other = (com.clickhouse.client.grpc.impl.Stats) obj;

    if (getRows()
        != other.getRows()) return false;
    if (getBlocks()
        != other.getBlocks()) return false;
    if (getAllocatedBytes()
        != other.getAllocatedBytes()) return false;
    if (getAppliedLimit()
        != other.getAppliedLimit()) return false;
    if (getRowsBeforeLimit()
        != other.getRowsBeforeLimit()) 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) + ROWS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getRows());
    hash = (37 * hash) + BLOCKS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getBlocks());
    hash = (37 * hash) + ALLOCATED_BYTES_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getAllocatedBytes());
    hash = (37 * hash) + APPLIED_LIMIT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getAppliedLimit());
    hash = (37 * hash) + ROWS_BEFORE_LIMIT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getRowsBeforeLimit());
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.clickhouse.client.grpc.impl.Stats 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.Stats 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.Stats 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.Stats 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.Stats}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:clickhouse.grpc.Stats)
      com.clickhouse.client.grpc.impl.StatsOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.clickhouse.client.grpc.impl.ClickHouseGrpcImpl.internal_static_clickhouse_grpc_Stats_descriptor;
    }

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

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

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      rows_ = 0L;
      blocks_ = 0L;
      allocatedBytes_ = 0L;
      appliedLimit_ = false;
      rowsBeforeLimit_ = 0L;
      return this;
    }

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

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

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

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

    private void buildPartial0(com.clickhouse.client.grpc.impl.Stats result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.rows_ = rows_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.blocks_ = blocks_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.allocatedBytes_ = allocatedBytes_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.appliedLimit_ = appliedLimit_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.rowsBeforeLimit_ = rowsBeforeLimit_;
      }
    }

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

    public Builder mergeFrom(com.clickhouse.client.grpc.impl.Stats other) {
      if (other == com.clickhouse.client.grpc.impl.Stats.getDefaultInstance()) return this;
      if (other.getRows() != 0L) {
        setRows(other.getRows());
      }
      if (other.getBlocks() != 0L) {
        setBlocks(other.getBlocks());
      }
      if (other.getAllocatedBytes() != 0L) {
        setAllocatedBytes(other.getAllocatedBytes());
      }
      if (other.getAppliedLimit() != false) {
        setAppliedLimit(other.getAppliedLimit());
      }
      if (other.getRowsBeforeLimit() != 0L) {
        setRowsBeforeLimit(other.getRowsBeforeLimit());
      }
      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: {
              rows_ = input.readUInt64();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 16: {
              blocks_ = input.readUInt64();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 24: {
              allocatedBytes_ = input.readUInt64();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            case 32: {
              appliedLimit_ = input.readBool();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            case 40: {
              rowsBeforeLimit_ = input.readUInt64();
              bitField0_ |= 0x00000010;
              break;
            } // case 40
            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 long rows_ ;
    /**
     * uint64 rows = 1;
     * @return The rows.
     */
    @java.lang.Override
    public long getRows() {
      return rows_;
    }
    /**
     * uint64 rows = 1;
     * @param value The rows to set.
     * @return This builder for chaining.
     */
    public Builder setRows(long value) {

      rows_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * uint64 rows = 1;
     * @return This builder for chaining.
     */
    public Builder clearRows() {
      bitField0_ = (bitField0_ & ~0x00000001);
      rows_ = 0L;
      onChanged();
      return this;
    }

    private long blocks_ ;
    /**
     * uint64 blocks = 2;
     * @return The blocks.
     */
    @java.lang.Override
    public long getBlocks() {
      return blocks_;
    }
    /**
     * uint64 blocks = 2;
     * @param value The blocks to set.
     * @return This builder for chaining.
     */
    public Builder setBlocks(long value) {

      blocks_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * uint64 blocks = 2;
     * @return This builder for chaining.
     */
    public Builder clearBlocks() {
      bitField0_ = (bitField0_ & ~0x00000002);
      blocks_ = 0L;
      onChanged();
      return this;
    }

    private long allocatedBytes_ ;
    /**
     * uint64 allocated_bytes = 3;
     * @return The allocatedBytes.
     */
    @java.lang.Override
    public long getAllocatedBytes() {
      return allocatedBytes_;
    }
    /**
     * uint64 allocated_bytes = 3;
     * @param value The allocatedBytes to set.
     * @return This builder for chaining.
     */
    public Builder setAllocatedBytes(long value) {

      allocatedBytes_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * uint64 allocated_bytes = 3;
     * @return This builder for chaining.
     */
    public Builder clearAllocatedBytes() {
      bitField0_ = (bitField0_ & ~0x00000004);
      allocatedBytes_ = 0L;
      onChanged();
      return this;
    }

    private boolean appliedLimit_ ;
    /**
     * bool applied_limit = 4;
     * @return The appliedLimit.
     */
    @java.lang.Override
    public boolean getAppliedLimit() {
      return appliedLimit_;
    }
    /**
     * bool applied_limit = 4;
     * @param value The appliedLimit to set.
     * @return This builder for chaining.
     */
    public Builder setAppliedLimit(boolean value) {

      appliedLimit_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * bool applied_limit = 4;
     * @return This builder for chaining.
     */
    public Builder clearAppliedLimit() {
      bitField0_ = (bitField0_ & ~0x00000008);
      appliedLimit_ = false;
      onChanged();
      return this;
    }

    private long rowsBeforeLimit_ ;
    /**
     * uint64 rows_before_limit = 5;
     * @return The rowsBeforeLimit.
     */
    @java.lang.Override
    public long getRowsBeforeLimit() {
      return rowsBeforeLimit_;
    }
    /**
     * uint64 rows_before_limit = 5;
     * @param value The rowsBeforeLimit to set.
     * @return This builder for chaining.
     */
    public Builder setRowsBeforeLimit(long value) {

      rowsBeforeLimit_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * uint64 rows_before_limit = 5;
     * @return This builder for chaining.
     */
    public Builder clearRowsBeforeLimit() {
      bitField0_ = (bitField0_ & ~0x00000010);
      rowsBeforeLimit_ = 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:clickhouse.grpc.Stats)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy