Class ResultSetMetadata.Builder (6.25.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResultSetMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResultSetMetadata.Builder
Overrides

build()

public ResultSetMetadata build()
Returns
TypeDescription
ResultSetMetadata

buildPartial()

public ResultSetMetadata buildPartial()
Returns
TypeDescription
ResultSetMetadata

clear()

public ResultSetMetadata.Builder clear()
Returns
TypeDescription
ResultSetMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ResultSetMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResultSetMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResultSetMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ResultSetMetadata.Builder

clone()

public ResultSetMetadata.Builder clone()
Returns
TypeDescription
ResultSetMetadata.Builder
Overrides

getDefaultInstanceForType()

public ResultSetMetadata getDefaultInstanceForType()
Returns
TypeDescription
ResultSetMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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;

Returns
TypeDescription
StructType

The rowType.

getRowTypeBuilder()

public StructType.Builder getRowTypeBuilder()

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
TypeDescription
StructType.Builder

getRowTypeOrBuilder()

public StructTypeOrBuilder getRowTypeOrBuilder()

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
TypeDescription
StructTypeOrBuilder

getTransaction()

public Transaction getTransaction()

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
TypeDescription
Transaction

The transaction.

getTransactionBuilder()

public Transaction.Builder getTransactionBuilder()

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
TypeDescription
Transaction.Builder

getTransactionOrBuilder()

public TransactionOrBuilder getTransactionOrBuilder()

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
TypeDescription
TransactionOrBuilder

hasRowType()

public boolean hasRowType()

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
TypeDescription
boolean

Whether the rowType field is set.

hasTransaction()

public boolean hasTransaction()

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
TypeDescription
boolean

Whether the transaction field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResultSetMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResultSetMetadata.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResultSetMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ResultSetMetadata.Builder
Overrides

mergeFrom(ResultSetMetadata other)

public ResultSetMetadata.Builder mergeFrom(ResultSetMetadata other)
Parameter
NameDescription
otherResultSetMetadata
Returns
TypeDescription
ResultSetMetadata.Builder

mergeRowType(StructType value)

public ResultSetMetadata.Builder mergeRowType(StructType value)

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;

Parameter
NameDescription
valueStructType
Returns
TypeDescription
ResultSetMetadata.Builder

mergeTransaction(Transaction value)

public ResultSetMetadata.Builder mergeTransaction(Transaction value)

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;

Parameter
NameDescription
valueTransaction
Returns
TypeDescription
ResultSetMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResultSetMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResultSetMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ResultSetMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResultSetMetadata.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResultSetMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ResultSetMetadata.Builder
Overrides

setRowType(StructType value)

public ResultSetMetadata.Builder setRowType(StructType value)

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;

Parameter
NameDescription
valueStructType
Returns
TypeDescription
ResultSetMetadata.Builder

setRowType(StructType.Builder builderForValue)

public ResultSetMetadata.Builder setRowType(StructType.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueStructType.Builder
Returns
TypeDescription
ResultSetMetadata.Builder

setTransaction(Transaction value)

public ResultSetMetadata.Builder setTransaction(Transaction value)

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;

Parameter
NameDescription
valueTransaction
Returns
TypeDescription
ResultSetMetadata.Builder

setTransaction(Transaction.Builder builderForValue)

public ResultSetMetadata.Builder setTransaction(Transaction.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueTransaction.Builder
Returns
TypeDescription
ResultSetMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ResultSetMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResultSetMetadata.Builder
Overrides