Class ResultSet.Builder (6.74.0)

public static final class ResultSet.Builder extends GeneratedMessageV3.Builder<ResultSet.Builder> implements ResultSetOrBuilder

Results from Read or ExecuteSql.

Protobuf type google.spanner.v1.ResultSet

Implements

ResultSetOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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
Type Description
ResultSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResultSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResultSet.Builder
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
Name Description
value ListValue
Returns
Type Description
ResultSet.Builder

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
Type Description
ResultSet.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;

Parameters
Name Description
index int
value ListValue
Returns
Type Description
ResultSet.Builder

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
Returns
Type Description
ResultSet.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;

Returns
Type Description
Builder

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
Returns
Type Description
Builder

build()

public ResultSet build()
Returns
Type Description
ResultSet

buildPartial()

public ResultSet buildPartial()
Returns
Type Description
ResultSet

clear()

public ResultSet.Builder clear()
Returns
Type Description
ResultSet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public