Package com.google.datastore.v1
Class AggregationQuery.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
com.google.datastore.v1.AggregationQuery.Builder
- All Implemented Interfaces:
AggregationQueryOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AggregationQuery
public static final class AggregationQuery.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
implements AggregationQueryOrBuilder
Datastore query for running an aggregation over a [Query][google.datastore.v1.Query].Protobuf type
google.datastore.v1.AggregationQuery
-
Method Summary
Modifier and TypeMethodDescriptionaddAggregations
(int index, AggregationQuery.Aggregation value) Optional.addAggregations
(int index, AggregationQuery.Aggregation.Builder builderForValue) Optional.Optional.addAggregations
(AggregationQuery.Aggregation.Builder builderForValue) Optional.Optional.addAggregationsBuilder
(int index) Optional.addAllAggregations
(Iterable<? extends AggregationQuery.Aggregation> values) Optional.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Optional.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Nested query for aggregationclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()
getAggregations
(int index) Optional.getAggregationsBuilder
(int index) Optional.Optional.int
Optional.Optional.getAggregationsOrBuilder
(int index) Optional.List<? extends AggregationQuery.AggregationOrBuilder>
Optional.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Nested query for aggregationNested query for aggregationNested query for aggregationboolean
Nested query for aggregationprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(AggregationQuery other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeNestedQuery
(Query value) Nested query for aggregationfinal AggregationQuery.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeAggregations
(int index) Optional.setAggregations
(int index, AggregationQuery.Aggregation value) Optional.setAggregations
(int index, AggregationQuery.Aggregation.Builder builderForValue) Optional.setNestedQuery
(Query value) Nested query for aggregationsetNestedQuery
(Query.Builder builderForValue) Nested query for aggregationsetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final AggregationQuery.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
-
setField
public AggregationQuery.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
-
setRepeatedField
public AggregationQuery.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
-
addRepeatedField
public AggregationQuery.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AggregationQuery.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
-
mergeFrom
public AggregationQuery.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AggregationQuery.Builder>
- Throws:
IOException
-
getQueryTypeCase
- Specified by:
getQueryTypeCase
in interfaceAggregationQueryOrBuilder
-
clearQueryType
-
hasNestedQuery
public boolean hasNestedQuery()Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
- Specified by:
hasNestedQuery
in interfaceAggregationQueryOrBuilder
- Returns:
- Whether the nestedQuery field is set.
-
getNestedQuery
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
- Specified by:
getNestedQuery
in interfaceAggregationQueryOrBuilder
- Returns:
- The nestedQuery.
-
setNestedQuery
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
-
setNestedQuery
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
-
mergeNestedQuery
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
-
clearNestedQuery
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
-
getNestedQueryBuilder
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
-
getNestedQueryOrBuilder
Nested query for aggregation
.google.datastore.v1.Query nested_query = 1;
- Specified by:
getNestedQueryOrBuilder
in interfaceAggregationQueryOrBuilder
-
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];
- Specified by:
getAggregationsList
in interfaceAggregationQueryOrBuilder
-
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];
- Specified by:
getAggregationsCount
in interfaceAggregationQueryOrBuilder
-
getAggregations
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];
- Specified by:
getAggregations
in interfaceAggregationQueryOrBuilder
-
setAggregations
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];
-
setAggregations
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];
-
addAggregations
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];
-
addAggregations
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];
-
addAggregations
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];
-
addAggregations
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];
-
addAllAggregations
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];
-
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];
-
removeAggregations
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];
-
getAggregationsBuilder
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];
-
getAggregationsOrBuilder
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];
- Specified by:
getAggregationsOrBuilder
in interfaceAggregationQueryOrBuilder
-
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];
- Specified by:
getAggregationsOrBuilderList
in interfaceAggregationQueryOrBuilder
-
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];
-
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];
-
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];
-
setUnknownFields
public final AggregationQuery.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
-
mergeUnknownFields
public final AggregationQuery.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
-