Package com.google.spanner.v1
Class ResultSetStats.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
com.google.spanner.v1.ResultSetStats.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ResultSetStatsOrBuilder,Cloneable
- Enclosing class:
- ResultSetStats
public static final class ResultSetStats.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
implements ResultSetStatsOrBuilder
Additional statistics about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].Protobuf type
google.spanner.v1.ResultSetStats-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.Aggregated statistics from the execution of the query.Standard DML returns an exact count of rows that were modified.Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.com.google.protobuf.StructAggregated statistics from the execution of the query.com.google.protobuf.Struct.BuilderAggregated statistics from the execution of the query.com.google.protobuf.StructOrBuilderAggregated statistics from the execution of the query.longStandard DML returns an exact count of rows that were modified.longPartitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.boolean[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.booleanAggregated statistics from the execution of the query.booleanStandard DML returns an exact count of rows that were modified.booleanPartitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ResultSetStats other) mergeQueryPlan(QueryPlan value) [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.mergeQueryStats(com.google.protobuf.Struct value) Aggregated statistics from the execution of the query.final ResultSetStats.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setQueryPlan(QueryPlan value) [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.setQueryPlan(QueryPlan.Builder builderForValue) [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.setQueryStats(com.google.protobuf.Struct value) Aggregated statistics from the execution of the query.setQueryStats(com.google.protobuf.Struct.Builder builderForValue) Aggregated statistics from the execution of the query.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRowCountExact(long value) Standard DML returns an exact count of rows that were modified.setRowCountLowerBound(long value) Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.final ResultSetStats.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
setField
public ResultSetStats.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
setRepeatedField
public ResultSetStats.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
addRepeatedField
public ResultSetStats.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResultSetStats.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
mergeFrom
public ResultSetStats.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResultSetStats.Builder>- Throws:
IOException
-
getRowCountCase
- Specified by:
getRowCountCasein interfaceResultSetStatsOrBuilder
-
clearRowCount
-
hasQueryPlan
public boolean hasQueryPlan()[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;- Specified by:
hasQueryPlanin interfaceResultSetStatsOrBuilder- Returns:
- Whether the queryPlan field is set.
-
getQueryPlan
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;- Specified by:
getQueryPlanin interfaceResultSetStatsOrBuilder- Returns:
- The queryPlan.
-
setQueryPlan
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1; -
setQueryPlan
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1; -
mergeQueryPlan
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1; -
clearQueryPlan
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1; -
getQueryPlanBuilder
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1; -
getQueryPlanOrBuilder
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;- Specified by:
getQueryPlanOrBuilderin interfaceResultSetStatsOrBuilder
-
hasQueryStats
public boolean hasQueryStats()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;- Specified by:
hasQueryStatsin interfaceResultSetStatsOrBuilder- Returns:
- Whether the queryStats field is set.
-
getQueryStats
public com.google.protobuf.Struct getQueryStats()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;- Specified by:
getQueryStatsin interfaceResultSetStatsOrBuilder- Returns:
- The queryStats.
-
setQueryStats
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; -
setQueryStats
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; -
mergeQueryStats
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; -
clearQueryStats
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; -
getQueryStatsBuilder
public com.google.protobuf.Struct.Builder getQueryStatsBuilder()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; -
getQueryStatsOrBuilder
public com.google.protobuf.StructOrBuilder getQueryStatsOrBuilder()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;- Specified by:
getQueryStatsOrBuilderin interfaceResultSetStatsOrBuilder
-
hasRowCountExact
public boolean hasRowCountExact()Standard DML returns an exact count of rows that were modified.
int64 row_count_exact = 3;- Specified by:
hasRowCountExactin interfaceResultSetStatsOrBuilder- Returns:
- Whether the rowCountExact field is set.
-
getRowCountExact
public long getRowCountExact()Standard DML returns an exact count of rows that were modified.
int64 row_count_exact = 3;- Specified by:
getRowCountExactin interfaceResultSetStatsOrBuilder- Returns:
- The rowCountExact.
-
setRowCountExact
Standard DML returns an exact count of rows that were modified.
int64 row_count_exact = 3;- Parameters:
value- The rowCountExact to set.- Returns:
- This builder for chaining.
-
clearRowCountExact
Standard DML returns an exact count of rows that were modified.
int64 row_count_exact = 3;- Returns:
- This builder for chaining.
-
hasRowCountLowerBound
public boolean hasRowCountLowerBound()Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.
int64 row_count_lower_bound = 4;- Specified by:
hasRowCountLowerBoundin interfaceResultSetStatsOrBuilder- Returns:
- Whether the rowCountLowerBound field is set.
-
getRowCountLowerBound
public long getRowCountLowerBound()Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.
int64 row_count_lower_bound = 4;- Specified by:
getRowCountLowerBoundin interfaceResultSetStatsOrBuilder- Returns:
- The rowCountLowerBound.
-
setRowCountLowerBound
Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.
int64 row_count_lower_bound = 4;- Parameters:
value- The rowCountLowerBound to set.- Returns:
- This builder for chaining.
-
clearRowCountLowerBound
Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.
int64 row_count_lower_bound = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ResultSetStats.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
mergeUnknownFields
public final ResultSetStats.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-