public final class ResultSetMetadata extends GeneratedMessageV3 implements ResultSetMetadataOrBuilder
Metadata about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].Protobuf type
google.spanner.v1.ResultSetMetadata| Modifier and Type | Class and Description |
|---|---|
static class |
ResultSetMetadata.Builder
Metadata about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ROW_TYPE_FIELD_NUMBER |
static int |
TRANSACTION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static ResultSetMetadata |
getDefaultInstance() |
ResultSetMetadata |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Parser<ResultSetMetadata> |
getParserForType() |
StructType |
getRowType()
Indicates the field names and types for the rows in the result
set.
|
StructTypeOrBuilder |
getRowTypeOrBuilder()
Indicates the field names and types for the rows in the result
set.
|
int |
getSerializedSize() |
Transaction |
getTransaction()
If the read or SQL query began a transaction as a side-effect, the
information about the new transaction is yielded here.
|
TransactionOrBuilder |
getTransactionOrBuilder()
If the read or SQL query began a transaction as a side-effect, the
information about the new transaction is yielded here.
|
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasRowType()
Indicates the field names and types for the rows in the result
set.
|
boolean |
hasTransaction()
If the read or SQL query began a transaction as a side-effect, the
information about the new transaction is yielded here.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ResultSetMetadata.Builder |
newBuilder() |
static ResultSetMetadata.Builder |
newBuilder(ResultSetMetadata prototype) |
ResultSetMetadata.Builder |
newBuilderForType() |
protected ResultSetMetadata.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static ResultSetMetadata |
parseDelimitedFrom(java.io.InputStream input) |
static ResultSetMetadata |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static ResultSetMetadata |
parseFrom(byte[] data) |
static ResultSetMetadata |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static ResultSetMetadata |
parseFrom(java.nio.ByteBuffer data) |
static ResultSetMetadata |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static ResultSetMetadata |
parseFrom(ByteString data) |
static ResultSetMetadata |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static ResultSetMetadata |
parseFrom(CodedInputStream input) |
static ResultSetMetadata |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static ResultSetMetadata |
parseFrom(java.io.InputStream input) |
static ResultSetMetadata |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<ResultSetMetadata> |
parser() |
ResultSetMetadata.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int ROW_TYPE_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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;hasRowType in interface ResultSetMetadataOrBuilderpublic 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;getRowType in interface ResultSetMetadataOrBuilderpublic 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;getRowTypeOrBuilder in interface ResultSetMetadataOrBuilderpublic 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;hasTransaction in interface ResultSetMetadataOrBuilderpublic 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;getTransaction in interface ResultSetMetadataOrBuilderpublic 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;getTransactionOrBuilder in interface ResultSetMetadataOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static ResultSetMetadata parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ResultSetMetadata parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ResultSetMetadata parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ResultSetMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ResultSetMetadata parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ResultSetMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ResultSetMetadata parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ResultSetMetadata parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ResultSetMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ResultSetMetadata parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ResultSetMetadata parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ResultSetMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic ResultSetMetadata.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static ResultSetMetadata.Builder newBuilder()
public static ResultSetMetadata.Builder newBuilder(ResultSetMetadata prototype)
public ResultSetMetadata.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected ResultSetMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static ResultSetMetadata getDefaultInstance()
public static Parser<ResultSetMetadata> parser()
public Parser<ResultSetMetadata> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public ResultSetMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder