Skip to content

Commit ae41f88

Browse files
committed
API documentation
1 parent 6800f44 commit ae41f88

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

firebase-firestore/api.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ package com.google.firebase.firestore {
123123
method @Nullable public String getString(@NonNull String);
124124
method @Nullable public com.google.firebase.Timestamp getTimestamp(@NonNull String);
125125
method @Nullable public com.google.firebase.Timestamp getTimestamp(@NonNull String, @NonNull com.google.firebase.firestore.DocumentSnapshot.ServerTimestampBehavior);
126+
method @Nullable public com.google.firebase.firestore.VectorValue getVectorValue(@NonNull String);
126127
method @Nullable public <T> T toObject(@NonNull Class<T>);
127128
method @Nullable public <T> T toObject(@NonNull Class<T>, @NonNull com.google.firebase.firestore.DocumentSnapshot.ServerTimestampBehavior);
128129
}
@@ -152,6 +153,7 @@ package com.google.firebase.firestore {
152153
method @NonNull public static com.google.firebase.firestore.FieldValue increment(long);
153154
method @NonNull public static com.google.firebase.firestore.FieldValue increment(double);
154155
method @NonNull public static com.google.firebase.firestore.FieldValue serverTimestamp();
156+
method @NonNull public static com.google.firebase.firestore.VectorValue vector(@NonNull double[]);
155157
}
156158

157159
public class Filter {
@@ -554,6 +556,10 @@ package com.google.firebase.firestore {
554556
method @NonNull public com.google.firebase.firestore.TransactionOptions.Builder setMaxAttempts(int);
555557
}
556558

559+
public class VectorValue implements java.io.Serializable {
560+
method @NonNull public double[] toArray();
561+
}
562+
557563
public class WriteBatch {
558564
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> commit();
559565
method @NonNull public com.google.firebase.firestore.WriteBatch delete(@NonNull com.google.firebase.firestore.DocumentReference);

firebase-firestore/src/main/java/com/google/firebase/firestore/VectorValue.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
import java.io.Serializable;
2020
import java.util.Arrays;
2121

22+
/**
23+
* Represent a vector type in Firestore documents.
24+
* Create an instance with {@link FieldValue#vector(double[])}.
25+
*/
2226
public class VectorValue implements Serializable {
2327
private final double[] values;
2428

0 commit comments

Comments
 (0)