All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.clickhouse.client.grpc.impl.Stats Maven / Gradle / Ivy
// 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Stats(
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: {
rows_ = input.readUInt64();
break;
}
case 16: {
blocks_ = input.readUInt64();
break;
}
case 24: {
allocatedBytes_ = input.readUInt64();
break;
}
case 32: {
appliedLimit_ = input.readBool();
break;
}
case 40: {
rowsBeforeLimit_ = input.readUInt64();
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 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_;
/**
* 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_;
/**
* 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_;
/**
* 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_;
/**
* 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_;
/**
* 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_);
}
unknownFields.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 += 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 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 (!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) + 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) + unknownFields.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() {
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();
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);
result.rows_ = rows_;
result.blocks_ = blocks_;
result.allocatedBytes_ = allocatedBytes_;
result.appliedLimit_ = appliedLimit_;
result.rowsBeforeLimit_ = rowsBeforeLimit_;
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 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.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 {
com.clickhouse.client.grpc.impl.Stats parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clickhouse.client.grpc.impl.Stats) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
* uint64 rows = 1;
* @return This builder for chaining.
*/
public Builder clearRows() {
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;
onChanged();
return this;
}
/**
* uint64 blocks = 2;
* @return This builder for chaining.
*/
public Builder clearBlocks() {
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;
onChanged();
return this;
}
/**
* uint64 allocated_bytes = 3;
* @return This builder for chaining.
*/
public Builder clearAllocatedBytes() {
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;
onChanged();
return this;
}
/**
* bool applied_limit = 4;
* @return This builder for chaining.
*/
public Builder clearAppliedLimit() {
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;
onChanged();
return this;
}
/**
* uint64 rows_before_limit = 5;
* @return This builder for chaining.
*/
public Builder clearRowsBeforeLimit() {
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 {
return new Stats(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 com.clickhouse.client.grpc.impl.Stats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}