public final class AggregationResult extends 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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AggregationResultImplements
AggregationResultOrBuilderStatic Fields
AGGREGATE_FIELDS_FIELD_NUMBER
public static final int AGGREGATE_FIELDS_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static AggregationResult getDefaultInstance()
Type | Description |
AggregationResult |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static AggregationResult.Builder newBuilder()
Type | Description |
AggregationResult.Builder |
newBuilder(AggregationResult prototype)
public static AggregationResult.Builder newBuilder(AggregationResult prototype)
Name | Description |
prototype | AggregationResult |
Type | Description |
AggregationResult.Builder |
parseDelimitedFrom(InputStream input)
public static AggregationResult parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
AggregationResult |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AggregationResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResult |
Type | Description |
IOException |
parseFrom(byte[] data)
public static AggregationResult parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
AggregationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AggregationResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static AggregationResult parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
AggregationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AggregationResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static AggregationResult parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
AggregationResult |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AggregationResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResult |
Type | Description |
IOException |
parseFrom(InputStream input)
public static AggregationResult parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
AggregationResult |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AggregationResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResult |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static AggregationResult parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
AggregationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AggregationResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AggregationResult |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<AggregationResult> parser()
Type | Description |
Parser<AggregationResult> |
Methods
containsAggregateFields(String key)
public boolean containsAggregateFields(String key)
The result of the aggregation functions, ex: COUNT(*) AS total_docs
.
The key is the
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;
Name | Description |
key | String |
Type | Description |
boolean |
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getAggregateFields()
public Map<String,Value> getAggregateFields()
Use #getAggregateFieldsMap() instead.
Type | Description |
Map<String,Value> |
getAggregateFieldsCount()
public int getAggregateFieldsCount()
The result of the aggregation functions, ex: COUNT(*) AS total_docs
.
The key is the
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;
Type | Description |
int |
getAggregateFieldsMap()
public Map<String,Value> getAggregateFieldsMap()
The result of the aggregation functions, ex: COUNT(*) AS total_docs
.
The key is the
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;
Type | Description |
Map<String,Value> |
getAggregateFieldsOrDefault(String key, Value defaultValue)
public Value getAggregateFieldsOrDefault(String key, Value defaultValue)
The result of the aggregation functions, ex: COUNT(*) AS total_docs
.
The key is the
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;
Name | Description |
key | String |
defaultValue | Value |
Type | Description |
Value |
getAggregateFieldsOrThrow(String key)
public Value getAggregateFieldsOrThrow(String key)
The result of the aggregation functions, ex: COUNT(*) AS total_docs
.
The key is the
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;
Name | Description |
key | String |
Type | Description |
Value |
getDefaultInstanceForType()
public AggregationResult getDefaultInstanceForType()
Type | Description |
AggregationResult |
getParserForType()
public Parser<AggregationResult> getParserForType()
Type | Description |
Parser<AggregationResult> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public AggregationResult.Builder newBuilderForType()
Type | Description |
AggregationResult.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AggregationResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
AggregationResult.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public AggregationResult.Builder toBuilder()
Type | Description |
AggregationResult.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |