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 typegoogle.spanner.v1.ResultSetStats
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultSetStats.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ResultSetStats
build()
ResultSetStats
buildPartial()
ResultSetStats.Builder
clear()
ResultSetStats.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ResultSetStats.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ResultSetStats.Builder
clearQueryPlan()
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.ResultSetStats.Builder
clearQueryStats()
Aggregated statistics from the execution of the query.ResultSetStats.Builder
clearRowCount()
ResultSetStats.Builder
clearRowCountExact()
Standard DML returns an exact count of rows that were modified.ResultSetStats.Builder
clearRowCountLowerBound()
Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.ResultSetStats.Builder
clone()
ResultSetStats
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
QueryPlan
getQueryPlan()
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.QueryPlan.Builder
getQueryPlanBuilder()
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.QueryPlanOrBuilder
getQueryPlanOrBuilder()
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.com.google.protobuf.Struct
getQueryStats()
Aggregated statistics from the execution of the query.com.google.protobuf.Struct.Builder
getQueryStatsBuilder()
Aggregated statistics from the execution of the query.com.google.protobuf.StructOrBuilder
getQueryStatsOrBuilder()
Aggregated statistics from the execution of the query.ResultSetStats.RowCountCase
getRowCountCase()
long
getRowCountExact()
Standard DML returns an exact count of rows that were modified.long
getRowCountLowerBound()
Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.boolean
hasQueryPlan()
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.boolean
hasQueryStats()
Aggregated statistics from the execution of the query.boolean
hasRowCountExact()
Standard DML returns an exact count of rows that were modified.boolean
hasRowCountLowerBound()
Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ResultSetStats.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ResultSetStats.Builder
mergeFrom(com.google.protobuf.Message other)
ResultSetStats.Builder
mergeFrom(ResultSetStats other)
ResultSetStats.Builder
mergeQueryPlan(QueryPlan value)
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.ResultSetStats.Builder
mergeQueryStats(com.google.protobuf.Struct value)
Aggregated statistics from the execution of the query.ResultSetStats.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ResultSetStats.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ResultSetStats.Builder
setQueryPlan(QueryPlan value)
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.ResultSetStats.Builder
setQueryPlan(QueryPlan.Builder builderForValue)
[QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result.ResultSetStats.Builder
setQueryStats(com.google.protobuf.Struct value)
Aggregated statistics from the execution of the query.ResultSetStats.Builder
setQueryStats(com.google.protobuf.Struct.Builder builderForValue)
Aggregated statistics from the execution of the query.ResultSetStats.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ResultSetStats.Builder
setRowCountExact(long value)
Standard DML returns an exact count of rows that were modified.ResultSetStats.Builder
setRowCountLowerBound(long value)
Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.ResultSetStats.Builder
setUnknownFields(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
clear
public ResultSetStats.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
getDefaultInstanceForType
public ResultSetStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ResultSetStats build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ResultSetStats buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ResultSetStats.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
setField
public ResultSetStats.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
clearField
public ResultSetStats.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
clearOneof
public ResultSetStats.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
setRepeatedField
public ResultSetStats.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
addRepeatedField
public ResultSetStats.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
mergeFrom
public ResultSetStats.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ResultSetStats.Builder>
-
mergeFrom
public ResultSetStats.Builder mergeFrom(ResultSetStats other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ResultSetStats.Builder>
- Throws:
IOException
-
getRowCountCase
public ResultSetStats.RowCountCase getRowCountCase()
- Specified by:
getRowCountCase
in 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:
hasQueryPlan
in 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:
getQueryPlan
in 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:
getQueryPlanOrBuilder
in 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:
hasQueryStats
in 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:
getQueryStats
in 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:
getQueryStatsOrBuilder
in interfaceResultSetStatsOrBuilder
-
hasRowCountExact
public boolean hasRowCountExact()
Standard DML returns an exact count of rows that were modified.
int64 row_count_exact = 3;
- Specified by:
hasRowCountExact
in 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:
getRowCountExact
in 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:
hasRowCountLowerBound
in 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:
getRowCountLowerBound
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
mergeUnknownFields
public final ResultSetStats.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ResultSetStats.Builder>
-
-