preferRest property

bool? get preferRest

Whether to force the use of HTTP/1.1 REST transport until a method that requires gRPC is called. When a method requires gRPC, this Firestore client will load dependent gRPC libraries and then use gRPC transport for communication from that point forward. Currently the only operation that requires gRPC is creating a snapshot listener with the method DocumentReference<T>.onSnapshot(), CollectionReference<T>.onSnapshot(), or Query<T>.onSnapshot().

Implementation

external bool? get preferRest;