From 1200aa9312b82b7b756edb9495192b3869b51c9a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 24 Feb 2022 15:13:25 -0700 Subject: [PATCH] chore: use gapic-generator-python 0.63.2 (#194) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.63.2 docs: add generated snippets PiperOrigin-RevId: 427792504 Source-Link: https://github.com/googleapis/googleapis/commit/55b9e1e0b3106c850d13958352bc0751147b6b15 Source-Link: https://github.com/googleapis/googleapis-gen/commit/bf4e86b753f42cb0edb1fd51fbe840d7da0a1cde Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> --- ...ervice_create_annotation_spec_set_async.py | 45 + ...service_create_annotation_spec_set_sync.py | 45 + ...a_labeling_service_create_dataset_async.py | 45 + ...ta_labeling_service_create_dataset_sync.py | 45 + ...ing_service_create_evaluation_job_async.py | 45 + ...ling_service_create_evaluation_job_sync.py | 45 + ...beling_service_create_instruction_async.py | 49 + ...abeling_service_create_instruction_sync.py | 49 + ..._service_delete_annotated_dataset_async.py | 43 + ...g_service_delete_annotated_dataset_sync.py | 43 + ...ervice_delete_annotation_spec_set_async.py | 43 + ...service_delete_annotation_spec_set_sync.py | 43 + ...a_labeling_service_delete_dataset_async.py | 43 + ...ta_labeling_service_delete_dataset_sync.py | 43 + ...ing_service_delete_evaluation_job_async.py | 43 + ...ling_service_delete_evaluation_job_sync.py | 43 + ...beling_service_delete_instruction_async.py | 43 + ...abeling_service_delete_instruction_sync.py | 43 + ...data_labeling_service_export_data_async.py | 50 + ..._data_labeling_service_export_data_sync.py | 50 + ...ing_service_get_annotated_dataset_async.py | 45 + ...ling_service_get_annotated_dataset_sync.py | 45 + ...g_service_get_annotation_spec_set_async.py | 45 + ...ng_service_get_annotation_spec_set_sync.py | 45 + ...ta_labeling_service_get_data_item_async.py | 45 + ...ata_labeling_service_get_data_item_sync.py | 45 + ...data_labeling_service_get_dataset_async.py | 45 + ..._data_labeling_service_get_dataset_sync.py | 45 + ...a_labeling_service_get_evaluation_async.py | 45 + ...beling_service_get_evaluation_job_async.py | 45 + ...abeling_service_get_evaluation_job_sync.py | 45 + ...ta_labeling_service_get_evaluation_sync.py | 45 + ...data_labeling_service_get_example_async.py | 45 + ..._data_labeling_service_get_example_sync.py | 45 + ..._labeling_service_get_instruction_async.py | 45 + ...a_labeling_service_get_instruction_sync.py | 45 + ...data_labeling_service_import_data_async.py | 49 + ..._data_labeling_service_import_data_sync.py | 49 + ...data_labeling_service_label_image_async.py | 59 + ..._data_labeling_service_label_image_sync.py | 59 + ..._data_labeling_service_label_text_async.py | 59 + ...1_data_labeling_service_label_text_sync.py | 59 + ...data_labeling_service_label_video_async.py | 59 + ..._data_labeling_service_label_video_sync.py | 59 + ...g_service_list_annotated_datasets_async.py | 46 + ...ng_service_list_annotated_datasets_sync.py | 46 + ...service_list_annotation_spec_sets_async.py | 46 + ..._service_list_annotation_spec_sets_sync.py | 46 + ..._labeling_service_list_data_items_async.py | 46 + ...a_labeling_service_list_data_items_sync.py | 46 + ...ta_labeling_service_list_datasets_async.py | 46 + ...ata_labeling_service_list_datasets_sync.py | 46 + ...ling_service_list_evaluation_jobs_async.py | 46 + ...eling_service_list_evaluation_jobs_sync.py | 46 + ...ta_labeling_service_list_examples_async.py | 46 + ...ata_labeling_service_list_examples_sync.py | 46 + ...abeling_service_list_instructions_async.py | 46 + ...labeling_service_list_instructions_sync.py | 46 + ...ling_service_pause_evaluation_job_async.py | 43 + ...eling_service_pause_evaluation_job_sync.py | 43 + ...ing_service_resume_evaluation_job_async.py | 43 + ...ling_service_resume_evaluation_job_sync.py | 43 + ...beling_service_search_evaluations_async.py | 46 + ...abeling_service_search_evaluations_sync.py | 46 + ...ervice_search_example_comparisons_async.py | 46 + ...service_search_example_comparisons_sync.py | 46 + ...ing_service_update_evaluation_job_async.py | 44 + ...ling_service_update_evaluation_job_sync.py | 44 + ...snippet_metadata_datalabeling_v1beta1.json | 3002 +++++++++++++++++ 69 files changed, 6160 insertions(+) create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py create mode 100644 datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py new file mode 100644 index 000000000000..d086cb1f2176 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateAnnotationSpecSet +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_create_annotation_spec_set(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.CreateAnnotationSpecSetRequest( + parent="parent_value", + ) + + # Make the request + response = await client.create_annotation_spec_set(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py new file mode 100644 index 000000000000..9f9fe8b1691f --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateAnnotationSpecSet +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_create_annotation_spec_set(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.CreateAnnotationSpecSetRequest( + parent="parent_value", + ) + + # Make the request + response = client.create_annotation_spec_set(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py new file mode 100644 index 000000000000..6fc1cd179034 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateDataset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_create_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.CreateDatasetRequest( + parent="parent_value", + ) + + # Make the request + response = await client.create_dataset(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py new file mode 100644 index 000000000000..850b858a4a7e --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateDataset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_create_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.CreateDatasetRequest( + parent="parent_value", + ) + + # Make the request + response = client.create_dataset(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py new file mode 100644 index 000000000000..1cbe99c1fec8 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateEvaluationJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_create_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.CreateEvaluationJobRequest( + parent="parent_value", + ) + + # Make the request + response = await client.create_evaluation_job(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py new file mode 100644 index 000000000000..eb0a11551063 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateEvaluationJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_create_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.CreateEvaluationJobRequest( + parent="parent_value", + ) + + # Make the request + response = client.create_evaluation_job(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py new file mode 100644 index 000000000000..901348d48a23 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateInstruction +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_create_instruction(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.CreateInstructionRequest( + parent="parent_value", + ) + + # Make the request + operation = client.create_instruction(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py new file mode 100644 index 000000000000..7d498c05240f --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateInstruction +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_create_instruction(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.CreateInstructionRequest( + parent="parent_value", + ) + + # Make the request + operation = client.create_instruction(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py new file mode 100644 index 000000000000..86d741065229 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteAnnotatedDataset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_delete_annotated_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteAnnotatedDatasetRequest( + name="name_value", + ) + + # Make the request + await client.delete_annotated_dataset(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py new file mode 100644 index 000000000000..f4c31d85c666 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteAnnotatedDataset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_delete_annotated_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteAnnotatedDatasetRequest( + name="name_value", + ) + + # Make the request + client.delete_annotated_dataset(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py new file mode 100644 index 000000000000..49ea3cdc26ce --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteAnnotationSpecSet +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_delete_annotation_spec_set(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteAnnotationSpecSetRequest( + name="name_value", + ) + + # Make the request + await client.delete_annotation_spec_set(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py new file mode 100644 index 000000000000..c6e74c97040f --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteAnnotationSpecSet +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_delete_annotation_spec_set(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteAnnotationSpecSetRequest( + name="name_value", + ) + + # Make the request + client.delete_annotation_spec_set(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py new file mode 100644 index 000000000000..6a69d1c06f3b --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteDataset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_delete_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteDatasetRequest( + name="name_value", + ) + + # Make the request + await client.delete_dataset(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py new file mode 100644 index 000000000000..b8533c2034b9 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteDataset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_delete_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteDatasetRequest( + name="name_value", + ) + + # Make the request + client.delete_dataset(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py new file mode 100644 index 000000000000..676f3d850144 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteEvaluationJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_delete_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteEvaluationJobRequest( + name="name_value", + ) + + # Make the request + await client.delete_evaluation_job(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py new file mode 100644 index 000000000000..f3584d97d106 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteEvaluationJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_delete_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteEvaluationJobRequest( + name="name_value", + ) + + # Make the request + client.delete_evaluation_job(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py new file mode 100644 index 000000000000..81941d2a3173 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteInstruction +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_delete_instruction(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteInstructionRequest( + name="name_value", + ) + + # Make the request + await client.delete_instruction(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py new file mode 100644 index 000000000000..2e0a3f6dc274 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteInstruction +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_delete_instruction(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteInstructionRequest( + name="name_value", + ) + + # Make the request + client.delete_instruction(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py new file mode 100644 index 000000000000..b6816d9b30c7 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ExportData +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_export_data(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ExportDataRequest( + name="name_value", + annotated_dataset="annotated_dataset_value", + ) + + # Make the request + operation = client.export_data(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py new file mode 100644 index 000000000000..6b0c4b35403b --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ExportData +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_export_data(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ExportDataRequest( + name="name_value", + annotated_dataset="annotated_dataset_value", + ) + + # Make the request + operation = client.export_data(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py new file mode 100644 index 000000000000..61dbe02bd195 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetAnnotatedDataset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_annotated_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetAnnotatedDatasetRequest( + name="name_value", + ) + + # Make the request + response = await client.get_annotated_dataset(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py new file mode 100644 index 000000000000..2868844527fd --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetAnnotatedDataset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_annotated_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetAnnotatedDatasetRequest( + name="name_value", + ) + + # Make the request + response = client.get_annotated_dataset(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py new file mode 100644 index 000000000000..81682727945b --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetAnnotationSpecSet +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_annotation_spec_set(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetAnnotationSpecSetRequest( + name="name_value", + ) + + # Make the request + response = await client.get_annotation_spec_set(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py new file mode 100644 index 000000000000..b0868b683e3b --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetAnnotationSpecSet +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_annotation_spec_set(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetAnnotationSpecSetRequest( + name="name_value", + ) + + # Make the request + response = client.get_annotation_spec_set(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py new file mode 100644 index 000000000000..645e70682dd8 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetDataItem +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_data_item(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetDataItemRequest( + name="name_value", + ) + + # Make the request + response = await client.get_data_item(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py new file mode 100644 index 000000000000..0085c5cb139a --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetDataItem +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_data_item(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetDataItemRequest( + name="name_value", + ) + + # Make the request + response = client.get_data_item(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py new file mode 100644 index 000000000000..67fc987ca7f2 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetDataset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetDatasetRequest( + name="name_value", + ) + + # Make the request + response = await client.get_dataset(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py new file mode 100644 index 000000000000..525862ed65c0 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetDataset +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetDatasetRequest( + name="name_value", + ) + + # Make the request + response = client.get_dataset(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py new file mode 100644 index 000000000000..c9c7cb158e18 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetEvaluation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_evaluation(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetEvaluationRequest( + name="name_value", + ) + + # Make the request + response = await client.get_evaluation(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py new file mode 100644 index 000000000000..843694bf265d --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetEvaluationJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetEvaluationJobRequest( + name="name_value", + ) + + # Make the request + response = await client.get_evaluation_job(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py new file mode 100644 index 000000000000..5f29bd6a09fa --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetEvaluationJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetEvaluationJobRequest( + name="name_value", + ) + + # Make the request + response = client.get_evaluation_job(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py new file mode 100644 index 000000000000..3ca6ea923f6f --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetEvaluation +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_evaluation(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetEvaluationRequest( + name="name_value", + ) + + # Make the request + response = client.get_evaluation(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py new file mode 100644 index 000000000000..2c30fef732dd --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetExample +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_example(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetExampleRequest( + name="name_value", + ) + + # Make the request + response = await client.get_example(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py new file mode 100644 index 000000000000..682e4aebf739 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetExample +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_example(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetExampleRequest( + name="name_value", + ) + + # Make the request + response = client.get_example(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py new file mode 100644 index 000000000000..695a8f32cb08 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetInstruction +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_instruction(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetInstructionRequest( + name="name_value", + ) + + # Make the request + response = await client.get_instruction(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py new file mode 100644 index 000000000000..f65c97c3e302 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetInstruction +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_instruction(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetInstructionRequest( + name="name_value", + ) + + # Make the request + response = client.get_instruction(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py new file mode 100644 index 000000000000..60a8d20f4507 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ImportData +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_import_data(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ImportDataRequest( + name="name_value", + ) + + # Make the request + operation = client.import_data(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py new file mode 100644 index 000000000000..e6823e8f6429 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ImportData +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_import_data(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ImportDataRequest( + name="name_value", + ) + + # Make the request + operation = client.import_data(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py new file mode 100644 index 000000000000..90e6ebe8769c --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for LabelImage +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_label_image(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + image_classification_config = datalabeling_v1beta1.ImageClassificationConfig() + image_classification_config.annotation_spec_set = "annotation_spec_set_value" + + basic_config = datalabeling_v1beta1.HumanAnnotationConfig() + basic_config.instruction = "instruction_value" + basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" + + request = datalabeling_v1beta1.LabelImageRequest( + image_classification_config=image_classification_config, + parent="parent_value", + basic_config=basic_config, + feature="SEGMENTATION", + ) + + # Make the request + operation = client.label_image(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py new file mode 100644 index 000000000000..6177e6f6dd86 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for LabelImage +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_label_image(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + image_classification_config = datalabeling_v1beta1.ImageClassificationConfig() + image_classification_config.annotation_spec_set = "annotation_spec_set_value" + + basic_config = datalabeling_v1beta1.HumanAnnotationConfig() + basic_config.instruction = "instruction_value" + basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" + + request = datalabeling_v1beta1.LabelImageRequest( + image_classification_config=image_classification_config, + parent="parent_value", + basic_config=basic_config, + feature="SEGMENTATION", + ) + + # Make the request + operation = client.label_image(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py new file mode 100644 index 000000000000..5bc8467f40a7 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for LabelText +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_label_text(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + text_classification_config = datalabeling_v1beta1.TextClassificationConfig() + text_classification_config.annotation_spec_set = "annotation_spec_set_value" + + basic_config = datalabeling_v1beta1.HumanAnnotationConfig() + basic_config.instruction = "instruction_value" + basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" + + request = datalabeling_v1beta1.LabelTextRequest( + text_classification_config=text_classification_config, + parent="parent_value", + basic_config=basic_config, + feature="TEXT_ENTITY_EXTRACTION", + ) + + # Make the request + operation = client.label_text(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py new file mode 100644 index 000000000000..ca1866ff8b41 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for LabelText +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_label_text(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + text_classification_config = datalabeling_v1beta1.TextClassificationConfig() + text_classification_config.annotation_spec_set = "annotation_spec_set_value" + + basic_config = datalabeling_v1beta1.HumanAnnotationConfig() + basic_config.instruction = "instruction_value" + basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" + + request = datalabeling_v1beta1.LabelTextRequest( + text_classification_config=text_classification_config, + parent="parent_value", + basic_config=basic_config, + feature="TEXT_ENTITY_EXTRACTION", + ) + + # Make the request + operation = client.label_text(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py new file mode 100644 index 000000000000..6d709c83fdb4 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for LabelVideo +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_label_video(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + video_classification_config = datalabeling_v1beta1.VideoClassificationConfig() + video_classification_config.annotation_spec_set_configs.annotation_spec_set = "annotation_spec_set_value" + + basic_config = datalabeling_v1beta1.HumanAnnotationConfig() + basic_config.instruction = "instruction_value" + basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" + + request = datalabeling_v1beta1.LabelVideoRequest( + video_classification_config=video_classification_config, + parent="parent_value", + basic_config=basic_config, + feature="EVENT", + ) + + # Make the request + operation = client.label_video(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py new file mode 100644 index 000000000000..60b1e9ff9ceb --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for LabelVideo +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_label_video(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + video_classification_config = datalabeling_v1beta1.VideoClassificationConfig() + video_classification_config.annotation_spec_set_configs.annotation_spec_set = "annotation_spec_set_value" + + basic_config = datalabeling_v1beta1.HumanAnnotationConfig() + basic_config.instruction = "instruction_value" + basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" + + request = datalabeling_v1beta1.LabelVideoRequest( + video_classification_config=video_classification_config, + parent="parent_value", + basic_config=basic_config, + feature="EVENT", + ) + + # Make the request + operation = client.label_video(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py new file mode 100644 index 000000000000..6164b79af696 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListAnnotatedDatasets +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_annotated_datasets(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListAnnotatedDatasetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_annotated_datasets(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py new file mode 100644 index 000000000000..979fbe64974f --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListAnnotatedDatasets +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_annotated_datasets(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListAnnotatedDatasetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_annotated_datasets(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py new file mode 100644 index 000000000000..b6173f62fb06 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListAnnotationSpecSets +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_annotation_spec_sets(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListAnnotationSpecSetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_annotation_spec_sets(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py new file mode 100644 index 000000000000..a01c7d3e9c45 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListAnnotationSpecSets +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_annotation_spec_sets(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListAnnotationSpecSetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_annotation_spec_sets(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py new file mode 100644 index 000000000000..48b034cf3d69 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListDataItems +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_data_items(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListDataItemsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_data_items(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py new file mode 100644 index 000000000000..aeba476c9c22 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListDataItems +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_data_items(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListDataItemsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_data_items(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py new file mode 100644 index 000000000000..940271982f29 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListDatasets +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_datasets(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListDatasetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_datasets(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py new file mode 100644 index 000000000000..b37f1371acc9 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListDatasets +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_datasets(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListDatasetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_datasets(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py new file mode 100644 index 000000000000..3c1632032f2f --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListEvaluationJobs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_evaluation_jobs(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListEvaluationJobsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_evaluation_jobs(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py new file mode 100644 index 000000000000..9107205f7c37 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListEvaluationJobs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_evaluation_jobs(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListEvaluationJobsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_evaluation_jobs(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py new file mode 100644 index 000000000000..67ce39031d41 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListExamples +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_examples(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListExamplesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_examples(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py new file mode 100644 index 000000000000..2e00142f57d4 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListExamples +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_examples(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListExamplesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_examples(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py new file mode 100644 index 000000000000..fded708d162a --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListInstructions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_instructions(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListInstructionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_instructions(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py new file mode 100644 index 000000000000..abf91a6d512e --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListInstructions +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_instructions(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListInstructionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_instructions(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py new file mode 100644 index 000000000000..3041bbf3bc7a --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for PauseEvaluationJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_pause_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.PauseEvaluationJobRequest( + name="name_value", + ) + + # Make the request + await client.pause_evaluation_job(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py new file mode 100644 index 000000000000..d26c86c110af --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for PauseEvaluationJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_pause_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.PauseEvaluationJobRequest( + name="name_value", + ) + + # Make the request + client.pause_evaluation_job(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py new file mode 100644 index 000000000000..0d9e97e37664 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ResumeEvaluationJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_resume_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ResumeEvaluationJobRequest( + name="name_value", + ) + + # Make the request + await client.resume_evaluation_job(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py new file mode 100644 index 000000000000..90953eae59f5 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ResumeEvaluationJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_resume_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ResumeEvaluationJobRequest( + name="name_value", + ) + + # Make the request + client.resume_evaluation_job(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py new file mode 100644 index 000000000000..a1c463f4f8f1 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SearchEvaluations +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_search_evaluations(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.SearchEvaluationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.search_evaluations(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py new file mode 100644 index 000000000000..8799325c5e59 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SearchEvaluations +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_search_evaluations(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.SearchEvaluationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.search_evaluations(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py new file mode 100644 index 000000000000..bd3ef9abd87b --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SearchExampleComparisons +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_search_example_comparisons(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.SearchExampleComparisonsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.search_example_comparisons(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py new file mode 100644 index 000000000000..9d82b0167997 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SearchExampleComparisons +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_search_example_comparisons(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.SearchExampleComparisonsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.search_example_comparisons(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py new file mode 100644 index 000000000000..4c522cec4e17 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateEvaluationJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_update_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.UpdateEvaluationJobRequest( + ) + + # Make the request + response = await client.update_evaluation_job(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py new file mode 100644 index 000000000000..1ce475b5f44e --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 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 +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateEvaluationJob +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-datalabeling + + +# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_update_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.UpdateEvaluationJobRequest( + ) + + # Make the request + response = client.update_evaluation_job(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_sync] diff --git a/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json b/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json new file mode 100644 index 000000000000..fb73ced8f856 --- /dev/null +++ b/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json @@ -0,0 +1,3002 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateAnnotationSpecSet" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateAnnotationSpecSet" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateInstruction" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateInstruction" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteAnnotatedDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteAnnotatedDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteAnnotationSpecSet" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteAnnotationSpecSet" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteInstruction" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteInstruction" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ExportData" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ExportData" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetAnnotatedDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetAnnotatedDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetAnnotationSpecSet" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetAnnotationSpecSet" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetDataItem" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetDataItem" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetEvaluation" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetEvaluation" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetExample" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetExample" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetInstruction" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetInstruction" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ImportData" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ImportData" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "LabelImage" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_async", + "segments": [ + { + "end": 58, + "start": 27, + "type": "FULL" + }, + { + "end": 58, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 48, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 55, + "start": 49, + "type": "REQUEST_EXECUTION" + }, + { + "end": 59, + "start": 56, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "LabelImage" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_sync", + "segments": [ + { + "end": 58, + "start": 27, + "type": "FULL" + }, + { + "end": 58, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 48, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 55, + "start": 49, + "type": "REQUEST_EXECUTION" + }, + { + "end": 59, + "start": 56, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "LabelText" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_async", + "segments": [ + { + "end": 58, + "start": 27, + "type": "FULL" + }, + { + "end": 58, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 48, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 55, + "start": 49, + "type": "REQUEST_EXECUTION" + }, + { + "end": 59, + "start": 56, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "LabelText" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_sync", + "segments": [ + { + "end": 58, + "start": 27, + "type": "FULL" + }, + { + "end": 58, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 48, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 55, + "start": 49, + "type": "REQUEST_EXECUTION" + }, + { + "end": 59, + "start": 56, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "LabelVideo" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_async", + "segments": [ + { + "end": 58, + "start": 27, + "type": "FULL" + }, + { + "end": 58, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 48, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 55, + "start": 49, + "type": "REQUEST_EXECUTION" + }, + { + "end": 59, + "start": 56, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "LabelVideo" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_sync", + "segments": [ + { + "end": 58, + "start": 27, + "type": "FULL" + }, + { + "end": 58, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 48, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 55, + "start": 49, + "type": "REQUEST_EXECUTION" + }, + { + "end": 59, + "start": 56, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListAnnotatedDatasets" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListAnnotatedDatasets" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListAnnotationSpecSets" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListAnnotationSpecSets" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListDataItems" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListDataItems" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListDatasets" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListDatasets" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListEvaluationJobs" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListEvaluationJobs" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListExamples" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListExamples" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListInstructions" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListInstructions" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "PauseEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "PauseEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ResumeEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ResumeEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "SearchEvaluations" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "SearchEvaluations" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "SearchExampleComparisons" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "SearchExampleComparisons" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "UpdateEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_async", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "UpdateEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_sync", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + } + ] +}