Class QueryResult (6.83.0)

public final class QueryResult extends GeneratedMessageV3 implements QueryResultOrBuilder

QueryResult contains result of a Query.

Protobuf type google.spanner.executor.v1.QueryResult

Static Fields

ROW_FIELD_NUMBER

public static final int ROW_FIELD_NUMBER
Field Value
Type Description
int

ROW_TYPE_FIELD_NUMBER

public static final int ROW_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static QueryResult getDefaultInstance()
Returns
Type Description
QueryResult

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static QueryResult.Builder newBuilder()
Returns
Type Description
QueryResult.Builder

newBuilder(QueryResult prototype)

public static QueryResult.Builder newBuilder(QueryResult prototype)
Parameter
Name Description
prototype QueryResult
Returns
Type Description
QueryResult.Builder

parseDelimitedFrom(InputStream input)

public static QueryResult parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QueryResult
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryResult
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static QueryResult parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
QueryResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QueryResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QueryResult parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
QueryResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QueryResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QueryResult parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
QueryResult
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryResult
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static QueryResult parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QueryResult
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryResult
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static QueryResult parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
QueryResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QueryResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryResult
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<QueryResult> parser()
Returns
Type Description
Parser<QueryResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public QueryResult getDefaultInstanceForType()
Returns
Type Description
QueryResult

getParserForType()

public Parser<QueryResult> getParserForType()
Returns
Type Description
Parser<QueryResult>
Overrides

getRow(int index)

public ValueList getRow(int index)

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 1;

Parameter
Name Description
index int
Returns
Type Description
ValueList

getRowCount()

public int getRowCount()

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 1;

Returns
Type Description
int

getRowList()

public List<ValueList> getRowList()

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 1;

Returns
Type Description
List<ValueList>

getRowOrBuilder(int index)

public ValueListOrBuilder getRowOrBuilder(int index)

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 1;

Parameter
Name Description
index int
Returns
Type Description
ValueListOrBuilder

getRowOrBuilderList()

public List<? extends ValueListOrBuilder> getRowOrBuilderList()

Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

repeated .google.spanner.executor.v1.ValueList row = 1;

Returns
Type Description
List<? extends com.google.spanner.executor.v1.ValueListOrBuilder>

getRowType()

public StructType getRowType()

The type of rows read. It must be set if at least one row was read.

optional .google.spanner.v1.StructType row_type = 2;

Returns
Type Description
StructType

The rowType.

getRowTypeOrBuilder()

public StructTypeOrBuilder getRowTypeOrBuilder()

The type of rows read. It must be set if at least one row was read.

optional .google.spanner.v1.StructType row_type = 2;

Returns
Type Description
StructTypeOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasRowType()

public boolean hasRowType()

The type of rows read. It must be set if at least one row was read.

optional .google.spanner.v1.StructType row_type = 2;

Returns
Type Description
boolean

Whether the rowType field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public QueryResult.Builder newBuilderForType()
Returns
Type Description
QueryResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QueryResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
QueryResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public QueryResult.Builder toBuilder()
Returns
Type Description
QueryResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException