public static final class AggregationResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder> 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 | Method and Description |
|---|---|
AggregationResult.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AggregationResult |
build() |
AggregationResult |
buildPartial() |
AggregationResult.Builder |
clear() |
AggregationResult.Builder |
clearAggregateFields() |
AggregationResult.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AggregationResult.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AggregationResult.Builder |
clone() |
boolean |
containsAggregateFields(String key)
The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
|
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`.
|
AggregationResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,Value> |
getMutableAggregateFields()
Deprecated.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
AggregationResult.Builder |
mergeFrom(AggregationResult other) |
AggregationResult.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AggregationResult.Builder |
mergeFrom(com.google.protobuf.Message other) |
AggregationResult.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AggregationResult.Builder |
putAggregateFields(String key,
Value value)
The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
|
AggregationResult.Builder |
putAllAggregateFields(Map<String,Value> values)
The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
|
AggregationResult.Builder |
removeAggregateFields(String key)
The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
|
AggregationResult.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AggregationResult.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AggregationResult.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>public AggregationResult.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>public AggregationResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AggregationResult build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AggregationResult buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AggregationResult.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>public AggregationResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>public AggregationResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>public AggregationResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>public AggregationResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>public AggregationResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>public AggregationResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AggregationResult.Builder>public AggregationResult.Builder mergeFrom(AggregationResult other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>public AggregationResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AggregationResult.Builder>IOExceptionpublic 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 AggregationResult.Builder clearAggregateFields()
public AggregationResult.Builder removeAggregateFields(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;@Deprecated public Map<String,Value> getMutableAggregateFields()
public AggregationResult.Builder putAggregateFields(String key, Value value)
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;public AggregationResult.Builder putAllAggregateFields(Map<String,Value> values)
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;public final AggregationResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>public final AggregationResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>Copyright © 2023 Google LLC. All rights reserved.