public final class ResultSet extends GeneratedMessageV3 implements ResultSetOrBuilder
Results from [Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].Protobuf type
google.spanner.v1.ResultSet
Modifier and Type | Class and Description |
---|---|
static class |
ResultSet.Builder
Results from [Read][google.spanner.v1.Spanner.Read] or
[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
|
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, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
METADATA_FIELD_NUMBER |
static int |
ROWS_FIELD_NUMBER |
static int |
STATS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static ResultSet |
getDefaultInstance() |
ResultSet |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
ResultSetMetadata |
getMetadata()
Metadata about the result set, such as row type information.
|
ResultSetMetadataOrBuilder |
getMetadataOrBuilder()
Metadata about the result set, such as row type information.
|
Parser<ResultSet> |
getParserForType() |
ListValue |
getRows(int index)
Each element in `rows` is a row whose format is defined by
[metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type].
|
int |
getRowsCount()
Each element in `rows` is a row whose format is defined by
[metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type].
|
List<ListValue> |
getRowsList()
Each element in `rows` is a row whose format is defined by
[metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type].
|
ListValueOrBuilder |
getRowsOrBuilder(int index)
Each element in `rows` is a row whose format is defined by
[metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type].
|
List<? extends ListValueOrBuilder> |
getRowsOrBuilderList()
Each element in `rows` is a row whose format is defined by
[metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type].
|
int |
getSerializedSize() |
ResultSetStats |
getStats()
Query plan and execution statistics for the SQL statement that
produced this result set.
|
ResultSetStatsOrBuilder |
getStatsOrBuilder()
Query plan and execution statistics for the SQL statement that
produced this result set.
|
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasMetadata()
Metadata about the result set, such as row type information.
|
boolean |
hasStats()
Query plan and execution statistics for the SQL statement that
produced this result set.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ResultSet.Builder |
newBuilder() |
static ResultSet.Builder |
newBuilder(ResultSet prototype) |
ResultSet.Builder |
newBuilderForType() |
protected ResultSet.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static ResultSet |
parseDelimitedFrom(InputStream input) |
static ResultSet |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static ResultSet |
parseFrom(byte[] data) |
static ResultSet |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static ResultSet |
parseFrom(ByteBuffer data) |
static ResultSet |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static ResultSet |
parseFrom(ByteString data) |
static ResultSet |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static ResultSet |
parseFrom(CodedInputStream input) |
static ResultSet |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static ResultSet |
parseFrom(InputStream input) |
static ResultSet |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<ResultSet> |
parser() |
ResultSet.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int METADATA_FIELD_NUMBER
public static final int ROWS_FIELD_NUMBER
public static final int STATS_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public boolean hasMetadata()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
hasMetadata
in interface ResultSetOrBuilder
public ResultSetMetadata getMetadata()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
getMetadata
in interface ResultSetOrBuilder
public ResultSetMetadataOrBuilder getMetadataOrBuilder()
Metadata about the result set, such as row type information.
.google.spanner.v1.ResultSetMetadata metadata = 1;
getMetadataOrBuilder
in interface ResultSetOrBuilder
public List<ListValue> getRowsList()
Each element in `rows` is a row whose format is defined by [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element in each row matches the ith field in [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are encoded based on type as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue rows = 2;
getRowsList
in interface ResultSetOrBuilder
public List<? extends ListValueOrBuilder> getRowsOrBuilderList()
Each element in `rows` is a row whose format is defined by [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element in each row matches the ith field in [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are encoded based on type as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue rows = 2;
getRowsOrBuilderList
in interface ResultSetOrBuilder
public int getRowsCount()
Each element in `rows` is a row whose format is defined by [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element in each row matches the ith field in [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are encoded based on type as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue rows = 2;
getRowsCount
in interface ResultSetOrBuilder
public ListValue getRows(int index)
Each element in `rows` is a row whose format is defined by [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element in each row matches the ith field in [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are encoded based on type as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue rows = 2;
getRows
in interface ResultSetOrBuilder
public ListValueOrBuilder getRowsOrBuilder(int index)
Each element in `rows` is a row whose format is defined by [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element in each row matches the ith field in [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are encoded based on type as described [here][google.spanner.v1.TypeCode].
repeated .google.protobuf.ListValue rows = 2;
getRowsOrBuilder
in interface ResultSetOrBuilder
public boolean hasStats()
Query plan and execution statistics for the SQL statement that produced this result set. These can be requested by setting [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]. DML statements always produce stats containing the number of rows modified, unless executed using the [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN] [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]. Other fields may or may not be populated, based on the [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
.google.spanner.v1.ResultSetStats stats = 3;
hasStats
in interface ResultSetOrBuilder
public ResultSetStats getStats()
Query plan and execution statistics for the SQL statement that produced this result set. These can be requested by setting [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]. DML statements always produce stats containing the number of rows modified, unless executed using the [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN] [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]. Other fields may or may not be populated, based on the [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
.google.spanner.v1.ResultSetStats stats = 3;
getStats
in interface ResultSetOrBuilder
public ResultSetStatsOrBuilder getStatsOrBuilder()
Query plan and execution statistics for the SQL statement that produced this result set. These can be requested by setting [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]. DML statements always produce stats containing the number of rows modified, unless executed using the [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN] [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]. Other fields may or may not be populated, based on the [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].
.google.spanner.v1.ResultSetStats stats = 3;
getStatsOrBuilder
in interface ResultSetOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static ResultSet parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ResultSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ResultSet parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ResultSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ResultSet parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ResultSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ResultSet parseFrom(InputStream input) throws IOException
IOException
public static ResultSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ResultSet parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ResultSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ResultSet parseFrom(CodedInputStream input) throws IOException
IOException
public static ResultSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ResultSet.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static ResultSet.Builder newBuilder()
public static ResultSet.Builder newBuilder(ResultSet prototype)
public ResultSet.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected ResultSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static ResultSet getDefaultInstance()
public Parser<ResultSet> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public ResultSet getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.