Skip to content

Commit

Permalink
fix: make request optional in all cases (#1536)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/a5e72088-ff72-4878-81b8-64ec843e7a09/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

PiperOrigin-RevId: 380641501
Source-Link: googleapis/googleapis@076f7e9
  • Loading branch information
yoshi-automation authored Jun 22, 2021
1 parent 1805c3f commit f6edfc1
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 96 deletions.
36 changes: 18 additions & 18 deletions dev/src/v1/firestore_admin_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ export class FirestoreAdminClient {
// -- Service calls --
// -------------------
getIndex(
request: protos.google.firestore.admin.v1.IGetIndexRequest,
request?: protos.google.firestore.admin.v1.IGetIndexRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -435,7 +435,7 @@ export class FirestoreAdminClient {
* const [response] = await client.getIndex(request);
*/
getIndex(
request: protos.google.firestore.admin.v1.IGetIndexRequest,
request?: protos.google.firestore.admin.v1.IGetIndexRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -474,7 +474,7 @@ export class FirestoreAdminClient {
return this.innerApiCalls.getIndex(request, options, callback);
}
deleteIndex(
request: protos.google.firestore.admin.v1.IDeleteIndexRequest,
request?: protos.google.firestore.admin.v1.IDeleteIndexRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -519,7 +519,7 @@ export class FirestoreAdminClient {
* const [response] = await client.deleteIndex(request);
*/
deleteIndex(
request: protos.google.firestore.admin.v1.IDeleteIndexRequest,
request?: protos.google.firestore.admin.v1.IDeleteIndexRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -560,7 +560,7 @@ export class FirestoreAdminClient {
return this.innerApiCalls.deleteIndex(request, options, callback);
}
getField(
request: protos.google.firestore.admin.v1.IGetFieldRequest,
request?: protos.google.firestore.admin.v1.IGetFieldRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -605,7 +605,7 @@ export class FirestoreAdminClient {
* const [response] = await client.getField(request);
*/
getField(
request: protos.google.firestore.admin.v1.IGetFieldRequest,
request?: protos.google.firestore.admin.v1.IGetFieldRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -645,7 +645,7 @@ export class FirestoreAdminClient {
}

createIndex(
request: protos.google.firestore.admin.v1.ICreateIndexRequest,
request?: protos.google.firestore.admin.v1.ICreateIndexRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -706,7 +706,7 @@ export class FirestoreAdminClient {
* const [response] = await operation.promise();
*/
createIndex(
request: protos.google.firestore.admin.v1.ICreateIndexRequest,
request?: protos.google.firestore.admin.v1.ICreateIndexRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -791,7 +791,7 @@ export class FirestoreAdminClient {
>;
}
updateField(
request: protos.google.firestore.admin.v1.IUpdateFieldRequest,
request?: protos.google.firestore.admin.v1.IUpdateFieldRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -862,7 +862,7 @@ export class FirestoreAdminClient {
* const [response] = await operation.promise();
*/
updateField(
request: protos.google.firestore.admin.v1.IUpdateFieldRequest,
request?: protos.google.firestore.admin.v1.IUpdateFieldRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -947,7 +947,7 @@ export class FirestoreAdminClient {
>;
}
exportDocuments(
request: protos.google.firestore.admin.v1.IExportDocumentsRequest,
request?: protos.google.firestore.admin.v1.IExportDocumentsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1022,7 +1022,7 @@ export class FirestoreAdminClient {
* const [response] = await operation.promise();
*/
exportDocuments(
request: protos.google.firestore.admin.v1.IExportDocumentsRequest,
request?: protos.google.firestore.admin.v1.IExportDocumentsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1107,7 +1107,7 @@ export class FirestoreAdminClient {
>;
}
importDocuments(
request: protos.google.firestore.admin.v1.IImportDocumentsRequest,
request?: protos.google.firestore.admin.v1.IImportDocumentsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1177,7 +1177,7 @@ export class FirestoreAdminClient {
* const [response] = await operation.promise();
*/
importDocuments(
request: protos.google.firestore.admin.v1.IImportDocumentsRequest,
request?: protos.google.firestore.admin.v1.IImportDocumentsRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1262,7 +1262,7 @@ export class FirestoreAdminClient {
>;
}
listIndexes(
request: protos.google.firestore.admin.v1.IListIndexesRequest,
request?: protos.google.firestore.admin.v1.IListIndexesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1318,7 +1318,7 @@ export class FirestoreAdminClient {
* for more details and examples.
*/
listIndexes(
request: protos.google.firestore.admin.v1.IListIndexesRequest,
request?: protos.google.firestore.admin.v1.IListIndexesRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -1462,7 +1462,7 @@ export class FirestoreAdminClient {
) as AsyncIterable<protos.google.firestore.admin.v1.IIndex>;
}
listFields(
request: protos.google.firestore.admin.v1.IListFieldsRequest,
request?: protos.google.firestore.admin.v1.IListFieldsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1527,7 +1527,7 @@ export class FirestoreAdminClient {
* for more details and examples.
*/
listFields(
request: protos.google.firestore.admin.v1.IListFieldsRequest,
request?: protos.google.firestore.admin.v1.IListFieldsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
44 changes: 22 additions & 22 deletions dev/src/v1/firestore_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export class FirestoreClient {
// -- Service calls --
// -------------------
getDocument(
request: protos.google.firestore.v1.IGetDocumentRequest,
request?: protos.google.firestore.v1.IGetDocumentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -398,7 +398,7 @@ export class FirestoreClient {
* const [response] = await client.getDocument(request);
*/
getDocument(
request: protos.google.firestore.v1.IGetDocumentRequest,
request?: protos.google.firestore.v1.IGetDocumentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -437,7 +437,7 @@ export class FirestoreClient {
return this.innerApiCalls.getDocument(request, options, callback);
}
updateDocument(
request: protos.google.firestore.v1.IUpdateDocumentRequest,
request?: protos.google.firestore.v1.IUpdateDocumentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -498,7 +498,7 @@ export class FirestoreClient {
* const [response] = await client.updateDocument(request);
*/
updateDocument(
request: protos.google.firestore.v1.IUpdateDocumentRequest,
request?: protos.google.firestore.v1.IUpdateDocumentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -537,7 +537,7 @@ export class FirestoreClient {
return this.innerApiCalls.updateDocument(request, options, callback);
}
deleteDocument(
request: protos.google.firestore.v1.IDeleteDocumentRequest,
request?: protos.google.firestore.v1.IDeleteDocumentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -585,7 +585,7 @@ export class FirestoreClient {
* const [response] = await client.deleteDocument(request);
*/
deleteDocument(
request: protos.google.firestore.v1.IDeleteDocumentRequest,
request?: protos.google.firestore.v1.IDeleteDocumentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -624,7 +624,7 @@ export class FirestoreClient {
return this.innerApiCalls.deleteDocument(request, options, callback);
}
beginTransaction(
request: protos.google.firestore.v1.IBeginTransactionRequest,
request?: protos.google.firestore.v1.IBeginTransactionRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -672,7 +672,7 @@ export class FirestoreClient {
* const [response] = await client.beginTransaction(request);
*/
beginTransaction(
request: protos.google.firestore.v1.IBeginTransactionRequest,
request?: protos.google.firestore.v1.IBeginTransactionRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -713,7 +713,7 @@ export class FirestoreClient {
return this.innerApiCalls.beginTransaction(request, options, callback);
}
commit(
request: protos.google.firestore.v1.ICommitRequest,
request?: protos.google.firestore.v1.ICommitRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -764,7 +764,7 @@ export class FirestoreClient {
* const [response] = await client.commit(request);
*/
commit(
request: protos.google.firestore.v1.ICommitRequest,
request?: protos.google.firestore.v1.ICommitRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -803,7 +803,7 @@ export class FirestoreClient {
return this.innerApiCalls.commit(request, options, callback);
}
rollback(
request: protos.google.firestore.v1.IRollbackRequest,
request?: protos.google.firestore.v1.IRollbackRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -850,7 +850,7 @@ export class FirestoreClient {
* const [response] = await client.rollback(request);
*/
rollback(
request: protos.google.firestore.v1.IRollbackRequest,
request?: protos.google.firestore.v1.IRollbackRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -889,7 +889,7 @@ export class FirestoreClient {
return this.innerApiCalls.rollback(request, options, callback);
}
batchWrite(
request: protos.google.firestore.v1.IBatchWriteRequest,
request?: protos.google.firestore.v1.IBatchWriteRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -950,7 +950,7 @@ export class FirestoreClient {
* const [response] = await client.batchWrite(request);
*/
batchWrite(
request: protos.google.firestore.v1.IBatchWriteRequest,
request?: protos.google.firestore.v1.IBatchWriteRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -989,7 +989,7 @@ export class FirestoreClient {
return this.innerApiCalls.batchWrite(request, options, callback);
}
createDocument(
request: protos.google.firestore.v1.ICreateDocumentRequest,
request?: protos.google.firestore.v1.ICreateDocumentRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1048,7 +1048,7 @@ export class FirestoreClient {
* const [response] = await client.createDocument(request);
*/
createDocument(
request: protos.google.firestore.v1.ICreateDocumentRequest,
request?: protos.google.firestore.v1.ICreateDocumentRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1247,7 +1247,7 @@ export class FirestoreClient {
}

listDocuments(
request: protos.google.firestore.v1.IListDocumentsRequest,
request?: protos.google.firestore.v1.IListDocumentsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1326,7 +1326,7 @@ export class FirestoreClient {
* for more details and examples.
*/
listDocuments(
request: protos.google.firestore.v1.IListDocumentsRequest,
request?: protos.google.firestore.v1.IListDocumentsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -1514,7 +1514,7 @@ export class FirestoreClient {
) as AsyncIterable<protos.google.firestore.v1.IDocument>;
}
partitionQuery(
request: protos.google.firestore.v1.IPartitionQueryRequest,
request?: protos.google.firestore.v1.IPartitionQueryRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1602,7 +1602,7 @@ export class FirestoreClient {
* for more details and examples.
*/
partitionQuery(
request: protos.google.firestore.v1.IPartitionQueryRequest,
request?: protos.google.firestore.v1.IPartitionQueryRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -1804,7 +1804,7 @@ export class FirestoreClient {
) as AsyncIterable<protos.google.firestore.v1.ICursor>;
}
listCollectionIds(
request: protos.google.firestore.v1.IListCollectionIdsRequest,
request?: protos.google.firestore.v1.IListCollectionIdsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1859,7 +1859,7 @@ export class FirestoreClient {
* for more details and examples.
*/
listCollectionIds(
request: protos.google.firestore.v1.IListCollectionIdsRequest,
request?: protos.google.firestore.v1.IListCollectionIdsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
Loading

0 comments on commit f6edfc1

Please sign in to comment.