From e46aaec37c70c3fa05c7b390bb06fddde30fc4ee Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 14 Jan 2023 08:57:48 -0800 Subject: [PATCH] feat: Added SuggestConversationSummary RPC (#1081) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Enable requesting numeric enums in "transport=rest" responses for services supporting this (Java, Go, Python, PHP, TypeScript, C#, and Ruby), even if they do not yet turn on REST transport chore: disallow "transport=rest" for services where numeric enums are not confirmed to be supported (except in PHP and Java) PiperOrigin-RevId: 493113566 Source-Link: https://github.com/googleapis/googleapis/commit/758f0d1217d9c7fe398aa5efb1057ce4b6409e55 Source-Link: https://github.com/googleapis/googleapis-gen/commit/78bd8f05e1276363eb14eae70e91fe4bc20703ab Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzhiZDhmMDVlMTI3NjM2M2ViMTRlYWU3MGU5MWZlNGJjMjA3MDNhYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Added SuggestConversationSummary RPC docs: updated go library package PiperOrigin-RevId: 501862436 Source-Link: https://github.com/googleapis/googleapis/commit/155e0f4123ba003055587768944a47498c48926b Source-Link: https://github.com/googleapis/googleapis-gen/commit/3051f617a991c274c88d27064e803095e4ef9d39 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzA1MWY2MTdhOTkxYzI3NGM4OGQyNzA2NGU4MDMwOTVlNGVmOWQzOSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: meredithslota --- .jsdoc.js | 4 ++-- .../v1/image_annotator.async_batch_annotate_files.js | 2 +- .../v1/image_annotator.async_batch_annotate_images.js | 2 +- samples/generated/v1/image_annotator.batch_annotate_files.js | 2 +- .../generated/v1/image_annotator.batch_annotate_images.js | 2 +- .../v1/product_search.add_product_to_product_set.js | 2 +- samples/generated/v1/product_search.create_product.js | 2 +- samples/generated/v1/product_search.create_product_set.js | 2 +- .../generated/v1/product_search.create_reference_image.js | 2 +- samples/generated/v1/product_search.delete_product.js | 2 +- samples/generated/v1/product_search.delete_product_set.js | 2 +- .../generated/v1/product_search.delete_reference_image.js | 2 +- samples/generated/v1/product_search.get_product.js | 2 +- samples/generated/v1/product_search.get_product_set.js | 2 +- samples/generated/v1/product_search.get_reference_image.js | 2 +- samples/generated/v1/product_search.import_product_sets.js | 2 +- samples/generated/v1/product_search.list_product_sets.js | 2 +- samples/generated/v1/product_search.list_products.js | 2 +- .../v1/product_search.list_products_in_product_set.js | 2 +- samples/generated/v1/product_search.list_reference_images.js | 2 +- samples/generated/v1/product_search.purge_products.js | 2 +- .../v1/product_search.remove_product_from_product_set.js | 2 +- samples/generated/v1/product_search.update_product.js | 2 +- samples/generated/v1/product_search.update_product_set.js | 2 +- .../v1p1beta1/image_annotator.batch_annotate_images.js | 2 +- .../v1p2beta1/image_annotator.async_batch_annotate_files.js | 2 +- .../v1p2beta1/image_annotator.batch_annotate_images.js | 2 +- .../v1p3beta1/image_annotator.async_batch_annotate_files.js | 2 +- .../v1p3beta1/image_annotator.batch_annotate_images.js | 2 +- .../v1p3beta1/product_search.add_product_to_product_set.js | 2 +- samples/generated/v1p3beta1/product_search.create_product.js | 2 +- .../generated/v1p3beta1/product_search.create_product_set.js | 2 +- .../v1p3beta1/product_search.create_reference_image.js | 2 +- samples/generated/v1p3beta1/product_search.delete_product.js | 2 +- .../generated/v1p3beta1/product_search.delete_product_set.js | 2 +- .../v1p3beta1/product_search.delete_reference_image.js | 2 +- samples/generated/v1p3beta1/product_search.get_product.js | 2 +- .../generated/v1p3beta1/product_search.get_product_set.js | 2 +- .../v1p3beta1/product_search.get_reference_image.js | 2 +- .../v1p3beta1/product_search.import_product_sets.js | 2 +- .../generated/v1p3beta1/product_search.list_product_sets.js | 2 +- samples/generated/v1p3beta1/product_search.list_products.js | 2 +- .../v1p3beta1/product_search.list_products_in_product_set.js | 2 +- .../v1p3beta1/product_search.list_reference_images.js | 2 +- .../product_search.remove_product_from_product_set.js | 2 +- samples/generated/v1p3beta1/product_search.update_product.js | 2 +- .../generated/v1p3beta1/product_search.update_product_set.js | 2 +- .../v1p4beta1/image_annotator.async_batch_annotate_files.js | 2 +- .../v1p4beta1/image_annotator.async_batch_annotate_images.js | 2 +- .../v1p4beta1/image_annotator.batch_annotate_files.js | 2 +- .../v1p4beta1/image_annotator.batch_annotate_images.js | 2 +- .../v1p4beta1/product_search.add_product_to_product_set.js | 2 +- samples/generated/v1p4beta1/product_search.create_product.js | 2 +- .../generated/v1p4beta1/product_search.create_product_set.js | 2 +- .../v1p4beta1/product_search.create_reference_image.js | 2 +- samples/generated/v1p4beta1/product_search.delete_product.js | 2 +- .../generated/v1p4beta1/product_search.delete_product_set.js | 2 +- .../v1p4beta1/product_search.delete_reference_image.js | 2 +- samples/generated/v1p4beta1/product_search.get_product.js | 2 +- .../generated/v1p4beta1/product_search.get_product_set.js | 2 +- .../v1p4beta1/product_search.get_reference_image.js | 2 +- .../v1p4beta1/product_search.import_product_sets.js | 2 +- .../generated/v1p4beta1/product_search.list_product_sets.js | 2 +- samples/generated/v1p4beta1/product_search.list_products.js | 2 +- .../v1p4beta1/product_search.list_products_in_product_set.js | 2 +- .../v1p4beta1/product_search.list_reference_images.js | 2 +- samples/generated/v1p4beta1/product_search.purge_products.js | 2 +- .../product_search.remove_product_from_product_set.js | 2 +- samples/generated/v1p4beta1/product_search.update_product.js | 2 +- .../generated/v1p4beta1/product_search.update_product_set.js | 2 +- src/v1/image_annotator_client.ts | 5 ++++- src/v1/index.ts | 2 +- src/v1/product_search_client.ts | 5 ++++- src/v1p1beta1/image_annotator_client.ts | 5 ++++- src/v1p1beta1/index.ts | 2 +- src/v1p2beta1/image_annotator_client.ts | 5 ++++- src/v1p2beta1/index.ts | 2 +- src/v1p3beta1/image_annotator_client.ts | 5 ++++- src/v1p3beta1/index.ts | 2 +- src/v1p3beta1/product_search_client.ts | 5 ++++- src/v1p4beta1/image_annotator_client.ts | 5 ++++- src/v1p4beta1/index.ts | 2 +- src/v1p4beta1/product_search_client.ts | 5 ++++- system-test/fixtures/sample/src/index.js | 2 +- system-test/fixtures/sample/src/index.ts | 2 +- system-test/install.ts | 2 +- test/gapic_image_annotator_v1.ts | 2 +- test/gapic_image_annotator_v1p1beta1.ts | 2 +- test/gapic_image_annotator_v1p2beta1.ts | 2 +- test/gapic_image_annotator_v1p3beta1.ts | 2 +- test/gapic_image_annotator_v1p4beta1.ts | 2 +- test/gapic_product_search_v1.ts | 2 +- test/gapic_product_search_v1p3beta1.ts | 2 +- test/gapic_product_search_v1p4beta1.ts | 2 +- 94 files changed, 119 insertions(+), 95 deletions(-) diff --git a/.jsdoc.js b/.jsdoc.js index 3a185a84..d0b1b99b 100644 --- a/.jsdoc.js +++ b/.jsdoc.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2022 Google LLC', + copyright: 'Copyright 2023 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-cloud/vision', diff --git a/samples/generated/v1/image_annotator.async_batch_annotate_files.js b/samples/generated/v1/image_annotator.async_batch_annotate_files.js index 7d7ed138..082eaef0 100644 --- a/samples/generated/v1/image_annotator.async_batch_annotate_files.js +++ b/samples/generated/v1/image_annotator.async_batch_annotate_files.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/image_annotator.async_batch_annotate_images.js b/samples/generated/v1/image_annotator.async_batch_annotate_images.js index 70be298e..9c97f2a2 100644 --- a/samples/generated/v1/image_annotator.async_batch_annotate_images.js +++ b/samples/generated/v1/image_annotator.async_batch_annotate_images.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/image_annotator.batch_annotate_files.js b/samples/generated/v1/image_annotator.batch_annotate_files.js index 528c4d1f..f2b2930c 100644 --- a/samples/generated/v1/image_annotator.batch_annotate_files.js +++ b/samples/generated/v1/image_annotator.batch_annotate_files.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/image_annotator.batch_annotate_images.js b/samples/generated/v1/image_annotator.batch_annotate_images.js index 2f57a691..991ca9d7 100644 --- a/samples/generated/v1/image_annotator.batch_annotate_images.js +++ b/samples/generated/v1/image_annotator.batch_annotate_images.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.add_product_to_product_set.js b/samples/generated/v1/product_search.add_product_to_product_set.js index 1826ada2..c21264f4 100644 --- a/samples/generated/v1/product_search.add_product_to_product_set.js +++ b/samples/generated/v1/product_search.add_product_to_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.create_product.js b/samples/generated/v1/product_search.create_product.js index 9e064a95..b9c709fc 100644 --- a/samples/generated/v1/product_search.create_product.js +++ b/samples/generated/v1/product_search.create_product.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.create_product_set.js b/samples/generated/v1/product_search.create_product_set.js index 5c580189..81702d1a 100644 --- a/samples/generated/v1/product_search.create_product_set.js +++ b/samples/generated/v1/product_search.create_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.create_reference_image.js b/samples/generated/v1/product_search.create_reference_image.js index 6175cef1..8506cd1a 100644 --- a/samples/generated/v1/product_search.create_reference_image.js +++ b/samples/generated/v1/product_search.create_reference_image.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.delete_product.js b/samples/generated/v1/product_search.delete_product.js index 8d58541b..91a489bd 100644 --- a/samples/generated/v1/product_search.delete_product.js +++ b/samples/generated/v1/product_search.delete_product.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.delete_product_set.js b/samples/generated/v1/product_search.delete_product_set.js index 5c5b8125..1586c169 100644 --- a/samples/generated/v1/product_search.delete_product_set.js +++ b/samples/generated/v1/product_search.delete_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.delete_reference_image.js b/samples/generated/v1/product_search.delete_reference_image.js index 18a64743..6e489d98 100644 --- a/samples/generated/v1/product_search.delete_reference_image.js +++ b/samples/generated/v1/product_search.delete_reference_image.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.get_product.js b/samples/generated/v1/product_search.get_product.js index 27e014db..c9d6392a 100644 --- a/samples/generated/v1/product_search.get_product.js +++ b/samples/generated/v1/product_search.get_product.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.get_product_set.js b/samples/generated/v1/product_search.get_product_set.js index fa80ab00..c08dea70 100644 --- a/samples/generated/v1/product_search.get_product_set.js +++ b/samples/generated/v1/product_search.get_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.get_reference_image.js b/samples/generated/v1/product_search.get_reference_image.js index b25fb5e6..e7429e85 100644 --- a/samples/generated/v1/product_search.get_reference_image.js +++ b/samples/generated/v1/product_search.get_reference_image.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.import_product_sets.js b/samples/generated/v1/product_search.import_product_sets.js index 859e0f5a..e30166c4 100644 --- a/samples/generated/v1/product_search.import_product_sets.js +++ b/samples/generated/v1/product_search.import_product_sets.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.list_product_sets.js b/samples/generated/v1/product_search.list_product_sets.js index 66a071b0..e5bf4df1 100644 --- a/samples/generated/v1/product_search.list_product_sets.js +++ b/samples/generated/v1/product_search.list_product_sets.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.list_products.js b/samples/generated/v1/product_search.list_products.js index 8fa795f6..41893451 100644 --- a/samples/generated/v1/product_search.list_products.js +++ b/samples/generated/v1/product_search.list_products.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.list_products_in_product_set.js b/samples/generated/v1/product_search.list_products_in_product_set.js index 3e9871fc..9e6d0b77 100644 --- a/samples/generated/v1/product_search.list_products_in_product_set.js +++ b/samples/generated/v1/product_search.list_products_in_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.list_reference_images.js b/samples/generated/v1/product_search.list_reference_images.js index f7175d39..f2c5a69c 100644 --- a/samples/generated/v1/product_search.list_reference_images.js +++ b/samples/generated/v1/product_search.list_reference_images.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.purge_products.js b/samples/generated/v1/product_search.purge_products.js index 0dae0b9b..7cd42dff 100644 --- a/samples/generated/v1/product_search.purge_products.js +++ b/samples/generated/v1/product_search.purge_products.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.remove_product_from_product_set.js b/samples/generated/v1/product_search.remove_product_from_product_set.js index ad66ef6b..02feca9e 100644 --- a/samples/generated/v1/product_search.remove_product_from_product_set.js +++ b/samples/generated/v1/product_search.remove_product_from_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.update_product.js b/samples/generated/v1/product_search.update_product.js index d8fd49f9..69391152 100644 --- a/samples/generated/v1/product_search.update_product.js +++ b/samples/generated/v1/product_search.update_product.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1/product_search.update_product_set.js b/samples/generated/v1/product_search.update_product_set.js index 26bf5ed6..65d4315e 100644 --- a/samples/generated/v1/product_search.update_product_set.js +++ b/samples/generated/v1/product_search.update_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p1beta1/image_annotator.batch_annotate_images.js b/samples/generated/v1p1beta1/image_annotator.batch_annotate_images.js index eb0fe422..04a62e5d 100644 --- a/samples/generated/v1p1beta1/image_annotator.batch_annotate_images.js +++ b/samples/generated/v1p1beta1/image_annotator.batch_annotate_images.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p2beta1/image_annotator.async_batch_annotate_files.js b/samples/generated/v1p2beta1/image_annotator.async_batch_annotate_files.js index 92074c3a..5159cebe 100644 --- a/samples/generated/v1p2beta1/image_annotator.async_batch_annotate_files.js +++ b/samples/generated/v1p2beta1/image_annotator.async_batch_annotate_files.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p2beta1/image_annotator.batch_annotate_images.js b/samples/generated/v1p2beta1/image_annotator.batch_annotate_images.js index 793ec83e..21f5fe4b 100644 --- a/samples/generated/v1p2beta1/image_annotator.batch_annotate_images.js +++ b/samples/generated/v1p2beta1/image_annotator.batch_annotate_images.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/image_annotator.async_batch_annotate_files.js b/samples/generated/v1p3beta1/image_annotator.async_batch_annotate_files.js index 900c1b0b..ad289491 100644 --- a/samples/generated/v1p3beta1/image_annotator.async_batch_annotate_files.js +++ b/samples/generated/v1p3beta1/image_annotator.async_batch_annotate_files.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/image_annotator.batch_annotate_images.js b/samples/generated/v1p3beta1/image_annotator.batch_annotate_images.js index 1b58eca1..50c2ee9c 100644 --- a/samples/generated/v1p3beta1/image_annotator.batch_annotate_images.js +++ b/samples/generated/v1p3beta1/image_annotator.batch_annotate_images.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.add_product_to_product_set.js b/samples/generated/v1p3beta1/product_search.add_product_to_product_set.js index 96b4c8ba..59fb5512 100644 --- a/samples/generated/v1p3beta1/product_search.add_product_to_product_set.js +++ b/samples/generated/v1p3beta1/product_search.add_product_to_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.create_product.js b/samples/generated/v1p3beta1/product_search.create_product.js index ed6ac1b8..cae01deb 100644 --- a/samples/generated/v1p3beta1/product_search.create_product.js +++ b/samples/generated/v1p3beta1/product_search.create_product.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.create_product_set.js b/samples/generated/v1p3beta1/product_search.create_product_set.js index 90879035..1c056450 100644 --- a/samples/generated/v1p3beta1/product_search.create_product_set.js +++ b/samples/generated/v1p3beta1/product_search.create_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.create_reference_image.js b/samples/generated/v1p3beta1/product_search.create_reference_image.js index 48848360..6842f0d6 100644 --- a/samples/generated/v1p3beta1/product_search.create_reference_image.js +++ b/samples/generated/v1p3beta1/product_search.create_reference_image.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.delete_product.js b/samples/generated/v1p3beta1/product_search.delete_product.js index a5872042..0874ac56 100644 --- a/samples/generated/v1p3beta1/product_search.delete_product.js +++ b/samples/generated/v1p3beta1/product_search.delete_product.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.delete_product_set.js b/samples/generated/v1p3beta1/product_search.delete_product_set.js index 7d971bc3..0c2c1b22 100644 --- a/samples/generated/v1p3beta1/product_search.delete_product_set.js +++ b/samples/generated/v1p3beta1/product_search.delete_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.delete_reference_image.js b/samples/generated/v1p3beta1/product_search.delete_reference_image.js index c97f2727..428cb5c5 100644 --- a/samples/generated/v1p3beta1/product_search.delete_reference_image.js +++ b/samples/generated/v1p3beta1/product_search.delete_reference_image.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.get_product.js b/samples/generated/v1p3beta1/product_search.get_product.js index c62e8ea6..e567ea01 100644 --- a/samples/generated/v1p3beta1/product_search.get_product.js +++ b/samples/generated/v1p3beta1/product_search.get_product.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.get_product_set.js b/samples/generated/v1p3beta1/product_search.get_product_set.js index 4def76dc..6172705b 100644 --- a/samples/generated/v1p3beta1/product_search.get_product_set.js +++ b/samples/generated/v1p3beta1/product_search.get_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.get_reference_image.js b/samples/generated/v1p3beta1/product_search.get_reference_image.js index 93ee9d82..23a706fb 100644 --- a/samples/generated/v1p3beta1/product_search.get_reference_image.js +++ b/samples/generated/v1p3beta1/product_search.get_reference_image.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.import_product_sets.js b/samples/generated/v1p3beta1/product_search.import_product_sets.js index 23698c04..abae1194 100644 --- a/samples/generated/v1p3beta1/product_search.import_product_sets.js +++ b/samples/generated/v1p3beta1/product_search.import_product_sets.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.list_product_sets.js b/samples/generated/v1p3beta1/product_search.list_product_sets.js index 52033c07..a79e216e 100644 --- a/samples/generated/v1p3beta1/product_search.list_product_sets.js +++ b/samples/generated/v1p3beta1/product_search.list_product_sets.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.list_products.js b/samples/generated/v1p3beta1/product_search.list_products.js index 454672d1..2cf281d3 100644 --- a/samples/generated/v1p3beta1/product_search.list_products.js +++ b/samples/generated/v1p3beta1/product_search.list_products.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.list_products_in_product_set.js b/samples/generated/v1p3beta1/product_search.list_products_in_product_set.js index 65bc35e2..db185779 100644 --- a/samples/generated/v1p3beta1/product_search.list_products_in_product_set.js +++ b/samples/generated/v1p3beta1/product_search.list_products_in_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.list_reference_images.js b/samples/generated/v1p3beta1/product_search.list_reference_images.js index 9deb4e05..8f9a281b 100644 --- a/samples/generated/v1p3beta1/product_search.list_reference_images.js +++ b/samples/generated/v1p3beta1/product_search.list_reference_images.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.remove_product_from_product_set.js b/samples/generated/v1p3beta1/product_search.remove_product_from_product_set.js index 45dcddaf..f010803e 100644 --- a/samples/generated/v1p3beta1/product_search.remove_product_from_product_set.js +++ b/samples/generated/v1p3beta1/product_search.remove_product_from_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.update_product.js b/samples/generated/v1p3beta1/product_search.update_product.js index 8d98838c..dcc93df7 100644 --- a/samples/generated/v1p3beta1/product_search.update_product.js +++ b/samples/generated/v1p3beta1/product_search.update_product.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p3beta1/product_search.update_product_set.js b/samples/generated/v1p3beta1/product_search.update_product_set.js index cfecdb70..59b2ffc0 100644 --- a/samples/generated/v1p3beta1/product_search.update_product_set.js +++ b/samples/generated/v1p3beta1/product_search.update_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/image_annotator.async_batch_annotate_files.js b/samples/generated/v1p4beta1/image_annotator.async_batch_annotate_files.js index 199be36a..4fca75d9 100644 --- a/samples/generated/v1p4beta1/image_annotator.async_batch_annotate_files.js +++ b/samples/generated/v1p4beta1/image_annotator.async_batch_annotate_files.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/image_annotator.async_batch_annotate_images.js b/samples/generated/v1p4beta1/image_annotator.async_batch_annotate_images.js index 8cb5197f..d724c61a 100644 --- a/samples/generated/v1p4beta1/image_annotator.async_batch_annotate_images.js +++ b/samples/generated/v1p4beta1/image_annotator.async_batch_annotate_images.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/image_annotator.batch_annotate_files.js b/samples/generated/v1p4beta1/image_annotator.batch_annotate_files.js index 2fe101f3..b0f97db6 100644 --- a/samples/generated/v1p4beta1/image_annotator.batch_annotate_files.js +++ b/samples/generated/v1p4beta1/image_annotator.batch_annotate_files.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/image_annotator.batch_annotate_images.js b/samples/generated/v1p4beta1/image_annotator.batch_annotate_images.js index f6aaa34e..e6a52d75 100644 --- a/samples/generated/v1p4beta1/image_annotator.batch_annotate_images.js +++ b/samples/generated/v1p4beta1/image_annotator.batch_annotate_images.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.add_product_to_product_set.js b/samples/generated/v1p4beta1/product_search.add_product_to_product_set.js index c6ef04f0..b05bc5af 100644 --- a/samples/generated/v1p4beta1/product_search.add_product_to_product_set.js +++ b/samples/generated/v1p4beta1/product_search.add_product_to_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.create_product.js b/samples/generated/v1p4beta1/product_search.create_product.js index 60ec6540..3d7a4215 100644 --- a/samples/generated/v1p4beta1/product_search.create_product.js +++ b/samples/generated/v1p4beta1/product_search.create_product.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.create_product_set.js b/samples/generated/v1p4beta1/product_search.create_product_set.js index ea4c348b..39e0b6d4 100644 --- a/samples/generated/v1p4beta1/product_search.create_product_set.js +++ b/samples/generated/v1p4beta1/product_search.create_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.create_reference_image.js b/samples/generated/v1p4beta1/product_search.create_reference_image.js index bb6709c3..4234bac5 100644 --- a/samples/generated/v1p4beta1/product_search.create_reference_image.js +++ b/samples/generated/v1p4beta1/product_search.create_reference_image.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.delete_product.js b/samples/generated/v1p4beta1/product_search.delete_product.js index 63f362dc..77a59a20 100644 --- a/samples/generated/v1p4beta1/product_search.delete_product.js +++ b/samples/generated/v1p4beta1/product_search.delete_product.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.delete_product_set.js b/samples/generated/v1p4beta1/product_search.delete_product_set.js index 72ac7fec..47366aff 100644 --- a/samples/generated/v1p4beta1/product_search.delete_product_set.js +++ b/samples/generated/v1p4beta1/product_search.delete_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.delete_reference_image.js b/samples/generated/v1p4beta1/product_search.delete_reference_image.js index 92f9f39c..ba8d84e8 100644 --- a/samples/generated/v1p4beta1/product_search.delete_reference_image.js +++ b/samples/generated/v1p4beta1/product_search.delete_reference_image.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.get_product.js b/samples/generated/v1p4beta1/product_search.get_product.js index 80db0f5a..d25228dc 100644 --- a/samples/generated/v1p4beta1/product_search.get_product.js +++ b/samples/generated/v1p4beta1/product_search.get_product.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.get_product_set.js b/samples/generated/v1p4beta1/product_search.get_product_set.js index acba73c5..fb9617e5 100644 --- a/samples/generated/v1p4beta1/product_search.get_product_set.js +++ b/samples/generated/v1p4beta1/product_search.get_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.get_reference_image.js b/samples/generated/v1p4beta1/product_search.get_reference_image.js index 5dc13d64..61727ded 100644 --- a/samples/generated/v1p4beta1/product_search.get_reference_image.js +++ b/samples/generated/v1p4beta1/product_search.get_reference_image.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.import_product_sets.js b/samples/generated/v1p4beta1/product_search.import_product_sets.js index 3a422698..d59394fb 100644 --- a/samples/generated/v1p4beta1/product_search.import_product_sets.js +++ b/samples/generated/v1p4beta1/product_search.import_product_sets.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.list_product_sets.js b/samples/generated/v1p4beta1/product_search.list_product_sets.js index 81e409fa..07c3a811 100644 --- a/samples/generated/v1p4beta1/product_search.list_product_sets.js +++ b/samples/generated/v1p4beta1/product_search.list_product_sets.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.list_products.js b/samples/generated/v1p4beta1/product_search.list_products.js index 8b67070e..50aaa67a 100644 --- a/samples/generated/v1p4beta1/product_search.list_products.js +++ b/samples/generated/v1p4beta1/product_search.list_products.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.list_products_in_product_set.js b/samples/generated/v1p4beta1/product_search.list_products_in_product_set.js index 869b118f..402c7019 100644 --- a/samples/generated/v1p4beta1/product_search.list_products_in_product_set.js +++ b/samples/generated/v1p4beta1/product_search.list_products_in_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.list_reference_images.js b/samples/generated/v1p4beta1/product_search.list_reference_images.js index 637c1f8a..376272fc 100644 --- a/samples/generated/v1p4beta1/product_search.list_reference_images.js +++ b/samples/generated/v1p4beta1/product_search.list_reference_images.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.purge_products.js b/samples/generated/v1p4beta1/product_search.purge_products.js index 5dd66449..30d93c0c 100644 --- a/samples/generated/v1p4beta1/product_search.purge_products.js +++ b/samples/generated/v1p4beta1/product_search.purge_products.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.remove_product_from_product_set.js b/samples/generated/v1p4beta1/product_search.remove_product_from_product_set.js index af9e9c14..dd2c2d1b 100644 --- a/samples/generated/v1p4beta1/product_search.remove_product_from_product_set.js +++ b/samples/generated/v1p4beta1/product_search.remove_product_from_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.update_product.js b/samples/generated/v1p4beta1/product_search.update_product.js index 3c8d60bb..5e385c1c 100644 --- a/samples/generated/v1p4beta1/product_search.update_product.js +++ b/samples/generated/v1p4beta1/product_search.update_product.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/samples/generated/v1p4beta1/product_search.update_product_set.js b/samples/generated/v1p4beta1/product_search.update_product_set.js index 6ceb8322..66ed5196 100644 --- a/samples/generated/v1p4beta1/product_search.update_product_set.js +++ b/samples/generated/v1p4beta1/product_search.update_product_set.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/v1/image_annotator_client.ts b/src/v1/image_annotator_client.ts index 31495ea2..26e2076f 100644 --- a/src/v1/image_annotator_client.ts +++ b/src/v1/image_annotator_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -123,6 +123,9 @@ export class ImageAnnotatorClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; diff --git a/src/v1/index.ts b/src/v1/index.ts index 549f810f..4cbdef94 100644 --- a/src/v1/index.ts +++ b/src/v1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/v1/product_search_client.ts b/src/v1/product_search_client.ts index 1a64fc9e..53b85968 100644 --- a/src/v1/product_search_client.ts +++ b/src/v1/product_search_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -136,6 +136,9 @@ export class ProductSearchClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; diff --git a/src/v1p1beta1/image_annotator_client.ts b/src/v1p1beta1/image_annotator_client.ts index afef4427..986e6d38 100644 --- a/src/v1p1beta1/image_annotator_client.ts +++ b/src/v1p1beta1/image_annotator_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -119,6 +119,9 @@ export class ImageAnnotatorClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; diff --git a/src/v1p1beta1/index.ts b/src/v1p1beta1/index.ts index a9739874..19b34c96 100644 --- a/src/v1p1beta1/index.ts +++ b/src/v1p1beta1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/v1p2beta1/image_annotator_client.ts b/src/v1p2beta1/image_annotator_client.ts index 8bb2e005..a79354c4 100644 --- a/src/v1p2beta1/image_annotator_client.ts +++ b/src/v1p2beta1/image_annotator_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -122,6 +122,9 @@ export class ImageAnnotatorClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; diff --git a/src/v1p2beta1/index.ts b/src/v1p2beta1/index.ts index a9739874..19b34c96 100644 --- a/src/v1p2beta1/index.ts +++ b/src/v1p2beta1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/v1p3beta1/image_annotator_client.ts b/src/v1p3beta1/image_annotator_client.ts index 7f0e5c86..98a32465 100644 --- a/src/v1p3beta1/image_annotator_client.ts +++ b/src/v1p3beta1/image_annotator_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -123,6 +123,9 @@ export class ImageAnnotatorClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; diff --git a/src/v1p3beta1/index.ts b/src/v1p3beta1/index.ts index 549f810f..4cbdef94 100644 --- a/src/v1p3beta1/index.ts +++ b/src/v1p3beta1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/v1p3beta1/product_search_client.ts b/src/v1p3beta1/product_search_client.ts index f309bbfe..d401a753 100644 --- a/src/v1p3beta1/product_search_client.ts +++ b/src/v1p3beta1/product_search_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -136,6 +136,9 @@ export class ProductSearchClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; diff --git a/src/v1p4beta1/image_annotator_client.ts b/src/v1p4beta1/image_annotator_client.ts index d8d335af..d5708514 100644 --- a/src/v1p4beta1/image_annotator_client.ts +++ b/src/v1p4beta1/image_annotator_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -123,6 +123,9 @@ export class ImageAnnotatorClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; diff --git a/src/v1p4beta1/index.ts b/src/v1p4beta1/index.ts index 549f810f..4cbdef94 100644 --- a/src/v1p4beta1/index.ts +++ b/src/v1p4beta1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/src/v1p4beta1/product_search_client.ts b/src/v1p4beta1/product_search_client.ts index dd6eaab4..226d479f 100644 --- a/src/v1p4beta1/product_search_client.ts +++ b/src/v1p4beta1/product_search_client.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -140,6 +140,9 @@ export class ProductSearchClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; diff --git a/system-test/fixtures/sample/src/index.js b/system-test/fixtures/sample/src/index.js index 1ec7d1fc..812e2cb5 100644 --- a/system-test/fixtures/sample/src/index.js +++ b/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/system-test/fixtures/sample/src/index.ts b/system-test/fixtures/sample/src/index.ts index 4f095534..1ec26c80 100644 --- a/system-test/fixtures/sample/src/index.ts +++ b/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/system-test/install.ts b/system-test/install.ts index 6dd1eaad..f61fe236 100644 --- a/system-test/install.ts +++ b/system-test/install.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/test/gapic_image_annotator_v1.ts b/test/gapic_image_annotator_v1.ts index c7590b51..9cbdd105 100644 --- a/test/gapic_image_annotator_v1.ts +++ b/test/gapic_image_annotator_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/test/gapic_image_annotator_v1p1beta1.ts b/test/gapic_image_annotator_v1p1beta1.ts index edf4055b..790de938 100644 --- a/test/gapic_image_annotator_v1p1beta1.ts +++ b/test/gapic_image_annotator_v1p1beta1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/test/gapic_image_annotator_v1p2beta1.ts b/test/gapic_image_annotator_v1p2beta1.ts index 8ddfa624..124129c4 100644 --- a/test/gapic_image_annotator_v1p2beta1.ts +++ b/test/gapic_image_annotator_v1p2beta1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/test/gapic_image_annotator_v1p3beta1.ts b/test/gapic_image_annotator_v1p3beta1.ts index b82c3419..ba8d342e 100644 --- a/test/gapic_image_annotator_v1p3beta1.ts +++ b/test/gapic_image_annotator_v1p3beta1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/test/gapic_image_annotator_v1p4beta1.ts b/test/gapic_image_annotator_v1p4beta1.ts index 97a633c9..2219e36b 100644 --- a/test/gapic_image_annotator_v1p4beta1.ts +++ b/test/gapic_image_annotator_v1p4beta1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/test/gapic_product_search_v1.ts b/test/gapic_product_search_v1.ts index ae4ed49b..6fc4d281 100644 --- a/test/gapic_product_search_v1.ts +++ b/test/gapic_product_search_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/test/gapic_product_search_v1p3beta1.ts b/test/gapic_product_search_v1p3beta1.ts index 32845326..eebe8469 100644 --- a/test/gapic_product_search_v1p3beta1.ts +++ b/test/gapic_product_search_v1p3beta1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/test/gapic_product_search_v1p4beta1.ts b/test/gapic_product_search_v1p4beta1.ts index 6baa71c8..083304e6 100644 --- a/test/gapic_product_search_v1p4beta1.ts +++ b/test/gapic_product_search_v1p4beta1.ts @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.