Class AggregationQuery.Builder (2.14.0)

public static final class AggregationQuery.Builder extends GeneratedMessageV3.Builder<AggregationQuery.Builder> implements AggregationQueryOrBuilder

Datastore query for running an aggregation over a Query.

Protobuf type google.datastore.v1.AggregationQuery

Static Methods

getDescriptor()

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

Methods

addAggregations(AggregationQuery.Aggregation value)

public AggregationQuery.Builder addAggregations(AggregationQuery.Aggregation value)

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAggregationQuery.Aggregation
Returns
TypeDescription
AggregationQuery.Builder

addAggregations(AggregationQuery.Aggregation.Builder builderForValue)

public AggregationQuery.Builder addAggregations(AggregationQuery.Aggregation.Builder builderForValue)

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueAggregationQuery.Aggregation.Builder
Returns
TypeDescription
AggregationQuery.Builder

addAggregations(int index, AggregationQuery.Aggregation value)

public AggregationQuery.Builder addAggregations(int index, AggregationQuery.Aggregation value)

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueAggregationQuery.Aggregation
Returns
TypeDescription
AggregationQuery.Builder

addAggregations(int index, AggregationQuery.Aggregation.Builder builderForValue)

public AggregationQuery.Builder addAggregations(int index, AggregationQuery.Aggregation.Builder builderForValue)

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueAggregationQuery.Aggregation.Builder
Returns
TypeDescription
AggregationQuery.Builder

addAggregationsBuilder()

public AggregationQuery.Aggregation.Builder addAggregationsBuilder()

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AggregationQuery.Aggregation.Builder

addAggregationsBuilder(int index)

public AggregationQuery.Aggregation.Builder addAggregationsBuilder(int index)

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
AggregationQuery.Aggregation.Builder

addAllAggregations(Iterable<? extends AggregationQuery.Aggregation> values)

public AggregationQuery.Builder addAllAggregations(Iterable<? extends AggregationQuery.Aggregation> values)

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.datastore.v1.AggregationQuery.Aggregation>
Returns
TypeDescription
AggregationQuery.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AggregationQuery build()
Returns
TypeDescription
AggregationQuery

buildPartial()

public AggregationQuery buildPartial()
Returns
TypeDescription
AggregationQuery

clear()

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

clearAggregations()

public AggregationQuery.Builder clearAggregations()

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AggregationQuery.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNestedQuery()

public AggregationQuery.Builder clearNestedQuery()

Nested query for aggregation

.google.datastore.v1.Query nested_query = 1;

Returns
TypeDescription
AggregationQuery.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQueryType()

public AggregationQuery.Builder clearQueryType()
Returns
TypeDescription
AggregationQuery.Builder

clone()

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

getAggregations(int index)

public AggregationQuery.Aggregation getAggregations(int index)

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
AggregationQuery.Aggregation

getAggregationsBuilder(int index)

public AggregationQuery.Aggregation.Builder getAggregationsBuilder(int index)

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
AggregationQuery.Aggregation.Builder

getAggregationsBuilderList()

public List<AggregationQuery.Aggregation.Builder> getAggregationsBuilderList()

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getAggregationsCount()

public int getAggregationsCount()

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getAggregationsList()

public List<AggregationQuery.Aggregation> getAggregationsList()

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Aggregation>

getAggregationsOrBuilder(int index)

public AggregationQuery.AggregationOrBuilder getAggregationsOrBuilder(int index)

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
AggregationQuery.AggregationOrBuilder

getAggregationsOrBuilderList()

public List<? extends AggregationQuery.AggregationOrBuilder> getAggregationsOrBuilderList()

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

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

getDefaultInstanceForType()

public AggregationQuery getDefaultInstanceForType()
Returns
TypeDescription
AggregationQuery

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNestedQuery()

public Query getNestedQuery()

Nested query for aggregation

.google.datastore.v1.Query nested_query = 1;

Returns
TypeDescription
Query

The nestedQuery.

getNestedQueryBuilder()

public Query.Builder getNestedQueryBuilder()

Nested query for aggregation

.google.datastore.v1.Query nested_query = 1;

Returns
TypeDescription
Query.Builder

getNestedQueryOrBuilder()

public QueryOrBuilder getNestedQueryOrBuilder()

Nested query for aggregation

.google.datastore.v1.Query nested_query = 1;

Returns
TypeDescription
QueryOrBuilder

getQueryTypeCase()

public AggregationQuery.QueryTypeCase getQueryTypeCase()
Returns
TypeDescription
AggregationQuery.QueryTypeCase

hasNestedQuery()

public boolean hasNestedQuery()

Nested query for aggregation

.google.datastore.v1.Query nested_query = 1;

Returns
TypeDescription
boolean

Whether the nestedQuery field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AggregationQuery other)

public AggregationQuery.Builder mergeFrom(AggregationQuery other)
Parameter
NameDescription
otherAggregationQuery
Returns
TypeDescription
AggregationQuery.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNestedQuery(Query value)

public AggregationQuery.Builder mergeNestedQuery(Query value)

Nested query for aggregation

.google.datastore.v1.Query nested_query = 1;

Parameter
NameDescription
valueQuery
Returns
TypeDescription
AggregationQuery.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAggregations(int index)

public AggregationQuery.Builder removeAggregations(int index)

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
AggregationQuery.Builder

setAggregations(int index, AggregationQuery.Aggregation value)

public AggregationQuery.Builder setAggregations(int index, AggregationQuery.Aggregation value)

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueAggregationQuery.Aggregation
Returns
TypeDescription
AggregationQuery.Builder

setAggregations(int index, AggregationQuery.Aggregation.Builder builderForValue)

public AggregationQuery.Builder setAggregations(int index, AggregationQuery.Aggregation.Builder builderForValue)

Optional. Series of aggregations to apply over the results of the nested_query. Requires:

  • A minimum of one and maximum of five aggregations per query.

repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueAggregationQuery.Aggregation.Builder
Returns
TypeDescription
AggregationQuery.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNestedQuery(Query value)

public AggregationQuery.Builder setNestedQuery(Query value)

Nested query for aggregation

.google.datastore.v1.Query nested_query = 1;

Parameter
NameDescription
valueQuery
Returns
TypeDescription
AggregationQuery.Builder

setNestedQuery(Query.Builder builderForValue)

public AggregationQuery.Builder setNestedQuery(Query.Builder builderForValue)

Nested query for aggregation

.google.datastore.v1.Query nested_query = 1;

Parameter
NameDescription
builderForValueQuery.Builder
Returns
TypeDescription
AggregationQuery.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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