public final class AggregationResult extends com.google.protobuf.GeneratedMessageV3 implements AggregationResultOrBuilder
The result of a single bucket from a Firestore aggregation query. The keys of `aggregate_fields` are the same for all results in an aggregation query, unlike document queries which can have different fields present for each result.Protobuf type
google.firestore.v1.AggregationResult| Modifier and Type | Class and Description |
|---|---|
static class |
AggregationResult.Builder
The result of a single bucket from a Firestore aggregation query.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AGGREGATE_FIELDS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAggregateFields(String key)
The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
|
boolean |
equals(Object obj) |
Map<String,Value> |
getAggregateFields()
Deprecated.
|
int |
getAggregateFieldsCount()
The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
|
Map<String,Value> |
getAggregateFieldsMap()
The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
|
Value |
getAggregateFieldsOrDefault(String key,
Value defaultValue)
The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
|
Value |
getAggregateFieldsOrThrow(String key)
The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
|
static AggregationResult |
getDefaultInstance() |
AggregationResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<AggregationResult> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static AggregationResult.Builder |
newBuilder() |
static AggregationResult.Builder |
newBuilder(AggregationResult prototype) |
AggregationResult.Builder |
newBuilderForType() |
protected AggregationResult.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AggregationResult |
parseDelimitedFrom(InputStream input) |
static AggregationResult |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AggregationResult |
parseFrom(byte[] data) |
static AggregationResult |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AggregationResult |
parseFrom(ByteBuffer data) |
static AggregationResult |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AggregationResult |
parseFrom(com.google.protobuf.ByteString data) |
static AggregationResult |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AggregationResult |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AggregationResult |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AggregationResult |
parseFrom(InputStream input) |
static AggregationResult |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AggregationResult> |
parser() |
AggregationResult.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int AGGREGATE_FIELDS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getAggregateFieldsCount()
AggregationResultOrBuilderThe result of the aggregation functions, ex: `COUNT(*) AS total_docs`. The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
map<string, .google.firestore.v1.Value> aggregate_fields = 2;getAggregateFieldsCount in interface AggregationResultOrBuilderpublic boolean containsAggregateFields(String key)
The result of the aggregation functions, ex: `COUNT(*) AS total_docs`. The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
map<string, .google.firestore.v1.Value> aggregate_fields = 2;containsAggregateFields in interface AggregationResultOrBuilder@Deprecated public Map<String,Value> getAggregateFields()
getAggregateFieldsMap() instead.getAggregateFields in interface AggregationResultOrBuilderpublic Map<String,Value> getAggregateFieldsMap()
The result of the aggregation functions, ex: `COUNT(*) AS total_docs`. The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
map<string, .google.firestore.v1.Value> aggregate_fields = 2;getAggregateFieldsMap in interface AggregationResultOrBuilderpublic Value getAggregateFieldsOrDefault(String key, Value defaultValue)
The result of the aggregation functions, ex: `COUNT(*) AS total_docs`. The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
map<string, .google.firestore.v1.Value> aggregate_fields = 2;getAggregateFieldsOrDefault in interface AggregationResultOrBuilderpublic Value getAggregateFieldsOrThrow(String key)
The result of the aggregation functions, ex: `COUNT(*) AS total_docs`. The key is the [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias] assigned to the aggregation function on input and the size of this map equals the number of aggregation functions in the query.
map<string, .google.firestore.v1.Value> aggregate_fields = 2;getAggregateFieldsOrThrow in interface AggregationResultOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AggregationResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AggregationResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AggregationResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AggregationResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AggregationResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AggregationResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AggregationResult parseFrom(InputStream input) throws IOException
IOExceptionpublic static AggregationResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AggregationResult parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AggregationResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AggregationResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AggregationResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AggregationResult.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AggregationResult.Builder newBuilder()
public static AggregationResult.Builder newBuilder(AggregationResult prototype)
public AggregationResult.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AggregationResult.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AggregationResult getDefaultInstance()
public static com.google.protobuf.Parser<AggregationResult> parser()
public com.google.protobuf.Parser<AggregationResult> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AggregationResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.