Skip to content

Commit 813585c

Browse files
authored
chore: fixed broken google cloud doc reference links (#1112)
1 parent 6b105cc commit 813585c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/main/java/com/google/firebase/cloud/FirestoreClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/**
2121
* {@code FirestoreClient} provides access to Google Cloud Firestore. Use this API to obtain a
22-
* <a href="https://googlecloudplatform.github.io/google-cloud-java/google-cloud-clients/apidocs/com/google/cloud/firestore/Firestore.html">{@code Firestore}</a>
22+
* <a href="https://cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.cloud.firestore.Firestore">{@code Firestore}</a>
2323
* instance, which provides methods for updating and querying data in Firestore.
2424
*
2525
* <p>A Google Cloud project ID is required to access Firestore. FirestoreClient determines the
@@ -60,7 +60,7 @@ private FirestoreClient(FirebaseApp app, String databaseId) {
6060
* same instance for all invocations. The Firestore instance and all references obtained from it
6161
* becomes unusable, once the default app is deleted.
6262
*
63-
* @return A non-null <a href="https://googlecloudplatform.github.io/google-cloud-java/google-cloud-clients/apidocs/com/google/cloud/firestore/Firestore.html">{@code Firestore}</a>
63+
* @return A non-null <a href="https://cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.cloud.firestore.Firestore">{@code Firestore}</a>
6464
* instance.
6565
*/
6666
@NonNull
@@ -74,7 +74,7 @@ public static Firestore getFirestore() {
7474
* obtained from it becomes unusable, once the specified app is deleted.
7575
*
7676
* @param app A non-null {@link FirebaseApp}.
77-
* @return A non-null <a href="https://googlecloudplatform.github.io/google-cloud-java/google-cloud-clients/apidocs/com/google/cloud/firestore/Firestore.html">{@code Firestore}</a>
77+
* @return A non-null <a href="https://cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.cloud.firestore.Firestore">{@code Firestore}</a>
7878
* instance.
7979
*/
8080
@NonNull
@@ -90,7 +90,7 @@ public static Firestore getFirestore(FirebaseApp app) {
9090
*
9191
* @param app A non-null {@link FirebaseApp}.
9292
* @param database - The name of database.
93-
* @return A non-null <a href="https://googlecloudplatform.github.io/google-cloud-java/google-cloud-clients/apidocs/com/google/cloud/firestore/Firestore.html">{@code Firestore}</a>
93+
* @return A non-null <a href="https://cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.cloud.firestore.Firestore">{@code Firestore}</a>
9494
* instance.
9595
*/
9696
@NonNull
@@ -104,7 +104,7 @@ public static Firestore getFirestore(FirebaseApp app, String database) {
104104
* references obtained from it becomes unusable, once the default app is deleted.
105105
*
106106
* @param database - The name of database.
107-
* @return A non-null <a href="https://googlecloudplatform.github.io/google-cloud-java/google-cloud-clients/apidocs/com/google/cloud/firestore/Firestore.html">{@code Firestore}</a>
107+
* @return A non-null <a href="https://cloud.google.com/java/docs/reference/google-cloud-firestore/latest/com.google.cloud.firestore.Firestore">{@code Firestore}</a>
108108
* instance.
109109
*/
110110
@NonNull

src/main/java/com/google/firebase/cloud/StorageClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static synchronized StorageClient getInstance(FirebaseApp app) {
7171
* configured via {@link com.google.firebase.FirebaseOptions} when initializing the app. If
7272
* no bucket was configured via options, this method throws an exception.
7373
*
74-
* @return a cloud storage <a href="https://googlecloudplatform.github.io/google-cloud-java/google-cloud-clients/apidocs/com/google/cloud/storage/Bucket.html">{@code Bucket}</a>
74+
* @return a cloud storage <a href="https://cloud.google.com/java/docs/reference/google-cloud-storage/latest/com.google.cloud.storage.Bucket">{@code Bucket}</a>
7575
* instance.
7676
* @throws IllegalArgumentException If no bucket is configured via <code>FirebaseOptions</code>,
7777
* or if the bucket does not exist.
@@ -84,7 +84,7 @@ public Bucket bucket() {
8484
* Returns a cloud storage Bucket instance for the specified bucket name.
8585
*
8686
* @param name a non-null, non-empty bucket name.
87-
* @return a cloud storage <a href="https://googlecloudplatform.github.io/google-cloud-java/latest/google-cloud-clients/com/google/cloud/storage/Bucket.html">{@code Bucket}</a>
87+
* @return a cloud storage <a href="https://cloud.google.com/java/docs/reference/google-cloud-storage/latest/com.google.cloud.storage.Bucket">{@code Bucket}</a>
8888
* instance.
8989
* @throws IllegalArgumentException If the bucket name is null, empty, or if the specified
9090
* bucket does not exist.

src/test/java/com/google/firebase/snippets/FirebaseStorageSnippets.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void initializeAppForStorage() throws IOException {
4242
Bucket bucket = StorageClient.getInstance().bucket();
4343

4444
// 'bucket' is an object defined in the google-cloud-storage Java library.
45-
// See http://googlecloudplatform.github.io/google-cloud-java/latest/apidocs/com/google/cloud/storage/Bucket.html
45+
// See https://cloud.google.com/java/docs/reference/google-cloud-storage/latest/com.google.cloud.storage.Bucket
4646
// for more details.
4747
// [END init_admin_sdk_for_storage]
4848
System.out.println("Retrieved bucket: " + bucket.getName());

0 commit comments

Comments
 (0)