Skip to content

Commit fd43753

Browse files
chore: Bump gapic-generator-python version to 1.3.0 (#481)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 472561635 Source-Link: googleapis/googleapis@332ecf5 Source-Link: googleapis/googleapis-gen@4313d68 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDMxM2Q2ODI4ODBmZDlkNzI0NzI5MTE2NGQ0ZTlkM2Q1YmQ5ZjE3NyJ9
1 parent 61a15c7 commit fd43753

File tree

159 files changed

+3252
-1320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+3252
-1320
lines changed

packages/google-cloud-vision/google/cloud/vision_v1/services/image_annotator/async_client.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,13 @@ async def batch_annotate_images(
223223
224224
.. code-block:: python
225225
226+
# This snippet has been automatically generated and should be regarded as a
227+
# code template only.
228+
# It will require modifications to work:
229+
# - It may require correct/in-range values for request initialization.
230+
# - It may require specifying regional endpoints when creating the service
231+
# client as shown in:
232+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
226233
from google.cloud import vision_v1
227234
228235
async def sample_batch_annotate_images():
@@ -328,6 +335,13 @@ async def batch_annotate_files(
328335
329336
.. code-block:: python
330337
338+
# This snippet has been automatically generated and should be regarded as a
339+
# code template only.
340+
# It will require modifications to work:
341+
# - It may require correct/in-range values for request initialization.
342+
# - It may require specifying regional endpoints when creating the service
343+
# client as shown in:
344+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
331345
from google.cloud import vision_v1
332346
333347
async def sample_batch_annotate_files():
@@ -438,6 +452,13 @@ async def async_batch_annotate_images(
438452
439453
.. code-block:: python
440454
455+
# This snippet has been automatically generated and should be regarded as a
456+
# code template only.
457+
# It will require modifications to work:
458+
# - It may require correct/in-range values for request initialization.
459+
# - It may require specifying regional endpoints when creating the service
460+
# client as shown in:
461+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
441462
from google.cloud import vision_v1
442463
443464
async def sample_async_batch_annotate_images():
@@ -566,6 +587,13 @@ async def async_batch_annotate_files(
566587
567588
.. code-block:: python
568589
590+
# This snippet has been automatically generated and should be regarded as a
591+
# code template only.
592+
# It will require modifications to work:
593+
# - It may require correct/in-range values for request initialization.
594+
# - It may require specifying regional endpoints when creating the service
595+
# client as shown in:
596+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
569597
from google.cloud import vision_v1
570598
571599
async def sample_async_batch_annotate_files():

packages/google-cloud-vision/google/cloud/vision_v1/services/image_annotator/client.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,13 @@ def batch_annotate_images(
470470
471471
.. code-block:: python
472472
473+
# This snippet has been automatically generated and should be regarded as a
474+
# code template only.
475+
# It will require modifications to work:
476+
# - It may require correct/in-range values for request initialization.
477+
# - It may require specifying regional endpoints when creating the service
478+
# client as shown in:
479+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
473480
from google.cloud import vision_v1
474481
475482
def sample_batch_annotate_images():
@@ -568,6 +575,13 @@ def batch_annotate_files(
568575
569576
.. code-block:: python
570577
578+
# This snippet has been automatically generated and should be regarded as a
579+
# code template only.
580+
# It will require modifications to work:
581+
# - It may require correct/in-range values for request initialization.
582+
# - It may require specifying regional endpoints when creating the service
583+
# client as shown in:
584+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
571585
from google.cloud import vision_v1
572586
573587
def sample_batch_annotate_files():
@@ -671,6 +685,13 @@ def async_batch_annotate_images(
671685
672686
.. code-block:: python
673687
688+
# This snippet has been automatically generated and should be regarded as a
689+
# code template only.
690+
# It will require modifications to work:
691+
# - It may require correct/in-range values for request initialization.
692+
# - It may require specifying regional endpoints when creating the service
693+
# client as shown in:
694+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
674695
from google.cloud import vision_v1
675696
676697
def sample_async_batch_annotate_images():
@@ -794,6 +815,13 @@ def async_batch_annotate_files(
794815
795816
.. code-block:: python
796817
818+
# This snippet has been automatically generated and should be regarded as a
819+
# code template only.
820+
# It will require modifications to work:
821+
# - It may require correct/in-range values for request initialization.
822+
# - It may require specifying regional endpoints when creating the service
823+
# client as shown in:
824+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
797825
from google.cloud import vision_v1
798826
799827
def sample_async_batch_annotate_files():

packages/google-cloud-vision/google/cloud/vision_v1/services/product_search/async_client.py

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,13 @@ async def create_product_set(
253253
254254
.. code-block:: python
255255
256+
# This snippet has been automatically generated and should be regarded as a
257+
# code template only.
258+
# It will require modifications to work:
259+
# - It may require correct/in-range values for request initialization.
260+
# - It may require specifying regional endpoints when creating the service
261+
# client as shown in:
262+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
256263
from google.cloud import vision_v1
257264
258265
async def sample_create_product_set():
@@ -384,6 +391,13 @@ async def list_product_sets(
384391
385392
.. code-block:: python
386393
394+
# This snippet has been automatically generated and should be regarded as a
395+
# code template only.
396+
# It will require modifications to work:
397+
# - It may require correct/in-range values for request initialization.
398+
# - It may require specifying regional endpoints when creating the service
399+
# client as shown in:
400+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
387401
from google.cloud import vision_v1
388402
389403
async def sample_list_product_sets():
@@ -507,6 +521,13 @@ async def get_product_set(
507521
508522
.. code-block:: python
509523
524+
# This snippet has been automatically generated and should be regarded as a
525+
# code template only.
526+
# It will require modifications to work:
527+
# - It may require correct/in-range values for request initialization.
528+
# - It may require specifying regional endpoints when creating the service
529+
# client as shown in:
530+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
510531
from google.cloud import vision_v1
511532
512533
async def sample_get_product_set():
@@ -626,6 +647,13 @@ async def update_product_set(
626647
627648
.. code-block:: python
628649
650+
# This snippet has been automatically generated and should be regarded as a
651+
# code template only.
652+
# It will require modifications to work:
653+
# - It may require correct/in-range values for request initialization.
654+
# - It may require specifying regional endpoints when creating the service
655+
# client as shown in:
656+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
629657
from google.cloud import vision_v1
630658
631659
async def sample_update_product_set():
@@ -749,6 +777,13 @@ async def delete_product_set(
749777
750778
.. code-block:: python
751779
780+
# This snippet has been automatically generated and should be regarded as a
781+
# code template only.
782+
# It will require modifications to work:
783+
# - It may require correct/in-range values for request initialization.
784+
# - It may require specifying regional endpoints when creating the service
785+
# client as shown in:
786+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
752787
from google.cloud import vision_v1
753788
754789
async def sample_delete_product_set():
@@ -855,6 +890,13 @@ async def create_product(
855890
856891
.. code-block:: python
857892
893+
# This snippet has been automatically generated and should be regarded as a
894+
# code template only.
895+
# It will require modifications to work:
896+
# - It may require correct/in-range values for request initialization.
897+
# - It may require specifying regional endpoints when creating the service
898+
# client as shown in:
899+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
858900
from google.cloud import vision_v1
859901
860902
async def sample_create_product():
@@ -981,6 +1023,13 @@ async def list_products(
9811023
9821024
.. code-block:: python
9831025
1026+
# This snippet has been automatically generated and should be regarded as a
1027+
# code template only.
1028+
# It will require modifications to work:
1029+
# - It may require correct/in-range values for request initialization.
1030+
# - It may require specifying regional endpoints when creating the service
1031+
# client as shown in:
1032+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
9841033
from google.cloud import vision_v1
9851034
9861035
async def sample_list_products():
@@ -1104,6 +1153,13 @@ async def get_product(
11041153
11051154
.. code-block:: python
11061155
1156+
# This snippet has been automatically generated and should be regarded as a
1157+
# code template only.
1158+
# It will require modifications to work:
1159+
# - It may require correct/in-range values for request initialization.
1160+
# - It may require specifying regional endpoints when creating the service
1161+
# client as shown in:
1162+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
11071163
from google.cloud import vision_v1
11081164
11091165
async def sample_get_product():
@@ -1225,6 +1281,13 @@ async def update_product(
12251281
12261282
.. code-block:: python
12271283
1284+
# This snippet has been automatically generated and should be regarded as a
1285+
# code template only.
1286+
# It will require modifications to work:
1287+
# - It may require correct/in-range values for request initialization.
1288+
# - It may require specifying regional endpoints when creating the service
1289+
# client as shown in:
1290+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
12281291
from google.cloud import vision_v1
12291292
12301293
async def sample_update_product():
@@ -1347,6 +1410,13 @@ async def delete_product(
13471410
13481411
.. code-block:: python
13491412
1413+
# This snippet has been automatically generated and should be regarded as a
1414+
# code template only.
1415+
# It will require modifications to work:
1416+
# - It may require correct/in-range values for request initialization.
1417+
# - It may require specifying regional endpoints when creating the service
1418+
# client as shown in:
1419+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
13501420
from google.cloud import vision_v1
13511421
13521422
async def sample_delete_product():
@@ -1465,6 +1535,13 @@ async def create_reference_image(
14651535
14661536
.. code-block:: python
14671537
1538+
# This snippet has been automatically generated and should be regarded as a
1539+
# code template only.
1540+
# It will require modifications to work:
1541+
# - It may require correct/in-range values for request initialization.
1542+
# - It may require specifying regional endpoints when creating the service
1543+
# client as shown in:
1544+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
14681545
from google.cloud import vision_v1
14691546
14701547
async def sample_create_reference_image():
@@ -1602,6 +1679,13 @@ async def delete_reference_image(
16021679
16031680
.. code-block:: python
16041681
1682+
# This snippet has been automatically generated and should be regarded as a
1683+
# code template only.
1684+
# It will require modifications to work:
1685+
# - It may require correct/in-range values for request initialization.
1686+
# - It may require specifying regional endpoints when creating the service
1687+
# client as shown in:
1688+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
16051689
from google.cloud import vision_v1
16061690
16071691
async def sample_delete_reference_image():
@@ -1704,6 +1788,13 @@ async def list_reference_images(
17041788
17051789
.. code-block:: python
17061790
1791+
# This snippet has been automatically generated and should be regarded as a
1792+
# code template only.
1793+
# It will require modifications to work:
1794+
# - It may require correct/in-range values for request initialization.
1795+
# - It may require specifying regional endpoints when creating the service
1796+
# client as shown in:
1797+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
17071798
from google.cloud import vision_v1
17081799
17091800
async def sample_list_reference_images():
@@ -1828,6 +1919,13 @@ async def get_reference_image(
18281919
18291920
.. code-block:: python
18301921
1922+
# This snippet has been automatically generated and should be regarded as a
1923+
# code template only.
1924+
# It will require modifications to work:
1925+
# - It may require correct/in-range values for request initialization.
1926+
# - It may require specifying regional endpoints when creating the service
1927+
# client as shown in:
1928+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
18311929
from google.cloud import vision_v1
18321930
18331931
async def sample_get_reference_image():
@@ -1947,6 +2045,13 @@ async def add_product_to_product_set(
19472045
19482046
.. code-block:: python
19492047
2048+
# This snippet has been automatically generated and should be regarded as a
2049+
# code template only.
2050+
# It will require modifications to work:
2051+
# - It may require correct/in-range values for request initialization.
2052+
# - It may require specifying regional endpoints when creating the service
2053+
# client as shown in:
2054+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
19502055
from google.cloud import vision_v1
19512056
19522057
async def sample_add_product_to_product_set():
@@ -2059,6 +2164,13 @@ async def remove_product_from_product_set(
20592164
20602165
.. code-block:: python
20612166
2167+
# This snippet has been automatically generated and should be regarded as a
2168+
# code template only.
2169+
# It will require modifications to work:
2170+
# - It may require correct/in-range values for request initialization.
2171+
# - It may require specifying regional endpoints when creating the service
2172+
# client as shown in:
2173+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
20622174
from google.cloud import vision_v1
20632175
20642176
async def sample_remove_product_from_product_set():
@@ -2177,6 +2289,13 @@ async def list_products_in_product_set(
21772289
21782290
.. code-block:: python
21792291
2292+
# This snippet has been automatically generated and should be regarded as a
2293+
# code template only.
2294+
# It will require modifications to work:
2295+
# - It may require correct/in-range values for request initialization.
2296+
# - It may require specifying regional endpoints when creating the service
2297+
# client as shown in:
2298+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
21802299
from google.cloud import vision_v1
21812300
21822301
async def sample_list_products_in_product_set():
@@ -2310,6 +2429,13 @@ async def import_product_sets(
23102429
23112430
.. code-block:: python
23122431
2432+
# This snippet has been automatically generated and should be regarded as a
2433+
# code template only.
2434+
# It will require modifications to work:
2435+
# - It may require correct/in-range values for request initialization.
2436+
# - It may require specifying regional endpoints when creating the service
2437+
# client as shown in:
2438+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
23132439
from google.cloud import vision_v1
23142440
23152441
async def sample_import_product_sets():
@@ -2470,6 +2596,13 @@ async def purge_products(
24702596
24712597
.. code-block:: python
24722598
2599+
# This snippet has been automatically generated and should be regarded as a
2600+
# code template only.
2601+
# It will require modifications to work:
2602+
# - It may require correct/in-range values for request initialization.
2603+
# - It may require specifying regional endpoints when creating the service
2604+
# client as shown in:
2605+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
24732606
from google.cloud import vision_v1
24742607
24752608
async def sample_purge_products():

0 commit comments

Comments
 (0)