File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed
firebase-database/src/main/java/com/google/firebase/database
firebase-firestore/src/main/java/com/google/firebase/firestore
firebase-functions/src/main/java/com/google/firebase/functions Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -305,12 +305,12 @@ public synchronized void setPersistenceCacheSizeBytes(long cacheSizeInBytes) {
305
305
}
306
306
307
307
/**
308
- * Modify this FirebaseDatabase instance to communicate with the Realtime Database emulator.
308
+ * Modifies this FirebaseDatabase instance to communicate with the Realtime Database emulator.
309
309
*
310
- * <p>Note: this must be called before this instance has been used to do any database operations.
310
+ * <p>Note: Call this method before using the instance to do any database operations.
311
311
*
312
- * @param host the emulator host (ex: 10.0.2.2)
313
- * @param port the emulator port (ex: 9000)
312
+ * @param host the emulator host (for example, 10.0.2.2)
313
+ * @param port the emulator port (for example, 9000)
314
314
*/
315
315
public void useEmulator (@ NonNull String host , int port ) {
316
316
if (this .repo != null ) {
Original file line number Diff line number Diff line change @@ -204,12 +204,12 @@ public void setFirestoreSettings(@NonNull FirebaseFirestoreSettings settings) {
204
204
}
205
205
206
206
/**
207
- * Modify this FirebaseDatabase instance to communicate with the Cloud Firestore emulator.
207
+ * Modifies this FirebaseDatabase instance to communicate with the Cloud Firestore emulator.
208
208
*
209
- * <p>Note: this must be called before this instance has been used to do any operations.
209
+ * <p>Note: Call this method before using the instance to do any database operations.
210
210
*
211
- * @param host the emulator host (ex: 10.0.2.2)
212
- * @param port the emulator port (ex: 8080)
211
+ * @param host the emulator host (for example, 10.0.2.2)
212
+ * @param port the emulator port (for example, 8080)
213
213
*/
214
214
public void useEmulator (@ NonNull String host , int port ) {
215
215
if (this .client != null ) {
Original file line number Diff line number Diff line change @@ -209,19 +209,19 @@ URL getURL(String function) {
209
209
}
210
210
}
211
211
212
- /** @deprecated see {@link #useEmulator(String, int)} */
212
+ /** @deprecated Use {@link #useEmulator(String, int)} to connect to the emulator. */
213
213
public void useFunctionsEmulator (@ NonNull String origin ) {
214
214
Preconditions .checkNotNull (origin , "origin cannot be null" );
215
215
urlFormat = origin + "/%2$s/%1$s/%3$s" ;
216
216
}
217
217
218
218
/**
219
- * Modify this FirebaseFunctions instance to communicate with the Cloud Functions emulator.
219
+ * Modifies this FirebaseFunctions instance to communicate with the Cloud Functions emulator.
220
220
*
221
- * <p>Note: this must be called before this instance has been used to do any operations.
221
+ * <p>Note: Call this method before using the instance to do any functions operations.
222
222
*
223
- * @param host the emulator host (ex: 10.0.2.2)
224
- * @param port the emulator port (ex: 5001)
223
+ * @param host the emulator host (for example, 10.0.2.2)
224
+ * @param port the emulator port (for example, 5001)
225
225
*/
226
226
public void useEmulator (@ NonNull String host , int port ) {
227
227
this .emulatorSettings = new EmulatedServiceSettings (host , port );
You can’t perform that action at this time.
0 commit comments