Class RunAggregationQueryResponse.Builder (2.18.5)

public static final class RunAggregationQueryResponse.Builder extends GeneratedMessageV3.Builder<RunAggregationQueryResponse.Builder> implements RunAggregationQueryResponseOrBuilder

The response for Datastore.RunAggregationQuery.

Protobuf type google.datastore.v1.RunAggregationQueryResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RunAggregationQueryResponse build()
Returns
TypeDescription
RunAggregationQueryResponse

buildPartial()

public RunAggregationQueryResponse buildPartial()
Returns
TypeDescription
RunAggregationQueryResponse

clear()

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

clearBatch()

public RunAggregationQueryResponse.Builder clearBatch()

A batch of aggregation results. Always present.

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

Returns
TypeDescription
RunAggregationQueryResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RunAggregationQueryResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RunAggregationQueryResponse.Builder
Overrides

clearQuery()

public RunAggregationQueryResponse.Builder clearQuery()

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

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

Returns
TypeDescription
RunAggregationQueryResponse.Builder

clearTransaction()

public RunAggregationQueryResponse.Builder clearTransaction()

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

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

bytes transaction = 5;

Returns
TypeDescription
RunAggregationQueryResponse.Builder

This builder for chaining.

clone()

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

getBatch()

public AggregationResultBatch getBatch()

A batch of aggregation results. Always present.

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

Returns
TypeDescription
AggregationResultBatch

The batch.

getBatchBuilder()

public AggregationResultBatch.Builder getBatchBuilder()

A batch of aggregation results. Always present.

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

Returns
TypeDescription
AggregationResultBatch.Builder

getBatchOrBuilder()

public AggregationResultBatchOrBuilder getBatchOrBuilder()

A batch of aggregation results. Always present.

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

Returns
TypeDescription
AggregationResultBatchOrBuilder

getDefaultInstanceForType()

public RunAggregationQueryResponse getDefaultInstanceForType()
Returns
TypeDescription
RunAggregationQueryResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getQuery()

public AggregationQuery getQuery()

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

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

Returns
TypeDescription
AggregationQuery

The query.

getQueryBuilder()

public AggregationQuery.Builder getQueryBuilder()

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

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

Returns
TypeDescription
AggregationQuery.Builder

getQueryOrBuilder()

public AggregationQueryOrBuilder getQueryOrBuilder()

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

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

Returns
TypeDescription
AggregationQueryOrBuilder

getTransaction()

public ByteString getTransaction()

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

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

bytes transaction = 5;

Returns
TypeDescription
ByteString

The transaction.

hasBatch()

public boolean hasBatch()

A batch of aggregation results. Always present.

.google.datastore.v1.AggregationResultBatch 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.AggregationQuery 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(AggregationResultBatch value)

public RunAggregationQueryResponse.Builder mergeBatch(AggregationResultBatch value)

A batch of aggregation results. Always present.

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

Parameter
NameDescription
valueAggregationResultBatch
Returns
TypeDescription
RunAggregationQueryResponse.Builder

mergeFrom(RunAggregationQueryResponse other)

public RunAggregationQueryResponse.Builder mergeFrom(RunAggregationQueryResponse other)
Parameter
NameDescription
otherRunAggregationQueryResponse
Returns
TypeDescription
RunAggregationQueryResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RunAggregationQueryResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RunAggregationQueryResponse.Builder
Overrides

mergeQuery(AggregationQuery value)

public RunAggregationQueryResponse.Builder mergeQuery(AggregationQuery value)

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

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

Parameter
NameDescription
valueAggregationQuery
Returns
TypeDescription
RunAggregationQueryResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RunAggregationQueryResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RunAggregationQueryResponse.Builder
Overrides

setBatch(AggregationResultBatch value)

public RunAggregationQueryResponse.Builder setBatch(AggregationResultBatch value)

A batch of aggregation results. Always present.

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

Parameter
NameDescription
valueAggregationResultBatch
Returns
TypeDescription
RunAggregationQueryResponse.Builder

setBatch(AggregationResultBatch.Builder builderForValue)

public RunAggregationQueryResponse.Builder setBatch(AggregationResultBatch.Builder builderForValue)

A batch of aggregation results. Always present.

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

Parameter
NameDescription
builderForValueAggregationResultBatch.Builder
Returns
TypeDescription
RunAggregationQueryResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setQuery(AggregationQuery value)

public RunAggregationQueryResponse.Builder setQuery(AggregationQuery value)

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

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

Parameter
NameDescription
valueAggregationQuery
Returns
TypeDescription
RunAggregationQueryResponse.Builder

setQuery(AggregationQuery.Builder builderForValue)

public RunAggregationQueryResponse.Builder setQuery(AggregationQuery.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueAggregationQuery.Builder
Returns
TypeDescription
RunAggregationQueryResponse.Builder

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

public RunAggregationQueryResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RunAggregationQueryResponse.Builder
Overrides

setTransaction(ByteString value)

public RunAggregationQueryResponse.Builder setTransaction(ByteString value)

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

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

bytes transaction = 5;

Parameter
NameDescription
valueByteString

The transaction to set.

Returns
TypeDescription
RunAggregationQueryResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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