@@ -544,6 +544,67 @@ public final UnaryCallable<DeleteDocumentRequest, Empty> deleteDocumentCallable(
544544 return stub .batchGetDocumentsCallable ();
545545 }
546546
547+ // AUTO-GENERATED DOCUMENTATION AND METHOD
548+ /**
549+ * Applies a batch of write operations.
550+ *
551+ * <p>The BatchWrite method does not apply the write operations atomically and can apply them out
552+ * of order. Method does not allow more than one write per document. Each write succeeds or fails
553+ * independently. See the [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the
554+ * success status of each write.
555+ *
556+ * <p>If you require an atomically applied set of writes, use
557+ * [Commit][google.firestore.v1.Firestore.Commit] instead.
558+ *
559+ * <p>Sample code:
560+ *
561+ * <pre><code>
562+ * try (FirestoreClient firestoreClient = FirestoreClient.create()) {
563+ * String database = "";
564+ * BatchWriteRequest request = BatchWriteRequest.newBuilder()
565+ * .setDatabase(database)
566+ * .build();
567+ * BatchWriteResponse response = firestoreClient.batchWrite(request);
568+ * }
569+ * </code></pre>
570+ *
571+ * @param request The request object containing all of the parameters for the API call.
572+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
573+ */
574+ public final BatchWriteResponse batchWrite (BatchWriteRequest request ) {
575+ return batchWriteCallable ().call (request );
576+ }
577+
578+ // AUTO-GENERATED DOCUMENTATION AND METHOD
579+ /**
580+ * Applies a batch of write operations.
581+ *
582+ * <p>The BatchWrite method does not apply the write operations atomically and can apply them out
583+ * of order. Method does not allow more than one write per document. Each write succeeds or fails
584+ * independently. See the [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the
585+ * success status of each write.
586+ *
587+ * <p>If you require an atomically applied set of writes, use
588+ * [Commit][google.firestore.v1.Firestore.Commit] instead.
589+ *
590+ * <p>Sample code:
591+ *
592+ * <pre><code>
593+ * try (FirestoreClient firestoreClient = FirestoreClient.create()) {
594+ * String database = "";
595+ * BatchWriteRequest request = BatchWriteRequest.newBuilder()
596+ * .setDatabase(database)
597+ * .build();
598+ * ApiFuture<BatchWriteResponse> future = firestoreClient.batchWriteCallable().futureCall(request);
599+ * // Do something
600+ * BatchWriteResponse response = future.get();
601+ * }
602+ * </code></pre>
603+ */
604+ public final UnaryCallable <BatchWriteRequest , BatchWriteResponse > batchWriteCallable () {
605+ return stub .batchWriteCallable ();
606+ }
607+
547608 // AUTO-GENERATED DOCUMENTATION AND METHOD
548609 /**
549610 * Starts a new transaction.
@@ -1030,67 +1091,6 @@ public final PartitionQueryPagedResponse partitionQuery(PartitionQueryRequest re
10301091 return stub .partitionQueryCallable ();
10311092 }
10321093
1033- // AUTO-GENERATED DOCUMENTATION AND METHOD
1034- /**
1035- * Applies a batch of write operations.
1036- *
1037- * <p>The BatchWrite method does not apply the write operations atomically and can apply them out
1038- * of order. Method does not allow more than one write per document. Each write succeeds or fails
1039- * independently. See the [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the
1040- * success status of each write.
1041- *
1042- * <p>If you require an atomically applied set of writes, use
1043- * [Commit][google.firestore.v1.Firestore.Commit] instead.
1044- *
1045- * <p>Sample code:
1046- *
1047- * <pre><code>
1048- * try (FirestoreClient firestoreClient = FirestoreClient.create()) {
1049- * String database = "";
1050- * BatchWriteRequest request = BatchWriteRequest.newBuilder()
1051- * .setDatabase(database)
1052- * .build();
1053- * BatchWriteResponse response = firestoreClient.batchWrite(request);
1054- * }
1055- * </code></pre>
1056- *
1057- * @param request The request object containing all of the parameters for the API call.
1058- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1059- */
1060- public final BatchWriteResponse batchWrite (BatchWriteRequest request ) {
1061- return batchWriteCallable ().call (request );
1062- }
1063-
1064- // AUTO-GENERATED DOCUMENTATION AND METHOD
1065- /**
1066- * Applies a batch of write operations.
1067- *
1068- * <p>The BatchWrite method does not apply the write operations atomically and can apply them out
1069- * of order. Method does not allow more than one write per document. Each write succeeds or fails
1070- * independently. See the [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the
1071- * success status of each write.
1072- *
1073- * <p>If you require an atomically applied set of writes, use
1074- * [Commit][google.firestore.v1.Firestore.Commit] instead.
1075- *
1076- * <p>Sample code:
1077- *
1078- * <pre><code>
1079- * try (FirestoreClient firestoreClient = FirestoreClient.create()) {
1080- * String database = "";
1081- * BatchWriteRequest request = BatchWriteRequest.newBuilder()
1082- * .setDatabase(database)
1083- * .build();
1084- * ApiFuture<BatchWriteResponse> future = firestoreClient.batchWriteCallable().futureCall(request);
1085- * // Do something
1086- * BatchWriteResponse response = future.get();
1087- * }
1088- * </code></pre>
1089- */
1090- public final UnaryCallable <BatchWriteRequest , BatchWriteResponse > batchWriteCallable () {
1091- return stub .batchWriteCallable ();
1092- }
1093-
10941094 @ Override
10951095 public final void close () {
10961096 stub .close ();
0 commit comments