public final class ResultSetMetadata extends GeneratedMessageV3 implements ResultSetMetadataOrBuilder
Metadata about a ResultSet or PartialResultSet.
Protobuf type google.spanner.v1.ResultSetMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ROW_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TRANSACTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int UNDECLARED_PARAMETERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static ResultSetMetadata getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ResultSetMetadata.Builder newBuilder()
public static ResultSetMetadata.Builder newBuilder(ResultSetMetadata prototype)
public static ResultSetMetadata parseDelimitedFrom(InputStream input)
public static ResultSetMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ResultSetMetadata parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static ResultSetMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ResultSetMetadata parseFrom(ByteString data)
public static ResultSetMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ResultSetMetadata parseFrom(CodedInputStream input)
public static ResultSetMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ResultSetMetadata parseFrom(InputStream input)
public static ResultSetMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ResultSetMetadata parseFrom(ByteBuffer data)
public static ResultSetMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ResultSetMetadata> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public ResultSetMetadata getDefaultInstanceForType()
public Parser<ResultSetMetadata> getParserForType()
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 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 int getSerializedSize()
Returns |
Type |
Description |
int |
|
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;
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 StructType getUndeclaredParameters()
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 |
StructType |
The undeclaredParameters.
|
public StructTypeOrBuilder getUndeclaredParametersOrBuilder()
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;
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.
|
public boolean hasUndeclaredParameters()
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 |
boolean |
Whether the undeclaredParameters field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ResultSetMetadata.Builder newBuilderForType()
protected ResultSetMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public ResultSetMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides