From 7e1ce9b097ac19f41bad451276441bd33cbe6fad Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 18 Feb 2022 01:11:00 +0000 Subject: [PATCH] docs(samples): include metadata file, add exclusions for samples to handwritten libraries (#594) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 429395631 Source-Link: https://github.com/googleapis/googleapis/commit/84594b35af0c38efcd6967e8179d801702ad96ff Source-Link: https://github.com/googleapis/googleapis-gen/commit/ed74f970fd82914874e6b27b04763cfa66bafe9b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWQ3NGY5NzBmZDgyOTE0ODc0ZTZiMjdiMDQ3NjNjZmE2NmJhZmU5YiJ9 --- .../generated/v1/auto_ml.create_dataset.js | 9 +- .../generated/v1/auto_ml.create_model.js | 9 +- .../generated/v1/auto_ml.delete_dataset.js | 9 +- .../generated/v1/auto_ml.delete_model.js | 9 +- .../generated/v1/auto_ml.deploy_model.js | 9 +- .../generated/v1/auto_ml.export_data.js | 9 +- .../generated/v1/auto_ml.export_model.js | 9 +- .../v1/auto_ml.get_annotation_spec.js | 9 +- .../generated/v1/auto_ml.get_dataset.js | 9 +- .../samples/generated/v1/auto_ml.get_model.js | 9 +- .../v1/auto_ml.get_model_evaluation.js | 9 +- .../generated/v1/auto_ml.import_data.js | 9 +- .../generated/v1/auto_ml.list_datasets.js | 9 +- .../v1/auto_ml.list_model_evaluations.js | 9 +- .../generated/v1/auto_ml.list_models.js | 9 +- .../generated/v1/auto_ml.undeploy_model.js | 9 +- .../generated/v1/auto_ml.update_dataset.js | 9 +- .../generated/v1/auto_ml.update_model.js | 9 +- .../v1/prediction_service.batch_predict.js | 9 +- .../v1/prediction_service.predict.js | 9 +- ...ippet_metadata.google.cloud.automl.v1.json | 907 +++++++++++++ .../v1beta1/auto_ml.create_dataset.js | 9 +- .../generated/v1beta1/auto_ml.create_model.js | 9 +- .../v1beta1/auto_ml.delete_dataset.js | 9 +- .../generated/v1beta1/auto_ml.delete_model.js | 9 +- .../generated/v1beta1/auto_ml.deploy_model.js | 9 +- .../generated/v1beta1/auto_ml.export_data.js | 9 +- .../auto_ml.export_evaluated_examples.js | 9 +- .../generated/v1beta1/auto_ml.export_model.js | 9 +- .../v1beta1/auto_ml.get_annotation_spec.js | 9 +- .../v1beta1/auto_ml.get_column_spec.js | 9 +- .../generated/v1beta1/auto_ml.get_dataset.js | 9 +- .../generated/v1beta1/auto_ml.get_model.js | 9 +- .../v1beta1/auto_ml.get_model_evaluation.js | 9 +- .../v1beta1/auto_ml.get_table_spec.js | 9 +- .../generated/v1beta1/auto_ml.import_data.js | 9 +- .../v1beta1/auto_ml.list_column_specs.js | 9 +- .../v1beta1/auto_ml.list_datasets.js | 9 +- .../v1beta1/auto_ml.list_model_evaluations.js | 9 +- .../generated/v1beta1/auto_ml.list_models.js | 9 +- .../v1beta1/auto_ml.list_table_specs.js | 9 +- .../v1beta1/auto_ml.undeploy_model.js | 9 +- .../v1beta1/auto_ml.update_column_spec.js | 9 +- .../v1beta1/auto_ml.update_dataset.js | 9 +- .../v1beta1/auto_ml.update_table_spec.js | 9 +- .../prediction_service.batch_predict.js | 9 +- .../v1beta1/prediction_service.predict.js | 9 +- ..._metadata.google.cloud.automl.v1beta1.json | 1195 +++++++++++++++++ .../src/v1/auto_ml_client.ts | 5 +- .../src/v1/prediction_service_client.ts | 5 +- .../src/v1beta1/auto_ml_client.ts | 5 +- .../src/v1beta1/prediction_service_client.ts | 5 +- .../test/gapic_auto_ml_v1.ts | 117 +- .../test/gapic_auto_ml_v1beta1.ts | 182 ++- .../test/gapic_prediction_service_v1.ts | 35 +- .../test/gapic_prediction_service_v1beta1.ts | 36 +- 56 files changed, 2794 insertions(+), 112 deletions(-) create mode 100644 packages/google-cloud-automl/samples/generated/v1/snippet_metadata.google.cloud.automl.v1.json create mode 100644 packages/google-cloud-automl/samples/generated/v1beta1/snippet_metadata.google.cloud.automl.v1beta1.json diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.create_dataset.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.create_dataset.js index 4f4550eff4c..751c0ad84ec 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.create_dataset.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.create_dataset.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.create_model.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.create_model.js index b1174214666..7a5fe659db4 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.create_model.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.create_model.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.delete_dataset.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.delete_dataset.js index d4949449a9d..9abccb8f7e6 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.delete_dataset.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.delete_dataset.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.delete_model.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.delete_model.js index 890404ea17a..9d7267f8c08 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.delete_model.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.delete_model.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.deploy_model.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.deploy_model.js index 296a55f6153..89fd2c1e2cc 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.deploy_model.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.deploy_model.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.export_data.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.export_data.js index 8c186ab3067..1c181f0c351 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.export_data.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.export_data.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.export_model.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.export_model.js index d5046d0437c..1b94e8dcaaf 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.export_model.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.export_model.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_annotation_spec.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_annotation_spec.js index fa8792de0d8..fa3e3874fa3 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_annotation_spec.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_annotation_spec.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_dataset.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_dataset.js index db01d66d9be..bfbc856238b 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_dataset.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_dataset.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_model.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_model.js index f09ff911565..156c8b6a1fd 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_model.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_model.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_model_evaluation.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_model_evaluation.js index cec067fa513..e2cadb4cd6c 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_model_evaluation.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.get_model_evaluation.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.import_data.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.import_data.js index cd7557af7e5..d428244eecc 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.import_data.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.import_data.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.list_datasets.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.list_datasets.js index b7144476c31..e0cf3c76d5d 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.list_datasets.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.list_datasets.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.list_model_evaluations.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.list_model_evaluations.js index ddc1e648f57..dcb998f8ee0 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.list_model_evaluations.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.list_model_evaluations.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.list_models.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.list_models.js index 5c8fd2b401e..0e4fe7e4bc1 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.list_models.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.list_models.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.undeploy_model.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.undeploy_model.js index c21035503bb..b1c3d569c72 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.undeploy_model.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.undeploy_model.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.update_dataset.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.update_dataset.js index 8093f958f04..dbda9027565 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.update_dataset.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.update_dataset.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/auto_ml.update_model.js b/packages/google-cloud-automl/samples/generated/v1/auto_ml.update_model.js index 6f3e0380b29..120fa25e58c 100644 --- a/packages/google-cloud-automl/samples/generated/v1/auto_ml.update_model.js +++ b/packages/google-cloud-automl/samples/generated/v1/auto_ml.update_model.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/prediction_service.batch_predict.js b/packages/google-cloud-automl/samples/generated/v1/prediction_service.batch_predict.js index 26174b39c5e..8b72894926d 100644 --- a/packages/google-cloud-automl/samples/generated/v1/prediction_service.batch_predict.js +++ b/packages/google-cloud-automl/samples/generated/v1/prediction_service.batch_predict.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/prediction_service.predict.js b/packages/google-cloud-automl/samples/generated/v1/prediction_service.predict.js index 86cd3d1a4da..5808206d295 100644 --- a/packages/google-cloud-automl/samples/generated/v1/prediction_service.predict.js +++ b/packages/google-cloud-automl/samples/generated/v1/prediction_service.predict.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1/snippet_metadata.google.cloud.automl.v1.json b/packages/google-cloud-automl/samples/generated/v1/snippet_metadata.google.cloud.automl.v1.json new file mode 100644 index 00000000000..775fbc23ee0 --- /dev/null +++ b/packages/google-cloud-automl/samples/generated/v1/snippet_metadata.google.cloud.automl.v1.json @@ -0,0 +1,907 @@ +{ + "clientLibrary": { + "name": "nodejs-automl", + "version": "0.1.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.automl.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "automl_v1_generated_AutoMl_CreateDataset_async", + "title": "automl createDataset Sample", + "origin": "API_DEFINITION", + "description": " Creates a dataset.", + "canonical": true, + "file": "auto_ml.create_dataset.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateDataset", + "fullName": "google.cloud.automl.v1.AutoMl.CreateDataset", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "dataset", + "type": ".google.cloud.automl.v1.Dataset" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "CreateDataset", + "fullName": "google.cloud.automl.v1.AutoMl.CreateDataset", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_GetDataset_async", + "title": "automl getDataset Sample", + "origin": "API_DEFINITION", + "description": " Gets a dataset.", + "canonical": true, + "file": "auto_ml.get_dataset.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDataset", + "fullName": "google.cloud.automl.v1.AutoMl.GetDataset", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1.Dataset", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "GetDataset", + "fullName": "google.cloud.automl.v1.AutoMl.GetDataset", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_ListDatasets_async", + "title": "automl listDatasets Sample", + "origin": "API_DEFINITION", + "description": " Lists datasets in a project.", + "canonical": true, + "file": "auto_ml.list_datasets.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDatasets", + "fullName": "google.cloud.automl.v1.AutoMl.ListDatasets", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1.ListDatasetsResponse", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "ListDatasets", + "fullName": "google.cloud.automl.v1.AutoMl.ListDatasets", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_UpdateDataset_async", + "title": "automl updateDataset Sample", + "origin": "API_DEFINITION", + "description": " Updates a dataset.", + "canonical": true, + "file": "auto_ml.update_dataset.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateDataset", + "fullName": "google.cloud.automl.v1.AutoMl.UpdateDataset", + "async": true, + "parameters": [ + { + "name": "dataset", + "type": ".google.cloud.automl.v1.Dataset" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.automl.v1.Dataset", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "UpdateDataset", + "fullName": "google.cloud.automl.v1.AutoMl.UpdateDataset", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_DeleteDataset_async", + "title": "automl deleteDataset Sample", + "origin": "API_DEFINITION", + "description": " Deletes a dataset and all of its contents. Returns empty response in the [response][google.longrunning.Operation.response] field when it completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field.", + "canonical": true, + "file": "auto_ml.delete_dataset.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteDataset", + "fullName": "google.cloud.automl.v1.AutoMl.DeleteDataset", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "DeleteDataset", + "fullName": "google.cloud.automl.v1.AutoMl.DeleteDataset", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_ImportData_async", + "title": "automl importData Sample", + "origin": "API_DEFINITION", + "description": " Imports data into a dataset. For Tables this method can only be called on an empty Dataset. For Tables: * A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be explicitly set. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", + "canonical": true, + "file": "auto_ml.import_data.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ImportData", + "fullName": "google.cloud.automl.v1.AutoMl.ImportData", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "input_config", + "type": ".google.cloud.automl.v1.InputConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "ImportData", + "fullName": "google.cloud.automl.v1.AutoMl.ImportData", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_ExportData_async", + "title": "automl exportData Sample", + "origin": "API_DEFINITION", + "description": " Exports dataset's data to the provided output location. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", + "canonical": true, + "file": "auto_ml.export_data.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ExportData", + "fullName": "google.cloud.automl.v1.AutoMl.ExportData", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "output_config", + "type": ".google.cloud.automl.v1.OutputConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "ExportData", + "fullName": "google.cloud.automl.v1.AutoMl.ExportData", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_GetAnnotationSpec_async", + "title": "automl getAnnotationSpec Sample", + "origin": "API_DEFINITION", + "description": " Gets an annotation spec.", + "canonical": true, + "file": "auto_ml.get_annotation_spec.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetAnnotationSpec", + "fullName": "google.cloud.automl.v1.AutoMl.GetAnnotationSpec", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1.AnnotationSpec", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "GetAnnotationSpec", + "fullName": "google.cloud.automl.v1.AutoMl.GetAnnotationSpec", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_CreateModel_async", + "title": "automl createModel Sample", + "origin": "API_DEFINITION", + "description": " Creates a model. Returns a Model in the [response][google.longrunning.Operation.response] field when it completes. When you create a model, several model evaluations are created for it: a global evaluation, and one evaluation for each annotation spec.", + "canonical": true, + "file": "auto_ml.create_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateModel", + "fullName": "google.cloud.automl.v1.AutoMl.CreateModel", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "model", + "type": ".google.cloud.automl.v1.Model" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "CreateModel", + "fullName": "google.cloud.automl.v1.AutoMl.CreateModel", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_GetModel_async", + "title": "automl getModel Sample", + "origin": "API_DEFINITION", + "description": " Gets a model.", + "canonical": true, + "file": "auto_ml.get_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetModel", + "fullName": "google.cloud.automl.v1.AutoMl.GetModel", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1.Model", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "GetModel", + "fullName": "google.cloud.automl.v1.AutoMl.GetModel", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_ListModels_async", + "title": "automl listModels Sample", + "origin": "API_DEFINITION", + "description": " Lists models.", + "canonical": true, + "file": "auto_ml.list_models.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListModels", + "fullName": "google.cloud.automl.v1.AutoMl.ListModels", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1.ListModelsResponse", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "ListModels", + "fullName": "google.cloud.automl.v1.AutoMl.ListModels", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_DeleteModel_async", + "title": "automl deleteModel Sample", + "origin": "API_DEFINITION", + "description": " Deletes a model. Returns `google.protobuf.Empty` in the [response][google.longrunning.Operation.response] field when it completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field.", + "canonical": true, + "file": "auto_ml.delete_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteModel", + "fullName": "google.cloud.automl.v1.AutoMl.DeleteModel", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "DeleteModel", + "fullName": "google.cloud.automl.v1.AutoMl.DeleteModel", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_UpdateModel_async", + "title": "automl updateModel Sample", + "origin": "API_DEFINITION", + "description": " Updates a model.", + "canonical": true, + "file": "auto_ml.update_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateModel", + "fullName": "google.cloud.automl.v1.AutoMl.UpdateModel", + "async": true, + "parameters": [ + { + "name": "model", + "type": ".google.cloud.automl.v1.Model" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.automl.v1.Model", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "UpdateModel", + "fullName": "google.cloud.automl.v1.AutoMl.UpdateModel", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_DeployModel_async", + "title": "automl deployModel Sample", + "origin": "API_DEFINITION", + "description": " Deploys a model. If a model is already deployed, deploying it with the same parameters has no effect. Deploying with different parametrs (as e.g. changing [node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number]) will reset the deployment state without pausing the model's availability. Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage deployment automatically. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", + "canonical": true, + "file": "auto_ml.deploy_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeployModel", + "fullName": "google.cloud.automl.v1.AutoMl.DeployModel", + "async": true, + "parameters": [ + { + "name": "image_object_detection_model_deployment_metadata", + "type": ".google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata" + }, + { + "name": "image_classification_model_deployment_metadata", + "type": ".google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "DeployModel", + "fullName": "google.cloud.automl.v1.AutoMl.DeployModel", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_UndeployModel_async", + "title": "automl undeployModel Sample", + "origin": "API_DEFINITION", + "description": " Undeploys a model. If the model is not deployed this method has no effect. Only applicable for Text Classification, Image Object Detection and Tables; all other domains manage deployment automatically. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", + "canonical": true, + "file": "auto_ml.undeploy_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UndeployModel", + "fullName": "google.cloud.automl.v1.AutoMl.UndeployModel", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "UndeployModel", + "fullName": "google.cloud.automl.v1.AutoMl.UndeployModel", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_ExportModel_async", + "title": "automl exportModel Sample", + "origin": "API_DEFINITION", + "description": " Exports a trained, \"export-able\", model to a user specified Google Cloud Storage location. A model is considered export-able if and only if it has an export format defined for it in [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig]. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", + "canonical": true, + "file": "auto_ml.export_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ExportModel", + "fullName": "google.cloud.automl.v1.AutoMl.ExportModel", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "output_config", + "type": ".google.cloud.automl.v1.ModelExportOutputConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "ExportModel", + "fullName": "google.cloud.automl.v1.AutoMl.ExportModel", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_GetModelEvaluation_async", + "title": "automl getModelEvaluation Sample", + "origin": "API_DEFINITION", + "description": " Gets a model evaluation.", + "canonical": true, + "file": "auto_ml.get_model_evaluation.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetModelEvaluation", + "fullName": "google.cloud.automl.v1.AutoMl.GetModelEvaluation", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1.ModelEvaluation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "GetModelEvaluation", + "fullName": "google.cloud.automl.v1.AutoMl.GetModelEvaluation", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_AutoMl_ListModelEvaluations_async", + "title": "automl listModelEvaluations Sample", + "origin": "API_DEFINITION", + "description": " Lists model evaluations.", + "canonical": true, + "file": "auto_ml.list_model_evaluations.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListModelEvaluations", + "fullName": "google.cloud.automl.v1.AutoMl.ListModelEvaluations", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1.ListModelEvaluationsResponse", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1.AutoMlClient" + }, + "method": { + "shortName": "ListModelEvaluations", + "fullName": "google.cloud.automl.v1.AutoMl.ListModelEvaluations", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1_generated_PredictionService_Predict_async", + "title": "automl predict Sample", + "origin": "API_DEFINITION", + "description": " Perform an online prediction. The prediction result is directly returned in the response. Available for following ML scenarios, and their expected request payloads: AutoML Vision Classification * An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. AutoML Vision Object Detection * An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. AutoML Natural Language Classification * A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF format with size upto 2MB. AutoML Natural Language Entity Extraction * A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or .TIFF format with size upto 20MB. AutoML Natural Language Sentiment Analysis * A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF format with size upto 2MB. AutoML Translation * A TextSnippet up to 25,000 characters, UTF-8 encoded. AutoML Tables * A row with column values matching the columns of the model, up to 5MB. Not available for FORECASTING `prediction_type`.", + "canonical": true, + "file": "prediction_service.predict.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Predict", + "fullName": "google.cloud.automl.v1.PredictionService.Predict", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "payload", + "type": ".google.cloud.automl.v1.ExamplePayload" + }, + { + "name": "params", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.cloud.automl.v1.PredictResponse", + "client": { + "shortName": "PredictionServiceClient", + "fullName": "google.cloud.automl.v1.PredictionServiceClient" + }, + "method": { + "shortName": "Predict", + "fullName": "google.cloud.automl.v1.PredictionService.Predict", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.automl.v1.PredictionService" + } + } + } + }, + { + "regionTag": "automl_v1_generated_PredictionService_BatchPredict_async", + "title": "automl batchPredict Sample", + "origin": "API_DEFINITION", + "description": " Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch prediction result won't be immediately available in the response. Instead, a long running operation object is returned. User can poll the operation result via [GetOperation][google.longrunning.Operations.GetOperation] method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1.BatchPredictResult] is returned in the [response][google.longrunning.Operation.response] field. Available for following ML scenarios: * AutoML Vision Classification * AutoML Vision Object Detection * AutoML Video Intelligence Classification * AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification * AutoML Natural Language Entity Extraction * AutoML Natural Language Sentiment Analysis * AutoML Tables", + "canonical": true, + "file": "prediction_service.batch_predict.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 130, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchPredict", + "fullName": "google.cloud.automl.v1.PredictionService.BatchPredict", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "input_config", + "type": ".google.cloud.automl.v1.BatchPredictInputConfig" + }, + { + "name": "output_config", + "type": ".google.cloud.automl.v1.BatchPredictOutputConfig" + }, + { + "name": "params", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "PredictionServiceClient", + "fullName": "google.cloud.automl.v1.PredictionServiceClient" + }, + "method": { + "shortName": "BatchPredict", + "fullName": "google.cloud.automl.v1.PredictionService.BatchPredict", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.automl.v1.PredictionService" + } + } + } + } + ] +} diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.create_dataset.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.create_dataset.js index 5dd2e5e601f..8b83e5094ac 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.create_dataset.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.create_dataset.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.create_model.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.create_model.js index 40da931aa86..122bd58805d 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.create_model.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.create_model.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.delete_dataset.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.delete_dataset.js index 591fb325e15..2f6d983927f 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.delete_dataset.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.delete_dataset.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.delete_model.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.delete_model.js index c1277f9a658..f10e81cd437 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.delete_model.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.delete_model.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.deploy_model.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.deploy_model.js index b7ef8c16024..507eece3411 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.deploy_model.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.deploy_model.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.export_data.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.export_data.js index 0b4c52d3fac..dd70a88775b 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.export_data.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.export_data.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.export_evaluated_examples.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.export_evaluated_examples.js index d278e16809f..5251b7a7fe7 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.export_evaluated_examples.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.export_evaluated_examples.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.export_model.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.export_model.js index 0b9e7e0704f..56e974053d3 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.export_model.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.export_model.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_annotation_spec.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_annotation_spec.js index 934678c84c8..54cc0b3825d 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_annotation_spec.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_annotation_spec.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_column_spec.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_column_spec.js index 19862779af8..00989ce841f 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_column_spec.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_column_spec.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_dataset.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_dataset.js index 9a8bc0a8888..3d5b3b85933 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_dataset.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_dataset.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_model.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_model.js index 2438da48500..152170795d4 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_model.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_model.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_model_evaluation.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_model_evaluation.js index 58df2f9ef47..b53b85698a6 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_model_evaluation.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_model_evaluation.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_table_spec.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_table_spec.js index 05a8a776d5f..ea9157430e6 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_table_spec.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.get_table_spec.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.import_data.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.import_data.js index e14ddf4d1c1..eae51b07056 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.import_data.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.import_data.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_column_specs.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_column_specs.js index 0069ab07323..36d482250f1 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_column_specs.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_column_specs.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_datasets.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_datasets.js index a6b3c1370ee..e7dcc8a2daf 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_datasets.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_datasets.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_model_evaluations.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_model_evaluations.js index 327bc81404b..18fec86ff05 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_model_evaluations.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_model_evaluations.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_models.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_models.js index dcf25dafe62..c4a43946604 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_models.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_models.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_table_specs.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_table_specs.js index 79bba97b88c..281c695d5ec 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_table_specs.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.list_table_specs.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.undeploy_model.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.undeploy_model.js index 12571fb7930..1bdd4ebdf65 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.undeploy_model.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.undeploy_model.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.update_column_spec.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.update_column_spec.js index e22cbed4214..fce710f7199 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.update_column_spec.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.update_column_spec.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.update_dataset.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.update_dataset.js index 805033d1a7e..0c611b5b2aa 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.update_dataset.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.update_dataset.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.update_table_spec.js b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.update_table_spec.js index bf25c5b3085..d64a7afcb8d 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.update_table_spec.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/auto_ml.update_table_spec.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/prediction_service.batch_predict.js b/packages/google-cloud-automl/samples/generated/v1beta1/prediction_service.batch_predict.js index f36d6488426..6abb00c8bee 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/prediction_service.batch_predict.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/prediction_service.batch_predict.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/prediction_service.predict.js b/packages/google-cloud-automl/samples/generated/v1beta1/prediction_service.predict.js index 3f529c1cbbc..442aeb78cdb 100644 --- a/packages/google-cloud-automl/samples/generated/v1beta1/prediction_service.predict.js +++ b/packages/google-cloud-automl/samples/generated/v1beta1/prediction_service.predict.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/snippet_metadata.google.cloud.automl.v1beta1.json b/packages/google-cloud-automl/samples/generated/v1beta1/snippet_metadata.google.cloud.automl.v1beta1.json new file mode 100644 index 00000000000..a4d75897993 --- /dev/null +++ b/packages/google-cloud-automl/samples/generated/v1beta1/snippet_metadata.google.cloud.automl.v1beta1.json @@ -0,0 +1,1195 @@ +{ + "clientLibrary": { + "name": "nodejs-automl", + "version": "0.1.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.automl.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "automl_v1beta1_generated_AutoMl_CreateDataset_async", + "title": "automl createDataset Sample", + "origin": "API_DEFINITION", + "description": " Creates a dataset.", + "canonical": true, + "file": "auto_ml.create_dataset.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateDataset", + "fullName": "google.cloud.automl.v1beta1.AutoMl.CreateDataset", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "dataset", + "type": ".google.cloud.automl.v1beta1.Dataset" + } + ], + "resultType": ".google.cloud.automl.v1beta1.Dataset", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "CreateDataset", + "fullName": "google.cloud.automl.v1beta1.AutoMl.CreateDataset", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_GetDataset_async", + "title": "automl getDataset Sample", + "origin": "API_DEFINITION", + "description": " Gets a dataset.", + "canonical": true, + "file": "auto_ml.get_dataset.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetDataset", + "fullName": "google.cloud.automl.v1beta1.AutoMl.GetDataset", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1beta1.Dataset", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "GetDataset", + "fullName": "google.cloud.automl.v1beta1.AutoMl.GetDataset", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_ListDatasets_async", + "title": "automl listDatasets Sample", + "origin": "API_DEFINITION", + "description": " Lists datasets in a project.", + "canonical": true, + "file": "auto_ml.list_datasets.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListDatasets", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ListDatasets", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1beta1.ListDatasetsResponse", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "ListDatasets", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ListDatasets", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_UpdateDataset_async", + "title": "automl updateDataset Sample", + "origin": "API_DEFINITION", + "description": " Updates a dataset.", + "canonical": true, + "file": "auto_ml.update_dataset.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateDataset", + "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateDataset", + "async": true, + "parameters": [ + { + "name": "dataset", + "type": ".google.cloud.automl.v1beta1.Dataset" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.automl.v1beta1.Dataset", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "UpdateDataset", + "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateDataset", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_DeleteDataset_async", + "title": "automl deleteDataset Sample", + "origin": "API_DEFINITION", + "description": " Deletes a dataset and all of its contents. Returns empty response in the [response][google.longrunning.Operation.response] field when it completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field.", + "canonical": true, + "file": "auto_ml.delete_dataset.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteDataset", + "fullName": "google.cloud.automl.v1beta1.AutoMl.DeleteDataset", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "DeleteDataset", + "fullName": "google.cloud.automl.v1beta1.AutoMl.DeleteDataset", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_ImportData_async", + "title": "automl importData Sample", + "origin": "API_DEFINITION", + "description": " Imports data into a dataset. For Tables this method can only be called on an empty Dataset. For Tables: * A [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter must be explicitly set. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", + "canonical": true, + "file": "auto_ml.import_data.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ImportData", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ImportData", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "input_config", + "type": ".google.cloud.automl.v1beta1.InputConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "ImportData", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ImportData", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_ExportData_async", + "title": "automl exportData Sample", + "origin": "API_DEFINITION", + "description": " Exports dataset's data to the provided output location. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", + "canonical": true, + "file": "auto_ml.export_data.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ExportData", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportData", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "output_config", + "type": ".google.cloud.automl.v1beta1.OutputConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "ExportData", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportData", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_GetAnnotationSpec_async", + "title": "automl getAnnotationSpec Sample", + "origin": "API_DEFINITION", + "description": " Gets an annotation spec.", + "canonical": true, + "file": "auto_ml.get_annotation_spec.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetAnnotationSpec", + "fullName": "google.cloud.automl.v1beta1.AutoMl.GetAnnotationSpec", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1beta1.AnnotationSpec", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "GetAnnotationSpec", + "fullName": "google.cloud.automl.v1beta1.AutoMl.GetAnnotationSpec", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_GetTableSpec_async", + "title": "automl getTableSpec Sample", + "origin": "API_DEFINITION", + "description": " Gets a table spec.", + "canonical": true, + "file": "auto_ml.get_table_spec.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetTableSpec", + "fullName": "google.cloud.automl.v1beta1.AutoMl.GetTableSpec", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "field_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.automl.v1beta1.TableSpec", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "GetTableSpec", + "fullName": "google.cloud.automl.v1beta1.AutoMl.GetTableSpec", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_ListTableSpecs_async", + "title": "automl listTableSpecs Sample", + "origin": "API_DEFINITION", + "description": " Lists table specs in a dataset.", + "canonical": true, + "file": "auto_ml.list_table_specs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListTableSpecs", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ListTableSpecs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "field_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1beta1.ListTableSpecsResponse", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "ListTableSpecs", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ListTableSpecs", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_UpdateTableSpec_async", + "title": "automl updateTableSpec Sample", + "origin": "API_DEFINITION", + "description": " Updates a table spec.", + "canonical": true, + "file": "auto_ml.update_table_spec.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateTableSpec", + "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateTableSpec", + "async": true, + "parameters": [ + { + "name": "table_spec", + "type": ".google.cloud.automl.v1beta1.TableSpec" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.automl.v1beta1.TableSpec", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "UpdateTableSpec", + "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateTableSpec", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_GetColumnSpec_async", + "title": "automl getColumnSpec Sample", + "origin": "API_DEFINITION", + "description": " Gets a column spec.", + "canonical": true, + "file": "auto_ml.get_column_spec.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetColumnSpec", + "fullName": "google.cloud.automl.v1beta1.AutoMl.GetColumnSpec", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "field_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.automl.v1beta1.ColumnSpec", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "GetColumnSpec", + "fullName": "google.cloud.automl.v1beta1.AutoMl.GetColumnSpec", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_ListColumnSpecs_async", + "title": "automl listColumnSpecs Sample", + "origin": "API_DEFINITION", + "description": " Lists column specs in a table spec.", + "canonical": true, + "file": "auto_ml.list_column_specs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 72, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListColumnSpecs", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "field_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1beta1.ListColumnSpecsResponse", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "ListColumnSpecs", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_UpdateColumnSpec_async", + "title": "automl updateColumnSpec Sample", + "origin": "API_DEFINITION", + "description": " Updates a column spec.", + "canonical": true, + "file": "auto_ml.update_column_spec.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateColumnSpec", + "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateColumnSpec", + "async": true, + "parameters": [ + { + "name": "column_spec", + "type": ".google.cloud.automl.v1beta1.ColumnSpec" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.automl.v1beta1.ColumnSpec", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "UpdateColumnSpec", + "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateColumnSpec", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_CreateModel_async", + "title": "automl createModel Sample", + "origin": "API_DEFINITION", + "description": " Creates a model. Returns a Model in the [response][google.longrunning.Operation.response] field when it completes. When you create a model, several model evaluations are created for it: a global evaluation, and one evaluation for each annotation spec.", + "canonical": true, + "file": "auto_ml.create_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateModel", + "fullName": "google.cloud.automl.v1beta1.AutoMl.CreateModel", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "model", + "type": ".google.cloud.automl.v1beta1.Model" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "CreateModel", + "fullName": "google.cloud.automl.v1beta1.AutoMl.CreateModel", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_GetModel_async", + "title": "automl getModel Sample", + "origin": "API_DEFINITION", + "description": " Gets a model.", + "canonical": true, + "file": "auto_ml.get_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetModel", + "fullName": "google.cloud.automl.v1beta1.AutoMl.GetModel", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1beta1.Model", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "GetModel", + "fullName": "google.cloud.automl.v1beta1.AutoMl.GetModel", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_ListModels_async", + "title": "automl listModels Sample", + "origin": "API_DEFINITION", + "description": " Lists models.", + "canonical": true, + "file": "auto_ml.list_models.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 73, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListModels", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ListModels", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1beta1.ListModelsResponse", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "ListModels", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ListModels", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_DeleteModel_async", + "title": "automl deleteModel Sample", + "origin": "API_DEFINITION", + "description": " Deletes a model. Returns `google.protobuf.Empty` in the [response][google.longrunning.Operation.response] field when it completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field.", + "canonical": true, + "file": "auto_ml.delete_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteModel", + "fullName": "google.cloud.automl.v1beta1.AutoMl.DeleteModel", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "DeleteModel", + "fullName": "google.cloud.automl.v1beta1.AutoMl.DeleteModel", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_DeployModel_async", + "title": "automl deployModel Sample", + "origin": "API_DEFINITION", + "description": " Deploys a model. If a model is already deployed, deploying it with the same parameters has no effect. Deploying with different parametrs (as e.g. changing [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number]) will reset the deployment state without pausing the model's availability. Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage deployment automatically. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", + "canonical": true, + "file": "auto_ml.deploy_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeployModel", + "fullName": "google.cloud.automl.v1beta1.AutoMl.DeployModel", + "async": true, + "parameters": [ + { + "name": "image_object_detection_model_deployment_metadata", + "type": ".google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata" + }, + { + "name": "image_classification_model_deployment_metadata", + "type": ".google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "DeployModel", + "fullName": "google.cloud.automl.v1beta1.AutoMl.DeployModel", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_UndeployModel_async", + "title": "automl undeployModel Sample", + "origin": "API_DEFINITION", + "description": " Undeploys a model. If the model is not deployed this method has no effect. Only applicable for Text Classification, Image Object Detection and Tables; all other domains manage deployment automatically. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", + "canonical": true, + "file": "auto_ml.undeploy_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UndeployModel", + "fullName": "google.cloud.automl.v1beta1.AutoMl.UndeployModel", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "UndeployModel", + "fullName": "google.cloud.automl.v1beta1.AutoMl.UndeployModel", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_ExportModel_async", + "title": "automl exportModel Sample", + "origin": "API_DEFINITION", + "description": " Exports a trained, \"export-able\", model to a user specified Google Cloud Storage location. A model is considered export-able if and only if it has an export format defined for it in [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig]. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", + "canonical": true, + "file": "auto_ml.export_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ExportModel", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportModel", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "output_config", + "type": ".google.cloud.automl.v1beta1.ModelExportOutputConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "ExportModel", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportModel", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_ExportEvaluatedExamples_async", + "title": "automl exportEvaluatedExamples Sample", + "origin": "API_DEFINITION", + "description": " Exports examples on which the model was evaluated (i.e. which were in the TEST set of the dataset the model was created from), together with their ground truth annotations and the annotations created (predicted) by the model. The examples, ground truth and predictions are exported in the state they were at the moment the model was evaluated. This export is available only for 30 days since the model evaluation is created. Currently only available for Tables. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", + "canonical": true, + "file": "auto_ml.export_evaluated_examples.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ExportEvaluatedExamples", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportEvaluatedExamples", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "output_config", + "type": ".google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "ExportEvaluatedExamples", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportEvaluatedExamples", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_GetModelEvaluation_async", + "title": "automl getModelEvaluation Sample", + "origin": "API_DEFINITION", + "description": " Gets a model evaluation.", + "canonical": true, + "file": "auto_ml.get_model_evaluation.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetModelEvaluation", + "fullName": "google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1beta1.ModelEvaluation", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "GetModelEvaluation", + "fullName": "google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_AutoMl_ListModelEvaluations_async", + "title": "automl listModelEvaluations Sample", + "origin": "API_DEFINITION", + "description": " Lists model evaluations.", + "canonical": true, + "file": "auto_ml.list_model_evaluations.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 76, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListModelEvaluations", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.automl.v1beta1.ListModelEvaluationsResponse", + "client": { + "shortName": "AutoMlClient", + "fullName": "google.cloud.automl.v1beta1.AutoMlClient" + }, + "method": { + "shortName": "ListModelEvaluations", + "fullName": "google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations", + "service": { + "shortName": "AutoMl", + "fullName": "google.cloud.automl.v1beta1.AutoMl" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_PredictionService_Predict_async", + "title": "automl predict Sample", + "origin": "API_DEFINITION", + "description": " Perform an online prediction. The prediction result will be directly returned in the response. Available for following ML problems, and their expected request payloads: * Image Classification - Image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. * Image Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. * Text Classification - TextSnippet, content up to 60,000 characters, UTF-8 encoded. * Text Extraction - TextSnippet, content up to 30,000 characters, UTF-8 NFC encoded. * Translation - TextSnippet, content up to 25,000 characters, UTF-8 encoded. * Tables - Row, with column values matching the columns of the model, up to 5MB. Not available for FORECASTING [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]. * Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded.", + "canonical": true, + "file": "prediction_service.predict.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 76, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Predict", + "fullName": "google.cloud.automl.v1beta1.PredictionService.Predict", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "payload", + "type": ".google.cloud.automl.v1beta1.ExamplePayload" + }, + { + "name": "params", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.cloud.automl.v1beta1.PredictResponse", + "client": { + "shortName": "PredictionServiceClient", + "fullName": "google.cloud.automl.v1beta1.PredictionServiceClient" + }, + "method": { + "shortName": "Predict", + "fullName": "google.cloud.automl.v1beta1.PredictionService.Predict", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.automl.v1beta1.PredictionService" + } + } + } + }, + { + "regionTag": "automl_v1beta1_generated_PredictionService_BatchPredict_async", + "title": "automl batchPredict Sample", + "origin": "API_DEFINITION", + "description": " Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch prediction result won't be immediately available in the response. Instead, a long running operation object is returned. User can poll the operation result via [GetOperation][google.longrunning.Operations.GetOperation] method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is returned in the [response][google.longrunning.Operation.response] field. Available for following ML problems: * Image Classification * Image Object Detection * Video Classification * Video Object Tracking * Text Extraction * Tables", + "canonical": true, + "file": "prediction_service.batch_predict.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 124, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchPredict", + "fullName": "google.cloud.automl.v1beta1.PredictionService.BatchPredict", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "input_config", + "type": ".google.cloud.automl.v1beta1.BatchPredictInputConfig" + }, + { + "name": "output_config", + "type": ".google.cloud.automl.v1beta1.BatchPredictOutputConfig" + }, + { + "name": "params", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "PredictionServiceClient", + "fullName": "google.cloud.automl.v1beta1.PredictionServiceClient" + }, + "method": { + "shortName": "BatchPredict", + "fullName": "google.cloud.automl.v1beta1.PredictionService.BatchPredict", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.automl.v1beta1.PredictionService" + } + } + } + } + ] +} diff --git a/packages/google-cloud-automl/src/v1/auto_ml_client.ts b/packages/google-cloud-automl/src/v1/auto_ml_client.ts index 9e180fe9778..7dca3f35a70 100644 --- a/packages/google-cloud-automl/src/v1/auto_ml_client.ts +++ b/packages/google-cloud-automl/src/v1/auto_ml_client.ts @@ -3273,9 +3273,8 @@ export class AutoMlClient { * @returns {Promise} A promise that resolves when the client is closed. */ close(): Promise { - this.initialize(); - if (!this._terminated) { - return this.autoMlStub!.then(stub => { + if (this.autoMlStub && !this._terminated) { + return this.autoMlStub.then(stub => { this._terminated = true; stub.close(); this.operationsClient.close(); diff --git a/packages/google-cloud-automl/src/v1/prediction_service_client.ts b/packages/google-cloud-automl/src/v1/prediction_service_client.ts index cab60b668b6..465607d4c1c 100644 --- a/packages/google-cloud-automl/src/v1/prediction_service_client.ts +++ b/packages/google-cloud-automl/src/v1/prediction_service_client.ts @@ -990,9 +990,8 @@ export class PredictionServiceClient { * @returns {Promise} A promise that resolves when the client is closed. */ close(): Promise { - this.initialize(); - if (!this._terminated) { - return this.predictionServiceStub!.then(stub => { + if (this.predictionServiceStub && !this._terminated) { + return this.predictionServiceStub.then(stub => { this._terminated = true; stub.close(); this.operationsClient.close(); diff --git a/packages/google-cloud-automl/src/v1beta1/auto_ml_client.ts b/packages/google-cloud-automl/src/v1beta1/auto_ml_client.ts index 97b8e26c7e8..ef97d1e8d6b 100644 --- a/packages/google-cloud-automl/src/v1beta1/auto_ml_client.ts +++ b/packages/google-cloud-automl/src/v1beta1/auto_ml_client.ts @@ -4303,9 +4303,8 @@ export class AutoMlClient { * @returns {Promise} A promise that resolves when the client is closed. */ close(): Promise { - this.initialize(); - if (!this._terminated) { - return this.autoMlStub!.then(stub => { + if (this.autoMlStub && !this._terminated) { + return this.autoMlStub.then(stub => { this._terminated = true; stub.close(); this.operationsClient.close(); diff --git a/packages/google-cloud-automl/src/v1beta1/prediction_service_client.ts b/packages/google-cloud-automl/src/v1beta1/prediction_service_client.ts index 3bffacb8971..471b3b9a84e 100644 --- a/packages/google-cloud-automl/src/v1beta1/prediction_service_client.ts +++ b/packages/google-cloud-automl/src/v1beta1/prediction_service_client.ts @@ -1109,9 +1109,8 @@ export class PredictionServiceClient { * @returns {Promise} A promise that resolves when the client is closed. */ close(): Promise { - this.initialize(); - if (!this._terminated) { - return this.predictionServiceStub!.then(stub => { + if (this.predictionServiceStub && !this._terminated) { + return this.predictionServiceStub.then(stub => { this._terminated = true; stub.close(); this.operationsClient.close(); diff --git a/packages/google-cloud-automl/test/gapic_auto_ml_v1.ts b/packages/google-cloud-automl/test/gapic_auto_ml_v1.ts index 12600297286..7f18d4f1b01 100644 --- a/packages/google-cloud-automl/test/gapic_auto_ml_v1.ts +++ b/packages/google-cloud-automl/test/gapic_auto_ml_v1.ts @@ -183,12 +183,27 @@ describe('v1.AutoMlClient', () => { assert(client.autoMlStub); }); - it('has close method', () => { + it('has close method for the initialized client', done => { const client = new automlModule.v1.AutoMlClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.close(); + client.initialize(); + assert(client.autoMlStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new automlModule.v1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.autoMlStub, undefined); + client.close().then(() => { + done(); + }); }); it('has getProjectId method', async () => { @@ -334,6 +349,22 @@ describe('v1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getDataset with closed client', async () => { + const client = new automlModule.v1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1.GetDatasetRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getDataset(request), expectedError); + }); }); describe('updateDataset', () => { @@ -448,6 +479,23 @@ describe('v1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateDataset with closed client', async () => { + const client = new automlModule.v1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1.UpdateDatasetRequest() + ); + request.dataset = {}; + request.dataset.name = ''; + const expectedHeaderRequestParams = 'dataset.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateDataset(request), expectedError); + }); }); describe('getAnnotationSpec', () => { @@ -559,6 +607,22 @@ describe('v1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getAnnotationSpec with closed client', async () => { + const client = new automlModule.v1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1.GetAnnotationSpecRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getAnnotationSpec(request), expectedError); + }); }); describe('getModel', () => { @@ -667,6 +731,22 @@ describe('v1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getModel with closed client', async () => { + const client = new automlModule.v1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1.GetModelRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getModel(request), expectedError); + }); }); describe('updateModel', () => { @@ -781,6 +861,23 @@ describe('v1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateModel with closed client', async () => { + const client = new automlModule.v1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1.UpdateModelRequest() + ); + request.model = {}; + request.model.name = ''; + const expectedHeaderRequestParams = 'model.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateModel(request), expectedError); + }); }); describe('getModelEvaluation', () => { @@ -893,6 +990,22 @@ describe('v1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getModelEvaluation with closed client', async () => { + const client = new automlModule.v1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1.GetModelEvaluationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getModelEvaluation(request), expectedError); + }); }); describe('createDataset', () => { diff --git a/packages/google-cloud-automl/test/gapic_auto_ml_v1beta1.ts b/packages/google-cloud-automl/test/gapic_auto_ml_v1beta1.ts index 8694a50ebae..40335d90cc6 100644 --- a/packages/google-cloud-automl/test/gapic_auto_ml_v1beta1.ts +++ b/packages/google-cloud-automl/test/gapic_auto_ml_v1beta1.ts @@ -183,12 +183,27 @@ describe('v1beta1.AutoMlClient', () => { assert(client.autoMlStub); }); - it('has close method', () => { + it('has close method for the initialized client', done => { const client = new automlModule.v1beta1.AutoMlClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.close(); + client.initialize(); + assert(client.autoMlStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new automlModule.v1beta1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.autoMlStub, undefined); + client.close().then(() => { + done(); + }); }); it('has getProjectId method', async () => { @@ -334,6 +349,22 @@ describe('v1beta1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createDataset with closed client', async () => { + const client = new automlModule.v1beta1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1beta1.CreateDatasetRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createDataset(request), expectedError); + }); }); describe('getDataset', () => { @@ -445,6 +476,22 @@ describe('v1beta1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getDataset with closed client', async () => { + const client = new automlModule.v1beta1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1beta1.GetDatasetRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getDataset(request), expectedError); + }); }); describe('updateDataset', () => { @@ -559,6 +606,23 @@ describe('v1beta1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateDataset with closed client', async () => { + const client = new automlModule.v1beta1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1beta1.UpdateDatasetRequest() + ); + request.dataset = {}; + request.dataset.name = ''; + const expectedHeaderRequestParams = 'dataset.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateDataset(request), expectedError); + }); }); describe('getAnnotationSpec', () => { @@ -670,6 +734,22 @@ describe('v1beta1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getAnnotationSpec with closed client', async () => { + const client = new automlModule.v1beta1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1beta1.GetAnnotationSpecRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getAnnotationSpec(request), expectedError); + }); }); describe('getTableSpec', () => { @@ -781,6 +861,22 @@ describe('v1beta1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getTableSpec with closed client', async () => { + const client = new automlModule.v1beta1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1beta1.GetTableSpecRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getTableSpec(request), expectedError); + }); }); describe('updateTableSpec', () => { @@ -895,6 +991,23 @@ describe('v1beta1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateTableSpec with closed client', async () => { + const client = new automlModule.v1beta1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1beta1.UpdateTableSpecRequest() + ); + request.tableSpec = {}; + request.tableSpec.name = ''; + const expectedHeaderRequestParams = 'table_spec.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateTableSpec(request), expectedError); + }); }); describe('getColumnSpec', () => { @@ -1006,6 +1119,22 @@ describe('v1beta1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getColumnSpec with closed client', async () => { + const client = new automlModule.v1beta1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1beta1.GetColumnSpecRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getColumnSpec(request), expectedError); + }); }); describe('updateColumnSpec', () => { @@ -1120,6 +1249,23 @@ describe('v1beta1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateColumnSpec with closed client', async () => { + const client = new automlModule.v1beta1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1beta1.UpdateColumnSpecRequest() + ); + request.columnSpec = {}; + request.columnSpec.name = ''; + const expectedHeaderRequestParams = 'column_spec.name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateColumnSpec(request), expectedError); + }); }); describe('getModel', () => { @@ -1228,6 +1374,22 @@ describe('v1beta1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getModel with closed client', async () => { + const client = new automlModule.v1beta1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1beta1.GetModelRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getModel(request), expectedError); + }); }); describe('getModelEvaluation', () => { @@ -1340,6 +1502,22 @@ describe('v1beta1.AutoMlClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getModelEvaluation with closed client', async () => { + const client = new automlModule.v1beta1.AutoMlClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1beta1.GetModelEvaluationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getModelEvaluation(request), expectedError); + }); }); describe('deleteDataset', () => { diff --git a/packages/google-cloud-automl/test/gapic_prediction_service_v1.ts b/packages/google-cloud-automl/test/gapic_prediction_service_v1.ts index c66234d2e88..09926eb79e8 100644 --- a/packages/google-cloud-automl/test/gapic_prediction_service_v1.ts +++ b/packages/google-cloud-automl/test/gapic_prediction_service_v1.ts @@ -122,12 +122,27 @@ describe('v1.PredictionServiceClient', () => { assert(client.predictionServiceStub); }); - it('has close method', () => { + it('has close method for the initialized client', done => { const client = new predictionserviceModule.v1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.close(); + client.initialize(); + assert(client.predictionServiceStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.predictionServiceStub, undefined); + client.close().then(() => { + done(); + }); }); it('has getProjectId method', async () => { @@ -270,6 +285,22 @@ describe('v1.PredictionServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes predict with closed client', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1.PredictRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.predict(request), expectedError); + }); }); describe('batchPredict', () => { diff --git a/packages/google-cloud-automl/test/gapic_prediction_service_v1beta1.ts b/packages/google-cloud-automl/test/gapic_prediction_service_v1beta1.ts index b2f90bea52c..8ff297351ad 100644 --- a/packages/google-cloud-automl/test/gapic_prediction_service_v1beta1.ts +++ b/packages/google-cloud-automl/test/gapic_prediction_service_v1beta1.ts @@ -123,12 +123,27 @@ describe('v1beta1.PredictionServiceClient', () => { assert(client.predictionServiceStub); }); - it('has close method', () => { + it('has close method for the initialized client', done => { const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.close(); + client.initialize(); + assert(client.predictionServiceStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.predictionServiceStub, undefined); + client.close().then(() => { + done(); + }); }); it('has getProjectId method', async () => { @@ -274,6 +289,23 @@ describe('v1beta1.PredictionServiceClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes predict with closed client', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.automl.v1beta1.PredictRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.predict(request), expectedError); + }); }); describe('batchPredict', () => {