Class AggregationQuery.Aggregation.Count (2.23.0)

publicstaticfinalclass AggregationQuery.Aggregation.CountextendsGeneratedMessageV3implementsAggregationQuery.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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AggregationQuery.Aggregation.Count

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

UP_TO_FIELD_NUMBER

publicstaticfinalintUP_TO_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticAggregationQuery.Aggregation.CountgetDefaultInstance()
Returns
Type Description
AggregationQuery.Aggregation.Count

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticAggregationQuery.Aggregation.Count.BuildernewBuilder()
Returns
Type Description
AggregationQuery.Aggregation.Count.Builder

newBuilder(AggregationQuery.Aggregation.Count prototype)

publicstaticAggregationQuery.Aggregation.Count.BuildernewBuilder(AggregationQuery.Aggregation.Countprototype)
Parameter
Name Description
prototype AggregationQuery.Aggregation.Count
Returns
Type Description
AggregationQuery.Aggregation.Count.Builder

parseDelimitedFrom(InputStream input)

publicstaticAggregationQuery.Aggregation.CountparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AggregationQuery.Aggregation.Count
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAggregationQuery.Aggregation.CountparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationQuery.Aggregation.Count
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticAggregationQuery.Aggregation.CountparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
AggregationQuery.Aggregation.Count
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticAggregationQuery.Aggregation.CountparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationQuery.Aggregation.Count
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticAggregationQuery.Aggregation.CountparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
AggregationQuery.Aggregation.Count
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticAggregationQuery.Aggregation.CountparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationQuery.Aggregation.Count
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticAggregationQuery.Aggregation.CountparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AggregationQuery.Aggregation.Count
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAggregationQuery.Aggregation.CountparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationQuery.Aggregation.Count
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticAggregationQuery.Aggregation.CountparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
AggregationQuery.Aggregation.Count
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAggregationQuery.Aggregation.CountparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationQuery.Aggregation.Count
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticAggregationQuery.Aggregation.CountparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AggregationQuery.Aggregation.Count
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticAggregationQuery.Aggregation.CountparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AggregationQuery.Aggregation.Count
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<AggregationQuery.Aggregation.Count>parser()
Returns
Type Description
Parser<Count>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicAggregationQuery.Aggregation.CountgetDefaultInstanceForType()
Returns
Type Description
AggregationQuery.Aggregation.Count

getParserForType()

publicParser<AggregationQuery.Aggregation.Count>getParserForType()
Returns
Type Description
Parser<Count>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUpTo()

publicInt64ValuegetUpTo()

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:

<code><code> AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); </code></code>

Requires:

  • Must be non-negative when present.

.google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Int64Value

The upTo.

getUpToOrBuilder()

publicInt64ValueOrBuildergetUpToOrBuilder()

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:

<code><code> AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); </code></code>

Requires:

  • Must be non-negative when present.

.google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Int64ValueOrBuilder

hasUpTo()

publicbooleanhasUpTo()

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:

<code><code> AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); </code></code>

Requires:

  • Must be non-negative when present.

.google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the upTo field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicAggregationQuery.Aggregation.Count.BuildernewBuilderForType()
Returns
Type Description
AggregationQuery.Aggregation.Count.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedAggregationQuery.Aggregation.Count.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AggregationQuery.Aggregation.Count.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicAggregationQuery.Aggregation.Count.BuildertoBuilder()
Returns
Type Description
AggregationQuery.Aggregation.Count.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.