public static final class ResultSet.Builder extends GeneratedMessageV3.Builder<ResultSet.Builder> implements ResultSetOrBuilder
Results from Read or
ExecuteSql.
Protobuf type google.spanner.v1.ResultSet
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllRows(Iterable<? extends ListValue> values)
public ResultSet.Builder addAllRows(Iterable<? extends ListValue> values)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.protobuf.ListValue>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResultSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addRows(ListValue value)
public ResultSet.Builder addRows(ListValue value)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
addRows(ListValue.Builder builderForValue)
public ResultSet.Builder addRows(ListValue.Builder builderForValue)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Parameter |
Name |
Description |
builderForValue |
Builder
|
addRows(int index, ListValue value)
public ResultSet.Builder addRows(int index, ListValue value)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
addRows(int index, ListValue.Builder builderForValue)
public ResultSet.Builder addRows(int index, ListValue.Builder builderForValue)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Parameters |
Name |
Description |
index |
int
|
builderForValue |
Builder
|
addRowsBuilder()
public ListValue.Builder addRowsBuilder()
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
addRowsBuilder(int index)
public ListValue.Builder addRowsBuilder(int index)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Parameter |
Name |
Description |
index |
int
|
build()
buildPartial()
public ResultSet buildPartial()
clear()
public ResultSet.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ResultSet.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ResultSet.Builder clearMetadata()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public ResultSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPrecommitToken()
public ResultSet.Builder clearPrecommitToken()
Optional. A precommit token will be included if the read-write transaction
is on a multiplexed session.
The precommit token with the highest sequence number from this transaction
attempt should be passed to the
Commit request for this transaction.
This feature is not yet supported and will result in an UNIMPLEMENTED
error.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
clearRows()
public ResultSet.Builder clearRows()
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
clearStats()
public ResultSet.Builder clearStats()
Query plan and execution statistics for the SQL statement that
produced this result set. These can be requested by setting
ExecuteSqlRequest.query_mode.
DML statements always produce stats containing the number of rows
modified, unless executed using the
ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode.
Other fields may or may not be populated, based on the
ExecuteSqlRequest.query_mode.
.google.spanner.v1.ResultSetStats stats = 3;
clone()
public ResultSet.Builder clone()
Overrides
getDefaultInstanceForType()
public ResultSet getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public ResultSetMetadata getMetadata()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
public ResultSetMetadata.Builder getMetadataBuilder()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
public ResultSetMetadataOrBuilder getMetadataOrBuilder()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
getPrecommitToken()
public MultiplexedSessionPrecommitToken getPrecommitToken()
Optional. A precommit token will be included if the read-write transaction
is on a multiplexed session.
The precommit token with the highest sequence number from this transaction
attempt should be passed to the
Commit request for this transaction.
This feature is not yet supported and will result in an UNIMPLEMENTED
error.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
getPrecommitTokenBuilder()
public MultiplexedSessionPrecommitToken.Builder getPrecommitTokenBuilder()
Optional. A precommit token will be included if the read-write transaction
is on a multiplexed session.
The precommit token with the highest sequence number from this transaction
attempt should be passed to the
Commit request for this transaction.
This feature is not yet supported and will result in an UNIMPLEMENTED
error.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
getPrecommitTokenOrBuilder()
public MultiplexedSessionPrecommitTokenOrBuilder getPrecommitTokenOrBuilder()
Optional. A precommit token will be included if the read-write transaction
is on a multiplexed session.
The precommit token with the highest sequence number from this transaction
attempt should be passed to the
Commit request for this transaction.
This feature is not yet supported and will result in an UNIMPLEMENTED
error.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
getRows(int index)
public ListValue getRows(int index)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Parameter |
Name |
Description |
index |
int
|
getRowsBuilder(int index)
public ListValue.Builder getRowsBuilder(int index)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Parameter |
Name |
Description |
index |
int
|
getRowsBuilderList()
public List<ListValue.Builder> getRowsBuilderList()
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
getRowsCount()
public int getRowsCount()
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Returns |
Type |
Description |
int |
|
getRowsList()
public List<ListValue> getRowsList()
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
getRowsOrBuilder(int index)
public ListValueOrBuilder getRowsOrBuilder(int index)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Parameter |
Name |
Description |
index |
int
|
getRowsOrBuilderList()
public List<? extends ListValueOrBuilder> getRowsOrBuilderList()
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Returns |
Type |
Description |
List<? extends com.google.protobuf.ListValueOrBuilder> |
|
getStats()
public ResultSetStats getStats()
Query plan and execution statistics for the SQL statement that
produced this result set. These can be requested by setting
ExecuteSqlRequest.query_mode.
DML statements always produce stats containing the number of rows
modified, unless executed using the
ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode.
Other fields may or may not be populated, based on the
ExecuteSqlRequest.query_mode.
.google.spanner.v1.ResultSetStats stats = 3;
getStatsBuilder()
public ResultSetStats.Builder getStatsBuilder()
Query plan and execution statistics for the SQL statement that
produced this result set. These can be requested by setting
ExecuteSqlRequest.query_mode.
DML statements always produce stats containing the number of rows
modified, unless executed using the
ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode.
Other fields may or may not be populated, based on the
ExecuteSqlRequest.query_mode.
.google.spanner.v1.ResultSetStats stats = 3;
getStatsOrBuilder()
public ResultSetStatsOrBuilder getStatsOrBuilder()
Query plan and execution statistics for the SQL statement that
produced this result set. These can be requested by setting
ExecuteSqlRequest.query_mode.
DML statements always produce stats containing the number of rows
modified, unless executed using the
ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode.
Other fields may or may not be populated, based on the
ExecuteSqlRequest.query_mode.
.google.spanner.v1.ResultSetStats stats = 3;
public boolean hasMetadata()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
Returns |
Type |
Description |
boolean |
Whether the metadata field is set.
|
hasPrecommitToken()
public boolean hasPrecommitToken()
Optional. A precommit token will be included if the read-write transaction
is on a multiplexed session.
The precommit token with the highest sequence number from this transaction
attempt should be passed to the
Commit request for this transaction.
This feature is not yet supported and will result in an UNIMPLEMENTED
error.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the precommitToken field is set.
|
hasStats()
public boolean hasStats()
Query plan and execution statistics for the SQL statement that
produced this result set. These can be requested by setting
ExecuteSqlRequest.query_mode.
DML statements always produce stats containing the number of rows
modified, unless executed using the
ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode.
Other fields may or may not be populated, based on the
ExecuteSqlRequest.query_mode.
.google.spanner.v1.ResultSetStats stats = 3;
Returns |
Type |
Description |
boolean |
Whether the stats field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public ResultSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ResultSet.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(ResultSet other)
public ResultSet.Builder mergeFrom(ResultSet other)
public ResultSet.Builder mergeMetadata(ResultSetMetadata value)
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
mergePrecommitToken(MultiplexedSessionPrecommitToken value)
public ResultSet.Builder mergePrecommitToken(MultiplexedSessionPrecommitToken value)
Optional. A precommit token will be included if the read-write transaction
is on a multiplexed session.
The precommit token with the highest sequence number from this transaction
attempt should be passed to the
Commit request for this transaction.
This feature is not yet supported and will result in an UNIMPLEMENTED
error.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
mergeStats(ResultSetStats value)
public ResultSet.Builder mergeStats(ResultSetStats value)
Query plan and execution statistics for the SQL statement that
produced this result set. These can be requested by setting
ExecuteSqlRequest.query_mode.
DML statements always produce stats containing the number of rows
modified, unless executed using the
ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode.
Other fields may or may not be populated, based on the
ExecuteSqlRequest.query_mode.
.google.spanner.v1.ResultSetStats stats = 3;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResultSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeRows(int index)
public ResultSet.Builder removeRows(int index)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public ResultSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ResultSet.Builder setMetadata(ResultSetMetadata value)
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
public ResultSet.Builder setMetadata(ResultSetMetadata.Builder builderForValue)
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
setPrecommitToken(MultiplexedSessionPrecommitToken value)
public ResultSet.Builder setPrecommitToken(MultiplexedSessionPrecommitToken value)
Optional. A precommit token will be included if the read-write transaction
is on a multiplexed session.
The precommit token with the highest sequence number from this transaction
attempt should be passed to the
Commit request for this transaction.
This feature is not yet supported and will result in an UNIMPLEMENTED
error.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
setPrecommitToken(MultiplexedSessionPrecommitToken.Builder builderForValue)
public ResultSet.Builder setPrecommitToken(MultiplexedSessionPrecommitToken.Builder builderForValue)
Optional. A precommit token will be included if the read-write transaction
is on a multiplexed session.
The precommit token with the highest sequence number from this transaction
attempt should be passed to the
Commit request for this transaction.
This feature is not yet supported and will result in an UNIMPLEMENTED
error.
.google.spanner.v1.MultiplexedSessionPrecommitToken precommit_token = 5 [(.google.api.field_behavior) = OPTIONAL];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResultSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRows(int index, ListValue value)
public ResultSet.Builder setRows(int index, ListValue value)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
setRows(int index, ListValue.Builder builderForValue)
public ResultSet.Builder setRows(int index, ListValue.Builder builderForValue)
Each element in rows
is a row whose format is defined by
metadata.row_type. The ith element
in each row matches the ith field in
metadata.row_type. Elements are
encoded based on type as described
here.
repeated .google.protobuf.ListValue rows = 2;
Parameters |
Name |
Description |
index |
int
|
builderForValue |
Builder
|
setStats(ResultSetStats value)
public ResultSet.Builder setStats(ResultSetStats value)
Query plan and execution statistics for the SQL statement that
produced this result set. These can be requested by setting
ExecuteSqlRequest.query_mode.
DML statements always produce stats containing the number of rows
modified, unless executed using the
ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode.
Other fields may or may not be populated, based on the
ExecuteSqlRequest.query_mode.
.google.spanner.v1.ResultSetStats stats = 3;
setStats(ResultSetStats.Builder builderForValue)
public ResultSet.Builder setStats(ResultSetStats.Builder builderForValue)
Query plan and execution statistics for the SQL statement that
produced this result set. These can be requested by setting
ExecuteSqlRequest.query_mode.
DML statements always produce stats containing the number of rows
modified, unless executed using the
ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode.
Other fields may or may not be populated, based on the
ExecuteSqlRequest.query_mode.
.google.spanner.v1.ResultSetStats stats = 3;
setUnknownFields(UnknownFieldSet unknownFields)
public final ResultSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides