Package com.google.spanner.v1
Class ResultSetStats.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typegoogle.spanner.v1.ResultSetStats
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultSetStats.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ResultSetStatsbuild()ResultSetStatsbuildPartial()ResultSetStats.Builderclear()ResultSetStats.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ResultSetStats.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ResultSetStats.BuilderclearQueryPlan()[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.ResultSetStats.BuilderclearQueryStats()Aggregated statistics from the execution of the query.ResultSetStats.BuilderclearRowCount()ResultSetStats.BuilderclearRowCountExact()Standard DML returns an exact count of rows that were modified.ResultSetStats.BuilderclearRowCountLowerBound()Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.ResultSetStats.Builderclone()ResultSetStatsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()QueryPlangetQueryPlan()[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.QueryPlan.BuildergetQueryPlanBuilder()[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.QueryPlanOrBuildergetQueryPlanOrBuilder()[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.com.google.protobuf.StructgetQueryStats()Aggregated statistics from the execution of the query.com.google.protobuf.Struct.BuildergetQueryStatsBuilder()Aggregated statistics from the execution of the query.com.google.protobuf.StructOrBuildergetQueryStatsOrBuilder()Aggregated statistics from the execution of the query.ResultSetStats.RowCountCasegetRowCountCase()longgetRowCountExact()Standard DML returns an exact count of rows that were modified.longgetRowCountLowerBound()Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.booleanhasQueryPlan()[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.booleanhasQueryStats()Aggregated statistics from the execution of the query.booleanhasRowCountExact()Standard DML returns an exact count of rows that were modified.booleanhasRowCountLowerBound()Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ResultSetStats.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ResultSetStats.BuildermergeFrom(com.google.protobuf.Message other)ResultSetStats.BuildermergeFrom(ResultSetStats other)ResultSetStats.BuildermergeQueryPlan(QueryPlan value)[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.ResultSetStats.BuildermergeQueryStats(com.google.protobuf.Struct value)Aggregated statistics from the execution of the query.ResultSetStats.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ResultSetStats.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ResultSetStats.BuildersetQueryPlan(QueryPlan value)[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.ResultSetStats.BuildersetQueryPlan(QueryPlan.Builder builderForValue)[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.ResultSetStats.BuildersetQueryStats(com.google.protobuf.Struct value)Aggregated statistics from the execution of the query.ResultSetStats.BuildersetQueryStats(com.google.protobuf.Struct.Builder builderForValue)Aggregated statistics from the execution of the query.ResultSetStats.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ResultSetStats.BuildersetRowCountExact(long value)Standard DML returns an exact count of rows that were modified.ResultSetStats.BuildersetRowCountLowerBound(long value)Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public ResultSetStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ResultSetStats build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ResultSetStats buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ResultSetStats.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
public ResultSetStats.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
clearOneof
public ResultSetStats.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public ResultSetStats.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResultSetStats.Builder>
-
mergeFrom
public ResultSetStats.Builder mergeFrom(ResultSetStats other)
-
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
public ResultSetStats.RowCountCase getRowCountCase()
- Specified by:
getRowCountCasein interfaceResultSetStatsOrBuilder
-
clearRowCount
public ResultSetStats.Builder 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
public QueryPlan 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
public ResultSetStats.Builder setQueryPlan(QueryPlan value)
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;
-
setQueryPlan
public ResultSetStats.Builder setQueryPlan(QueryPlan.Builder builderForValue)
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;
-
mergeQueryPlan
public ResultSetStats.Builder mergeQueryPlan(QueryPlan value)
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;
-
clearQueryPlan
public ResultSetStats.Builder clearQueryPlan()
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;
-
getQueryPlanBuilder
public QueryPlan.Builder getQueryPlanBuilder()
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.
.google.spanner.v1.QueryPlan query_plan = 1;
-
getQueryPlanOrBuilder
public QueryPlanOrBuilder 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
public ResultSetStats.Builder setQueryStats(com.google.protobuf.Struct value)
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
public ResultSetStats.Builder setQueryStats(com.google.protobuf.Struct.Builder builderForValue)
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
public ResultSetStats.Builder mergeQueryStats(com.google.protobuf.Struct value)
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
public ResultSetStats.Builder 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
public ResultSetStats.Builder setRowCountExact(long value)
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
public ResultSetStats.Builder 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
public ResultSetStats.Builder setRowCountLowerBound(long value)
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
public ResultSetStats.Builder 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>
-
-