Class ResultSetMetadata (6.55.0)

public final class ResultSetMetadata extends GeneratedMessageV3 implements ResultSetMetadataOrBuilder

Metadata about a ResultSet or PartialResultSet.

Protobuf type google.spanner.v1.ResultSetMetadata

Static Fields

ROW_TYPE_FIELD_NUMBER

public static final int ROW_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

TRANSACTION_FIELD_NUMBER

public static final int TRANSACTION_FIELD_NUMBER
Field Value
TypeDescription
int

UNDECLARED_PARAMETERS_FIELD_NUMBER

public static final int UNDECLARED_PARAMETERS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ResultSetMetadata getDefaultInstance()
Returns
TypeDescription
ResultSetMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ResultSetMetadata.Builder newBuilder()
Returns
TypeDescription
ResultSetMetadata.Builder

newBuilder(ResultSetMetadata prototype)

public static ResultSetMetadata.Builder newBuilder(ResultSetMetadata prototype)
Parameter
NameDescription
prototypeResultSetMetadata
Returns
TypeDescription
ResultSetMetadata.Builder

parseDelimitedFrom(InputStream input)

public static ResultSetMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResultSetMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResultSetMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResultSetMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ResultSetMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ResultSetMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResultSetMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResultSetMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResultSetMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ResultSetMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResultSetMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResultSetMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResultSetMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ResultSetMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ResultSetMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResultSetMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ResultSetMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResultSetMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResultSetMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResultSetMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ResultSetMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ResultSetMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResultSetMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResultSetMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ResultSetMetadata> parser()
Returns
TypeDescription
Parser<ResultSetMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ResultSetMetadata getDefaultInstanceForType()
Returns
TypeDescription
ResultSetMetadata

getParserForType()

public Parser<ResultSetMetadata> getParserForType()
Returns
TypeDescription
Parser<ResultSetMetadata>
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.

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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

getUndeclaredParameters()

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

The undeclaredParameters.

getUndeclaredParametersOrBuilder()

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;

Returns
TypeDescription
StructTypeOrBuilder

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.

hasUndeclaredParameters()

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

Whether the undeclaredParameters field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ResultSetMetadata.Builder newBuilderForType()
Returns
TypeDescription
ResultSetMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResultSetMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ResultSetMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ResultSetMetadata.Builder toBuilder()
Returns
TypeDescription
ResultSetMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException