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

com.yandex.ydb.YdbQueryStats Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ydb/public/api/protos/ydb_query_stats.proto

package com.yandex.ydb;

public final class YdbQueryStats {
  private YdbQueryStats() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface OperationStatsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:Ydb.TableStats.OperationStats)
      com.google.protobuf.MessageOrBuilder {

    /**
     * uint64 rows = 1;
     * @return The rows.
     */
    long getRows();

    /**
     * uint64 bytes = 2;
     * @return The bytes.
     */
    long getBytes();
  }
  /**
   * 
   * Describes select, update (insert, upsert, replace) and delete operations
   * 
* * Protobuf type {@code Ydb.TableStats.OperationStats} */ public static final class OperationStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.TableStats.OperationStats) OperationStatsOrBuilder { private static final long serialVersionUID = 0L; // Use OperationStats.newBuilder() to construct. private OperationStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OperationStats() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OperationStats(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OperationStats( 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: { bytes_ = 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.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_OperationStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_OperationStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.YdbQueryStats.OperationStats.class, com.yandex.ydb.YdbQueryStats.OperationStats.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 BYTES_FIELD_NUMBER = 2; private long bytes_; /** * uint64 bytes = 2; * @return The bytes. */ @java.lang.Override public long getBytes() { return bytes_; } 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 (bytes_ != 0L) { output.writeUInt64(2, bytes_); } 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 (bytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, bytes_); } 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.yandex.ydb.YdbQueryStats.OperationStats)) { return super.equals(obj); } com.yandex.ydb.YdbQueryStats.OperationStats other = (com.yandex.ydb.YdbQueryStats.OperationStats) obj; if (getRows() != other.getRows()) return false; if (getBytes() != other.getBytes()) 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) + BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBytes()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.YdbQueryStats.OperationStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.OperationStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.OperationStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.OperationStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.OperationStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.OperationStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.OperationStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.OperationStats 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.yandex.ydb.YdbQueryStats.OperationStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.OperationStats 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.yandex.ydb.YdbQueryStats.OperationStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.OperationStats 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.yandex.ydb.YdbQueryStats.OperationStats 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; } /** *
     * Describes select, update (insert, upsert, replace) and delete operations
     * 
* * Protobuf type {@code Ydb.TableStats.OperationStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.TableStats.OperationStats) com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_OperationStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_OperationStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.YdbQueryStats.OperationStats.class, com.yandex.ydb.YdbQueryStats.OperationStats.Builder.class); } // Construct using com.yandex.ydb.YdbQueryStats.OperationStats.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; bytes_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_OperationStats_descriptor; } @java.lang.Override public com.yandex.ydb.YdbQueryStats.OperationStats getDefaultInstanceForType() { return com.yandex.ydb.YdbQueryStats.OperationStats.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.YdbQueryStats.OperationStats build() { com.yandex.ydb.YdbQueryStats.OperationStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.YdbQueryStats.OperationStats buildPartial() { com.yandex.ydb.YdbQueryStats.OperationStats result = new com.yandex.ydb.YdbQueryStats.OperationStats(this); result.rows_ = rows_; result.bytes_ = bytes_; 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.yandex.ydb.YdbQueryStats.OperationStats) { return mergeFrom((com.yandex.ydb.YdbQueryStats.OperationStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.YdbQueryStats.OperationStats other) { if (other == com.yandex.ydb.YdbQueryStats.OperationStats.getDefaultInstance()) return this; if (other.getRows() != 0L) { setRows(other.getRows()); } if (other.getBytes() != 0L) { setBytes(other.getBytes()); } 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.yandex.ydb.YdbQueryStats.OperationStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.YdbQueryStats.OperationStats) 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 bytes_ ; /** * uint64 bytes = 2; * @return The bytes. */ @java.lang.Override public long getBytes() { return bytes_; } /** * uint64 bytes = 2; * @param value The bytes to set. * @return This builder for chaining. */ public Builder setBytes(long value) { bytes_ = value; onChanged(); return this; } /** * uint64 bytes = 2; * @return This builder for chaining. */ public Builder clearBytes() { bytes_ = 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:Ydb.TableStats.OperationStats) } // @@protoc_insertion_point(class_scope:Ydb.TableStats.OperationStats) private static final com.yandex.ydb.YdbQueryStats.OperationStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.YdbQueryStats.OperationStats(); } public static com.yandex.ydb.YdbQueryStats.OperationStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OperationStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OperationStats(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.yandex.ydb.YdbQueryStats.OperationStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TableAccessStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.TableStats.TableAccessStats) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .Ydb.TableStats.OperationStats reads = 3; * @return Whether the reads field is set. */ boolean hasReads(); /** * .Ydb.TableStats.OperationStats reads = 3; * @return The reads. */ com.yandex.ydb.YdbQueryStats.OperationStats getReads(); /** * .Ydb.TableStats.OperationStats reads = 3; */ com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder getReadsOrBuilder(); /** * .Ydb.TableStats.OperationStats updates = 4; * @return Whether the updates field is set. */ boolean hasUpdates(); /** * .Ydb.TableStats.OperationStats updates = 4; * @return The updates. */ com.yandex.ydb.YdbQueryStats.OperationStats getUpdates(); /** * .Ydb.TableStats.OperationStats updates = 4; */ com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder getUpdatesOrBuilder(); /** * .Ydb.TableStats.OperationStats deletes = 5; * @return Whether the deletes field is set. */ boolean hasDeletes(); /** * .Ydb.TableStats.OperationStats deletes = 5; * @return The deletes. */ com.yandex.ydb.YdbQueryStats.OperationStats getDeletes(); /** * .Ydb.TableStats.OperationStats deletes = 5; */ com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder getDeletesOrBuilder(); /** * uint64 partitions_count = 6; * @return The partitionsCount. */ long getPartitionsCount(); } /** *
   * Describes all operations on a table
   * 
* * Protobuf type {@code Ydb.TableStats.TableAccessStats} */ public static final class TableAccessStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.TableStats.TableAccessStats) TableAccessStatsOrBuilder { private static final long serialVersionUID = 0L; // Use TableAccessStats.newBuilder() to construct. private TableAccessStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TableAccessStats() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TableAccessStats(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TableAccessStats( 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(); name_ = s; break; } case 26: { com.yandex.ydb.YdbQueryStats.OperationStats.Builder subBuilder = null; if (reads_ != null) { subBuilder = reads_.toBuilder(); } reads_ = input.readMessage(com.yandex.ydb.YdbQueryStats.OperationStats.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(reads_); reads_ = subBuilder.buildPartial(); } break; } case 34: { com.yandex.ydb.YdbQueryStats.OperationStats.Builder subBuilder = null; if (updates_ != null) { subBuilder = updates_.toBuilder(); } updates_ = input.readMessage(com.yandex.ydb.YdbQueryStats.OperationStats.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updates_); updates_ = subBuilder.buildPartial(); } break; } case 42: { com.yandex.ydb.YdbQueryStats.OperationStats.Builder subBuilder = null; if (deletes_ != null) { subBuilder = deletes_.toBuilder(); } deletes_ = input.readMessage(com.yandex.ydb.YdbQueryStats.OperationStats.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(deletes_); deletes_ = subBuilder.buildPartial(); } break; } case 48: { partitionsCount_ = 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.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_TableAccessStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_TableAccessStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.YdbQueryStats.TableAccessStats.class, com.yandex.ydb.YdbQueryStats.TableAccessStats.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READS_FIELD_NUMBER = 3; private com.yandex.ydb.YdbQueryStats.OperationStats reads_; /** * .Ydb.TableStats.OperationStats reads = 3; * @return Whether the reads field is set. */ @java.lang.Override public boolean hasReads() { return reads_ != null; } /** * .Ydb.TableStats.OperationStats reads = 3; * @return The reads. */ @java.lang.Override public com.yandex.ydb.YdbQueryStats.OperationStats getReads() { return reads_ == null ? com.yandex.ydb.YdbQueryStats.OperationStats.getDefaultInstance() : reads_; } /** * .Ydb.TableStats.OperationStats reads = 3; */ @java.lang.Override public com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder getReadsOrBuilder() { return getReads(); } public static final int UPDATES_FIELD_NUMBER = 4; private com.yandex.ydb.YdbQueryStats.OperationStats updates_; /** * .Ydb.TableStats.OperationStats updates = 4; * @return Whether the updates field is set. */ @java.lang.Override public boolean hasUpdates() { return updates_ != null; } /** * .Ydb.TableStats.OperationStats updates = 4; * @return The updates. */ @java.lang.Override public com.yandex.ydb.YdbQueryStats.OperationStats getUpdates() { return updates_ == null ? com.yandex.ydb.YdbQueryStats.OperationStats.getDefaultInstance() : updates_; } /** * .Ydb.TableStats.OperationStats updates = 4; */ @java.lang.Override public com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder getUpdatesOrBuilder() { return getUpdates(); } public static final int DELETES_FIELD_NUMBER = 5; private com.yandex.ydb.YdbQueryStats.OperationStats deletes_; /** * .Ydb.TableStats.OperationStats deletes = 5; * @return Whether the deletes field is set. */ @java.lang.Override public boolean hasDeletes() { return deletes_ != null; } /** * .Ydb.TableStats.OperationStats deletes = 5; * @return The deletes. */ @java.lang.Override public com.yandex.ydb.YdbQueryStats.OperationStats getDeletes() { return deletes_ == null ? com.yandex.ydb.YdbQueryStats.OperationStats.getDefaultInstance() : deletes_; } /** * .Ydb.TableStats.OperationStats deletes = 5; */ @java.lang.Override public com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder getDeletesOrBuilder() { return getDeletes(); } public static final int PARTITIONS_COUNT_FIELD_NUMBER = 6; private long partitionsCount_; /** * uint64 partitions_count = 6; * @return The partitionsCount. */ @java.lang.Override public long getPartitionsCount() { return partitionsCount_; } 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (reads_ != null) { output.writeMessage(3, getReads()); } if (updates_ != null) { output.writeMessage(4, getUpdates()); } if (deletes_ != null) { output.writeMessage(5, getDeletes()); } if (partitionsCount_ != 0L) { output.writeUInt64(6, partitionsCount_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (reads_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getReads()); } if (updates_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUpdates()); } if (deletes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getDeletes()); } if (partitionsCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, partitionsCount_); } 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.yandex.ydb.YdbQueryStats.TableAccessStats)) { return super.equals(obj); } com.yandex.ydb.YdbQueryStats.TableAccessStats other = (com.yandex.ydb.YdbQueryStats.TableAccessStats) obj; if (!getName() .equals(other.getName())) return false; if (hasReads() != other.hasReads()) return false; if (hasReads()) { if (!getReads() .equals(other.getReads())) return false; } if (hasUpdates() != other.hasUpdates()) return false; if (hasUpdates()) { if (!getUpdates() .equals(other.getUpdates())) return false; } if (hasDeletes() != other.hasDeletes()) return false; if (hasDeletes()) { if (!getDeletes() .equals(other.getDeletes())) return false; } if (getPartitionsCount() != other.getPartitionsCount()) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasReads()) { hash = (37 * hash) + READS_FIELD_NUMBER; hash = (53 * hash) + getReads().hashCode(); } if (hasUpdates()) { hash = (37 * hash) + UPDATES_FIELD_NUMBER; hash = (53 * hash) + getUpdates().hashCode(); } if (hasDeletes()) { hash = (37 * hash) + DELETES_FIELD_NUMBER; hash = (53 * hash) + getDeletes().hashCode(); } hash = (37 * hash) + PARTITIONS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionsCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.YdbQueryStats.TableAccessStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.TableAccessStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.TableAccessStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.TableAccessStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.TableAccessStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.TableAccessStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.TableAccessStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.TableAccessStats 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.yandex.ydb.YdbQueryStats.TableAccessStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.TableAccessStats 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.yandex.ydb.YdbQueryStats.TableAccessStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.TableAccessStats 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.yandex.ydb.YdbQueryStats.TableAccessStats 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; } /** *
     * Describes all operations on a table
     * 
* * Protobuf type {@code Ydb.TableStats.TableAccessStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.TableStats.TableAccessStats) com.yandex.ydb.YdbQueryStats.TableAccessStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_TableAccessStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_TableAccessStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.YdbQueryStats.TableAccessStats.class, com.yandex.ydb.YdbQueryStats.TableAccessStats.Builder.class); } // Construct using com.yandex.ydb.YdbQueryStats.TableAccessStats.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(); name_ = ""; if (readsBuilder_ == null) { reads_ = null; } else { reads_ = null; readsBuilder_ = null; } if (updatesBuilder_ == null) { updates_ = null; } else { updates_ = null; updatesBuilder_ = null; } if (deletesBuilder_ == null) { deletes_ = null; } else { deletes_ = null; deletesBuilder_ = null; } partitionsCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_TableAccessStats_descriptor; } @java.lang.Override public com.yandex.ydb.YdbQueryStats.TableAccessStats getDefaultInstanceForType() { return com.yandex.ydb.YdbQueryStats.TableAccessStats.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.YdbQueryStats.TableAccessStats build() { com.yandex.ydb.YdbQueryStats.TableAccessStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.YdbQueryStats.TableAccessStats buildPartial() { com.yandex.ydb.YdbQueryStats.TableAccessStats result = new com.yandex.ydb.YdbQueryStats.TableAccessStats(this); result.name_ = name_; if (readsBuilder_ == null) { result.reads_ = reads_; } else { result.reads_ = readsBuilder_.build(); } if (updatesBuilder_ == null) { result.updates_ = updates_; } else { result.updates_ = updatesBuilder_.build(); } if (deletesBuilder_ == null) { result.deletes_ = deletes_; } else { result.deletes_ = deletesBuilder_.build(); } result.partitionsCount_ = partitionsCount_; 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.yandex.ydb.YdbQueryStats.TableAccessStats) { return mergeFrom((com.yandex.ydb.YdbQueryStats.TableAccessStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.YdbQueryStats.TableAccessStats other) { if (other == com.yandex.ydb.YdbQueryStats.TableAccessStats.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasReads()) { mergeReads(other.getReads()); } if (other.hasUpdates()) { mergeUpdates(other.getUpdates()); } if (other.hasDeletes()) { mergeDeletes(other.getDeletes()); } if (other.getPartitionsCount() != 0L) { setPartitionsCount(other.getPartitionsCount()); } 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.yandex.ydb.YdbQueryStats.TableAccessStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.YdbQueryStats.TableAccessStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.yandex.ydb.YdbQueryStats.OperationStats reads_; private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.YdbQueryStats.OperationStats, com.yandex.ydb.YdbQueryStats.OperationStats.Builder, com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder> readsBuilder_; /** * .Ydb.TableStats.OperationStats reads = 3; * @return Whether the reads field is set. */ public boolean hasReads() { return readsBuilder_ != null || reads_ != null; } /** * .Ydb.TableStats.OperationStats reads = 3; * @return The reads. */ public com.yandex.ydb.YdbQueryStats.OperationStats getReads() { if (readsBuilder_ == null) { return reads_ == null ? com.yandex.ydb.YdbQueryStats.OperationStats.getDefaultInstance() : reads_; } else { return readsBuilder_.getMessage(); } } /** * .Ydb.TableStats.OperationStats reads = 3; */ public Builder setReads(com.yandex.ydb.YdbQueryStats.OperationStats value) { if (readsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reads_ = value; onChanged(); } else { readsBuilder_.setMessage(value); } return this; } /** * .Ydb.TableStats.OperationStats reads = 3; */ public Builder setReads( com.yandex.ydb.YdbQueryStats.OperationStats.Builder builderForValue) { if (readsBuilder_ == null) { reads_ = builderForValue.build(); onChanged(); } else { readsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .Ydb.TableStats.OperationStats reads = 3; */ public Builder mergeReads(com.yandex.ydb.YdbQueryStats.OperationStats value) { if (readsBuilder_ == null) { if (reads_ != null) { reads_ = com.yandex.ydb.YdbQueryStats.OperationStats.newBuilder(reads_).mergeFrom(value).buildPartial(); } else { reads_ = value; } onChanged(); } else { readsBuilder_.mergeFrom(value); } return this; } /** * .Ydb.TableStats.OperationStats reads = 3; */ public Builder clearReads() { if (readsBuilder_ == null) { reads_ = null; onChanged(); } else { reads_ = null; readsBuilder_ = null; } return this; } /** * .Ydb.TableStats.OperationStats reads = 3; */ public com.yandex.ydb.YdbQueryStats.OperationStats.Builder getReadsBuilder() { onChanged(); return getReadsFieldBuilder().getBuilder(); } /** * .Ydb.TableStats.OperationStats reads = 3; */ public com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder getReadsOrBuilder() { if (readsBuilder_ != null) { return readsBuilder_.getMessageOrBuilder(); } else { return reads_ == null ? com.yandex.ydb.YdbQueryStats.OperationStats.getDefaultInstance() : reads_; } } /** * .Ydb.TableStats.OperationStats reads = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.YdbQueryStats.OperationStats, com.yandex.ydb.YdbQueryStats.OperationStats.Builder, com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder> getReadsFieldBuilder() { if (readsBuilder_ == null) { readsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.YdbQueryStats.OperationStats, com.yandex.ydb.YdbQueryStats.OperationStats.Builder, com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder>( getReads(), getParentForChildren(), isClean()); reads_ = null; } return readsBuilder_; } private com.yandex.ydb.YdbQueryStats.OperationStats updates_; private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.YdbQueryStats.OperationStats, com.yandex.ydb.YdbQueryStats.OperationStats.Builder, com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder> updatesBuilder_; /** * .Ydb.TableStats.OperationStats updates = 4; * @return Whether the updates field is set. */ public boolean hasUpdates() { return updatesBuilder_ != null || updates_ != null; } /** * .Ydb.TableStats.OperationStats updates = 4; * @return The updates. */ public com.yandex.ydb.YdbQueryStats.OperationStats getUpdates() { if (updatesBuilder_ == null) { return updates_ == null ? com.yandex.ydb.YdbQueryStats.OperationStats.getDefaultInstance() : updates_; } else { return updatesBuilder_.getMessage(); } } /** * .Ydb.TableStats.OperationStats updates = 4; */ public Builder setUpdates(com.yandex.ydb.YdbQueryStats.OperationStats value) { if (updatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updates_ = value; onChanged(); } else { updatesBuilder_.setMessage(value); } return this; } /** * .Ydb.TableStats.OperationStats updates = 4; */ public Builder setUpdates( com.yandex.ydb.YdbQueryStats.OperationStats.Builder builderForValue) { if (updatesBuilder_ == null) { updates_ = builderForValue.build(); onChanged(); } else { updatesBuilder_.setMessage(builderForValue.build()); } return this; } /** * .Ydb.TableStats.OperationStats updates = 4; */ public Builder mergeUpdates(com.yandex.ydb.YdbQueryStats.OperationStats value) { if (updatesBuilder_ == null) { if (updates_ != null) { updates_ = com.yandex.ydb.YdbQueryStats.OperationStats.newBuilder(updates_).mergeFrom(value).buildPartial(); } else { updates_ = value; } onChanged(); } else { updatesBuilder_.mergeFrom(value); } return this; } /** * .Ydb.TableStats.OperationStats updates = 4; */ public Builder clearUpdates() { if (updatesBuilder_ == null) { updates_ = null; onChanged(); } else { updates_ = null; updatesBuilder_ = null; } return this; } /** * .Ydb.TableStats.OperationStats updates = 4; */ public com.yandex.ydb.YdbQueryStats.OperationStats.Builder getUpdatesBuilder() { onChanged(); return getUpdatesFieldBuilder().getBuilder(); } /** * .Ydb.TableStats.OperationStats updates = 4; */ public com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder getUpdatesOrBuilder() { if (updatesBuilder_ != null) { return updatesBuilder_.getMessageOrBuilder(); } else { return updates_ == null ? com.yandex.ydb.YdbQueryStats.OperationStats.getDefaultInstance() : updates_; } } /** * .Ydb.TableStats.OperationStats updates = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.YdbQueryStats.OperationStats, com.yandex.ydb.YdbQueryStats.OperationStats.Builder, com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder> getUpdatesFieldBuilder() { if (updatesBuilder_ == null) { updatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.YdbQueryStats.OperationStats, com.yandex.ydb.YdbQueryStats.OperationStats.Builder, com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder>( getUpdates(), getParentForChildren(), isClean()); updates_ = null; } return updatesBuilder_; } private com.yandex.ydb.YdbQueryStats.OperationStats deletes_; private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.YdbQueryStats.OperationStats, com.yandex.ydb.YdbQueryStats.OperationStats.Builder, com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder> deletesBuilder_; /** * .Ydb.TableStats.OperationStats deletes = 5; * @return Whether the deletes field is set. */ public boolean hasDeletes() { return deletesBuilder_ != null || deletes_ != null; } /** * .Ydb.TableStats.OperationStats deletes = 5; * @return The deletes. */ public com.yandex.ydb.YdbQueryStats.OperationStats getDeletes() { if (deletesBuilder_ == null) { return deletes_ == null ? com.yandex.ydb.YdbQueryStats.OperationStats.getDefaultInstance() : deletes_; } else { return deletesBuilder_.getMessage(); } } /** * .Ydb.TableStats.OperationStats deletes = 5; */ public Builder setDeletes(com.yandex.ydb.YdbQueryStats.OperationStats value) { if (deletesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deletes_ = value; onChanged(); } else { deletesBuilder_.setMessage(value); } return this; } /** * .Ydb.TableStats.OperationStats deletes = 5; */ public Builder setDeletes( com.yandex.ydb.YdbQueryStats.OperationStats.Builder builderForValue) { if (deletesBuilder_ == null) { deletes_ = builderForValue.build(); onChanged(); } else { deletesBuilder_.setMessage(builderForValue.build()); } return this; } /** * .Ydb.TableStats.OperationStats deletes = 5; */ public Builder mergeDeletes(com.yandex.ydb.YdbQueryStats.OperationStats value) { if (deletesBuilder_ == null) { if (deletes_ != null) { deletes_ = com.yandex.ydb.YdbQueryStats.OperationStats.newBuilder(deletes_).mergeFrom(value).buildPartial(); } else { deletes_ = value; } onChanged(); } else { deletesBuilder_.mergeFrom(value); } return this; } /** * .Ydb.TableStats.OperationStats deletes = 5; */ public Builder clearDeletes() { if (deletesBuilder_ == null) { deletes_ = null; onChanged(); } else { deletes_ = null; deletesBuilder_ = null; } return this; } /** * .Ydb.TableStats.OperationStats deletes = 5; */ public com.yandex.ydb.YdbQueryStats.OperationStats.Builder getDeletesBuilder() { onChanged(); return getDeletesFieldBuilder().getBuilder(); } /** * .Ydb.TableStats.OperationStats deletes = 5; */ public com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder getDeletesOrBuilder() { if (deletesBuilder_ != null) { return deletesBuilder_.getMessageOrBuilder(); } else { return deletes_ == null ? com.yandex.ydb.YdbQueryStats.OperationStats.getDefaultInstance() : deletes_; } } /** * .Ydb.TableStats.OperationStats deletes = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.YdbQueryStats.OperationStats, com.yandex.ydb.YdbQueryStats.OperationStats.Builder, com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder> getDeletesFieldBuilder() { if (deletesBuilder_ == null) { deletesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.YdbQueryStats.OperationStats, com.yandex.ydb.YdbQueryStats.OperationStats.Builder, com.yandex.ydb.YdbQueryStats.OperationStatsOrBuilder>( getDeletes(), getParentForChildren(), isClean()); deletes_ = null; } return deletesBuilder_; } private long partitionsCount_ ; /** * uint64 partitions_count = 6; * @return The partitionsCount. */ @java.lang.Override public long getPartitionsCount() { return partitionsCount_; } /** * uint64 partitions_count = 6; * @param value The partitionsCount to set. * @return This builder for chaining. */ public Builder setPartitionsCount(long value) { partitionsCount_ = value; onChanged(); return this; } /** * uint64 partitions_count = 6; * @return This builder for chaining. */ public Builder clearPartitionsCount() { partitionsCount_ = 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:Ydb.TableStats.TableAccessStats) } // @@protoc_insertion_point(class_scope:Ydb.TableStats.TableAccessStats) private static final com.yandex.ydb.YdbQueryStats.TableAccessStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.YdbQueryStats.TableAccessStats(); } public static com.yandex.ydb.YdbQueryStats.TableAccessStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TableAccessStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TableAccessStats(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.yandex.ydb.YdbQueryStats.TableAccessStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryPhaseStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.TableStats.QueryPhaseStats) com.google.protobuf.MessageOrBuilder { /** * uint64 duration_us = 1; * @return The durationUs. */ long getDurationUs(); /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ java.util.List getTableAccessList(); /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ com.yandex.ydb.YdbQueryStats.TableAccessStats getTableAccess(int index); /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ int getTableAccessCount(); /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ java.util.List getTableAccessOrBuilderList(); /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ com.yandex.ydb.YdbQueryStats.TableAccessStatsOrBuilder getTableAccessOrBuilder( int index); /** * uint64 cpu_time_us = 3; * @return The cpuTimeUs. */ long getCpuTimeUs(); /** * uint64 affected_shards = 4; * @return The affectedShards. */ long getAffectedShards(); /** * bool literal_phase = 5; * @return The literalPhase. */ boolean getLiteralPhase(); } /** * Protobuf type {@code Ydb.TableStats.QueryPhaseStats} */ public static final class QueryPhaseStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.TableStats.QueryPhaseStats) QueryPhaseStatsOrBuilder { private static final long serialVersionUID = 0L; // Use QueryPhaseStats.newBuilder() to construct. private QueryPhaseStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryPhaseStats() { tableAccess_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryPhaseStats(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryPhaseStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; 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: { durationUs_ = input.readUInt64(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { tableAccess_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } tableAccess_.add( input.readMessage(com.yandex.ydb.YdbQueryStats.TableAccessStats.parser(), extensionRegistry)); break; } case 24: { cpuTimeUs_ = input.readUInt64(); break; } case 32: { affectedShards_ = input.readUInt64(); break; } case 40: { literalPhase_ = input.readBool(); 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { tableAccess_ = java.util.Collections.unmodifiableList(tableAccess_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_QueryPhaseStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_QueryPhaseStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.YdbQueryStats.QueryPhaseStats.class, com.yandex.ydb.YdbQueryStats.QueryPhaseStats.Builder.class); } public static final int DURATION_US_FIELD_NUMBER = 1; private long durationUs_; /** * uint64 duration_us = 1; * @return The durationUs. */ @java.lang.Override public long getDurationUs() { return durationUs_; } public static final int TABLE_ACCESS_FIELD_NUMBER = 2; private java.util.List tableAccess_; /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ @java.lang.Override public java.util.List getTableAccessList() { return tableAccess_; } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ @java.lang.Override public java.util.List getTableAccessOrBuilderList() { return tableAccess_; } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ @java.lang.Override public int getTableAccessCount() { return tableAccess_.size(); } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ @java.lang.Override public com.yandex.ydb.YdbQueryStats.TableAccessStats getTableAccess(int index) { return tableAccess_.get(index); } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ @java.lang.Override public com.yandex.ydb.YdbQueryStats.TableAccessStatsOrBuilder getTableAccessOrBuilder( int index) { return tableAccess_.get(index); } public static final int CPU_TIME_US_FIELD_NUMBER = 3; private long cpuTimeUs_; /** * uint64 cpu_time_us = 3; * @return The cpuTimeUs. */ @java.lang.Override public long getCpuTimeUs() { return cpuTimeUs_; } public static final int AFFECTED_SHARDS_FIELD_NUMBER = 4; private long affectedShards_; /** * uint64 affected_shards = 4; * @return The affectedShards. */ @java.lang.Override public long getAffectedShards() { return affectedShards_; } public static final int LITERAL_PHASE_FIELD_NUMBER = 5; private boolean literalPhase_; /** * bool literal_phase = 5; * @return The literalPhase. */ @java.lang.Override public boolean getLiteralPhase() { return literalPhase_; } 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 (durationUs_ != 0L) { output.writeUInt64(1, durationUs_); } for (int i = 0; i < tableAccess_.size(); i++) { output.writeMessage(2, tableAccess_.get(i)); } if (cpuTimeUs_ != 0L) { output.writeUInt64(3, cpuTimeUs_); } if (affectedShards_ != 0L) { output.writeUInt64(4, affectedShards_); } if (literalPhase_ != false) { output.writeBool(5, literalPhase_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (durationUs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, durationUs_); } for (int i = 0; i < tableAccess_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, tableAccess_.get(i)); } if (cpuTimeUs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, cpuTimeUs_); } if (affectedShards_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, affectedShards_); } if (literalPhase_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, literalPhase_); } 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.yandex.ydb.YdbQueryStats.QueryPhaseStats)) { return super.equals(obj); } com.yandex.ydb.YdbQueryStats.QueryPhaseStats other = (com.yandex.ydb.YdbQueryStats.QueryPhaseStats) obj; if (getDurationUs() != other.getDurationUs()) return false; if (!getTableAccessList() .equals(other.getTableAccessList())) return false; if (getCpuTimeUs() != other.getCpuTimeUs()) return false; if (getAffectedShards() != other.getAffectedShards()) return false; if (getLiteralPhase() != other.getLiteralPhase()) 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) + DURATION_US_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDurationUs()); if (getTableAccessCount() > 0) { hash = (37 * hash) + TABLE_ACCESS_FIELD_NUMBER; hash = (53 * hash) + getTableAccessList().hashCode(); } hash = (37 * hash) + CPU_TIME_US_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCpuTimeUs()); hash = (37 * hash) + AFFECTED_SHARDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAffectedShards()); hash = (37 * hash) + LITERAL_PHASE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getLiteralPhase()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.YdbQueryStats.QueryPhaseStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.QueryPhaseStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.QueryPhaseStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.QueryPhaseStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.QueryPhaseStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.QueryPhaseStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.QueryPhaseStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.QueryPhaseStats 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.yandex.ydb.YdbQueryStats.QueryPhaseStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.QueryPhaseStats 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.yandex.ydb.YdbQueryStats.QueryPhaseStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.QueryPhaseStats 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.yandex.ydb.YdbQueryStats.QueryPhaseStats 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 Ydb.TableStats.QueryPhaseStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.TableStats.QueryPhaseStats) com.yandex.ydb.YdbQueryStats.QueryPhaseStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_QueryPhaseStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_QueryPhaseStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.YdbQueryStats.QueryPhaseStats.class, com.yandex.ydb.YdbQueryStats.QueryPhaseStats.Builder.class); } // Construct using com.yandex.ydb.YdbQueryStats.QueryPhaseStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTableAccessFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); durationUs_ = 0L; if (tableAccessBuilder_ == null) { tableAccess_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { tableAccessBuilder_.clear(); } cpuTimeUs_ = 0L; affectedShards_ = 0L; literalPhase_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_QueryPhaseStats_descriptor; } @java.lang.Override public com.yandex.ydb.YdbQueryStats.QueryPhaseStats getDefaultInstanceForType() { return com.yandex.ydb.YdbQueryStats.QueryPhaseStats.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.YdbQueryStats.QueryPhaseStats build() { com.yandex.ydb.YdbQueryStats.QueryPhaseStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.YdbQueryStats.QueryPhaseStats buildPartial() { com.yandex.ydb.YdbQueryStats.QueryPhaseStats result = new com.yandex.ydb.YdbQueryStats.QueryPhaseStats(this); int from_bitField0_ = bitField0_; result.durationUs_ = durationUs_; if (tableAccessBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tableAccess_ = java.util.Collections.unmodifiableList(tableAccess_); bitField0_ = (bitField0_ & ~0x00000001); } result.tableAccess_ = tableAccess_; } else { result.tableAccess_ = tableAccessBuilder_.build(); } result.cpuTimeUs_ = cpuTimeUs_; result.affectedShards_ = affectedShards_; result.literalPhase_ = literalPhase_; 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.yandex.ydb.YdbQueryStats.QueryPhaseStats) { return mergeFrom((com.yandex.ydb.YdbQueryStats.QueryPhaseStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.YdbQueryStats.QueryPhaseStats other) { if (other == com.yandex.ydb.YdbQueryStats.QueryPhaseStats.getDefaultInstance()) return this; if (other.getDurationUs() != 0L) { setDurationUs(other.getDurationUs()); } if (tableAccessBuilder_ == null) { if (!other.tableAccess_.isEmpty()) { if (tableAccess_.isEmpty()) { tableAccess_ = other.tableAccess_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTableAccessIsMutable(); tableAccess_.addAll(other.tableAccess_); } onChanged(); } } else { if (!other.tableAccess_.isEmpty()) { if (tableAccessBuilder_.isEmpty()) { tableAccessBuilder_.dispose(); tableAccessBuilder_ = null; tableAccess_ = other.tableAccess_; bitField0_ = (bitField0_ & ~0x00000001); tableAccessBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTableAccessFieldBuilder() : null; } else { tableAccessBuilder_.addAllMessages(other.tableAccess_); } } } if (other.getCpuTimeUs() != 0L) { setCpuTimeUs(other.getCpuTimeUs()); } if (other.getAffectedShards() != 0L) { setAffectedShards(other.getAffectedShards()); } if (other.getLiteralPhase() != false) { setLiteralPhase(other.getLiteralPhase()); } 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.yandex.ydb.YdbQueryStats.QueryPhaseStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.YdbQueryStats.QueryPhaseStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long durationUs_ ; /** * uint64 duration_us = 1; * @return The durationUs. */ @java.lang.Override public long getDurationUs() { return durationUs_; } /** * uint64 duration_us = 1; * @param value The durationUs to set. * @return This builder for chaining. */ public Builder setDurationUs(long value) { durationUs_ = value; onChanged(); return this; } /** * uint64 duration_us = 1; * @return This builder for chaining. */ public Builder clearDurationUs() { durationUs_ = 0L; onChanged(); return this; } private java.util.List tableAccess_ = java.util.Collections.emptyList(); private void ensureTableAccessIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tableAccess_ = new java.util.ArrayList(tableAccess_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbQueryStats.TableAccessStats, com.yandex.ydb.YdbQueryStats.TableAccessStats.Builder, com.yandex.ydb.YdbQueryStats.TableAccessStatsOrBuilder> tableAccessBuilder_; /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public java.util.List getTableAccessList() { if (tableAccessBuilder_ == null) { return java.util.Collections.unmodifiableList(tableAccess_); } else { return tableAccessBuilder_.getMessageList(); } } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public int getTableAccessCount() { if (tableAccessBuilder_ == null) { return tableAccess_.size(); } else { return tableAccessBuilder_.getCount(); } } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public com.yandex.ydb.YdbQueryStats.TableAccessStats getTableAccess(int index) { if (tableAccessBuilder_ == null) { return tableAccess_.get(index); } else { return tableAccessBuilder_.getMessage(index); } } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public Builder setTableAccess( int index, com.yandex.ydb.YdbQueryStats.TableAccessStats value) { if (tableAccessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTableAccessIsMutable(); tableAccess_.set(index, value); onChanged(); } else { tableAccessBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public Builder setTableAccess( int index, com.yandex.ydb.YdbQueryStats.TableAccessStats.Builder builderForValue) { if (tableAccessBuilder_ == null) { ensureTableAccessIsMutable(); tableAccess_.set(index, builderForValue.build()); onChanged(); } else { tableAccessBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public Builder addTableAccess(com.yandex.ydb.YdbQueryStats.TableAccessStats value) { if (tableAccessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTableAccessIsMutable(); tableAccess_.add(value); onChanged(); } else { tableAccessBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public Builder addTableAccess( int index, com.yandex.ydb.YdbQueryStats.TableAccessStats value) { if (tableAccessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTableAccessIsMutable(); tableAccess_.add(index, value); onChanged(); } else { tableAccessBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public Builder addTableAccess( com.yandex.ydb.YdbQueryStats.TableAccessStats.Builder builderForValue) { if (tableAccessBuilder_ == null) { ensureTableAccessIsMutable(); tableAccess_.add(builderForValue.build()); onChanged(); } else { tableAccessBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public Builder addTableAccess( int index, com.yandex.ydb.YdbQueryStats.TableAccessStats.Builder builderForValue) { if (tableAccessBuilder_ == null) { ensureTableAccessIsMutable(); tableAccess_.add(index, builderForValue.build()); onChanged(); } else { tableAccessBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public Builder addAllTableAccess( java.lang.Iterable values) { if (tableAccessBuilder_ == null) { ensureTableAccessIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tableAccess_); onChanged(); } else { tableAccessBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public Builder clearTableAccess() { if (tableAccessBuilder_ == null) { tableAccess_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { tableAccessBuilder_.clear(); } return this; } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public Builder removeTableAccess(int index) { if (tableAccessBuilder_ == null) { ensureTableAccessIsMutable(); tableAccess_.remove(index); onChanged(); } else { tableAccessBuilder_.remove(index); } return this; } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public com.yandex.ydb.YdbQueryStats.TableAccessStats.Builder getTableAccessBuilder( int index) { return getTableAccessFieldBuilder().getBuilder(index); } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public com.yandex.ydb.YdbQueryStats.TableAccessStatsOrBuilder getTableAccessOrBuilder( int index) { if (tableAccessBuilder_ == null) { return tableAccess_.get(index); } else { return tableAccessBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public java.util.List getTableAccessOrBuilderList() { if (tableAccessBuilder_ != null) { return tableAccessBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tableAccess_); } } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public com.yandex.ydb.YdbQueryStats.TableAccessStats.Builder addTableAccessBuilder() { return getTableAccessFieldBuilder().addBuilder( com.yandex.ydb.YdbQueryStats.TableAccessStats.getDefaultInstance()); } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public com.yandex.ydb.YdbQueryStats.TableAccessStats.Builder addTableAccessBuilder( int index) { return getTableAccessFieldBuilder().addBuilder( index, com.yandex.ydb.YdbQueryStats.TableAccessStats.getDefaultInstance()); } /** * repeated .Ydb.TableStats.TableAccessStats table_access = 2; */ public java.util.List getTableAccessBuilderList() { return getTableAccessFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbQueryStats.TableAccessStats, com.yandex.ydb.YdbQueryStats.TableAccessStats.Builder, com.yandex.ydb.YdbQueryStats.TableAccessStatsOrBuilder> getTableAccessFieldBuilder() { if (tableAccessBuilder_ == null) { tableAccessBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbQueryStats.TableAccessStats, com.yandex.ydb.YdbQueryStats.TableAccessStats.Builder, com.yandex.ydb.YdbQueryStats.TableAccessStatsOrBuilder>( tableAccess_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); tableAccess_ = null; } return tableAccessBuilder_; } private long cpuTimeUs_ ; /** * uint64 cpu_time_us = 3; * @return The cpuTimeUs. */ @java.lang.Override public long getCpuTimeUs() { return cpuTimeUs_; } /** * uint64 cpu_time_us = 3; * @param value The cpuTimeUs to set. * @return This builder for chaining. */ public Builder setCpuTimeUs(long value) { cpuTimeUs_ = value; onChanged(); return this; } /** * uint64 cpu_time_us = 3; * @return This builder for chaining. */ public Builder clearCpuTimeUs() { cpuTimeUs_ = 0L; onChanged(); return this; } private long affectedShards_ ; /** * uint64 affected_shards = 4; * @return The affectedShards. */ @java.lang.Override public long getAffectedShards() { return affectedShards_; } /** * uint64 affected_shards = 4; * @param value The affectedShards to set. * @return This builder for chaining. */ public Builder setAffectedShards(long value) { affectedShards_ = value; onChanged(); return this; } /** * uint64 affected_shards = 4; * @return This builder for chaining. */ public Builder clearAffectedShards() { affectedShards_ = 0L; onChanged(); return this; } private boolean literalPhase_ ; /** * bool literal_phase = 5; * @return The literalPhase. */ @java.lang.Override public boolean getLiteralPhase() { return literalPhase_; } /** * bool literal_phase = 5; * @param value The literalPhase to set. * @return This builder for chaining. */ public Builder setLiteralPhase(boolean value) { literalPhase_ = value; onChanged(); return this; } /** * bool literal_phase = 5; * @return This builder for chaining. */ public Builder clearLiteralPhase() { literalPhase_ = false; 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:Ydb.TableStats.QueryPhaseStats) } // @@protoc_insertion_point(class_scope:Ydb.TableStats.QueryPhaseStats) private static final com.yandex.ydb.YdbQueryStats.QueryPhaseStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.YdbQueryStats.QueryPhaseStats(); } public static com.yandex.ydb.YdbQueryStats.QueryPhaseStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryPhaseStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryPhaseStats(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.yandex.ydb.YdbQueryStats.QueryPhaseStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CompilationStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.TableStats.CompilationStats) com.google.protobuf.MessageOrBuilder { /** * bool from_cache = 1; * @return The fromCache. */ boolean getFromCache(); /** * uint64 duration_us = 2; * @return The durationUs. */ long getDurationUs(); /** * uint64 cpu_time_us = 3; * @return The cpuTimeUs. */ long getCpuTimeUs(); } /** * Protobuf type {@code Ydb.TableStats.CompilationStats} */ public static final class CompilationStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.TableStats.CompilationStats) CompilationStatsOrBuilder { private static final long serialVersionUID = 0L; // Use CompilationStats.newBuilder() to construct. private CompilationStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CompilationStats() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CompilationStats(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CompilationStats( 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: { fromCache_ = input.readBool(); break; } case 16: { durationUs_ = input.readUInt64(); break; } case 24: { cpuTimeUs_ = 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.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_CompilationStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_CompilationStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.YdbQueryStats.CompilationStats.class, com.yandex.ydb.YdbQueryStats.CompilationStats.Builder.class); } public static final int FROM_CACHE_FIELD_NUMBER = 1; private boolean fromCache_; /** * bool from_cache = 1; * @return The fromCache. */ @java.lang.Override public boolean getFromCache() { return fromCache_; } public static final int DURATION_US_FIELD_NUMBER = 2; private long durationUs_; /** * uint64 duration_us = 2; * @return The durationUs. */ @java.lang.Override public long getDurationUs() { return durationUs_; } public static final int CPU_TIME_US_FIELD_NUMBER = 3; private long cpuTimeUs_; /** * uint64 cpu_time_us = 3; * @return The cpuTimeUs. */ @java.lang.Override public long getCpuTimeUs() { return cpuTimeUs_; } 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 (fromCache_ != false) { output.writeBool(1, fromCache_); } if (durationUs_ != 0L) { output.writeUInt64(2, durationUs_); } if (cpuTimeUs_ != 0L) { output.writeUInt64(3, cpuTimeUs_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fromCache_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, fromCache_); } if (durationUs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, durationUs_); } if (cpuTimeUs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, cpuTimeUs_); } 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.yandex.ydb.YdbQueryStats.CompilationStats)) { return super.equals(obj); } com.yandex.ydb.YdbQueryStats.CompilationStats other = (com.yandex.ydb.YdbQueryStats.CompilationStats) obj; if (getFromCache() != other.getFromCache()) return false; if (getDurationUs() != other.getDurationUs()) return false; if (getCpuTimeUs() != other.getCpuTimeUs()) 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) + FROM_CACHE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFromCache()); hash = (37 * hash) + DURATION_US_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDurationUs()); hash = (37 * hash) + CPU_TIME_US_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCpuTimeUs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.YdbQueryStats.CompilationStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.CompilationStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.CompilationStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.CompilationStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.CompilationStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.CompilationStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.CompilationStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.CompilationStats 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.yandex.ydb.YdbQueryStats.CompilationStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.CompilationStats 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.yandex.ydb.YdbQueryStats.CompilationStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.CompilationStats 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.yandex.ydb.YdbQueryStats.CompilationStats 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 Ydb.TableStats.CompilationStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.TableStats.CompilationStats) com.yandex.ydb.YdbQueryStats.CompilationStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_CompilationStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_CompilationStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.YdbQueryStats.CompilationStats.class, com.yandex.ydb.YdbQueryStats.CompilationStats.Builder.class); } // Construct using com.yandex.ydb.YdbQueryStats.CompilationStats.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(); fromCache_ = false; durationUs_ = 0L; cpuTimeUs_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_CompilationStats_descriptor; } @java.lang.Override public com.yandex.ydb.YdbQueryStats.CompilationStats getDefaultInstanceForType() { return com.yandex.ydb.YdbQueryStats.CompilationStats.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.YdbQueryStats.CompilationStats build() { com.yandex.ydb.YdbQueryStats.CompilationStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.YdbQueryStats.CompilationStats buildPartial() { com.yandex.ydb.YdbQueryStats.CompilationStats result = new com.yandex.ydb.YdbQueryStats.CompilationStats(this); result.fromCache_ = fromCache_; result.durationUs_ = durationUs_; result.cpuTimeUs_ = cpuTimeUs_; 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.yandex.ydb.YdbQueryStats.CompilationStats) { return mergeFrom((com.yandex.ydb.YdbQueryStats.CompilationStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.YdbQueryStats.CompilationStats other) { if (other == com.yandex.ydb.YdbQueryStats.CompilationStats.getDefaultInstance()) return this; if (other.getFromCache() != false) { setFromCache(other.getFromCache()); } if (other.getDurationUs() != 0L) { setDurationUs(other.getDurationUs()); } if (other.getCpuTimeUs() != 0L) { setCpuTimeUs(other.getCpuTimeUs()); } 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.yandex.ydb.YdbQueryStats.CompilationStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.YdbQueryStats.CompilationStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean fromCache_ ; /** * bool from_cache = 1; * @return The fromCache. */ @java.lang.Override public boolean getFromCache() { return fromCache_; } /** * bool from_cache = 1; * @param value The fromCache to set. * @return This builder for chaining. */ public Builder setFromCache(boolean value) { fromCache_ = value; onChanged(); return this; } /** * bool from_cache = 1; * @return This builder for chaining. */ public Builder clearFromCache() { fromCache_ = false; onChanged(); return this; } private long durationUs_ ; /** * uint64 duration_us = 2; * @return The durationUs. */ @java.lang.Override public long getDurationUs() { return durationUs_; } /** * uint64 duration_us = 2; * @param value The durationUs to set. * @return This builder for chaining. */ public Builder setDurationUs(long value) { durationUs_ = value; onChanged(); return this; } /** * uint64 duration_us = 2; * @return This builder for chaining. */ public Builder clearDurationUs() { durationUs_ = 0L; onChanged(); return this; } private long cpuTimeUs_ ; /** * uint64 cpu_time_us = 3; * @return The cpuTimeUs. */ @java.lang.Override public long getCpuTimeUs() { return cpuTimeUs_; } /** * uint64 cpu_time_us = 3; * @param value The cpuTimeUs to set. * @return This builder for chaining. */ public Builder setCpuTimeUs(long value) { cpuTimeUs_ = value; onChanged(); return this; } /** * uint64 cpu_time_us = 3; * @return This builder for chaining. */ public Builder clearCpuTimeUs() { cpuTimeUs_ = 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:Ydb.TableStats.CompilationStats) } // @@protoc_insertion_point(class_scope:Ydb.TableStats.CompilationStats) private static final com.yandex.ydb.YdbQueryStats.CompilationStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.YdbQueryStats.CompilationStats(); } public static com.yandex.ydb.YdbQueryStats.CompilationStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CompilationStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CompilationStats(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.yandex.ydb.YdbQueryStats.CompilationStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.TableStats.QueryStats) com.google.protobuf.MessageOrBuilder { /** *
     * A query might have one or more execution phases
     * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ java.util.List getQueryPhasesList(); /** *
     * A query might have one or more execution phases
     * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ com.yandex.ydb.YdbQueryStats.QueryPhaseStats getQueryPhases(int index); /** *
     * A query might have one or more execution phases
     * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ int getQueryPhasesCount(); /** *
     * A query might have one or more execution phases
     * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ java.util.List getQueryPhasesOrBuilderList(); /** *
     * A query might have one or more execution phases
     * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ com.yandex.ydb.YdbQueryStats.QueryPhaseStatsOrBuilder getQueryPhasesOrBuilder( int index); /** * .Ydb.TableStats.CompilationStats compilation = 2; * @return Whether the compilation field is set. */ boolean hasCompilation(); /** * .Ydb.TableStats.CompilationStats compilation = 2; * @return The compilation. */ com.yandex.ydb.YdbQueryStats.CompilationStats getCompilation(); /** * .Ydb.TableStats.CompilationStats compilation = 2; */ com.yandex.ydb.YdbQueryStats.CompilationStatsOrBuilder getCompilationOrBuilder(); /** * uint64 process_cpu_time_us = 3; * @return The processCpuTimeUs. */ long getProcessCpuTimeUs(); /** * string query_plan = 4; * @return The queryPlan. */ java.lang.String getQueryPlan(); /** * string query_plan = 4; * @return The bytes for queryPlan. */ com.google.protobuf.ByteString getQueryPlanBytes(); /** * string query_ast = 5; * @return The queryAst. */ java.lang.String getQueryAst(); /** * string query_ast = 5; * @return The bytes for queryAst. */ com.google.protobuf.ByteString getQueryAstBytes(); /** * uint64 total_duration_us = 6; * @return The totalDurationUs. */ long getTotalDurationUs(); /** * uint64 total_cpu_time_us = 7; * @return The totalCpuTimeUs. */ long getTotalCpuTimeUs(); } /** * Protobuf type {@code Ydb.TableStats.QueryStats} */ public static final class QueryStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.TableStats.QueryStats) QueryStatsOrBuilder { private static final long serialVersionUID = 0L; // Use QueryStats.newBuilder() to construct. private QueryStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryStats() { queryPhases_ = java.util.Collections.emptyList(); queryPlan_ = ""; queryAst_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryStats(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; 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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { queryPhases_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } queryPhases_.add( input.readMessage(com.yandex.ydb.YdbQueryStats.QueryPhaseStats.parser(), extensionRegistry)); break; } case 18: { com.yandex.ydb.YdbQueryStats.CompilationStats.Builder subBuilder = null; if (compilation_ != null) { subBuilder = compilation_.toBuilder(); } compilation_ = input.readMessage(com.yandex.ydb.YdbQueryStats.CompilationStats.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(compilation_); compilation_ = subBuilder.buildPartial(); } break; } case 24: { processCpuTimeUs_ = input.readUInt64(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); queryPlan_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); queryAst_ = s; break; } case 48: { totalDurationUs_ = input.readUInt64(); break; } case 56: { totalCpuTimeUs_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { queryPhases_ = java.util.Collections.unmodifiableList(queryPhases_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_QueryStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_QueryStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.YdbQueryStats.QueryStats.class, com.yandex.ydb.YdbQueryStats.QueryStats.Builder.class); } public static final int QUERY_PHASES_FIELD_NUMBER = 1; private java.util.List queryPhases_; /** *
     * A query might have one or more execution phases
     * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ @java.lang.Override public java.util.List getQueryPhasesList() { return queryPhases_; } /** *
     * A query might have one or more execution phases
     * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ @java.lang.Override public java.util.List getQueryPhasesOrBuilderList() { return queryPhases_; } /** *
     * A query might have one or more execution phases
     * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ @java.lang.Override public int getQueryPhasesCount() { return queryPhases_.size(); } /** *
     * A query might have one or more execution phases
     * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ @java.lang.Override public com.yandex.ydb.YdbQueryStats.QueryPhaseStats getQueryPhases(int index) { return queryPhases_.get(index); } /** *
     * A query might have one or more execution phases
     * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ @java.lang.Override public com.yandex.ydb.YdbQueryStats.QueryPhaseStatsOrBuilder getQueryPhasesOrBuilder( int index) { return queryPhases_.get(index); } public static final int COMPILATION_FIELD_NUMBER = 2; private com.yandex.ydb.YdbQueryStats.CompilationStats compilation_; /** * .Ydb.TableStats.CompilationStats compilation = 2; * @return Whether the compilation field is set. */ @java.lang.Override public boolean hasCompilation() { return compilation_ != null; } /** * .Ydb.TableStats.CompilationStats compilation = 2; * @return The compilation. */ @java.lang.Override public com.yandex.ydb.YdbQueryStats.CompilationStats getCompilation() { return compilation_ == null ? com.yandex.ydb.YdbQueryStats.CompilationStats.getDefaultInstance() : compilation_; } /** * .Ydb.TableStats.CompilationStats compilation = 2; */ @java.lang.Override public com.yandex.ydb.YdbQueryStats.CompilationStatsOrBuilder getCompilationOrBuilder() { return getCompilation(); } public static final int PROCESS_CPU_TIME_US_FIELD_NUMBER = 3; private long processCpuTimeUs_; /** * uint64 process_cpu_time_us = 3; * @return The processCpuTimeUs. */ @java.lang.Override public long getProcessCpuTimeUs() { return processCpuTimeUs_; } public static final int QUERY_PLAN_FIELD_NUMBER = 4; private volatile java.lang.Object queryPlan_; /** * string query_plan = 4; * @return The queryPlan. */ @java.lang.Override public java.lang.String getQueryPlan() { java.lang.Object ref = queryPlan_; 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(); queryPlan_ = s; return s; } } /** * string query_plan = 4; * @return The bytes for queryPlan. */ @java.lang.Override public com.google.protobuf.ByteString getQueryPlanBytes() { java.lang.Object ref = queryPlan_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); queryPlan_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUERY_AST_FIELD_NUMBER = 5; private volatile java.lang.Object queryAst_; /** * string query_ast = 5; * @return The queryAst. */ @java.lang.Override public java.lang.String getQueryAst() { java.lang.Object ref = queryAst_; 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(); queryAst_ = s; return s; } } /** * string query_ast = 5; * @return The bytes for queryAst. */ @java.lang.Override public com.google.protobuf.ByteString getQueryAstBytes() { java.lang.Object ref = queryAst_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); queryAst_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOTAL_DURATION_US_FIELD_NUMBER = 6; private long totalDurationUs_; /** * uint64 total_duration_us = 6; * @return The totalDurationUs. */ @java.lang.Override public long getTotalDurationUs() { return totalDurationUs_; } public static final int TOTAL_CPU_TIME_US_FIELD_NUMBER = 7; private long totalCpuTimeUs_; /** * uint64 total_cpu_time_us = 7; * @return The totalCpuTimeUs. */ @java.lang.Override public long getTotalCpuTimeUs() { return totalCpuTimeUs_; } 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 { for (int i = 0; i < queryPhases_.size(); i++) { output.writeMessage(1, queryPhases_.get(i)); } if (compilation_ != null) { output.writeMessage(2, getCompilation()); } if (processCpuTimeUs_ != 0L) { output.writeUInt64(3, processCpuTimeUs_); } if (!getQueryPlanBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, queryPlan_); } if (!getQueryAstBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, queryAst_); } if (totalDurationUs_ != 0L) { output.writeUInt64(6, totalDurationUs_); } if (totalCpuTimeUs_ != 0L) { output.writeUInt64(7, totalCpuTimeUs_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < queryPhases_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, queryPhases_.get(i)); } if (compilation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCompilation()); } if (processCpuTimeUs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, processCpuTimeUs_); } if (!getQueryPlanBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, queryPlan_); } if (!getQueryAstBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, queryAst_); } if (totalDurationUs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, totalDurationUs_); } if (totalCpuTimeUs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, totalCpuTimeUs_); } 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.yandex.ydb.YdbQueryStats.QueryStats)) { return super.equals(obj); } com.yandex.ydb.YdbQueryStats.QueryStats other = (com.yandex.ydb.YdbQueryStats.QueryStats) obj; if (!getQueryPhasesList() .equals(other.getQueryPhasesList())) return false; if (hasCompilation() != other.hasCompilation()) return false; if (hasCompilation()) { if (!getCompilation() .equals(other.getCompilation())) return false; } if (getProcessCpuTimeUs() != other.getProcessCpuTimeUs()) return false; if (!getQueryPlan() .equals(other.getQueryPlan())) return false; if (!getQueryAst() .equals(other.getQueryAst())) return false; if (getTotalDurationUs() != other.getTotalDurationUs()) return false; if (getTotalCpuTimeUs() != other.getTotalCpuTimeUs()) 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(); if (getQueryPhasesCount() > 0) { hash = (37 * hash) + QUERY_PHASES_FIELD_NUMBER; hash = (53 * hash) + getQueryPhasesList().hashCode(); } if (hasCompilation()) { hash = (37 * hash) + COMPILATION_FIELD_NUMBER; hash = (53 * hash) + getCompilation().hashCode(); } hash = (37 * hash) + PROCESS_CPU_TIME_US_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProcessCpuTimeUs()); hash = (37 * hash) + QUERY_PLAN_FIELD_NUMBER; hash = (53 * hash) + getQueryPlan().hashCode(); hash = (37 * hash) + QUERY_AST_FIELD_NUMBER; hash = (53 * hash) + getQueryAst().hashCode(); hash = (37 * hash) + TOTAL_DURATION_US_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalDurationUs()); hash = (37 * hash) + TOTAL_CPU_TIME_US_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalCpuTimeUs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.YdbQueryStats.QueryStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.QueryStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.QueryStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.QueryStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.QueryStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.YdbQueryStats.QueryStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.YdbQueryStats.QueryStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.QueryStats 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.yandex.ydb.YdbQueryStats.QueryStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.QueryStats 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.yandex.ydb.YdbQueryStats.QueryStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.YdbQueryStats.QueryStats 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.yandex.ydb.YdbQueryStats.QueryStats 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 Ydb.TableStats.QueryStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.TableStats.QueryStats) com.yandex.ydb.YdbQueryStats.QueryStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_QueryStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_QueryStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.YdbQueryStats.QueryStats.class, com.yandex.ydb.YdbQueryStats.QueryStats.Builder.class); } // Construct using com.yandex.ydb.YdbQueryStats.QueryStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getQueryPhasesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (queryPhasesBuilder_ == null) { queryPhases_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { queryPhasesBuilder_.clear(); } if (compilationBuilder_ == null) { compilation_ = null; } else { compilation_ = null; compilationBuilder_ = null; } processCpuTimeUs_ = 0L; queryPlan_ = ""; queryAst_ = ""; totalDurationUs_ = 0L; totalCpuTimeUs_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.YdbQueryStats.internal_static_Ydb_TableStats_QueryStats_descriptor; } @java.lang.Override public com.yandex.ydb.YdbQueryStats.QueryStats getDefaultInstanceForType() { return com.yandex.ydb.YdbQueryStats.QueryStats.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.YdbQueryStats.QueryStats build() { com.yandex.ydb.YdbQueryStats.QueryStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.YdbQueryStats.QueryStats buildPartial() { com.yandex.ydb.YdbQueryStats.QueryStats result = new com.yandex.ydb.YdbQueryStats.QueryStats(this); int from_bitField0_ = bitField0_; if (queryPhasesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { queryPhases_ = java.util.Collections.unmodifiableList(queryPhases_); bitField0_ = (bitField0_ & ~0x00000001); } result.queryPhases_ = queryPhases_; } else { result.queryPhases_ = queryPhasesBuilder_.build(); } if (compilationBuilder_ == null) { result.compilation_ = compilation_; } else { result.compilation_ = compilationBuilder_.build(); } result.processCpuTimeUs_ = processCpuTimeUs_; result.queryPlan_ = queryPlan_; result.queryAst_ = queryAst_; result.totalDurationUs_ = totalDurationUs_; result.totalCpuTimeUs_ = totalCpuTimeUs_; 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.yandex.ydb.YdbQueryStats.QueryStats) { return mergeFrom((com.yandex.ydb.YdbQueryStats.QueryStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.YdbQueryStats.QueryStats other) { if (other == com.yandex.ydb.YdbQueryStats.QueryStats.getDefaultInstance()) return this; if (queryPhasesBuilder_ == null) { if (!other.queryPhases_.isEmpty()) { if (queryPhases_.isEmpty()) { queryPhases_ = other.queryPhases_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureQueryPhasesIsMutable(); queryPhases_.addAll(other.queryPhases_); } onChanged(); } } else { if (!other.queryPhases_.isEmpty()) { if (queryPhasesBuilder_.isEmpty()) { queryPhasesBuilder_.dispose(); queryPhasesBuilder_ = null; queryPhases_ = other.queryPhases_; bitField0_ = (bitField0_ & ~0x00000001); queryPhasesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQueryPhasesFieldBuilder() : null; } else { queryPhasesBuilder_.addAllMessages(other.queryPhases_); } } } if (other.hasCompilation()) { mergeCompilation(other.getCompilation()); } if (other.getProcessCpuTimeUs() != 0L) { setProcessCpuTimeUs(other.getProcessCpuTimeUs()); } if (!other.getQueryPlan().isEmpty()) { queryPlan_ = other.queryPlan_; onChanged(); } if (!other.getQueryAst().isEmpty()) { queryAst_ = other.queryAst_; onChanged(); } if (other.getTotalDurationUs() != 0L) { setTotalDurationUs(other.getTotalDurationUs()); } if (other.getTotalCpuTimeUs() != 0L) { setTotalCpuTimeUs(other.getTotalCpuTimeUs()); } 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.yandex.ydb.YdbQueryStats.QueryStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.YdbQueryStats.QueryStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List queryPhases_ = java.util.Collections.emptyList(); private void ensureQueryPhasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { queryPhases_ = new java.util.ArrayList(queryPhases_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbQueryStats.QueryPhaseStats, com.yandex.ydb.YdbQueryStats.QueryPhaseStats.Builder, com.yandex.ydb.YdbQueryStats.QueryPhaseStatsOrBuilder> queryPhasesBuilder_; /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public java.util.List getQueryPhasesList() { if (queryPhasesBuilder_ == null) { return java.util.Collections.unmodifiableList(queryPhases_); } else { return queryPhasesBuilder_.getMessageList(); } } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public int getQueryPhasesCount() { if (queryPhasesBuilder_ == null) { return queryPhases_.size(); } else { return queryPhasesBuilder_.getCount(); } } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public com.yandex.ydb.YdbQueryStats.QueryPhaseStats getQueryPhases(int index) { if (queryPhasesBuilder_ == null) { return queryPhases_.get(index); } else { return queryPhasesBuilder_.getMessage(index); } } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public Builder setQueryPhases( int index, com.yandex.ydb.YdbQueryStats.QueryPhaseStats value) { if (queryPhasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueryPhasesIsMutable(); queryPhases_.set(index, value); onChanged(); } else { queryPhasesBuilder_.setMessage(index, value); } return this; } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public Builder setQueryPhases( int index, com.yandex.ydb.YdbQueryStats.QueryPhaseStats.Builder builderForValue) { if (queryPhasesBuilder_ == null) { ensureQueryPhasesIsMutable(); queryPhases_.set(index, builderForValue.build()); onChanged(); } else { queryPhasesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public Builder addQueryPhases(com.yandex.ydb.YdbQueryStats.QueryPhaseStats value) { if (queryPhasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueryPhasesIsMutable(); queryPhases_.add(value); onChanged(); } else { queryPhasesBuilder_.addMessage(value); } return this; } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public Builder addQueryPhases( int index, com.yandex.ydb.YdbQueryStats.QueryPhaseStats value) { if (queryPhasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueryPhasesIsMutable(); queryPhases_.add(index, value); onChanged(); } else { queryPhasesBuilder_.addMessage(index, value); } return this; } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public Builder addQueryPhases( com.yandex.ydb.YdbQueryStats.QueryPhaseStats.Builder builderForValue) { if (queryPhasesBuilder_ == null) { ensureQueryPhasesIsMutable(); queryPhases_.add(builderForValue.build()); onChanged(); } else { queryPhasesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public Builder addQueryPhases( int index, com.yandex.ydb.YdbQueryStats.QueryPhaseStats.Builder builderForValue) { if (queryPhasesBuilder_ == null) { ensureQueryPhasesIsMutable(); queryPhases_.add(index, builderForValue.build()); onChanged(); } else { queryPhasesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public Builder addAllQueryPhases( java.lang.Iterable values) { if (queryPhasesBuilder_ == null) { ensureQueryPhasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, queryPhases_); onChanged(); } else { queryPhasesBuilder_.addAllMessages(values); } return this; } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public Builder clearQueryPhases() { if (queryPhasesBuilder_ == null) { queryPhases_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { queryPhasesBuilder_.clear(); } return this; } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public Builder removeQueryPhases(int index) { if (queryPhasesBuilder_ == null) { ensureQueryPhasesIsMutable(); queryPhases_.remove(index); onChanged(); } else { queryPhasesBuilder_.remove(index); } return this; } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public com.yandex.ydb.YdbQueryStats.QueryPhaseStats.Builder getQueryPhasesBuilder( int index) { return getQueryPhasesFieldBuilder().getBuilder(index); } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public com.yandex.ydb.YdbQueryStats.QueryPhaseStatsOrBuilder getQueryPhasesOrBuilder( int index) { if (queryPhasesBuilder_ == null) { return queryPhases_.get(index); } else { return queryPhasesBuilder_.getMessageOrBuilder(index); } } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public java.util.List getQueryPhasesOrBuilderList() { if (queryPhasesBuilder_ != null) { return queryPhasesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(queryPhases_); } } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public com.yandex.ydb.YdbQueryStats.QueryPhaseStats.Builder addQueryPhasesBuilder() { return getQueryPhasesFieldBuilder().addBuilder( com.yandex.ydb.YdbQueryStats.QueryPhaseStats.getDefaultInstance()); } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public com.yandex.ydb.YdbQueryStats.QueryPhaseStats.Builder addQueryPhasesBuilder( int index) { return getQueryPhasesFieldBuilder().addBuilder( index, com.yandex.ydb.YdbQueryStats.QueryPhaseStats.getDefaultInstance()); } /** *
       * A query might have one or more execution phases
       * 
* * repeated .Ydb.TableStats.QueryPhaseStats query_phases = 1; */ public java.util.List getQueryPhasesBuilderList() { return getQueryPhasesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbQueryStats.QueryPhaseStats, com.yandex.ydb.YdbQueryStats.QueryPhaseStats.Builder, com.yandex.ydb.YdbQueryStats.QueryPhaseStatsOrBuilder> getQueryPhasesFieldBuilder() { if (queryPhasesBuilder_ == null) { queryPhasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbQueryStats.QueryPhaseStats, com.yandex.ydb.YdbQueryStats.QueryPhaseStats.Builder, com.yandex.ydb.YdbQueryStats.QueryPhaseStatsOrBuilder>( queryPhases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); queryPhases_ = null; } return queryPhasesBuilder_; } private com.yandex.ydb.YdbQueryStats.CompilationStats compilation_; private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.YdbQueryStats.CompilationStats, com.yandex.ydb.YdbQueryStats.CompilationStats.Builder, com.yandex.ydb.YdbQueryStats.CompilationStatsOrBuilder> compilationBuilder_; /** * .Ydb.TableStats.CompilationStats compilation = 2; * @return Whether the compilation field is set. */ public boolean hasCompilation() { return compilationBuilder_ != null || compilation_ != null; } /** * .Ydb.TableStats.CompilationStats compilation = 2; * @return The compilation. */ public com.yandex.ydb.YdbQueryStats.CompilationStats getCompilation() { if (compilationBuilder_ == null) { return compilation_ == null ? com.yandex.ydb.YdbQueryStats.CompilationStats.getDefaultInstance() : compilation_; } else { return compilationBuilder_.getMessage(); } } /** * .Ydb.TableStats.CompilationStats compilation = 2; */ public Builder setCompilation(com.yandex.ydb.YdbQueryStats.CompilationStats value) { if (compilationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } compilation_ = value; onChanged(); } else { compilationBuilder_.setMessage(value); } return this; } /** * .Ydb.TableStats.CompilationStats compilation = 2; */ public Builder setCompilation( com.yandex.ydb.YdbQueryStats.CompilationStats.Builder builderForValue) { if (compilationBuilder_ == null) { compilation_ = builderForValue.build(); onChanged(); } else { compilationBuilder_.setMessage(builderForValue.build()); } return this; } /** * .Ydb.TableStats.CompilationStats compilation = 2; */ public Builder mergeCompilation(com.yandex.ydb.YdbQueryStats.CompilationStats value) { if (compilationBuilder_ == null) { if (compilation_ != null) { compilation_ = com.yandex.ydb.YdbQueryStats.CompilationStats.newBuilder(compilation_).mergeFrom(value).buildPartial(); } else { compilation_ = value; } onChanged(); } else { compilationBuilder_.mergeFrom(value); } return this; } /** * .Ydb.TableStats.CompilationStats compilation = 2; */ public Builder clearCompilation() { if (compilationBuilder_ == null) { compilation_ = null; onChanged(); } else { compilation_ = null; compilationBuilder_ = null; } return this; } /** * .Ydb.TableStats.CompilationStats compilation = 2; */ public com.yandex.ydb.YdbQueryStats.CompilationStats.Builder getCompilationBuilder() { onChanged(); return getCompilationFieldBuilder().getBuilder(); } /** * .Ydb.TableStats.CompilationStats compilation = 2; */ public com.yandex.ydb.YdbQueryStats.CompilationStatsOrBuilder getCompilationOrBuilder() { if (compilationBuilder_ != null) { return compilationBuilder_.getMessageOrBuilder(); } else { return compilation_ == null ? com.yandex.ydb.YdbQueryStats.CompilationStats.getDefaultInstance() : compilation_; } } /** * .Ydb.TableStats.CompilationStats compilation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.YdbQueryStats.CompilationStats, com.yandex.ydb.YdbQueryStats.CompilationStats.Builder, com.yandex.ydb.YdbQueryStats.CompilationStatsOrBuilder> getCompilationFieldBuilder() { if (compilationBuilder_ == null) { compilationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.YdbQueryStats.CompilationStats, com.yandex.ydb.YdbQueryStats.CompilationStats.Builder, com.yandex.ydb.YdbQueryStats.CompilationStatsOrBuilder>( getCompilation(), getParentForChildren(), isClean()); compilation_ = null; } return compilationBuilder_; } private long processCpuTimeUs_ ; /** * uint64 process_cpu_time_us = 3; * @return The processCpuTimeUs. */ @java.lang.Override public long getProcessCpuTimeUs() { return processCpuTimeUs_; } /** * uint64 process_cpu_time_us = 3; * @param value The processCpuTimeUs to set. * @return This builder for chaining. */ public Builder setProcessCpuTimeUs(long value) { processCpuTimeUs_ = value; onChanged(); return this; } /** * uint64 process_cpu_time_us = 3; * @return This builder for chaining. */ public Builder clearProcessCpuTimeUs() { processCpuTimeUs_ = 0L; onChanged(); return this; } private java.lang.Object queryPlan_ = ""; /** * string query_plan = 4; * @return The queryPlan. */ public java.lang.String getQueryPlan() { java.lang.Object ref = queryPlan_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryPlan_ = s; return s; } else { return (java.lang.String) ref; } } /** * string query_plan = 4; * @return The bytes for queryPlan. */ public com.google.protobuf.ByteString getQueryPlanBytes() { java.lang.Object ref = queryPlan_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); queryPlan_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string query_plan = 4; * @param value The queryPlan to set. * @return This builder for chaining. */ public Builder setQueryPlan( java.lang.String value) { if (value == null) { throw new NullPointerException(); } queryPlan_ = value; onChanged(); return this; } /** * string query_plan = 4; * @return This builder for chaining. */ public Builder clearQueryPlan() { queryPlan_ = getDefaultInstance().getQueryPlan(); onChanged(); return this; } /** * string query_plan = 4; * @param value The bytes for queryPlan to set. * @return This builder for chaining. */ public Builder setQueryPlanBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queryPlan_ = value; onChanged(); return this; } private java.lang.Object queryAst_ = ""; /** * string query_ast = 5; * @return The queryAst. */ public java.lang.String getQueryAst() { java.lang.Object ref = queryAst_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryAst_ = s; return s; } else { return (java.lang.String) ref; } } /** * string query_ast = 5; * @return The bytes for queryAst. */ public com.google.protobuf.ByteString getQueryAstBytes() { java.lang.Object ref = queryAst_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); queryAst_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string query_ast = 5; * @param value The queryAst to set. * @return This builder for chaining. */ public Builder setQueryAst( java.lang.String value) { if (value == null) { throw new NullPointerException(); } queryAst_ = value; onChanged(); return this; } /** * string query_ast = 5; * @return This builder for chaining. */ public Builder clearQueryAst() { queryAst_ = getDefaultInstance().getQueryAst(); onChanged(); return this; } /** * string query_ast = 5; * @param value The bytes for queryAst to set. * @return This builder for chaining. */ public Builder setQueryAstBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queryAst_ = value; onChanged(); return this; } private long totalDurationUs_ ; /** * uint64 total_duration_us = 6; * @return The totalDurationUs. */ @java.lang.Override public long getTotalDurationUs() { return totalDurationUs_; } /** * uint64 total_duration_us = 6; * @param value The totalDurationUs to set. * @return This builder for chaining. */ public Builder setTotalDurationUs(long value) { totalDurationUs_ = value; onChanged(); return this; } /** * uint64 total_duration_us = 6; * @return This builder for chaining. */ public Builder clearTotalDurationUs() { totalDurationUs_ = 0L; onChanged(); return this; } private long totalCpuTimeUs_ ; /** * uint64 total_cpu_time_us = 7; * @return The totalCpuTimeUs. */ @java.lang.Override public long getTotalCpuTimeUs() { return totalCpuTimeUs_; } /** * uint64 total_cpu_time_us = 7; * @param value The totalCpuTimeUs to set. * @return This builder for chaining. */ public Builder setTotalCpuTimeUs(long value) { totalCpuTimeUs_ = value; onChanged(); return this; } /** * uint64 total_cpu_time_us = 7; * @return This builder for chaining. */ public Builder clearTotalCpuTimeUs() { totalCpuTimeUs_ = 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:Ydb.TableStats.QueryStats) } // @@protoc_insertion_point(class_scope:Ydb.TableStats.QueryStats) private static final com.yandex.ydb.YdbQueryStats.QueryStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.YdbQueryStats.QueryStats(); } public static com.yandex.ydb.YdbQueryStats.QueryStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryStats(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.yandex.ydb.YdbQueryStats.QueryStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_TableStats_OperationStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_TableStats_OperationStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_TableStats_TableAccessStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_TableStats_TableAccessStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_TableStats_QueryPhaseStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_TableStats_QueryPhaseStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_TableStats_CompilationStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_TableStats_CompilationStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_TableStats_QueryStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_TableStats_QueryStats_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n+ydb/public/api/protos/ydb_query_stats." + "proto\022\016Ydb.TableStats\"-\n\016OperationStats\022" + "\014\n\004rows\030\001 \001(\004\022\r\n\005bytes\030\002 \001(\004\"\321\001\n\020TableAc" + "cessStats\022\014\n\004name\030\001 \001(\t\022-\n\005reads\030\003 \001(\0132\036" + ".Ydb.TableStats.OperationStats\022/\n\007update" + "s\030\004 \001(\0132\036.Ydb.TableStats.OperationStats\022" + "/\n\007deletes\030\005 \001(\0132\036.Ydb.TableStats.Operat" + "ionStats\022\030\n\020partitions_count\030\006 \001(\004J\004\010\002\020\003" + "\"\243\001\n\017QueryPhaseStats\022\023\n\013duration_us\030\001 \001(" + "\004\0226\n\014table_access\030\002 \003(\0132 .Ydb.TableStats" + ".TableAccessStats\022\023\n\013cpu_time_us\030\003 \001(\004\022\027" + "\n\017affected_shards\030\004 \001(\004\022\025\n\rliteral_phase" + "\030\005 \001(\010\"P\n\020CompilationStats\022\022\n\nfrom_cache" + "\030\001 \001(\010\022\023\n\013duration_us\030\002 \001(\004\022\023\n\013cpu_time_" + "us\030\003 \001(\004\"\364\001\n\nQueryStats\0225\n\014query_phases\030" + "\001 \003(\0132\037.Ydb.TableStats.QueryPhaseStats\0225" + "\n\013compilation\030\002 \001(\0132 .Ydb.TableStats.Com" + "pilationStats\022\033\n\023process_cpu_time_us\030\003 \001" + "(\004\022\022\n\nquery_plan\030\004 \001(\t\022\021\n\tquery_ast\030\005 \001(" + "\t\022\031\n\021total_duration_us\030\006 \001(\004\022\031\n\021total_cp" + "u_time_us\030\007 \001(\004B\023\n\016com.yandex.ydb\370\001\001b\006pr" + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_Ydb_TableStats_OperationStats_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Ydb_TableStats_OperationStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_TableStats_OperationStats_descriptor, new java.lang.String[] { "Rows", "Bytes", }); internal_static_Ydb_TableStats_TableAccessStats_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Ydb_TableStats_TableAccessStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_TableStats_TableAccessStats_descriptor, new java.lang.String[] { "Name", "Reads", "Updates", "Deletes", "PartitionsCount", }); internal_static_Ydb_TableStats_QueryPhaseStats_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_Ydb_TableStats_QueryPhaseStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_TableStats_QueryPhaseStats_descriptor, new java.lang.String[] { "DurationUs", "TableAccess", "CpuTimeUs", "AffectedShards", "LiteralPhase", }); internal_static_Ydb_TableStats_CompilationStats_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_Ydb_TableStats_CompilationStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_TableStats_CompilationStats_descriptor, new java.lang.String[] { "FromCache", "DurationUs", "CpuTimeUs", }); internal_static_Ydb_TableStats_QueryStats_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_Ydb_TableStats_QueryStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_TableStats_QueryStats_descriptor, new java.lang.String[] { "QueryPhases", "Compilation", "ProcessCpuTimeUs", "QueryPlan", "QueryAst", "TotalDurationUs", "TotalCpuTimeUs", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy