Class RunQueryResponse.Builder (2.18.5)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RunQueryResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RunQueryResponse.Builder
Overrides

build()

public RunQueryResponse build()
Returns
TypeDescription
RunQueryResponse

buildPartial()

public RunQueryResponse buildPartial()
Returns
TypeDescription
RunQueryResponse

clear()

public RunQueryResponse.Builder clear()
Returns
TypeDescription
RunQueryResponse.Builder
Overrides

clearBatch()

public RunQueryResponse.Builder clearBatch()

A batch of query results (always present).

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

Returns
TypeDescription
RunQueryResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public RunQueryResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RunQueryResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RunQueryResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
RunQueryResponse.Builder

This builder for chaining.

clone()

public RunQueryResponse.Builder clone()
Returns
TypeDescription
RunQueryResponse.Builder
Overrides

getBatch()

public QueryResultBatch getBatch()

A batch of query results (always present).

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

Returns
TypeDescription
QueryResultBatch

The batch.

getBatchBuilder()

public QueryResultBatch.Builder getBatchBuilder()

A batch of query results (always present).

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

Returns
TypeDescription
QueryResultBatch.Builder

getBatchOrBuilder()

public QueryResultBatchOrBuilder getBatchOrBuilder()

A batch of query results (always present).

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

Returns
TypeDescription
QueryResultBatchOrBuilder

getDefaultInstanceForType()

public RunQueryResponse getDefaultInstanceForType()
Returns
TypeDescription
RunQueryResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getQuery()

public Query getQuery()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The transaction.

hasBatch()

public boolean hasBatch()

A batch of query results (always present).

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

Returns
TypeDescription
boolean

Whether the batch 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
TypeDescription
boolean

Whether the query field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueQueryResultBatch
Returns
TypeDescription
RunQueryResponse.Builder

mergeFrom(RunQueryResponse other)

public RunQueryResponse.Builder mergeFrom(RunQueryResponse other)
Parameter
NameDescription
otherRunQueryResponse
Returns
TypeDescription
RunQueryResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RunQueryResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RunQueryResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RunQueryResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueQuery
Returns
TypeDescription
RunQueryResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RunQueryResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueQueryResultBatch
Returns
TypeDescription
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
NameDescription
builderForValueQueryResultBatch.Builder
Returns
TypeDescription
RunQueryResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RunQueryResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueQuery
Returns
TypeDescription
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
NameDescription
builderForValueQuery.Builder
Returns
TypeDescription
RunQueryResponse.Builder

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

public RunQueryResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueByteString

The transaction to set.

Returns
TypeDescription
RunQueryResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RunQueryResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RunQueryResponse.Builder
Overrides