Class AggregationQuery.Aggregation.Count.Builder

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

public static final class AggregationQuery.Aggregation.Count.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AggregationQuery.Aggregation.Count.Builder> implements AggregationQuery.Aggregation.CountOrBuilder
 Count of entities that match the query.

 The `COUNT(*)` aggregation function operates on the entire entity
 so it does not require a field reference.
 
Protobuf type google.datastore.v1.AggregationQuery.Aggregation.Count
  • 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.Count.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.Count.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.Count.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public boolean hasUpTo()
       Optional. Optional constraint on the maximum number of entities to
       count.
      
       This provides a way to set an upper bound on the number of entities
       to scan, limiting latency, and cost.
      
       Unspecified is interpreted as no bound.
      
       If a zero value is provided, a count result of zero should always be
       expected.
      
       High-Level Example:
      
       ```
       AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
       ```
      
       Requires:
      
       * Must be non-negative when present.
       
      .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUpTo in interface AggregationQuery.Aggregation.CountOrBuilder
      Returns:
      Whether the upTo field is set.
    • getUpTo

      public com.google.protobuf.Int64Value getUpTo()
       Optional. Optional constraint on the maximum number of entities to
       count.
      
       This provides a way to set an upper bound on the number of entities
       to scan, limiting latency, and cost.
      
       Unspecified is interpreted as no bound.
      
       If a zero value is provided, a count result of zero should always be
       expected.
      
       High-Level Example:
      
       ```
       AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
       ```
      
       Requires:
      
       * Must be non-negative when present.
       
      .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpTo in interface AggregationQuery.Aggregation.CountOrBuilder
      Returns:
      The upTo.
    • setUpTo

      public AggregationQuery.Aggregation.Count.Builder setUpTo(com.google.protobuf.Int64Value value)
       Optional. Optional constraint on the maximum number of entities to
       count.
      
       This provides a way to set an upper bound on the number of entities
       to scan, limiting latency, and cost.
      
       Unspecified is interpreted as no bound.
      
       If a zero value is provided, a count result of zero should always be
       expected.
      
       High-Level Example:
      
       ```
       AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
       ```
      
       Requires:
      
       * Must be non-negative when present.
       
      .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setUpTo

      public AggregationQuery.Aggregation.Count.Builder setUpTo(com.google.protobuf.Int64Value.Builder builderForValue)
       Optional. Optional constraint on the maximum number of entities to
       count.
      
       This provides a way to set an upper bound on the number of entities
       to scan, limiting latency, and cost.
      
       Unspecified is interpreted as no bound.
      
       If a zero value is provided, a count result of zero should always be
       expected.
      
       High-Level Example:
      
       ```
       AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
       ```
      
       Requires:
      
       * Must be non-negative when present.
       
      .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeUpTo

      public AggregationQuery.Aggregation.Count.Builder mergeUpTo(com.google.protobuf.Int64Value value)
       Optional. Optional constraint on the maximum number of entities to
       count.
      
       This provides a way to set an upper bound on the number of entities
       to scan, limiting latency, and cost.
      
       Unspecified is interpreted as no bound.
      
       If a zero value is provided, a count result of zero should always be
       expected.
      
       High-Level Example:
      
       ```
       AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
       ```
      
       Requires:
      
       * Must be non-negative when present.
       
      .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearUpTo

       Optional. Optional constraint on the maximum number of entities to
       count.
      
       This provides a way to set an upper bound on the number of entities
       to scan, limiting latency, and cost.
      
       Unspecified is interpreted as no bound.
      
       If a zero value is provided, a count result of zero should always be
       expected.
      
       High-Level Example:
      
       ```
       AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
       ```
      
       Requires:
      
       * Must be non-negative when present.
       
      .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getUpToBuilder

      public com.google.protobuf.Int64Value.Builder getUpToBuilder()
       Optional. Optional constraint on the maximum number of entities to
       count.
      
       This provides a way to set an upper bound on the number of entities
       to scan, limiting latency, and cost.
      
       Unspecified is interpreted as no bound.
      
       If a zero value is provided, a count result of zero should always be
       expected.
      
       High-Level Example:
      
       ```
       AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
       ```
      
       Requires:
      
       * Must be non-negative when present.
       
      .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getUpToOrBuilder

      public com.google.protobuf.Int64ValueOrBuilder getUpToOrBuilder()
       Optional. Optional constraint on the maximum number of entities to
       count.
      
       This provides a way to set an upper bound on the number of entities
       to scan, limiting latency, and cost.
      
       Unspecified is interpreted as no bound.
      
       If a zero value is provided, a count result of zero should always be
       expected.
      
       High-Level Example:
      
       ```
       AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
       ```
      
       Requires:
      
       * Must be non-negative when present.
       
      .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpToOrBuilder in interface AggregationQuery.Aggregation.CountOrBuilder
    • setUnknownFields

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

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