Class RunQueryResponse.Builder (2.33.0)

publicstaticfinalclass RunQueryResponse.BuilderextendsGeneratedMessageV3.Builder<RunQueryResponse.Builder>implementsRunQueryResponseOrBuilder

The response for Datastore.RunQuery.

Protobuf type google.datastore.v1.RunQueryResponse

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicRunQueryResponse.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RunQueryResponse.Builder
Overrides

build()

publicRunQueryResponsebuild()
Returns
Type Description
RunQueryResponse

buildPartial()

publicRunQueryResponsebuildPartial()
Returns
Type Description
RunQueryResponse

clear()

publicRunQueryResponse.Builderclear()
Returns
Type Description
RunQueryResponse.Builder
Overrides

clearBatch()

publicRunQueryResponse.BuilderclearBatch()

A batch of query results (always present).

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

Returns
Type Description
RunQueryResponse.Builder

clearExplainMetrics()

publicRunQueryResponse.BuilderclearExplainMetrics()

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
RunQueryResponse.Builder

clearField(Descriptors.FieldDescriptor field)

publicRunQueryResponse.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RunQueryResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicRunQueryResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RunQueryResponse.Builder
Overrides

clearQuery()

publicRunQueryResponse.BuilderclearQuery()

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

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

Returns
Type Description
RunQueryResponse.Builder

clearTransaction()

publicRunQueryResponse.BuilderclearTransaction()

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
RunQueryResponse.Builder

This builder for chaining.

clone()

publicRunQueryResponse.Builderclone()
Returns
Type Description
RunQueryResponse.Builder
Overrides

getBatch()

publicQueryResultBatchgetBatch()

A batch of query results (always present).

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

Returns
Type Description
QueryResultBatch

The batch.

getBatchBuilder()

publicQueryResultBatch.BuildergetBatchBuilder()

A batch of query results (always present).

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

Returns
Type Description
QueryResultBatch.Builder

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

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getExplainMetricsBuilder()

publicExplainMetrics.BuildergetExplainMetricsBuilder()

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.Builder

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

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.

getQueryBuilder()

publicQuery.BuildergetQueryBuilder()

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

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

Returns
Type Description
Query.Builder

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

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeBatch(QueryResultBatch value)

publicRunQueryResponse.BuildermergeBatch(QueryResultBatchvalue)

A batch of query results (always present).

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

Parameter
Name Description
value QueryResultBatch
Returns
Type Description
RunQueryResponse.Builder

mergeExplainMetrics(ExplainMetrics value)

publicRunQueryResponse.BuildermergeExplainMetrics(ExplainMetricsvalue)

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;

Parameter
Name Description
value ExplainMetrics
Returns
Type Description
RunQueryResponse.Builder

mergeFrom(RunQueryResponse other)

publicRunQueryResponse.BuildermergeFrom(RunQueryResponseother)
Parameter
Name Description
other RunQueryResponse
Returns
Type Description
RunQueryResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicRunQueryResponse.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RunQueryResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicRunQueryResponse.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
RunQueryResponse.Builder
Overrides

mergeQuery(Query value)

publicRunQueryResponse.BuildermergeQuery(Queryvalue)

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

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

Parameter
Name Description
value Query
Returns
Type Description
RunQueryResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalRunQueryResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RunQueryResponse.Builder
Overrides

setBatch(QueryResultBatch value)

publicRunQueryResponse.BuildersetBatch(QueryResultBatchvalue)

A batch of query results (always present).

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

Parameter
Name Description
value QueryResultBatch
Returns
Type Description
RunQueryResponse.Builder

setBatch(QueryResultBatch.Builder builderForValue)

publicRunQueryResponse.BuildersetBatch(QueryResultBatch.BuilderbuilderForValue)

A batch of query results (always present).

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

Parameter
Name Description
builderForValue QueryResultBatch.Builder
Returns
Type Description
RunQueryResponse.Builder

setExplainMetrics(ExplainMetrics value)

publicRunQueryResponse.BuildersetExplainMetrics(ExplainMetricsvalue)

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;

Parameter
Name Description
value ExplainMetrics
Returns
Type Description
RunQueryResponse.Builder

setExplainMetrics(ExplainMetrics.Builder builderForValue)

publicRunQueryResponse.BuildersetExplainMetrics(ExplainMetrics.BuilderbuilderForValue)

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;

Parameter
Name Description
builderForValue ExplainMetrics.Builder
Returns
Type Description
RunQueryResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicRunQueryResponse.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RunQueryResponse.Builder
Overrides

setQuery(Query value)

publicRunQueryResponse.BuildersetQuery(Queryvalue)

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

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

Parameter
Name Description
value Query
Returns
Type Description
RunQueryResponse.Builder

setQuery(Query.Builder builderForValue)

publicRunQueryResponse.BuildersetQuery(Query.BuilderbuilderForValue)

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

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

Parameter
Name Description
builderForValue Query.Builder
Returns
Type Description
RunQueryResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicRunQueryResponse.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RunQueryResponse.Builder
Overrides

setTransaction(ByteString value)

publicRunQueryResponse.BuildersetTransaction(ByteStringvalue)

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;

Parameter
Name Description
value ByteString

The transaction to set.

Returns
Type Description
RunQueryResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalRunQueryResponse.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RunQueryResponse.Builder
Overrides

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.