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

nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats Maven / Gradle / Ivy

There is a newer version: 1.1.6
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/spanner/v1/result_set.proto

package nl.topicus.jdbc.shaded.com.google.spanner.v1;

/**
 * 
 * Additional statistics about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].
 * 
* * Protobuf type {@code google.spanner.v1.ResultSetStats} */ public final class ResultSetStats extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.v1.ResultSetStats) ResultSetStatsOrBuilder { private static final long serialVersionUID = 0L; // Use ResultSetStats.newBuilder() to construct. private ResultSetStats(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResultSetStats() { } @java.lang.Override public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResultSetStats( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan.Builder subBuilder = null; if (queryPlan_ != null) { subBuilder = queryPlan_.toBuilder(); } queryPlan_ = input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(queryPlan_); queryPlan_ = subBuilder.buildPartial(); } break; } case 18: { nl.topicus.jdbc.shaded.com.google.protobuf.Struct.Builder subBuilder = null; if (queryStats_ != null) { subBuilder = queryStats_.toBuilder(); } queryStats_ = input.readMessage(nl.topicus.jdbc.shaded.com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(queryStats_); queryStats_ = subBuilder.buildPartial(); } break; } } } } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetProto.internal_static_google_spanner_v1_ResultSetStats_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetProto.internal_static_google_spanner_v1_ResultSetStats_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.Builder.class); } public static final int QUERY_PLAN_FIELD_NUMBER = 1; private nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan queryPlan_; /** *
   * [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
   * 
* * .google.spanner.v1.QueryPlan query_plan = 1; */ public boolean hasQueryPlan() { return queryPlan_ != null; } /** *
   * [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
   * 
* * .google.spanner.v1.QueryPlan query_plan = 1; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan getQueryPlan() { return queryPlan_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan.getDefaultInstance() : queryPlan_; } /** *
   * [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
   * 
* * .google.spanner.v1.QueryPlan query_plan = 1; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlanOrBuilder getQueryPlanOrBuilder() { return getQueryPlan(); } public static final int QUERY_STATS_FIELD_NUMBER = 2; private nl.topicus.jdbc.shaded.com.google.protobuf.Struct queryStats_; /** *
   * Aggregated statistics from the execution of the query. Only present when
   * the query is profiled. For example, a query could return the statistics as
   * follows:
   *     {
   *       "rows_returned": "3",
   *       "elapsed_time": "1.22 secs",
   *       "cpu_time": "1.19 secs"
   *     }
   * 
* * .google.protobuf.Struct query_stats = 2; */ public boolean hasQueryStats() { return queryStats_ != null; } /** *
   * Aggregated statistics from the execution of the query. Only present when
   * the query is profiled. For example, a query could return the statistics as
   * follows:
   *     {
   *       "rows_returned": "3",
   *       "elapsed_time": "1.22 secs",
   *       "cpu_time": "1.19 secs"
   *     }
   * 
* * .google.protobuf.Struct query_stats = 2; */ public nl.topicus.jdbc.shaded.com.google.protobuf.Struct getQueryStats() { return queryStats_ == null ? nl.topicus.jdbc.shaded.com.google.protobuf.Struct.getDefaultInstance() : queryStats_; } /** *
   * Aggregated statistics from the execution of the query. Only present when
   * the query is profiled. For example, a query could return the statistics as
   * follows:
   *     {
   *       "rows_returned": "3",
   *       "elapsed_time": "1.22 secs",
   *       "cpu_time": "1.19 secs"
   *     }
   * 
* * .google.protobuf.Struct query_stats = 2; */ public nl.topicus.jdbc.shaded.com.google.protobuf.StructOrBuilder getQueryStatsOrBuilder() { return getQueryStats(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (queryPlan_ != null) { output.writeMessage(1, getQueryPlan()); } if (queryStats_ != null) { output.writeMessage(2, getQueryStats()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (queryPlan_ != null) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .computeMessageSize(1, getQueryPlan()); } if (queryStats_ != null) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .computeMessageSize(2, getQueryStats()); } 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 nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats)) { return super.equals(obj); } nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats other = (nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats) obj; boolean result = true; result = result && (hasQueryPlan() == other.hasQueryPlan()); if (hasQueryPlan()) { result = result && getQueryPlan() .equals(other.getQueryPlan()); } result = result && (hasQueryStats() == other.hasQueryStats()); if (hasQueryStats()) { result = result && getQueryStats() .equals(other.getQueryStats()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasQueryPlan()) { hash = (37 * hash) + QUERY_PLAN_FIELD_NUMBER; hash = (53 * hash) + getQueryPlan().hashCode(); } if (hasQueryStats()) { hash = (37 * hash) + QUERY_STATS_FIELD_NUMBER; hash = (53 * hash) + getQueryStats().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats parseFrom( java.nio.ByteBuffer data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats parseFrom( java.nio.ByteBuffer data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats parseFrom(byte[] data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats parseFrom( byte[] data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats parseFrom(java.io.InputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats parseFrom( java.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats parseDelimitedFrom( java.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Additional statistics about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].
   * 
* * Protobuf type {@code google.spanner.v1.ResultSetStats} */ public static final class Builder extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.spanner.v1.ResultSetStats) nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStatsOrBuilder { public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetProto.internal_static_google_spanner_v1_ResultSetStats_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetProto.internal_static_google_spanner_v1_ResultSetStats_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.Builder.class); } // Construct using nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (queryPlanBuilder_ == null) { queryPlan_ = null; } else { queryPlan_ = null; queryPlanBuilder_ = null; } if (queryStatsBuilder_ == null) { queryStats_ = null; } else { queryStats_ = null; queryStatsBuilder_ = null; } return this; } public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetProto.internal_static_google_spanner_v1_ResultSetStats_descriptor; } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats getDefaultInstanceForType() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.getDefaultInstance(); } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats build() { nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats buildPartial() { nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats result = new nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats(this); if (queryPlanBuilder_ == null) { result.queryPlan_ = queryPlan_; } else { result.queryPlan_ = queryPlanBuilder_.build(); } if (queryStatsBuilder_ == null) { result.queryStats_ = queryStats_; } else { result.queryStats_ = queryStatsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) { if (other instanceof nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats) { return mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats other) { if (other == nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats.getDefaultInstance()) return this; if (other.hasQueryPlan()) { mergeQueryPlan(other.getQueryPlan()); } if (other.hasQueryStats()) { mergeQueryStats(other.getQueryStats()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan queryPlan_ = null; private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan, nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlanOrBuilder> queryPlanBuilder_; /** *
     * [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
     * 
* * .google.spanner.v1.QueryPlan query_plan = 1; */ public boolean hasQueryPlan() { return queryPlanBuilder_ != null || queryPlan_ != null; } /** *
     * [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
     * 
* * .google.spanner.v1.QueryPlan query_plan = 1; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan getQueryPlan() { if (queryPlanBuilder_ == null) { return queryPlan_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan.getDefaultInstance() : queryPlan_; } else { return queryPlanBuilder_.getMessage(); } } /** *
     * [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
     * 
* * .google.spanner.v1.QueryPlan query_plan = 1; */ public Builder setQueryPlan(nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan value) { if (queryPlanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } queryPlan_ = value; onChanged(); } else { queryPlanBuilder_.setMessage(value); } return this; } /** *
     * [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
     * 
* * .google.spanner.v1.QueryPlan query_plan = 1; */ public Builder setQueryPlan( nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan.Builder builderForValue) { if (queryPlanBuilder_ == null) { queryPlan_ = builderForValue.build(); onChanged(); } else { queryPlanBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
     * 
* * .google.spanner.v1.QueryPlan query_plan = 1; */ public Builder mergeQueryPlan(nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan value) { if (queryPlanBuilder_ == null) { if (queryPlan_ != null) { queryPlan_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan.newBuilder(queryPlan_).mergeFrom(value).buildPartial(); } else { queryPlan_ = value; } onChanged(); } else { queryPlanBuilder_.mergeFrom(value); } return this; } /** *
     * [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
     * 
* * .google.spanner.v1.QueryPlan query_plan = 1; */ public Builder clearQueryPlan() { if (queryPlanBuilder_ == null) { queryPlan_ = null; onChanged(); } else { queryPlan_ = null; queryPlanBuilder_ = null; } return this; } /** *
     * [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
     * 
* * .google.spanner.v1.QueryPlan query_plan = 1; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan.Builder getQueryPlanBuilder() { onChanged(); return getQueryPlanFieldBuilder().getBuilder(); } /** *
     * [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
     * 
* * .google.spanner.v1.QueryPlan query_plan = 1; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlanOrBuilder getQueryPlanOrBuilder() { if (queryPlanBuilder_ != null) { return queryPlanBuilder_.getMessageOrBuilder(); } else { return queryPlan_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan.getDefaultInstance() : queryPlan_; } } /** *
     * [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
     * 
* * .google.spanner.v1.QueryPlan query_plan = 1; */ private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan, nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlanOrBuilder> getQueryPlanFieldBuilder() { if (queryPlanBuilder_ == null) { queryPlanBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan, nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlan.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.QueryPlanOrBuilder>( getQueryPlan(), getParentForChildren(), isClean()); queryPlan_ = null; } return queryPlanBuilder_; } private nl.topicus.jdbc.shaded.com.google.protobuf.Struct queryStats_ = null; private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.protobuf.Struct, nl.topicus.jdbc.shaded.com.google.protobuf.Struct.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.StructOrBuilder> queryStatsBuilder_; /** *
     * Aggregated statistics from the execution of the query. Only present when
     * the query is profiled. For example, a query could return the statistics as
     * follows:
     *     {
     *       "rows_returned": "3",
     *       "elapsed_time": "1.22 secs",
     *       "cpu_time": "1.19 secs"
     *     }
     * 
* * .google.protobuf.Struct query_stats = 2; */ public boolean hasQueryStats() { return queryStatsBuilder_ != null || queryStats_ != null; } /** *
     * Aggregated statistics from the execution of the query. Only present when
     * the query is profiled. For example, a query could return the statistics as
     * follows:
     *     {
     *       "rows_returned": "3",
     *       "elapsed_time": "1.22 secs",
     *       "cpu_time": "1.19 secs"
     *     }
     * 
* * .google.protobuf.Struct query_stats = 2; */ public nl.topicus.jdbc.shaded.com.google.protobuf.Struct getQueryStats() { if (queryStatsBuilder_ == null) { return queryStats_ == null ? nl.topicus.jdbc.shaded.com.google.protobuf.Struct.getDefaultInstance() : queryStats_; } else { return queryStatsBuilder_.getMessage(); } } /** *
     * Aggregated statistics from the execution of the query. Only present when
     * the query is profiled. For example, a query could return the statistics as
     * follows:
     *     {
     *       "rows_returned": "3",
     *       "elapsed_time": "1.22 secs",
     *       "cpu_time": "1.19 secs"
     *     }
     * 
* * .google.protobuf.Struct query_stats = 2; */ public Builder setQueryStats(nl.topicus.jdbc.shaded.com.google.protobuf.Struct value) { if (queryStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } queryStats_ = value; onChanged(); } else { queryStatsBuilder_.setMessage(value); } return this; } /** *
     * Aggregated statistics from the execution of the query. Only present when
     * the query is profiled. For example, a query could return the statistics as
     * follows:
     *     {
     *       "rows_returned": "3",
     *       "elapsed_time": "1.22 secs",
     *       "cpu_time": "1.19 secs"
     *     }
     * 
* * .google.protobuf.Struct query_stats = 2; */ public Builder setQueryStats( nl.topicus.jdbc.shaded.com.google.protobuf.Struct.Builder builderForValue) { if (queryStatsBuilder_ == null) { queryStats_ = builderForValue.build(); onChanged(); } else { queryStatsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Aggregated statistics from the execution of the query. Only present when
     * the query is profiled. For example, a query could return the statistics as
     * follows:
     *     {
     *       "rows_returned": "3",
     *       "elapsed_time": "1.22 secs",
     *       "cpu_time": "1.19 secs"
     *     }
     * 
* * .google.protobuf.Struct query_stats = 2; */ public Builder mergeQueryStats(nl.topicus.jdbc.shaded.com.google.protobuf.Struct value) { if (queryStatsBuilder_ == null) { if (queryStats_ != null) { queryStats_ = nl.topicus.jdbc.shaded.com.google.protobuf.Struct.newBuilder(queryStats_).mergeFrom(value).buildPartial(); } else { queryStats_ = value; } onChanged(); } else { queryStatsBuilder_.mergeFrom(value); } return this; } /** *
     * Aggregated statistics from the execution of the query. Only present when
     * the query is profiled. For example, a query could return the statistics as
     * follows:
     *     {
     *       "rows_returned": "3",
     *       "elapsed_time": "1.22 secs",
     *       "cpu_time": "1.19 secs"
     *     }
     * 
* * .google.protobuf.Struct query_stats = 2; */ public Builder clearQueryStats() { if (queryStatsBuilder_ == null) { queryStats_ = null; onChanged(); } else { queryStats_ = null; queryStatsBuilder_ = null; } return this; } /** *
     * Aggregated statistics from the execution of the query. Only present when
     * the query is profiled. For example, a query could return the statistics as
     * follows:
     *     {
     *       "rows_returned": "3",
     *       "elapsed_time": "1.22 secs",
     *       "cpu_time": "1.19 secs"
     *     }
     * 
* * .google.protobuf.Struct query_stats = 2; */ public nl.topicus.jdbc.shaded.com.google.protobuf.Struct.Builder getQueryStatsBuilder() { onChanged(); return getQueryStatsFieldBuilder().getBuilder(); } /** *
     * Aggregated statistics from the execution of the query. Only present when
     * the query is profiled. For example, a query could return the statistics as
     * follows:
     *     {
     *       "rows_returned": "3",
     *       "elapsed_time": "1.22 secs",
     *       "cpu_time": "1.19 secs"
     *     }
     * 
* * .google.protobuf.Struct query_stats = 2; */ public nl.topicus.jdbc.shaded.com.google.protobuf.StructOrBuilder getQueryStatsOrBuilder() { if (queryStatsBuilder_ != null) { return queryStatsBuilder_.getMessageOrBuilder(); } else { return queryStats_ == null ? nl.topicus.jdbc.shaded.com.google.protobuf.Struct.getDefaultInstance() : queryStats_; } } /** *
     * Aggregated statistics from the execution of the query. Only present when
     * the query is profiled. For example, a query could return the statistics as
     * follows:
     *     {
     *       "rows_returned": "3",
     *       "elapsed_time": "1.22 secs",
     *       "cpu_time": "1.19 secs"
     *     }
     * 
* * .google.protobuf.Struct query_stats = 2; */ private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.protobuf.Struct, nl.topicus.jdbc.shaded.com.google.protobuf.Struct.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.StructOrBuilder> getQueryStatsFieldBuilder() { if (queryStatsBuilder_ == null) { queryStatsBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.protobuf.Struct, nl.topicus.jdbc.shaded.com.google.protobuf.Struct.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.StructOrBuilder>( getQueryStats(), getParentForChildren(), isClean()); queryStats_ = null; } return queryStatsBuilder_; } public final Builder setUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.spanner.v1.ResultSetStats) } // @@protoc_insertion_point(class_scope:google.spanner.v1.ResultSetStats) private static final nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats(); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final nl.topicus.jdbc.shaded.com.google.protobuf.Parser PARSER = new nl.topicus.jdbc.shaded.com.google.protobuf.AbstractParser() { public ResultSetStats parsePartialFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return new ResultSetStats(input, extensionRegistry); } }; public static nl.topicus.jdbc.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public nl.topicus.jdbc.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ResultSetStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy