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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
    • clear

      public AggregationQuery.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
    • getDefaultInstanceForType

      public AggregationQuery getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AggregationQuery build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AggregationQuery buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public AggregationQuery.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
    • setField

      public AggregationQuery.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
    • clearField

      public AggregationQuery.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
    • clearOneof

      public AggregationQuery.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
    • addRepeatedField

      public AggregationQuery.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
    • mergeFrom

      public AggregationQuery.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AggregationQuery.Builder>
    • mergeFrom

      public AggregationQuery.Builder mergeFrom(AggregationQuery other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AggregationQuery.Builder>
      Throws:
      IOException
    • getQueryTypeCase

      public AggregationQuery.QueryTypeCase getQueryTypeCase()
      Specified by:
      getQueryTypeCase in interface AggregationQueryOrBuilder
    • clearQueryType

      public AggregationQuery.Builder clearQueryType()
    • hasNestedQuery

      public boolean hasNestedQuery()
       Nested query for aggregation
       
      .google.datastore.v1.Query nested_query = 1;
      Specified by:
      hasNestedQuery in interface AggregationQueryOrBuilder
      Returns:
      Whether the nestedQuery field is set.
    • getNestedQuery

      public Query getNestedQuery()
       Nested query for aggregation
       
      .google.datastore.v1.Query nested_query = 1;
      Specified by:
      getNestedQuery in interface AggregationQueryOrBuilder
      Returns:
      The nestedQuery.
    • setNestedQuery

      public AggregationQuery.Builder setNestedQuery(Query value)
       Nested query for aggregation
       
      .google.datastore.v1.Query nested_query = 1;
    • setNestedQuery

      public AggregationQuery.Builder setNestedQuery(Query.Builder builderForValue)
       Nested query for aggregation
       
      .google.datastore.v1.Query nested_query = 1;
    • mergeNestedQuery

      public AggregationQuery.Builder mergeNestedQuery(Query value)
       Nested query for aggregation
       
      .google.datastore.v1.Query nested_query = 1;
    • clearNestedQuery

      public AggregationQuery.Builder clearNestedQuery()
       Nested query for aggregation
       
      .google.datastore.v1.Query nested_query = 1;
    • getNestedQueryBuilder

      public Query.Builder getNestedQueryBuilder()
       Nested query for aggregation
       
      .google.datastore.v1.Query nested_query = 1;
    • getNestedQueryOrBuilder

      public QueryOrBuilder getNestedQueryOrBuilder()
       Nested query for aggregation
       
      .google.datastore.v1.Query nested_query = 1;
      Specified by:
      getNestedQueryOrBuilder in interface AggregationQueryOrBuilder
    • 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];
      Specified by:
      getAggregationsList in interface AggregationQueryOrBuilder
    • 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 interface AggregationQueryOrBuilder
    • getAggregations

      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];
      Specified by:
      getAggregations in interface AggregationQueryOrBuilder
    • setAggregations

      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];
    • 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

      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];
    • 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

      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];
    • removeAggregations

      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];
    • getAggregationsBuilder

      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];
    • getAggregationsOrBuilder

      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];
      Specified by:
      getAggregationsOrBuilder in interface AggregationQueryOrBuilder
    • 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];
      Specified by:
      getAggregationsOrBuilderList in interface AggregationQueryOrBuilder
    • 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];
    • addAggregationsBuilder

      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];
    • 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];
    • setUnknownFields

      public final AggregationQuery.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>
    • mergeUnknownFields

      public final AggregationQuery.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Builder>