Class AggregationResultBatch.Builder (2.17.6)

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
TypeDescription
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
NameDescription
valueAggregationResult
Returns
TypeDescription
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
NameDescription
builderForValueAggregationResult.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueAggregationResult
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAggregationResult.Builder
Returns
TypeDescription
AggregationResultBatch.Builder

addAggregationResultsBuilder()

public AggregationResult.Builder addAggregationResultsBuilder()

The aggregation results for this batch.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.datastore.v1.AggregationResult>
Returns
TypeDescription
AggregationResultBatch.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AggregationResultBatch build()
Returns
TypeDescription
AggregationResultBatch

buildPartial()

public AggregationResultBatch buildPartial()
Returns
TypeDescription
AggregationResultBatch

clear()

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

clearAggregationResults()

public AggregationResultBatch.Builder clearAggregationResults()

The aggregation results for this batch.

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

Returns
TypeDescription
AggregationResultBatch.Builder

clearField(Descriptors.FieldDescriptor field)

public AggregationResultBatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
AggregationResultBatch.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AggregationResultBatch.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AggregationResult.Builder

getAggregationResultsBuilderList()

public List<AggregationResult.Builder> getAggregationResultsBuilderList()

The aggregation results for this batch.

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

Returns
TypeDescription
List<Builder>

getAggregationResultsCount()

public int getAggregationResultsCount()

The aggregation results for this batch.

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

Returns
TypeDescription
int

getAggregationResultsList()

public List<AggregationResult> getAggregationResultsList()

The aggregation results for this batch.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AggregationResultOrBuilder

getAggregationResultsOrBuilderList()

public List<? extends AggregationResultOrBuilder> getAggregationResultsOrBuilderList()

The aggregation results for this batch.

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

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

getDefaultInstanceForType()

public AggregationResultBatch getDefaultInstanceForType()
Returns
TypeDescription
AggregationResultBatch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the readTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AggregationResultBatch other)

public AggregationResultBatch.Builder mergeFrom(AggregationResultBatch other)
Parameter
NameDescription
otherAggregationResultBatch
Returns
TypeDescription
AggregationResultBatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AggregationResultBatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueAggregationResult
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAggregationResult.Builder
Returns
TypeDescription
AggregationResultBatch.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The moreResults to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
AggregationResultBatch.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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