@@ -19,13 +19,39 @@ package com.google.firebase {
19
19
20
20
package com.google.firebase.firestore {
21
21
22
+ public abstract class AggregateField {
23
+ method @NonNull public static com.google.firebase.firestore.AggregateField.AverageAggregateField average(@NonNull String);
24
+ method @NonNull public static com.google.firebase.firestore.AggregateField.AverageAggregateField average(@NonNull com.google.firebase.firestore.FieldPath);
25
+ method @NonNull public static com.google.firebase.firestore.AggregateField.CountAggregateField count();
26
+ method @NonNull @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY) public String getAlias();
27
+ method @NonNull @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY) public String getFieldPath();
28
+ method @NonNull @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY) public String getOperator();
29
+ method @NonNull public static com.google.firebase.firestore.AggregateField.SumAggregateField sum(@NonNull String);
30
+ method @NonNull public static com.google.firebase.firestore.AggregateField.SumAggregateField sum(@NonNull com.google.firebase.firestore.FieldPath);
31
+ }
32
+
33
+ public static class AggregateField.AverageAggregateField extends com.google.firebase.firestore.AggregateField {
34
+ }
35
+
36
+ public static class AggregateField.CountAggregateField extends com.google.firebase.firestore.AggregateField {
37
+ }
38
+
39
+ public static class AggregateField.SumAggregateField extends com.google.firebase.firestore.AggregateField {
40
+ }
41
+
22
42
public class AggregateQuery {
23
43
method @NonNull public com.google.android.gms.tasks.Task<com.google.firebase.firestore.AggregateQuerySnapshot> get(@NonNull com.google.firebase.firestore.AggregateSource);
44
+ method @NonNull @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY) public java.util.List<com.google.firebase.firestore.AggregateField> getAggregateFields();
24
45
method @NonNull public com.google.firebase.firestore.Query getQuery();
25
46
}
26
47
27
48
public class AggregateQuerySnapshot {
49
+ method @Nullable public Object get(@NonNull com.google.firebase.firestore.AggregateField);
50
+ method public long get(@NonNull com.google.firebase.firestore.AggregateField.CountAggregateField);
51
+ method @Nullable public Double get(@NonNull com.google.firebase.firestore.AggregateField.AverageAggregateField);
28
52
method public long getCount();
53
+ method @Nullable public Double getDouble(@NonNull com.google.firebase.firestore.AggregateField);
54
+ method @Nullable public Long getLong(@NonNull com.google.firebase.firestore.AggregateField);
29
55
method @NonNull public com.google.firebase.firestore.AggregateQuery getQuery();
30
56
}
31
57
@@ -411,6 +437,7 @@ package com.google.firebase.firestore {
411
437
method @NonNull public com.google.firebase.firestore.ListenerRegistration addSnapshotListener(@NonNull com.google.firebase.firestore.MetadataChanges, @NonNull com.google.firebase.firestore.EventListener<com.google.firebase.firestore.QuerySnapshot>);
412
438
method @NonNull public com.google.firebase.firestore.ListenerRegistration addSnapshotListener(@NonNull java.util.concurrent.Executor, @NonNull com.google.firebase.firestore.MetadataChanges, @NonNull com.google.firebase.firestore.EventListener<com.google.firebase.firestore.QuerySnapshot>);
413
439
method @NonNull public com.google.firebase.firestore.ListenerRegistration addSnapshotListener(@NonNull android.app.Activity, @NonNull com.google.firebase.firestore.MetadataChanges, @NonNull com.google.firebase.firestore.EventListener<com.google.firebase.firestore.QuerySnapshot>);
440
+ method @NonNull public com.google.firebase.firestore.AggregateQuery aggregate(@NonNull com.google.firebase.firestore.AggregateField, @NonNull com.google.firebase.firestore.AggregateField...);
414
441
method @NonNull public com.google.firebase.firestore.AggregateQuery count();
415
442
method @NonNull public com.google.firebase.firestore.Query endAt(@NonNull com.google.firebase.firestore.DocumentSnapshot);
416
443
method @NonNull public com.google.firebase.firestore.Query endAt(java.lang.Object...);
0 commit comments