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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
public AggregationResult getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public AggregationResult build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public AggregationResult buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public AggregationResult.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<AggregationResult.Builder>
IOException
public int getAggregateFieldsCount()
AggregationResultOrBuilder
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;
getAggregateFieldsCount
in interface AggregationResultOrBuilder
public 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 AggregationResultOrBuilder
public 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 AggregationResultOrBuilder
public 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 AggregationResultOrBuilder
public 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 AggregationResultOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<AggregationResult.Builder>
Copyright © 2023 Google LLC. All rights reserved.