Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 3c28cde

Browse files
chore: generate libraries at Mon Apr 14 16:16:03 UTC 2025
1 parent 70845a6 commit 3c28cde

238 files changed

Lines changed: 6669 additions & 488 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/renovate_config_check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
renovate_bot_config_validation:
10-
runs-on: ubuntu-24.04
10+
runs-on: ubuntu-22.04
1111

1212
steps:
1313
- name: Checkout code
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Node.js
1717
uses: actions/setup-node@v4
1818
with:
19-
node-version: '22'
19+
node-version: '20'
2020

2121
- name: Install Renovate and Config Validator
2222
run: |

.github/workflows/update_generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121

2222
jobs:
2323
update-generation-config:
24-
runs-on: ubuntu-24.04
24+
runs-on: ubuntu-22.04
2525
env:
2626
# the branch into which the pull request is merged
2727
base_branch: main

google-cloud-firestore-admin/src/test/java/com/google/cloud/firestore/v1/MockFirestoreAdminImpl.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,8 @@ public void createBackupSchedule(
499499
responseObserver.onError(
500500
new IllegalArgumentException(
501501
String.format(
502-
"Unrecognized response type %s for method CreateBackupSchedule, expected %s or %s",
502+
"Unrecognized response type %s for method CreateBackupSchedule, expected %s or"
503+
+ " %s",
503504
response == null ? "null" : response.getClass().getName(),
504505
BackupSchedule.class.getName(),
505506
Exception.class.getName())));
@@ -563,7 +564,8 @@ public void updateBackupSchedule(
563564
responseObserver.onError(
564565
new IllegalArgumentException(
565566
String.format(
566-
"Unrecognized response type %s for method UpdateBackupSchedule, expected %s or %s",
567+
"Unrecognized response type %s for method UpdateBackupSchedule, expected %s or"
568+
+ " %s",
567569
response == null ? "null" : response.getClass().getName(),
568570
BackupSchedule.class.getName(),
569571
Exception.class.getName())));
@@ -584,7 +586,8 @@ public void deleteBackupSchedule(
584586
responseObserver.onError(
585587
new IllegalArgumentException(
586588
String.format(
587-
"Unrecognized response type %s for method DeleteBackupSchedule, expected %s or %s",
589+
"Unrecognized response type %s for method DeleteBackupSchedule, expected %s or"
590+
+ " %s",
588591
response == null ? "null" : response.getClass().getName(),
589592
Empty.class.getName(),
590593
Exception.class.getName())));

google-cloud-firestore/src/main/java/com/google/cloud/firestore/BulkWriterException.java

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,37 @@ public BulkWriterException(
4141
this.failedAttempts = failedAttempts;
4242
}
4343

44-
/** @return The status code of the error. */
44+
/**
45+
* @return The status code of the error.
46+
*/
4547
public Status getStatus() {
4648
return status;
4749
}
4850

49-
/** @return The error message of the error. */
51+
/**
52+
* @return The error message of the error.
53+
*/
5054
public String getMessage() {
5155
return message;
5256
}
5357

54-
/** @return The DocumentReference the operation was performed on. */
58+
/**
59+
* @return The DocumentReference the operation was performed on.
60+
*/
5561
public DocumentReference getDocumentReference() {
5662
return documentReference;
5763
}
5864

59-
/** @return The type of operation performed. */
65+
/**
66+
* @return The type of operation performed.
67+
*/
6068
public OperationType getOperationType() {
6169
return operationType;
6270
}
6371

64-
/** @return How many times this operation has been attempted unsuccessfully. */
72+
/**
73+
* @return How many times this operation has been attempted unsuccessfully.
74+
*/
6575
public int getFailedAttempts() {
6676
return failedAttempts;
6777
}

google-cloud-firestore/src/main/java/com/google/cloud/firestore/BulkWriterOptions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ public BulkWriterOptions build() {
148148

149149
if (!options.getThrottlingEnabled() && (maxRate != null || initialRate != null)) {
150150
throw FirestoreException.forInvalidArgument(
151-
"Cannot set 'initialOpsPerSecond' or 'maxOpsPerSecond' when 'throttlingEnabled' is set to false.");
151+
"Cannot set 'initialOpsPerSecond' or 'maxOpsPerSecond' when 'throttlingEnabled' is set"
152+
+ " to false.");
152153
}
153154
return options;
154155
}

google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreBundle.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ private Builder add(DocumentSnapshot documentSnapshot, Optional<String> queryNam
112112
documents
113113
.get(documentName)
114114
.setMetadata(
115-
documents
116-
.get(documentName)
117-
.getMetadata()
118-
.toBuilder()
115+
documents.get(documentName).getMetadata().toBuilder()
119116
.clearQueries()
120117
.addAllQueries(queries)
121118
.build());

google-cloud-firestore/src/main/java/com/google/cloud/firestore/Query.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,8 +1336,9 @@ private void warningOnSingleDocumentReference(Object... fieldValues) {
13361336
&& fieldValues.length == 1
13371337
&& fieldValues[0] instanceof DocumentReference) {
13381338
LOGGER.warning(
1339-
"Warning: Passing DocumentReference into a cursor without orderBy clause is not an intended "
1340-
+ "behavior. Please use DocumentSnapshot or add an explicit orderBy on document key field.");
1339+
"Warning: Passing DocumentReference into a cursor without orderBy clause is not an"
1340+
+ " intended behavior. Please use DocumentSnapshot or add an explicit orderBy on"
1341+
+ " document key field.");
13411342
}
13421343
}
13431344

@@ -1385,9 +1386,7 @@ StructuredQuery.Builder buildQuery() {
13851386
if (options.getStartCursor() != null) {
13861387
// Swap the cursors to match the flipped query ordering.
13871388
Cursor cursor =
1388-
options
1389-
.getStartCursor()
1390-
.toBuilder()
1389+
options.getStartCursor().toBuilder()
13911390
.setBefore(!options.getStartCursor().getBefore())
13921391
.build();
13931392
structuredQuery.setEndAt(cursor);
@@ -1396,9 +1395,7 @@ StructuredQuery.Builder buildQuery() {
13961395
if (options.getEndCursor() != null) {
13971396
// Swap the cursors to match the flipped query ordering.
13981397
Cursor cursor =
1399-
options
1400-
.getEndCursor()
1401-
.toBuilder()
1398+
options.getEndCursor().toBuilder()
14021399
.setBefore(!options.getEndCursor().getBefore())
14031400
.build();
14041401
structuredQuery.setStartAt(cursor);

google-cloud-firestore/src/main/java/com/google/cloud/firestore/ServerSideTransactionRunner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ private ApiFuture<T> restartTransactionCallback(Throwable throwable) {
271271
/** Determines whether the provided error is considered retryable. */
272272
private static boolean isRetryableTransactionError(ApiException exception) {
273273
switch (exception.getStatusCode().getCode()) {
274-
// This list is based on
275-
// https://github.com/firebase/firebase-js-sdk/blob/c822e78b00dd3420dcc749beb2f09a947aa4a344/packages/firestore/src/core/transaction_runner.ts#L112
274+
// This list is based on
275+
// https://github.com/firebase/firebase-js-sdk/blob/c822e78b00dd3420dcc749beb2f09a947aa4a344/packages/firestore/src/core/transaction_runner.ts#L112
276276
case ABORTED:
277277
case CANCELLED:
278278
case UNKNOWN:

google-cloud-firestore/src/main/java/com/google/cloud/firestore/StreamableQuery.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public Firestore getFirestore() {
8989
MetricsContext createMetricsContext(String methodName) {
9090
return getFirestore().getOptions().getMetricsUtil().createMetricsContext(methodName);
9191
}
92+
9293
/**
9394
* Executes the query and returns the results as QuerySnapshot.
9495
*

google-cloud-firestore/src/main/java/com/google/cloud/firestore/TransactionOptions.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ public int getNumberOfAttempts() {
7272
return numberOfAttempts;
7373
}
7474

75-
/** @return Executor to be used to run user callbacks on */
75+
/**
76+
* @return Executor to be used to run user callbacks on
77+
*/
7678
@Nullable
7779
public Executor getExecutor() {
7880
return executor;
@@ -214,7 +216,9 @@ public B setExecutor(@Nullable Executor executor) {
214216
return (B) this;
215217
}
216218

217-
/** @return an instance of {@link TransactionOptions} from the values passed to this builder */
219+
/**
220+
* @return an instance of {@link TransactionOptions} from the values passed to this builder
221+
*/
218222
@Nonnull
219223
public abstract TransactionOptions build();
220224
}
@@ -232,7 +236,9 @@ private ReadOnlyOptionsBuilder(@Nullable Executor executor, @Nullable Timestamp
232236
this.readTime = readTime;
233237
}
234238

235-
/** @return the currently set value that will be used as the readTime. */
239+
/**
240+
* @return the currently set value that will be used as the readTime.
241+
*/
236242
@Nullable
237243
public TimestampOrBuilder getReadTime() {
238244
return readTime;

0 commit comments

Comments
 (0)