Class AggregationResultBatch.Builder (2.20.0)

public static final class AggregationResultBatch.Builder extends GeneratedMessageV3.Builder<AggregationResultBatch.Builder> implements AggregationResultBatchOrBuilder

A batch of aggregation results produced by an aggregation query.

Protobuf type google.datastore.v1.AggregationResultBatch

Static Methods

getDescriptor()

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

Methods

addAggregationResults(AggregationResult value)

public AggregationResultBatch.Builder addAggregationResults(AggregationResult value)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
value AggregationResult
Returns
Type Description
AggregationResultBatch.Builder

addAggregationResults(AggregationResult.Builder builderForValue)

public AggregationResultBatch.Builder addAggregationResults(AggregationResult.Builder builderForValue)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
builderForValue AggregationResult.Builder
Returns
Type Description
AggregationResultBatch.Builder

addAggregationResults(int index, AggregationResult value)

public AggregationResultBatch.Builder addAggregationResults(int index, AggregationResult value)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameters
Name Description
index int
value AggregationResult
Returns
Type Description
AggregationResultBatch.Builder

addAggregationResults(int index, AggregationResult.Builder builderForValue)

public AggregationResultBatch.Builder addAggregationResults(int index, AggregationResult.Builder builderForValue)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameters
Name Description
index int
builderForValue AggregationResult.Builder
Returns
Type Description
AggregationResultBatch.Builder

addAggregationResultsBuilder()

public AggregationResult.Builder addAggregationResultsBuilder()

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Returns
Type Description
AggregationResult.Builder

addAggregationResultsBuilder(int index)

public AggregationResult.Builder addAggregationResultsBuilder(int index)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResult.Builder

addAllAggregationResults(Iterable<? extends AggregationResult> values)

public AggregationResultBatch.Builder addAllAggregationResults(Iterable<? extends AggregationResult> values)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
values Iterable<? extends com.google.datastore.v1.AggregationResult>
Returns
Type Description
AggregationResultBatch.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AggregationResultBatch build()
Returns
Type Description
AggregationResultBatch

buildPartial()

public AggregationResultBatch buildPartial()
Returns
Type Description
AggregationResultBatch

clear()

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

clearAggregationResults()

public AggregationResultBatch.Builder clearAggregationResults()

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Returns
Type Description
AggregationResultBatch.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMoreResults()

public AggregationResultBatch.Builder clearMoreResults()

The state of the query after the current batch. Only COUNT(*) aggregations are supported in the initial launch. Therefore, expected result type is limited to NO_MORE_RESULTS.

.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;

Returns
Type Description
AggregationResultBatch.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReadTime()

public AggregationResultBatch.Builder clearReadTime()

Read timestamp this batch was returned from.

In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.

.google.protobuf.Timestamp read_time = 3;

Returns
Type Description
AggregationResultBatch.Builder

clone()

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

getAggregationResults(int index)

public AggregationResult getAggregationResults(int index)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResult

getAggregationResultsBuilder(int index)

public AggregationResult.Builder getAggregationResultsBuilder(int index)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResult.Builder

getAggregationResultsBuilderList()

public List<AggregationResult.Builder> getAggregationResultsBuilderList()

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Returns
Type Description
List<Builder>

getAggregationResultsCount()

public int getAggregationResultsCount()

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Returns
Type Description
int

getAggregationResultsList()

public List<AggregationResult> getAggregationResultsList()

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Returns
Type Description
List<AggregationResult>

getAggregationResultsOrBuilder(int index)

public AggregationResultOrBuilder getAggregationResultsOrBuilder(int index)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResultOrBuilder

getAggregationResultsOrBuilderList()

public List<? extends AggregationResultOrBuilder> getAggregationResultsOrBuilderList()

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Returns
Type Description
List<? extends com.google.datastore.v1.AggregationResultOrBuilder>

getDefaultInstanceForType()

public AggregationResultBatch getDefaultInstanceForType()
Returns
Type Description
AggregationResultBatch

getDescriptorForType()

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

getMoreResults()

public QueryResultBatch.MoreResultsType getMoreResults()

The state of the query after the current batch. Only COUNT(*) aggregations are supported in the initial launch. Therefore, expected result type is limited to NO_MORE_RESULTS.

.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;

Returns
Type Description
QueryResultBatch.MoreResultsType

The moreResults.

getMoreResultsValue()

public int getMoreResultsValue()

The state of the query after the current batch. Only COUNT(*) aggregations are supported in the initial launch. Therefore, expected result type is limited to NO_MORE_RESULTS.

.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;

Returns
Type Description
int

The enum numeric value on the wire for moreResults.

getReadTime()

public Timestamp getReadTime()

Read timestamp this batch was returned from.

In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.

.google.protobuf.Timestamp read_time = 3;

Returns
Type Description
Timestamp

The readTime.

getReadTimeBuilder()

public Timestamp.Builder getReadTimeBuilder()

Read timestamp this batch was returned from.

In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.

.google.protobuf.Timestamp read_time = 3;

Returns
Type Description
Builder

getReadTimeOrBuilder()

public TimestampOrBuilder getReadTimeOrBuilder()

Read timestamp this batch was returned from.

In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.

.google.protobuf.Timestamp read_time = 3;

Returns
Type Description
TimestampOrBuilder

hasReadTime()

public boolean hasReadTime()

Read timestamp this batch was returned from.

In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.

.google.protobuf.Timestamp read_time = 3;

Returns
Type Description
boolean

Whether the readTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AggregationResultBatch other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeReadTime(Timestamp value)

public AggregationResultBatch.Builder mergeReadTime(Timestamp value)

Read timestamp this batch was returned from.

In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.

.google.protobuf.Timestamp read_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
AggregationResultBatch.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAggregationResults(int index)

public AggregationResultBatch.Builder removeAggregationResults(int index)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AggregationResultBatch.Builder

setAggregationResults(int index, AggregationResult value)

public AggregationResultBatch.Builder setAggregationResults(int index, AggregationResult value)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameters
Name Description
index int
value AggregationResult
Returns
Type Description
AggregationResultBatch.Builder

setAggregationResults(int index, AggregationResult.Builder builderForValue)

public AggregationResultBatch.Builder setAggregationResults(int index, AggregationResult.Builder builderForValue)

The aggregation results for this batch.

repeated .google.datastore.v1.AggregationResult aggregation_results = 1;

Parameters
Name Description
index int
builderForValue AggregationResult.Builder
Returns
Type Description
AggregationResultBatch.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMoreResults(QueryResultBatch.MoreResultsType value)

public AggregationResultBatch.Builder setMoreResults(QueryResultBatch.MoreResultsType value)

The state of the query after the current batch. Only COUNT(*) aggregations are supported in the initial launch. Therefore, expected result type is limited to NO_MORE_RESULTS.

.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;

Parameter
Name Description
value QueryResultBatch.MoreResultsType

The moreResults to set.

Returns
Type Description
AggregationResultBatch.Builder

This builder for chaining.

setMoreResultsValue(int value)

public AggregationResultBatch.Builder setMoreResultsValue(int value)

The state of the query after the current batch. Only COUNT(*) aggregations are supported in the initial launch. Therefore, expected result type is limited to NO_MORE_RESULTS.

.google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for moreResults to set.

Returns
Type Description
AggregationResultBatch.Builder

This builder for chaining.

setReadTime(Timestamp value)

public AggregationResultBatch.Builder setReadTime(Timestamp value)

Read timestamp this batch was returned from.

In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.

.google.protobuf.Timestamp read_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
AggregationResultBatch.Builder

setReadTime(Timestamp.Builder builderForValue)

public AggregationResultBatch.Builder setReadTime(Timestamp.Builder builderForValue)

Read timestamp this batch was returned from.

In a single transaction, subsequent query result batches for the same query can have a greater timestamp. Each batch's read timestamp is valid for all preceding batches.

.google.protobuf.Timestamp read_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AggregationResultBatch.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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