Class RunQueryResponse (2.31.4)

publicfinalclass RunQueryResponseextendsGeneratedMessageV3implementsRunQueryResponseOrBuilder

The response for Datastore.RunQuery.

Protobuf type google.datastore.v1.RunQueryResponse

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

BATCH_FIELD_NUMBER

publicstaticfinalintBATCH_FIELD_NUMBER
Field Value
Type Description
int

EXPLAIN_METRICS_FIELD_NUMBER

publicstaticfinalintEXPLAIN_METRICS_FIELD_NUMBER
Field Value
Type Description
int

QUERY_FIELD_NUMBER

publicstaticfinalintQUERY_FIELD_NUMBER
Field Value
Type Description
int

TRANSACTION_FIELD_NUMBER

publicstaticfinalintTRANSACTION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticRunQueryResponsegetDefaultInstance()
Returns
Type Description
RunQueryResponse

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticRunQueryResponse.BuildernewBuilder()
Returns
Type Description
RunQueryResponse.Builder

newBuilder(RunQueryResponse prototype)

publicstaticRunQueryResponse.BuildernewBuilder(RunQueryResponseprototype)
Parameter
Name Description
prototype RunQueryResponse
Returns
Type Description
RunQueryResponse.Builder

parseDelimitedFrom(InputStream input)

publicstaticRunQueryResponseparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
RunQueryResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticRunQueryResponseparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RunQueryResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticRunQueryResponseparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
RunQueryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticRunQueryResponseparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RunQueryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticRunQueryResponseparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
RunQueryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticRunQueryResponseparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RunQueryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticRunQueryResponseparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RunQueryResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticRunQueryResponseparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RunQueryResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticRunQueryResponseparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
RunQueryResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticRunQueryResponseparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RunQueryResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticRunQueryResponseparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RunQueryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticRunQueryResponseparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RunQueryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<RunQueryResponse>parser()
Returns
Type Description
Parser<RunQueryResponse>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBatch()

publicQueryResultBatchgetBatch()

A batch of query results (always present).

.google.datastore.v1.QueryResultBatch batch = 1;

Returns
Type Description
QueryResultBatch

The batch.

getBatchOrBuilder()

publicQueryResultBatchOrBuildergetBatchOrBuilder()

A batch of query results (always present).

.google.datastore.v1.QueryResultBatch batch = 1;

Returns
Type Description
QueryResultBatchOrBuilder

getDefaultInstanceForType()

publicRunQueryResponsegetDefaultInstanceForType()
Returns
Type Description
RunQueryResponse

getExplainMetrics()

publicExplainMetricsgetExplainMetrics()

Query explain metrics. This is only present when the RunQueryRequest.explain_options is provided, and it is sent only once with the last response in the stream.

.google.datastore.v1.ExplainMetrics explain_metrics = 9;

Returns
Type Description
ExplainMetrics

The explainMetrics.

getExplainMetricsOrBuilder()

publicExplainMetricsOrBuildergetExplainMetricsOrBuilder()

Query explain metrics. This is only present when the RunQueryRequest.explain_options is provided, and it is sent only once with the last response in the stream.

.google.datastore.v1.ExplainMetrics explain_metrics = 9;

Returns
Type Description
ExplainMetricsOrBuilder

getParserForType()

publicParser<RunQueryResponse>getParserForType()
Returns
Type Description
Parser<RunQueryResponse>
Overrides

getQuery()

publicQuerygetQuery()

The parsed form of the GqlQuery from the request, if it was set.

.google.datastore.v1.Query query = 2;

Returns
Type Description
Query

The query.

getQueryOrBuilder()

publicQueryOrBuildergetQueryOrBuilder()

The parsed form of the GqlQuery from the request, if it was set.

.google.datastore.v1.Query query = 2;

Returns
Type Description
QueryOrBuilder

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getTransaction()

publicByteStringgetTransaction()

The identifier of the transaction that was started as part of this RunQuery request.

Set only when ReadOptions.new_transaction was set in RunQueryRequest.read_options.

bytes transaction = 5;

Returns
Type Description
ByteString

The transaction.

hasBatch()

publicbooleanhasBatch()

A batch of query results (always present).

.google.datastore.v1.QueryResultBatch batch = 1;

Returns
Type Description
boolean

Whether the batch field is set.

hasExplainMetrics()

publicbooleanhasExplainMetrics()

Query explain metrics. This is only present when the RunQueryRequest.explain_options is provided, and it is sent only once with the last response in the stream.

.google.datastore.v1.ExplainMetrics explain_metrics = 9;

Returns
Type Description
boolean

Whether the explainMetrics field is set.

hasQuery()

publicbooleanhasQuery()

The parsed form of the GqlQuery from the request, if it was set.

.google.datastore.v1.Query query = 2;

Returns
Type Description
boolean

Whether the query field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicRunQueryResponse.BuildernewBuilderForType()
Returns
Type Description
RunQueryResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedRunQueryResponse.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RunQueryResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicRunQueryResponse.BuildertoBuilder()
Returns
Type Description
RunQueryResponse.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.