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
Methods
public ResultSetMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ResultSetMetadata build()
Returns
public ResultSetMetadata buildPartial()
Returns
public ResultSetMetadata.Builder clear()
Returns
Overrides
public ResultSetMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public ResultSetMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
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
public ResultSetMetadata.Builder clone()
Returns
Overrides
public ResultSetMetadata getDefaultInstanceForType()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
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
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
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
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
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
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
Type | Description |
boolean | Whether the rowType field is set.
|
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
Type | Description |
boolean | Whether the transaction field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ResultSetMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public ResultSetMetadata.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public ResultSetMetadata.Builder mergeFrom(ResultSetMetadata other)
Parameter
Returns
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
Returns
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
Returns
public final ResultSetMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public ResultSetMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ResultSetMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
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
Returns
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
Returns
public final ResultSetMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides