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
public static final Descriptors.Descriptor getDescriptor()
Methods
public ResultSetMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ResultSetMetadata build()
public ResultSetMetadata buildPartial()
public ResultSetMetadata.Builder clear()
Overrides
public ResultSetMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ResultSetMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
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;
public ResultSetMetadata.Builder clone()
Overrides
public ResultSetMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
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;
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;
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;
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()
Overrides
public final boolean isInitialized()
Overrides
public ResultSetMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ResultSetMetadata.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public ResultSetMetadata.Builder mergeFrom(ResultSetMetadata other)
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;
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;
public final ResultSetMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ResultSetMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ResultSetMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
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;
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;
public final ResultSetMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides