Class ResultSetMetadata.Builder (6.77.0)

public static final class ResultSetMetadata.Builder extends GeneratedMessageV3.Builder<ResultSetMetadata.Builder> implements ResultSetMetadataOrBuilder

Metadata about a ResultSet or PartialResultSet.

Protobuf type google.spanner.v1.ResultSetMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResultSetMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResultSetMetadata.Builder
Overrides

build()

public ResultSetMetadata build()
Returns
Type Description
ResultSetMetadata

buildPartial()

public ResultSetMetadata buildPartial()
Returns
Type Description
ResultSetMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ResultSetMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResultSetMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResultSetMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResultSetMetadata.Builder
Overrides

clearRowType()

public ResultSetMetadata.Builder clearRowType()

Indicates the field names and types for the rows in the result set. For example, a SQL query like "SELECT UserId, UserName FROM Users" could return a row_type value like:

 "fields": [
   { "name": "UserId", "type": { "code": "INT64" } },
   { "name": "UserName", "type": { "code": "STRING" } },
 ]

.google.spanner.v1.StructType row_type = 1;

Returns
Type Description
ResultSetMetadata.Builder

clearTransaction()

public ResultSetMetadata.Builder clearTransaction()

If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.

.google.spanner.v1.Transaction transaction = 2;

Returns
Type Description
ResultSetMetadata.Builder

clearUndeclaredParameters()

public ResultSetMetadata.Builder clearUndeclaredParameters()

A SQL query can be parameterized. In PLAN mode, these parameters can be undeclared. This indicates the field names and types for those undeclared parameters in the SQL query. For example, a SQL query like "SELECT * FROM Users where UserId = @userId and UserName = @userName " could return a undeclared_parameters value like:

 "fields": [
   { "name": "UserId", "type": { "code": "INT64" } },
   { "name": "UserName", "type": { "code": "STRING" } },
 ]

.google.spanner.v1.StructType undeclared_parameters = 3;

Returns
Type Description
ResultSetMetadata.Builder

clone()

public ResultSetMetadata.Builder clone()
Returns
Type Description
ResultSetMetadata.Builder
Overrides

getDefaultInstanceForType()

public ResultSetMetadata getDefaultInstanceForType()
Returns
Type Description
ResultSetMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRowType()

public StructType getRowType()

Indicates the field names and types for the rows in the result set. For example, a SQL query like "SELECT UserId, UserName FROM Users" could return a row_type value like:

 "fields": [
   { "name": "UserId", "type": { "code": "INT64" } },
   { "name": "UserName", "type": { "code": "STRING" } },
 ]

.google.spanner.v1.StructType row_type = 1;