public static final class ResultSet.Builder extends GeneratedMessageV3.Builder<ResultSet.Builder> implements ResultSetOrBuilder
Results from Read or
ExecuteSql.
Protobuf type google.spanner.v1.ResultSet
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResultSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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;
Parameter
Returns
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
|
Returns
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;
Parameters
Returns
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
Returns
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;
Returns
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
Returns
build()
Returns
buildPartial()
public ResultSet buildPartial()
Returns
clear()
public ResultSet.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ResultSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public ResultSet.Builder clearMetadata()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ResultSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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;
Returns
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;
Returns
clone()
public ResultSet.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ResultSet getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public ResultSetMetadata getMetadata()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
Returns
public ResultSetMetadata.Builder getMetadataBuilder()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
Returns
public ResultSetMetadataOrBuilder getMetadataOrBuilder()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
Returns
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
Returns
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
Returns
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;
Returns
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
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;
Returns
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
Returns
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;
Returns
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;
Returns
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;
Returns
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.
|
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public ResultSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ResultSet.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(ResultSet other)
public ResultSet.Builder mergeFrom(ResultSet other)
Parameter
Returns
public ResultSet.Builder mergeMetadata(ResultSetMetadata value)
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
Parameter
Returns
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResultSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ResultSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ResultSet.Builder setMetadata(ResultSetMetadata value)
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
Parameter
Returns
public ResultSet.Builder setMetadata(ResultSetMetadata.Builder builderForValue)
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResultSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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;
Parameters
Returns
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
Returns
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;
Parameter
Returns
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;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ResultSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides