Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
fix: make request optional in all cases (#521)
Browse files Browse the repository at this point in the history
* chore: remove all monolith Bazel deps chore: release gapic-generator-csharp v1.3.7 chore: release gapic-generator-go 0.20.5 chore: release gapic-generator-java 1.0.14 chore: release gapic-generator-php 1.0.1 chore: release gapic-generator-python 0.50.0 chore: update gapic-generator-ruby to the latest commit chore: release gapic-generator-typescript 1.5.0

Committer: @miraleung
PiperOrigin-RevId: 380641501

Source-Link: googleapis/googleapis@076f7e9

Source-Link: https://github.com/googleapis/googleapis-gen/commit/27e4c88b4048e5f56508d4e1aa417d60a3380892

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Eric Schmidt <erschmid@google.com>
  • Loading branch information
3 people authored Jun 28, 2021
1 parent 1c9822a commit a45622a
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 92 deletions.
72 changes: 36 additions & 36 deletions src/v1/auto_ml_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ export class AutoMlClient {
// -- Service calls --
// -------------------
getDataset(
request: protos.google.cloud.automl.v1.IGetDatasetRequest,
request?: protos.google.cloud.automl.v1.IGetDatasetRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -515,7 +515,7 @@ export class AutoMlClient {
* const [response] = await client.getDataset(request);
*/
getDataset(
request: protos.google.cloud.automl.v1.IGetDatasetRequest,
request?: protos.google.cloud.automl.v1.IGetDatasetRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -554,7 +554,7 @@ export class AutoMlClient {
return this.innerApiCalls.getDataset(request, options, callback);
}
updateDataset(
request: protos.google.cloud.automl.v1.IUpdateDatasetRequest,
request?: protos.google.cloud.automl.v1.IUpdateDatasetRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -600,7 +600,7 @@ export class AutoMlClient {
* const [response] = await client.updateDataset(request);
*/
updateDataset(
request: protos.google.cloud.automl.v1.IUpdateDatasetRequest,
request?: protos.google.cloud.automl.v1.IUpdateDatasetRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -641,7 +641,7 @@ export class AutoMlClient {
return this.innerApiCalls.updateDataset(request, options, callback);
}
getAnnotationSpec(
request: protos.google.cloud.automl.v1.IGetAnnotationSpecRequest,
request?: protos.google.cloud.automl.v1.IGetAnnotationSpecRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -689,7 +689,7 @@ export class AutoMlClient {
* const [response] = await client.getAnnotationSpec(request);
*/
getAnnotationSpec(
request: protos.google.cloud.automl.v1.IGetAnnotationSpecRequest,
request?: protos.google.cloud.automl.v1.IGetAnnotationSpecRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -732,7 +732,7 @@ export class AutoMlClient {
return this.innerApiCalls.getAnnotationSpec(request, options, callback);
}
getModel(
request: protos.google.cloud.automl.v1.IGetModelRequest,
request?: protos.google.cloud.automl.v1.IGetModelRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -776,7 +776,7 @@ export class AutoMlClient {
* const [response] = await client.getModel(request);
*/
getModel(
request: protos.google.cloud.automl.v1.IGetModelRequest,
request?: protos.google.cloud.automl.v1.IGetModelRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -815,7 +815,7 @@ export class AutoMlClient {
return this.innerApiCalls.getModel(request, options, callback);
}
updateModel(
request: protos.google.cloud.automl.v1.IUpdateModelRequest,
request?: protos.google.cloud.automl.v1.IUpdateModelRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -861,7 +861,7 @@ export class AutoMlClient {
* const [response] = await client.updateModel(request);
*/
updateModel(
request: protos.google.cloud.automl.v1.IUpdateModelRequest,
request?: protos.google.cloud.automl.v1.IUpdateModelRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -900,7 +900,7 @@ export class AutoMlClient {
return this.innerApiCalls.updateModel(request, options, callback);
}
getModelEvaluation(
request: protos.google.cloud.automl.v1.IGetModelEvaluationRequest,
request?: protos.google.cloud.automl.v1.IGetModelEvaluationRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -948,7 +948,7 @@ export class AutoMlClient {
* const [response] = await client.getModelEvaluation(request);
*/
getModelEvaluation(
request: protos.google.cloud.automl.v1.IGetModelEvaluationRequest,
request?: protos.google.cloud.automl.v1.IGetModelEvaluationRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -992,7 +992,7 @@ export class AutoMlClient {
}

createDataset(
request: protos.google.cloud.automl.v1.ICreateDatasetRequest,
request?: protos.google.cloud.automl.v1.ICreateDatasetRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1050,7 +1050,7 @@ export class AutoMlClient {
* const [response] = await operation.promise();
*/
createDataset(
request: protos.google.cloud.automl.v1.ICreateDatasetRequest,
request?: protos.google.cloud.automl.v1.ICreateDatasetRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1135,7 +1135,7 @@ export class AutoMlClient {
>;
}
deleteDataset(
request: protos.google.cloud.automl.v1.IDeleteDatasetRequest,
request?: protos.google.cloud.automl.v1.IDeleteDatasetRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1195,7 +1195,7 @@ export class AutoMlClient {
* const [response] = await operation.promise();
*/
deleteDataset(
request: protos.google.cloud.automl.v1.IDeleteDatasetRequest,
request?: protos.google.cloud.automl.v1.IDeleteDatasetRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1280,7 +1280,7 @@ export class AutoMlClient {
>;
}
importData(
request: protos.google.cloud.automl.v1.IImportDataRequest,
request?: protos.google.cloud.automl.v1.IImportDataRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1348,7 +1348,7 @@ export class AutoMlClient {
* const [response] = await operation.promise();
*/
importData(
request: protos.google.cloud.automl.v1.IImportDataRequest,
request?: protos.google.cloud.automl.v1.IImportDataRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1433,7 +1433,7 @@ export class AutoMlClient {
>;
}
exportData(
request: protos.google.cloud.automl.v1.IExportDataRequest,
request?: protos.google.cloud.automl.v1.IExportDataRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1493,7 +1493,7 @@ export class AutoMlClient {
* const [response] = await operation.promise();
*/
exportData(
request: protos.google.cloud.automl.v1.IExportDataRequest,
request?: protos.google.cloud.automl.v1.IExportDataRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1578,7 +1578,7 @@ export class AutoMlClient {
>;
}
createModel(
request: protos.google.cloud.automl.v1.ICreateModelRequest,
request?: protos.google.cloud.automl.v1.ICreateModelRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1640,7 +1640,7 @@ export class AutoMlClient {
* const [response] = await operation.promise();
*/
createModel(
request: protos.google.cloud.automl.v1.ICreateModelRequest,
request?: protos.google.cloud.automl.v1.ICreateModelRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1725,7 +1725,7 @@ export class AutoMlClient {
>;
}
deleteModel(
request: protos.google.cloud.automl.v1.IDeleteModelRequest,
request?: protos.google.cloud.automl.v1.IDeleteModelRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1785,7 +1785,7 @@ export class AutoMlClient {
* const [response] = await operation.promise();
*/
deleteModel(
request: protos.google.cloud.automl.v1.IDeleteModelRequest,
request?: protos.google.cloud.automl.v1.IDeleteModelRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -1870,7 +1870,7 @@ export class AutoMlClient {
>;
}
deployModel(
request: protos.google.cloud.automl.v1.IDeployModelRequest,
request?: protos.google.cloud.automl.v1.IDeployModelRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -1941,7 +1941,7 @@ export class AutoMlClient {
* const [response] = await operation.promise();
*/
deployModel(
request: protos.google.cloud.automl.v1.IDeployModelRequest,
request?: protos.google.cloud.automl.v1.IDeployModelRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -2026,7 +2026,7 @@ export class AutoMlClient {
>;
}
undeployModel(
request: protos.google.cloud.automl.v1.IUndeployModelRequest,
request?: protos.google.cloud.automl.v1.IUndeployModelRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -2088,7 +2088,7 @@ export class AutoMlClient {
* const [response] = await operation.promise();
*/
undeployModel(
request: protos.google.cloud.automl.v1.IUndeployModelRequest,
request?: protos.google.cloud.automl.v1.IUndeployModelRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -2173,7 +2173,7 @@ export class AutoMlClient {
>;
}
exportModel(
request: protos.google.cloud.automl.v1.IExportModelRequest,
request?: protos.google.cloud.automl.v1.IExportModelRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -2237,7 +2237,7 @@ export class AutoMlClient {
* const [response] = await operation.promise();
*/
exportModel(
request: protos.google.cloud.automl.v1.IExportModelRequest,
request?: protos.google.cloud.automl.v1.IExportModelRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -2322,7 +2322,7 @@ export class AutoMlClient {
>;
}
listDatasets(
request: protos.google.cloud.automl.v1.IListDatasetsRequest,
request?: protos.google.cloud.automl.v1.IListDatasetsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -2385,7 +2385,7 @@ export class AutoMlClient {
* for more details and examples.
*/
listDatasets(
request: protos.google.cloud.automl.v1.IListDatasetsRequest,
request?: protos.google.cloud.automl.v1.IListDatasetsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -2543,7 +2543,7 @@ export class AutoMlClient {
) as AsyncIterable<protos.google.cloud.automl.v1.IDataset>;
}
listModels(
request: protos.google.cloud.automl.v1.IListModelsRequest,
request?: protos.google.cloud.automl.v1.IListModelsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -2607,7 +2607,7 @@ export class AutoMlClient {
* for more details and examples.
*/
listModels(
request: protos.google.cloud.automl.v1.IListModelsRequest,
request?: protos.google.cloud.automl.v1.IListModelsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down Expand Up @@ -2765,7 +2765,7 @@ export class AutoMlClient {
) as AsyncIterable<protos.google.cloud.automl.v1.IModel>;
}
listModelEvaluations(
request: protos.google.cloud.automl.v1.IListModelEvaluationsRequest,
request?: protos.google.cloud.automl.v1.IListModelEvaluationsRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -2837,7 +2837,7 @@ export class AutoMlClient {
* for more details and examples.
*/
listModelEvaluations(
request: protos.google.cloud.automl.v1.IListModelEvaluationsRequest,
request?: protos.google.cloud.automl.v1.IListModelEvaluationsRequest,
optionsOrCallback?:
| CallOptions
| PaginationCallback<
Expand Down
8 changes: 4 additions & 4 deletions src/v1/prediction_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export class PredictionServiceClient {
// -- Service calls --
// -------------------
predict(
request: protos.google.cloud.automl.v1.IPredictRequest,
request?: protos.google.cloud.automl.v1.IPredictRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -437,7 +437,7 @@ export class PredictionServiceClient {
* const [response] = await client.predict(request);
*/
predict(
request: protos.google.cloud.automl.v1.IPredictRequest,
request?: protos.google.cloud.automl.v1.IPredictRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -477,7 +477,7 @@ export class PredictionServiceClient {
}

batchPredict(
request: protos.google.cloud.automl.v1.IBatchPredictRequest,
request?: protos.google.cloud.automl.v1.IBatchPredictRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -637,7 +637,7 @@ export class PredictionServiceClient {
* const [response] = await operation.promise();
*/
batchPredict(
request: protos.google.cloud.automl.v1.IBatchPredictRequest,
request?: protos.google.cloud.automl.v1.IBatchPredictRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
Loading

0 comments on commit a45622a

Please sign in to comment.