public final class ResultSetMetadata extends GeneratedMessageV3 implements ResultSetMetadataOrBuilder
Metadata about a ResultSet or PartialResultSet.
Protobuf type google.spanner.v1.ResultSetMetadata
Fields
public static final int ROW_TYPE_FIELD_NUMBER
Field Value
public static final int TRANSACTION_FIELD_NUMBER
Field Value
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public static ResultSetMetadata getDefaultInstance()
Returns
public ResultSetMetadata getDefaultInstanceForType()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public Parser<ResultSetMetadata> getParserForType()
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 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 int getSerializedSize()
Returns
Overrides
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 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 final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public static ResultSetMetadata.Builder newBuilder()
Returns
public static ResultSetMetadata.Builder newBuilder(ResultSetMetadata prototype)
Parameter
Returns
public ResultSetMetadata.Builder newBuilderForType()
Returns
protected ResultSetMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static ResultSetMetadata parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ResultSetMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResultSetMetadata parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static ResultSetMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResultSetMetadata parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static ResultSetMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResultSetMetadata parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ResultSetMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResultSetMetadata parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ResultSetMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ResultSetMetadata parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static ResultSetMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<ResultSetMetadata> parser()
Returns
public ResultSetMetadata.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions