Class RunQueryResponse.Builder (2.23.0)

public static final class RunQueryResponse.Builder extends GeneratedMessageV3.Builder<RunQueryResponse.Builder> implements RunQueryResponseOrBuilder

The response for Datastore.RunQuery.

Protobuf type google.datastore.v1.RunQueryResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RunQueryResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RunQueryResponse.Builder
Overrides

build()

public RunQueryResponse build()
Returns
Type Description
RunQueryResponse

buildPartial()

public RunQueryResponse buildPartial()
Returns
Type Description
RunQueryResponse

clear()

public RunQueryResponse.Builder clear()
Returns
Type Description
RunQueryResponse.Builder
Overrides

clearBatch()

public RunQueryResponse.Builder clearBatch()

A batch of query results (always present).

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

Returns
Type Description
RunQueryResponse.Builder

clearExplainMetrics()

public RunQueryResponse.Builder clearExplainMetrics()

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)

public RunQueryResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RunQueryResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RunQueryResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RunQueryResponse.Builder
Overrides

clearQuery()

public RunQueryResponse.Builder clearQuery()

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()

public RunQueryResponse.Builder clearTransaction()

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()

public RunQueryResponse.Builder clone()
Returns
Type Description
RunQueryResponse.Builder
Overrides

getBatch()

public QueryResultBatch getBatch()

A batch of query results (always present).

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

Returns
Type Description
QueryResultBatch

The batch.

getBatchBuilder()

public QueryResultBatch.Builder getBatchBuilder()

A batch of query results (always present).

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

Returns
Type Description
QueryResultBatch.Builder

getBatchOrBuilder()

public QueryResultBatchOrBuilder getBatchOrBuilder()

A batch of query results (always present).

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

Returns
Type Description
QueryResultBatchOrBuilder

getDefaultInstanceForType()

public RunQueryResponse getDefaultInstanceForType()
Returns
Type Description
RunQueryResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExplainMetrics()

public ExplainMetrics getExplainMetrics()

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()

public ExplainMetrics.Builder getExplainMetricsBuilder()

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()

public ExplainMetricsOrBuilder getExplainMetricsOrBuilder()

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()

public Query getQuery()

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()

public Query.Builder getQueryBuilder()

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()

public QueryOrBuilder getQueryOrBuilder()

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

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

Returns
Type Description
QueryOrBuilder

getTransaction()

public ByteString getTransaction()

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()

public boolean hasBatch()

A batch of query results (always present).

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

Returns
Type Description
boolean

Whether the batch field is set.

hasExplainMetrics()

public boolean hasExplainMetrics()

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()

public boolean hasQuery()

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()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBatch(QueryResultBatch value)

public RunQueryResponse.Builder mergeBatch(QueryResultBatch value)

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)

public RunQueryResponse.Builder mergeExplainMetrics(ExplainMetrics value)

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)

public RunQueryResponse.Builder mergeFrom(RunQueryResponse other)
Parameter
Name Description
other RunQueryResponse
Returns
Type Description
RunQueryResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RunQueryResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RunQueryResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RunQueryResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RunQueryResponse.Builder
Overrides

mergeQuery(Query value)

public RunQueryResponse.Builder mergeQuery(Query value)

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)

public final RunQueryResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RunQueryResponse.Builder
Overrides

setBatch(QueryResultBatch value)

public RunQueryResponse.Builder setBatch(QueryResultBatch value)

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)

public RunQueryResponse.Builder setBatch(QueryResultBatch.Builder builderForValue)

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)

public RunQueryResponse.Builder setExplainMetrics(ExplainMetrics value)

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)

public RunQueryResponse.Builder setExplainMetrics(ExplainMetrics.Builder builderForValue)

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)

public RunQueryResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RunQueryResponse.Builder
Overrides

setQuery(Query value)

public RunQueryResponse.Builder setQuery(Query value)

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)

public RunQueryResponse.Builder setQuery(Query.Builder builderForValue)

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)

public RunQueryResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RunQueryResponse.Builder
Overrides

setTransaction(ByteString value)

public RunQueryResponse.Builder setTransaction(ByteString value)

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)

public final RunQueryResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RunQueryResponse.Builder
Overrides