Class AggregationQuery.Aggregation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
com.google.datastore.v1.AggregationQuery.Aggregation.Builder
All Implemented Interfaces:
AggregationQuery.AggregationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AggregationQuery.Aggregation

public static final class AggregationQuery.Aggregation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder> implements AggregationQuery.AggregationOrBuilder
 Defines an aggregation that produces a single result.
 
Protobuf type google.datastore.v1.AggregationQuery.Aggregation
  • 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.Aggregation.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.Aggregation.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.Aggregation.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AggregationQuery.Aggregation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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.Aggregation.Builder>
    • setField

      public AggregationQuery.Aggregation.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.Aggregation.Builder>
    • clearField

      public AggregationQuery.Aggregation.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.Aggregation.Builder>
    • clearOneof

      public AggregationQuery.Aggregation.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.Aggregation.Builder>
    • setRepeatedField

      public AggregationQuery.Aggregation.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.Aggregation.Builder>
    • addRepeatedField

      public AggregationQuery.Aggregation.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.Aggregation.Builder>
    • mergeFrom

      public AggregationQuery.Aggregation.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.Aggregation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Builder>
    • mergeFrom

      public AggregationQuery.Aggregation.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.Aggregation.Builder>
      Throws:
      IOException
    • getOperatorCase

      Specified by:
      getOperatorCase in interface AggregationQuery.AggregationOrBuilder
    • clearOperator

      public AggregationQuery.Aggregation.Builder clearOperator()
    • hasCount

      public boolean hasCount()
       Count aggregator.
       
      .google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
      Specified by:
      hasCount in interface AggregationQuery.AggregationOrBuilder
      Returns:
      Whether the count field is set.
    • getCount

       Count aggregator.
       
      .google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
      Specified by:
      getCount in interface AggregationQuery.AggregationOrBuilder
      Returns:
      The count.
    • setCount

       Count aggregator.
       
      .google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
    • setCount

       Count aggregator.
       
      .google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
    • mergeCount

       Count aggregator.
       
      .google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
    • clearCount

       Count aggregator.
       
      .google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
    • getCountBuilder

       Count aggregator.
       
      .google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
    • getCountOrBuilder

      public AggregationQuery.Aggregation.CountOrBuilder getCountOrBuilder()
       Count aggregator.
       
      .google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
      Specified by:
      getCountOrBuilder in interface AggregationQuery.AggregationOrBuilder
    • getAlias

      public String getAlias()
       Optional. Optional name of the property to store the result of the
       aggregation.
      
       If not provided, Datastore will pick a default name following the format
       `property_<incremental_id++>`. For example:
      
       ```
       AGGREGATE
         COUNT_UP_TO(1) AS count_up_to_1,
         COUNT_UP_TO(2),
         COUNT_UP_TO(3) AS count_up_to_3,
         COUNT(*)
       OVER (
         ...
       );
       ```
      
       becomes:
      
       ```
       AGGREGATE
         COUNT_UP_TO(1) AS count_up_to_1,
         COUNT_UP_TO(2) AS property_1,
         COUNT_UP_TO(3) AS count_up_to_3,
         COUNT(*) AS property_2
       OVER (
         ...
       );
       ```
      
       Requires:
      
       * Must be unique across all aggregation aliases.
       * Conform to [entity property
       name][google.datastore.v1.Entity.properties] limitations.
       
      string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAlias in interface AggregationQuery.AggregationOrBuilder
      Returns:
      The alias.
    • getAliasBytes

      public com.google.protobuf.ByteString getAliasBytes()
       Optional. Optional name of the property to store the result of the
       aggregation.
      
       If not provided, Datastore will pick a default name following the format
       `property_<incremental_id++>`. For example:
      
       ```
       AGGREGATE
         COUNT_UP_TO(1) AS count_up_to_1,
         COUNT_UP_TO(2),
         COUNT_UP_TO(3) AS count_up_to_3,
         COUNT(*)
       OVER (
         ...
       );
       ```
      
       becomes:
      
       ```
       AGGREGATE
         COUNT_UP_TO(1) AS count_up_to_1,
         COUNT_UP_TO(2) AS property_1,
         COUNT_UP_TO(3) AS count_up_to_3,
         COUNT(*) AS property_2
       OVER (
         ...
       );
       ```
      
       Requires:
      
       * Must be unique across all aggregation aliases.
       * Conform to [entity property
       name][google.datastore.v1.Entity.properties] limitations.
       
      string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAliasBytes in interface AggregationQuery.AggregationOrBuilder
      Returns:
      The bytes for alias.
    • setAlias

       Optional. Optional name of the property to store the result of the
       aggregation.
      
       If not provided, Datastore will pick a default name following the format
       `property_<incremental_id++>`. For example:
      
       ```
       AGGREGATE
         COUNT_UP_TO(1) AS count_up_to_1,
         COUNT_UP_TO(2),
         COUNT_UP_TO(3) AS count_up_to_3,
         COUNT(*)
       OVER (
         ...
       );
       ```
      
       becomes:
      
       ```
       AGGREGATE
         COUNT_UP_TO(1) AS count_up_to_1,
         COUNT_UP_TO(2) AS property_1,
         COUNT_UP_TO(3) AS count_up_to_3,
         COUNT(*) AS property_2
       OVER (
         ...
       );
       ```
      
       Requires:
      
       * Must be unique across all aggregation aliases.
       * Conform to [entity property
       name][google.datastore.v1.Entity.properties] limitations.
       
      string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The alias to set.
      Returns:
      This builder for chaining.
    • clearAlias

       Optional. Optional name of the property to store the result of the
       aggregation.
      
       If not provided, Datastore will pick a default name following the format
       `property_<incremental_id++>`. For example:
      
       ```
       AGGREGATE
         COUNT_UP_TO(1) AS count_up_to_1,
         COUNT_UP_TO(2),
         COUNT_UP_TO(3) AS count_up_to_3,
         COUNT(*)
       OVER (
         ...
       );
       ```
      
       becomes:
      
       ```
       AGGREGATE
         COUNT_UP_TO(1) AS count_up_to_1,
         COUNT_UP_TO(2) AS property_1,
         COUNT_UP_TO(3) AS count_up_to_3,
         COUNT(*) AS property_2
       OVER (
         ...
       );
       ```
      
       Requires:
      
       * Must be unique across all aggregation aliases.
       * Conform to [entity property
       name][google.datastore.v1.Entity.properties] limitations.
       
      string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAliasBytes

      public AggregationQuery.Aggregation.Builder setAliasBytes(com.google.protobuf.ByteString value)
       Optional. Optional name of the property to store the result of the
       aggregation.
      
       If not provided, Datastore will pick a default name following the format
       `property_<incremental_id++>`. For example:
      
       ```
       AGGREGATE
         COUNT_UP_TO(1) AS count_up_to_1,
         COUNT_UP_TO(2),
         COUNT_UP_TO(3) AS count_up_to_3,
         COUNT(*)
       OVER (
         ...
       );
       ```
      
       becomes:
      
       ```
       AGGREGATE
         COUNT_UP_TO(1) AS count_up_to_1,
         COUNT_UP_TO(2) AS property_1,
         COUNT_UP_TO(3) AS count_up_to_3,
         COUNT(*) AS property_2
       OVER (
         ...
       );
       ```
      
       Requires:
      
       * Must be unique across all aggregation aliases.
       * Conform to [entity property
       name][google.datastore.v1.Entity.properties] limitations.
       
      string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for alias to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final AggregationQuery.Aggregation.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.Aggregation.Builder>
    • mergeUnknownFields

      public final AggregationQuery.Aggregation.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.Aggregation.Builder>