diff --git a/packages/google-cloud-datalabeling/.flake8 b/packages/google-cloud-datalabeling/.flake8 index 20fe9bda2ee4..ed9316381c9c 100644 --- a/packages/google-cloud-datalabeling/.flake8 +++ b/packages/google-cloud-datalabeling/.flake8 @@ -21,6 +21,8 @@ exclude = # Exclude generated code. **/proto/** **/gapic/** + **/services/** + **/types/** *_pb2.py # Standard linting exemptions. diff --git a/packages/google-cloud-datalabeling/.gitignore b/packages/google-cloud-datalabeling/.gitignore index 3fb06e09ce74..b87e1ed580d9 100644 --- a/packages/google-cloud-datalabeling/.gitignore +++ b/packages/google-cloud-datalabeling/.gitignore @@ -10,6 +10,7 @@ dist build eggs +.eggs parts bin var @@ -49,6 +50,7 @@ bigquery/docs/generated # Virtual environment env/ coverage.xml +sponge_log.xml # System test environment variables. system_tests/local_test_setup diff --git a/packages/google-cloud-datalabeling/.kokoro/publish-docs.sh b/packages/google-cloud-datalabeling/.kokoro/publish-docs.sh index 2b4f9fd137bb..92c4650e9132 100755 --- a/packages/google-cloud-datalabeling/.kokoro/publish-docs.sh +++ b/packages/google-cloud-datalabeling/.kokoro/publish-docs.sh @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - set -eo pipefail # Disable buffering, so that the logs stream through. diff --git a/packages/google-cloud-datalabeling/.kokoro/release.sh b/packages/google-cloud-datalabeling/.kokoro/release.sh index 931d596cf58e..9b045c277636 100755 --- a/packages/google-cloud-datalabeling/.kokoro/release.sh +++ b/packages/google-cloud-datalabeling/.kokoro/release.sh @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - set -eo pipefail # Start the releasetool reporter diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/lint/common.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/lint/common.cfg new file mode 100644 index 000000000000..a061dde6d956 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/lint/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "lint" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-datalabeling/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "python-datalabeling/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/lint/continuous.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/lint/continuous.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/lint/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/lint/periodic.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/lint/periodic.cfg new file mode 100644 index 000000000000..50fec9649732 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/lint/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/lint/presubmit.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/lint/presubmit.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/lint/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/python3.6/common.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/python3.6/common.cfg new file mode 100644 index 000000000000..88adae0e2c0b --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/python3.6/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "py-3.6" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-datalabeling/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "python-datalabeling/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/python3.6/continuous.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/python3.6/continuous.cfg new file mode 100644 index 000000000000..7218af1499e5 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/python3.6/continuous.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} + diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/python3.6/periodic.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/python3.6/periodic.cfg new file mode 100644 index 000000000000..50fec9649732 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/python3.6/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/python3.6/presubmit.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/python3.6/presubmit.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/python3.6/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/python3.7/common.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/python3.7/common.cfg new file mode 100644 index 000000000000..f25c4140af91 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/python3.7/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "py-3.7" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-datalabeling/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "python-datalabeling/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/python3.7/continuous.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/python3.7/continuous.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/python3.7/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/python3.7/periodic.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/python3.7/periodic.cfg new file mode 100644 index 000000000000..50fec9649732 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/python3.7/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/python3.7/presubmit.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/python3.7/presubmit.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/python3.7/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/python3.8/common.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/python3.8/common.cfg new file mode 100644 index 000000000000..e0572fe2f576 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/python3.8/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Specify which tests to run +env_vars: { + key: "RUN_TESTS_SESSION" + value: "py-3.8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/python-datalabeling/.kokoro/test-samples.sh" +} + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-samples-testing-docker" +} + +# Download secrets for samples +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "python-datalabeling/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/python3.8/continuous.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/python3.8/continuous.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/python3.8/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/python3.8/periodic.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/python3.8/periodic.cfg new file mode 100644 index 000000000000..50fec9649732 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/python3.8/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/samples/python3.8/presubmit.cfg b/packages/google-cloud-datalabeling/.kokoro/samples/python3.8/presubmit.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/samples/python3.8/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/.kokoro/test-samples.sh b/packages/google-cloud-datalabeling/.kokoro/test-samples.sh new file mode 100755 index 000000000000..973deb9059c0 --- /dev/null +++ b/packages/google-cloud-datalabeling/.kokoro/test-samples.sh @@ -0,0 +1,104 @@ +#!/bin/bash +# 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 +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +# `-e` enables the script to automatically fail when a command fails +# `-o pipefail` sets the exit code to the rightmost comment to exit with a non-zero +set -eo pipefail +# Enables `**` to include files nested inside sub-folders +shopt -s globstar + +cd github/python-datalabeling + +# Run periodic samples tests at latest release +if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then + LATEST_RELEASE=$(git describe --abbrev=0 --tags) + git checkout $LATEST_RELEASE +fi + +# Disable buffering, so that the logs stream through. +export PYTHONUNBUFFERED=1 + +# Debug: show build environment +env | grep KOKORO + +# Install nox +python3.6 -m pip install --upgrade --quiet nox + +# Use secrets acessor service account to get secrets +if [[ -f "${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" ]]; then + gcloud auth activate-service-account \ + --key-file="${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" \ + --project="cloud-devrel-kokoro-resources" +fi + +# This script will create 3 files: +# - testing/test-env.sh +# - testing/service-account.json +# - testing/client-secrets.json +./scripts/decrypt-secrets.sh + +source ./testing/test-env.sh +export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/testing/service-account.json + +# For cloud-run session, we activate the service account for gcloud sdk. +gcloud auth activate-service-account \ + --key-file "${GOOGLE_APPLICATION_CREDENTIALS}" + +export GOOGLE_CLIENT_SECRETS=$(pwd)/testing/client-secrets.json + +echo -e "\n******************** TESTING PROJECTS ********************" + +# Switch to 'fail at end' to allow all tests to complete before exiting. +set +e +# Use RTN to return a non-zero value if the test fails. +RTN=0 +ROOT=$(pwd) +# Find all requirements.txt in the samples directory (may break on whitespace). +for file in samples/**/requirements.txt; do + cd "$ROOT" + # Navigate to the project folder. + file=$(dirname "$file") + cd "$file" + + echo "------------------------------------------------------------" + echo "- testing $file" + echo "------------------------------------------------------------" + + # Use nox to execute the tests for the project. + python3.6 -m nox -s "$RUN_TESTS_SESSION" + EXIT=$? + + # If this is a periodic build, send the test log to the Build Cop Bot. + # See https://github.com/googleapis/repo-automation-bots/tree/master/packages/buildcop. + if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then + chmod +x $KOKORO_GFILE_DIR/linux_amd64/buildcop + $KOKORO_GFILE_DIR/linux_amd64/buildcop + fi + + if [[ $EXIT -ne 0 ]]; then + RTN=1 + echo -e "\n Testing failed: Nox returned a non-zero exit code. \n" + else + echo -e "\n Testing completed.\n" + fi + +done +cd "$ROOT" + +# Workaround for Kokoro permissions issue: delete secrets +rm testing/{test-env.sh,client-secrets.json,service-account.json} + +exit "$RTN" \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/MANIFEST.in b/packages/google-cloud-datalabeling/MANIFEST.in index 68855abc3f02..e9e29d12033d 100644 --- a/packages/google-cloud-datalabeling/MANIFEST.in +++ b/packages/google-cloud-datalabeling/MANIFEST.in @@ -20,3 +20,6 @@ recursive-include google *.json *.proto recursive-include tests * global-exclude *.py[co] global-exclude __pycache__ + +# Exclude scripts for samples readmegen +prune scripts/readme-gen \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/docs/conf.py b/packages/google-cloud-datalabeling/docs/conf.py index 7d675d081a7e..ccd6acf345e0 100644 --- a/packages/google-cloud-datalabeling/docs/conf.py +++ b/packages/google-cloud-datalabeling/docs/conf.py @@ -38,21 +38,18 @@ "sphinx.ext.napoleon", "sphinx.ext.todo", "sphinx.ext.viewcode", + "recommonmark", ] # autodoc/autosummary flags autoclass_content = "both" -autodoc_default_flags = ["members"] +autodoc_default_options = {"members": True} autosummary_generate = True # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] -# Allow markdown includes (so releases.md can include CHANGLEOG.md) -# http://www.sphinx-doc.org/en/master/markdown.html -source_parsers = {".md": "recommonmark.parser.CommonMarkParser"} - # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # source_suffix = ['.rst', '.md'] @@ -340,7 +337,7 @@ intersphinx_mapping = { "python": ("http://python.readthedocs.org/en/latest/", None), "google-auth": ("https://google-auth.readthedocs.io/en/stable", None), - "google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None), + "google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None,), "grpc": ("https://grpc.io/grpc/python/", None), } diff --git a/packages/google-cloud-datalabeling/docs/index.rst b/packages/google-cloud-datalabeling/docs/index.rst index c7068aa8b15b..09f14ae28139 100644 --- a/packages/google-cloud-datalabeling/docs/index.rst +++ b/packages/google-cloud-datalabeling/docs/index.rst @@ -1,5 +1,7 @@ .. include:: README.rst +.. include:: multiprocessing.rst + Api Reference ------------- .. toctree:: diff --git a/packages/google-cloud-datalabeling/docs/multiprocessing.rst b/packages/google-cloud-datalabeling/docs/multiprocessing.rst new file mode 100644 index 000000000000..1cb29d4ca967 --- /dev/null +++ b/packages/google-cloud-datalabeling/docs/multiprocessing.rst @@ -0,0 +1,7 @@ +.. note:: + + Because this client uses :mod:`grpcio` library, it is safe to + share instances across threads. In multiprocessing scenarios, the best + practice is to create client instances *after* the invocation of + :func:`os.fork` by :class:`multiprocessing.Pool` or + :class:`multiprocessing.Process`. diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling.py index d4b9c191eecc..60fddbd203f5 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling.py @@ -22,4 +22,8 @@ from google.cloud.datalabeling_v1beta1 import types -__all__ = ("enums", "types", "DataLabelingServiceClient") +__all__ = ( + "enums", + "types", + "DataLabelingServiceClient", +) diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/data_labeling_service_client.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/data_labeling_service_client.py index 31f5785a783d..8336571a47e2 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/data_labeling_service_client.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/data_labeling_service_client.py @@ -56,7 +56,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-datalabeling" + "google-cloud-datalabeling", ).version @@ -121,7 +121,7 @@ def data_item_path(cls, project, dataset, data_item): def dataset_path(cls, project, dataset): """Return a fully-qualified dataset string.""" return google.api_core.path_template.expand( - "projects/{project}/datasets/{dataset}", project=project, dataset=dataset + "projects/{project}/datasets/{dataset}", project=project, dataset=dataset, ) @classmethod @@ -167,7 +167,7 @@ def instruction_path(cls, project, instruction): def project_path(cls, project): """Return a fully-qualified project string.""" return google.api_core.path_template.expand( - "projects/{project}", project=project + "projects/{project}", project=project, ) def __init__( @@ -257,12 +257,12 @@ def __init__( self.transport = transport else: self.transport = data_labeling_service_grpc_transport.DataLabelingServiceGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials + address=api_endpoint, channel=channel, credentials=credentials, ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION + gapic_version=_GAPIC_LIBRARY_VERSION, ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -273,7 +273,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME] + client_config["interfaces"][self._INTERFACE_NAME], ) # Save a dictionary of cached API call functions. @@ -307,7 +307,7 @@ def create_dataset( >>> response = client.create_dataset(parent, dataset) Args: - parent (str): Required. Dataset resource parent, format: projects/{project\_id} + parent (str): Required. Dataset resource parent, format: projects/{project_id} dataset (Union[dict, ~google.cloud.datalabeling_v1beta1.types.Dataset]): Required. The dataset to be created. If a dict is provided, it must be of the same form as the protobuf @@ -343,7 +343,7 @@ def create_dataset( ) request = data_labeling_service_pb2.CreateDatasetRequest( - parent=parent, dataset=dataset + parent=parent, dataset=dataset, ) if metadata is None: metadata = [] @@ -383,7 +383,7 @@ def get_dataset( Args: name (str): Required. Dataset resource name, format: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -414,7 +414,7 @@ def get_dataset( client_info=self._client_info, ) - request = data_labeling_service_pb2.GetDatasetRequest(name=name) + request = data_labeling_service_pb2.GetDatasetRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -466,7 +466,7 @@ def list_datasets( ... pass Args: - parent (str): Required. Dataset resource parent, format: projects/{project\_id} + parent (str): Required. Dataset resource parent, format: projects/{project_id} filter_ (str): Optional. Filter on dataset is not supported at this moment. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- @@ -507,7 +507,7 @@ def list_datasets( ) request = data_labeling_service_pb2.ListDatasetsRequest( - parent=parent, filter=filter_, page_size=page_size + parent=parent, filter=filter_, page_size=page_size, ) if metadata is None: metadata = [] @@ -558,7 +558,7 @@ def delete_dataset( Args: name (str): Required. Dataset resource name, format: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -586,7 +586,7 @@ def delete_dataset( client_info=self._client_info, ) - request = data_labeling_service_pb2.DeleteDatasetRequest(name=name) + request = data_labeling_service_pb2.DeleteDatasetRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -643,7 +643,7 @@ def import_data( Args: name (str): Required. Dataset resource name, format: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} input_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.InputConfig]): Required. Specify the input source of the data. If a dict is provided, it must be of the same form as the protobuf @@ -681,7 +681,7 @@ def import_data( ) request = data_labeling_service_pb2.ImportDataRequest( - name=name, input_config=input_config, user_email_address=user_email_address + name=name, input_config=input_config, user_email_address=user_email_address, ) if metadata is None: metadata = [] @@ -744,12 +744,12 @@ def export_data( Args: name (str): Required. Dataset resource name, format: - projects/{project\_id}/datasets/{dataset\_id} - annotated_dataset (str): Required. Annotated dataset resource name. DataItem in Dataset and their - annotations in specified annotated dataset will be exported. It's in - format of - projects/{project\_id}/datasets/{dataset\_id}/annotatedDatasets/ - {annotated\_dataset\_id} + projects/{project_id}/datasets/{dataset_id} + annotated_dataset (str): Required. Annotated dataset resource name. DataItem in Dataset and + their annotations in specified annotated dataset will be exported. It's + in format of + projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + {annotated_dataset_id} output_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.OutputConfig]): Required. Specify the output destination. If a dict is provided, it must be of the same form as the protobuf @@ -839,7 +839,7 @@ def get_data_item( Args: name (str): Required. The name of the data item to get, format: - projects/{project\_id}/datasets/{dataset\_id}/dataItems/{data\_item\_id} + projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -870,7 +870,7 @@ def get_data_item( client_info=self._client_info, ) - request = data_labeling_service_pb2.GetDataItemRequest(name=name) + request = data_labeling_service_pb2.GetDataItemRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -924,7 +924,7 @@ def list_data_items( Args: parent (str): Required. Name of the dataset to list data items, format: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} filter_ (str): Optional. Filter is not supported at this moment. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- @@ -965,7 +965,7 @@ def list_data_items( ) request = data_labeling_service_pb2.ListDataItemsRequest( - parent=parent, filter=filter_, page_size=page_size + parent=parent, filter=filter_, page_size=page_size, ) if metadata is None: metadata = [] @@ -1016,8 +1016,8 @@ def get_annotated_dataset( Args: name (str): Required. Name of the annotated dataset to get, format: - projects/{project\_id}/datasets/{dataset\_id}/annotatedDatasets/ - {annotated\_dataset\_id} + projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + {annotated_dataset_id} retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1048,7 +1048,7 @@ def get_annotated_dataset( client_info=self._client_info, ) - request = data_labeling_service_pb2.GetAnnotatedDatasetRequest(name=name) + request = data_labeling_service_pb2.GetAnnotatedDatasetRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -1101,7 +1101,7 @@ def list_annotated_datasets( Args: parent (str): Required. Name of the dataset to list annotated datasets, format: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} filter_ (str): Optional. Filter is not supported at this moment. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- @@ -1142,7 +1142,7 @@ def list_annotated_datasets( ) request = data_labeling_service_pb2.ListAnnotatedDatasetsRequest( - parent=parent, filter=filter_, page_size=page_size + parent=parent, filter=filter_, page_size=page_size, ) if metadata is None: metadata = [] @@ -1193,8 +1193,8 @@ def delete_annotated_dataset( Args: name (str): Required. Name of the annotated dataset to delete, format: - projects/{project\_id}/datasets/{dataset\_id}/annotatedDatasets/ - {annotated\_dataset\_id} + projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + {annotated_dataset_id} retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1222,7 +1222,7 @@ def delete_annotated_dataset( client_info=self._client_info, ) - request = data_labeling_service_pb2.DeleteAnnotatedDatasetRequest(name=name) + request = data_labeling_service_pb2.DeleteAnnotatedDatasetRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -1284,33 +1284,33 @@ def label_image( Args: parent (str): Required. Name of the dataset to request labeling task, format: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} basic_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig]): Required. Basic human annotation config. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig` feature (~google.cloud.datalabeling_v1beta1.types.Feature): Required. The type of image labeling task. image_classification_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.ImageClassificationConfig]): Configuration for image classification task. One of - image\_classification\_config, bounding\_poly\_config, polyline\_config - and segmentation\_config are required. + image_classification_config, bounding_poly_config, polyline_config and + segmentation_config are required. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datalabeling_v1beta1.types.ImageClassificationConfig` bounding_poly_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.BoundingPolyConfig]): Configuration for bounding box and bounding poly task. One of - image\_classification\_config, bounding\_poly\_config, polyline\_config - and segmentation\_config are required. + image_classification_config, bounding_poly_config, polyline_config and + segmentation_config are required. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datalabeling_v1beta1.types.BoundingPolyConfig` - polyline_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.PolylineConfig]): Configuration for polyline task. One of image\_classification\_config, - bounding\_poly\_config, polyline\_config and segmentation\_config are + polyline_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.PolylineConfig]): Configuration for polyline task. One of image_classification_config, + bounding_poly_config, polyline_config and segmentation_config are required. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datalabeling_v1beta1.types.PolylineConfig` segmentation_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.SegmentationConfig]): Configuration for segmentation task. One of - image\_classification\_config, bounding\_poly\_config, polyline\_config - and segmentation\_config are required. + image_classification_config, bounding_poly_config, polyline_config and + segmentation_config are required. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datalabeling_v1beta1.types.SegmentationConfig` @@ -1429,33 +1429,33 @@ def label_video( Args: parent (str): Required. Name of the dataset to request labeling task, format: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} basic_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig]): Required. Basic human annotation config. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig` feature (~google.cloud.datalabeling_v1beta1.types.Feature): Required. The type of video labeling task. video_classification_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.VideoClassificationConfig]): Configuration for video classification task. One of - video\_classification\_config, object\_detection\_config, - object\_tracking\_config and event\_config is required. + video_classification_config, object_detection_config, + object_tracking_config and event_config is required. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datalabeling_v1beta1.types.VideoClassificationConfig` object_detection_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.ObjectDetectionConfig]): Configuration for video object detection task. One of - video\_classification\_config, object\_detection\_config, - object\_tracking\_config and event\_config is required. + video_classification_config, object_detection_config, + object_tracking_config and event_config is required. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datalabeling_v1beta1.types.ObjectDetectionConfig` object_tracking_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.ObjectTrackingConfig]): Configuration for video object tracking task. One of - video\_classification\_config, object\_detection\_config, - object\_tracking\_config and event\_config is required. + video_classification_config, object_detection_config, + object_tracking_config and event_config is required. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datalabeling_v1beta1.types.ObjectTrackingConfig` event_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.EventConfig]): Configuration for video event task. One of - video\_classification\_config, object\_detection\_config, - object\_tracking\_config and event\_config is required. + video_classification_config, object_detection_config, + object_tracking_config and event_config is required. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datalabeling_v1beta1.types.EventConfig` @@ -1572,20 +1572,20 @@ def label_text( Args: parent (str): Required. Name of the data set to request labeling task, format: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} basic_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig]): Required. Basic human annotation config. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig` feature (~google.cloud.datalabeling_v1beta1.types.Feature): Required. The type of text labeling task. text_classification_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.TextClassificationConfig]): Configuration for text classification task. One of - text\_classification\_config and text\_entity\_extraction\_config is + text_classification_config and text_entity_extraction_config is required. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datalabeling_v1beta1.types.TextClassificationConfig` text_entity_extraction_config (Union[dict, ~google.cloud.datalabeling_v1beta1.types.TextEntityExtractionConfig]): Configuration for entity extraction task. One of - text\_classification\_config and text\_entity\_extraction\_config is + text_classification_config and text_entity_extraction_config is required. If a dict is provided, it must be of the same form as the protobuf @@ -1679,11 +1679,11 @@ def get_example( Args: name (str): Required. Name of example, format: - projects/{project\_id}/datasets/{dataset\_id}/annotatedDatasets/ - {annotated\_dataset\_id}/examples/{example\_id} + projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + {annotated_dataset_id}/examples/{example_id} filter_ (str): Optional. An expression for filtering Examples. Filter by - annotation\_spec.display\_name is supported. Format - "annotation\_spec.display\_name = {display\_name}" + annotation_spec.display_name is supported. Format + "annotation_spec.display_name = {display_name}" retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1714,7 +1714,9 @@ def get_example( client_info=self._client_info, ) - request = data_labeling_service_pb2.GetExampleRequest(name=name, filter=filter_) + request = data_labeling_service_pb2.GetExampleRequest( + name=name, filter=filter_, + ) if metadata is None: metadata = [] metadata = list(metadata) @@ -1767,9 +1769,10 @@ def list_examples( Args: parent (str): Required. Example resource parent. - filter_ (str): Optional. An expression for filtering Examples. For annotated datasets - that have annotation spec set, filter by annotation\_spec.display\_name - is supported. Format "annotation\_spec.display\_name = {display\_name}" + filter_ (str): Optional. An expression for filtering Examples. For annotated + datasets that have annotation spec set, filter by + annotation_spec.display_name is supported. Format + "annotation_spec.display_name = {display_name}" page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -1809,7 +1812,7 @@ def list_examples( ) request = data_labeling_service_pb2.ListExamplesRequest( - parent=parent, filter=filter_, page_size=page_size + parent=parent, filter=filter_, page_size=page_size, ) if metadata is None: metadata = [] @@ -1864,10 +1867,10 @@ def create_annotation_spec_set( Args: parent (str): Required. AnnotationSpecSet resource parent, format: - projects/{project\_id} + projects/{project_id} annotation_spec_set (Union[dict, ~google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet]): Required. Annotation spec set to create. Annotation specs must be included. Only one annotation spec will be accepted for annotation specs - with same display\_name. + with same display_name. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet` @@ -1902,7 +1905,7 @@ def create_annotation_spec_set( ) request = data_labeling_service_pb2.CreateAnnotationSpecSetRequest( - parent=parent, annotation_spec_set=annotation_spec_set + parent=parent, annotation_spec_set=annotation_spec_set, ) if metadata is None: metadata = [] @@ -1942,7 +1945,7 @@ def get_annotation_spec_set( Args: name (str): Required. AnnotationSpecSet resource name, format: - projects/{project\_id}/annotationSpecSets/{annotation\_spec\_set\_id} + projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1973,7 +1976,7 @@ def get_annotation_spec_set( client_info=self._client_info, ) - request = data_labeling_service_pb2.GetAnnotationSpecSetRequest(name=name) + request = data_labeling_service_pb2.GetAnnotationSpecSetRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -2026,7 +2029,7 @@ def list_annotation_spec_sets( Args: parent (str): Required. Parent of AnnotationSpecSet resource, format: - projects/{project\_id} + projects/{project_id} filter_ (str): Optional. Filter is not supported at this moment. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- @@ -2067,7 +2070,7 @@ def list_annotation_spec_sets( ) request = data_labeling_service_pb2.ListAnnotationSpecSetsRequest( - parent=parent, filter=filter_, page_size=page_size + parent=parent, filter=filter_, page_size=page_size, ) if metadata is None: metadata = [] @@ -2146,7 +2149,7 @@ def delete_annotation_spec_set( client_info=self._client_info, ) - request = data_labeling_service_pb2.DeleteAnnotationSpecSetRequest(name=name) + request = data_labeling_service_pb2.DeleteAnnotationSpecSetRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -2197,7 +2200,7 @@ def create_instruction( >>> metadata = response.metadata() Args: - parent (str): Required. Instruction resource parent, format: projects/{project\_id} + parent (str): Required. Instruction resource parent, format: projects/{project_id} instruction (Union[dict, ~google.cloud.datalabeling_v1beta1.types.Instruction]): Required. Instruction of how to perform the labeling task. If a dict is provided, it must be of the same form as the protobuf @@ -2233,7 +2236,7 @@ def create_instruction( ) request = data_labeling_service_pb2.CreateInstructionRequest( - parent=parent, instruction=instruction + parent=parent, instruction=instruction, ) if metadata is None: metadata = [] @@ -2279,7 +2282,7 @@ def get_instruction( Args: name (str): Required. Instruction resource name, format: - projects/{project\_id}/instructions/{instruction\_id} + projects/{project_id}/instructions/{instruction_id} retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -2310,7 +2313,7 @@ def get_instruction( client_info=self._client_info, ) - request = data_labeling_service_pb2.GetInstructionRequest(name=name) + request = data_labeling_service_pb2.GetInstructionRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -2362,7 +2365,7 @@ def list_instructions( ... pass Args: - parent (str): Required. Instruction resource parent, format: projects/{project\_id} + parent (str): Required. Instruction resource parent, format: projects/{project_id} filter_ (str): Optional. Filter is not supported at this moment. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- @@ -2403,7 +2406,7 @@ def list_instructions( ) request = data_labeling_service_pb2.ListInstructionsRequest( - parent=parent, filter=filter_, page_size=page_size + parent=parent, filter=filter_, page_size=page_size, ) if metadata is None: metadata = [] @@ -2454,7 +2457,7 @@ def delete_instruction( Args: name (str): Required. Instruction resource name, format: - projects/{project\_id}/instructions/{instruction\_id} + projects/{project_id}/instructions/{instruction_id} retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -2482,7 +2485,7 @@ def delete_instruction( client_info=self._client_info, ) - request = data_labeling_service_pb2.DeleteInstructionRequest(name=name) + request = data_labeling_service_pb2.DeleteInstructionRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -2523,7 +2526,7 @@ def get_evaluation( Args: name (str): Required. Name of the evaluation. Format: - "projects/{project\_id}/datasets/{dataset\_id}/evaluations/{evaluation\_id}' + "projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}' retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -2554,7 +2557,7 @@ def get_evaluation( client_info=self._client_info, ) - request = data_labeling_service_pb2.GetEvaluationRequest(name=name) + request = data_labeling_service_pb2.GetEvaluationRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -2607,30 +2610,30 @@ def search_evaluations( Args: parent (str): Required. Evaluation search parent (project ID). Format: - "projects/{project\_id}" + "projects/{project_id}" filter_ (str): Optional. To search evaluations, you can filter by the following: - - evaluation\_job.evaluation\_job\_id (the last part of + - evaluation\_job.evaluation_job_id (the last part of ``EvaluationJob.name``) - - evaluation\_job.model\_id (the {model\_name} portion of + - evaluation\_job.model_id (the {model_name} portion of ``EvaluationJob.modelVersion``) - - evaluation\_job.evaluation\_job\_run\_time\_start (Minimum threshold - for the ``evaluationJobRunTime`` that created the evaluation) - - evaluation\_job.evaluation\_job\_run\_time\_end (Maximum threshold - for the ``evaluationJobRunTime`` that created the evaluation) - - evaluation\_job.job\_state (``EvaluationJob.state``) - - annotation\_spec.display\_name (the Evaluation contains a metric for + - evaluation\_job.evaluation_job_run_time_start (Minimum threshold for + the ``evaluationJobRunTime`` that created the evaluation) + - evaluation\_job.evaluation_job_run_time_end (Maximum threshold for + the ``evaluationJobRunTime`` that created the evaluation) + - evaluation\_job.job_state (``EvaluationJob.state``) + - annotation\_spec.display_name (the Evaluation contains a metric for the annotation spec with this ``displayName``) To filter by multiple critiera, use the ``AND`` operator or the ``OR`` operator. The following examples shows a string that filters by several critiera: - "evaluation\ *job.evaluation\_job\_id = {evaluation\_job\_id} AND - evaluation*\ job.model\_id = {model\_name} AND - evaluation\ *job.evaluation\_job\_run\_time\_start = {timestamp\_1} AND - evaluation*\ job.evaluation\_job\_run\_time\_end = {timestamp\_2} AND - annotation\_spec.display\_name = {display\_name}" + "evaluation\ *job.evaluation_job_id = {evaluation_job_id} AND + evaluation*\ job.model_id = {model_name} AND + evaluation\ *job.evaluation_job_run_time_start = {timestamp_1} AND + evaluation*\ job.evaluation_job_run_time_end = {timestamp_2} AND + annotation\_spec.display_name = {display_name}" page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -2670,7 +2673,7 @@ def search_evaluations( ) request = data_labeling_service_pb2.SearchEvaluationsRequest( - parent=parent, filter=filter_, page_size=page_size + parent=parent, filter=filter_, page_size=page_size, ) if metadata is None: metadata = [] @@ -2738,7 +2741,7 @@ def search_example_comparisons( parent (str): Required. Name of the ``Evaluation`` resource to search for example comparisons from. Format: - "projects/{project\_id}/datasets/{dataset\_id}/evaluations/{evaluation\_id}" + "projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}" page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -2780,7 +2783,7 @@ def search_example_comparisons( ) request = data_labeling_service_pb2.SearchExampleComparisonsRequest( - parent=parent, page_size=page_size + parent=parent, page_size=page_size, ) if metadata is None: metadata = [] @@ -2835,7 +2838,7 @@ def create_evaluation_job( Args: parent (str): Required. Evaluation job resource parent. Format: - "projects/{project\_id}" + "projects/{project_id}" job (Union[dict, ~google.cloud.datalabeling_v1beta1.types.EvaluationJob]): Required. The evaluation job to create. If a dict is provided, it must be of the same form as the protobuf @@ -2871,7 +2874,7 @@ def create_evaluation_job( ) request = data_labeling_service_pb2.CreateEvaluationJobRequest( - parent=parent, job=job + parent=parent, job=job, ) if metadata is None: metadata = [] @@ -2964,7 +2967,7 @@ def update_evaluation_job( ) request = data_labeling_service_pb2.UpdateEvaluationJobRequest( - evaluation_job=evaluation_job, update_mask=update_mask + evaluation_job=evaluation_job, update_mask=update_mask, ) if metadata is None: metadata = [] @@ -3005,7 +3008,7 @@ def get_evaluation_job( Args: name (str): Required. Name of the evaluation job. Format: - "projects/{project\_id}/evaluationJobs/{evaluation\_job\_id}" + "projects/{project_id}/evaluationJobs/{evaluation_job_id}" retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -3036,7 +3039,7 @@ def get_evaluation_job( client_info=self._client_info, ) - request = data_labeling_service_pb2.GetEvaluationJobRequest(name=name) + request = data_labeling_service_pb2.GetEvaluationJobRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -3062,8 +3065,8 @@ def pause_evaluation_job( metadata=None, ): """ - Pauses an evaluation job. Pausing an evaluation job that is already in a - ``PAUSED`` state is a no-op. + Pauses an evaluation job. Pausing an evaluation job that is already + in a ``PAUSED`` state is a no-op. Example: >>> from google.cloud import datalabeling_v1beta1 @@ -3075,9 +3078,10 @@ def pause_evaluation_job( >>> client.pause_evaluation_job(name) Args: - name (str): Required. Name of the evaluation job that is going to be paused. Format: + name (str): Required. Name of the evaluation job that is going to be paused. + Format: - "projects/{project\_id}/evaluationJobs/{evaluation\_job\_id}" + "projects/{project_id}/evaluationJobs/{evaluation_job_id}" retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -3105,7 +3109,7 @@ def pause_evaluation_job( client_info=self._client_info, ) - request = data_labeling_service_pb2.PauseEvaluationJobRequest(name=name) + request = data_labeling_service_pb2.PauseEvaluationJobRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -3147,7 +3151,7 @@ def resume_evaluation_job( name (str): Required. Name of the evaluation job that is going to be resumed. Format: - "projects/{project\_id}/evaluationJobs/{evaluation\_job\_id}" + "projects/{project_id}/evaluationJobs/{evaluation_job_id}" retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -3175,7 +3179,7 @@ def resume_evaluation_job( client_info=self._client_info, ) - request = data_labeling_service_pb2.ResumeEvaluationJobRequest(name=name) + request = data_labeling_service_pb2.ResumeEvaluationJobRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -3216,7 +3220,7 @@ def delete_evaluation_job( name (str): Required. Name of the evaluation job that is going to be deleted. Format: - "projects/{project\_id}/evaluationJobs/{evaluation\_job\_id}" + "projects/{project_id}/evaluationJobs/{evaluation_job_id}" retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -3244,7 +3248,7 @@ def delete_evaluation_job( client_info=self._client_info, ) - request = data_labeling_service_pb2.DeleteEvaluationJobRequest(name=name) + request = data_labeling_service_pb2.DeleteEvaluationJobRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -3298,14 +3302,14 @@ def list_evaluation_jobs( Args: parent (str): Required. Evaluation job resource parent. Format: - "projects/{project\_id}" - filter_ (str): Optional. You can filter the jobs to list by model\_id (also known as - model\_name, as described in ``EvaluationJob.modelVersion``) or by + "projects/{project_id}" + filter_ (str): Optional. You can filter the jobs to list by model_id (also known as + model_name, as described in ``EvaluationJob.modelVersion``) or by evaluation job state (as described in ``EvaluationJob.state``). To filter by both criteria, use the ``AND`` operator or the ``OR`` operator. For example, you can use the following string for your filter: - "evaluation\ *job.model\_id = {model\_name} AND evaluation*\ job.state = - {evaluation\_job\_state}" + "evaluation\ *job.model_id = {model_name} AND evaluation*\ job.state = + {evaluation_job_state}" page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -3345,7 +3349,7 @@ def list_evaluation_jobs( ) request = data_labeling_service_pb2.ListEvaluationJobsRequest( - parent=parent, filter=filter_, page_size=page_size + parent=parent, filter=filter_, page_size=page_size, ) if metadata is None: metadata = [] diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/data_labeling_service_client_config.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/data_labeling_service_client_config.py index 54d9359b93ce..3414078bed5c 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/data_labeling_service_client_config.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/data_labeling_service_client_config.py @@ -2,190 +2,209 @@ "interfaces": { "google.cloud.datalabeling.v1beta1.DataLabelingService": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "retry_policy_1_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "no_retry_codes": [], + "no_retry_1_codes": [], }, "retry_params": { - "default": { + "retry_policy_1_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, + "max_retry_delay_millis": 30000, + "initial_rpc_timeout_millis": 30000, "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 600000, - } + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000, + }, + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0, + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000, + }, }, "methods": { "CreateDataset": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "GetDataset": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "ListDatasets": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "DeleteDataset": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "ImportData": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "ExportData": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "GetDataItem": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "ListDataItems": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "GetAnnotatedDataset": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "ListAnnotatedDatasets": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "DeleteAnnotatedDataset": { "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params", }, "LabelImage": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "LabelVideo": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "LabelText": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "GetExample": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "ListExamples": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "CreateAnnotationSpecSet": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "GetAnnotationSpecSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "ListAnnotationSpecSets": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "DeleteAnnotationSpecSet": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "CreateInstruction": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "GetInstruction": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "ListInstructions": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "DeleteInstruction": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "GetEvaluation": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "SearchEvaluations": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "SearchExampleComparisons": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "CreateEvaluationJob": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "UpdateEvaluationJob": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "GetEvaluationJob": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "PauseEvaluationJob": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "ResumeEvaluationJob": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "DeleteEvaluationJob": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "ListEvaluationJobs": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, }, } diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/enums.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/enums.py index 2a782589734f..0d661f31bc96 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/enums.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/enums.py @@ -127,8 +127,8 @@ class State(enum.IntEnum): When the job is in this state, it samples prediction input and output from your model version into your BigQuery table as predictions occur. - RUNNING (int): The job is currently running. When the job runs, Data Labeling Service - does several things: + RUNNING (int): The job is currently running. When the job runs, Data Labeling + Service does several things: 1. If you have configured your job to use Data Labeling Service for ground truth labeling, the service creates a ``Dataset`` and a @@ -151,9 +151,9 @@ class State(enum.IntEnum): If the job remains in this state for a long time, it continues to sample prediction data into your BigQuery table and will run again at the next interval, even if it causes the job to run multiple times in parallel. - PAUSED (int): The job is not sampling prediction input and output into your BigQuery - table and it will not run according to its schedule. You can ``resume`` - the job. + PAUSED (int): The job is not sampling prediction input and output into your + BigQuery table and it will not run according to its schedule. You can + ``resume`` the job. STOPPED (int): The job has this state right before it is deleted. """ diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/transports/data_labeling_service_grpc_transport.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/transports/data_labeling_service_grpc_transport.py index 4e6e56a7d984..676202f331c2 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/transports/data_labeling_service_grpc_transport.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/gapic/transports/data_labeling_service_grpc_transport.py @@ -54,7 +54,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive." + "The `channel` and `credentials` arguments are mutually " "exclusive.", ) # Create the channel. @@ -75,7 +75,7 @@ def __init__( self._stubs = { "data_labeling_service_stub": data_labeling_service_pb2_grpc.DataLabelingServiceStub( channel - ) + ), } # Because this API includes a method that returns a @@ -528,8 +528,8 @@ def get_evaluation_job(self): def pause_evaluation_job(self): """Return the gRPC stub for :meth:`DataLabelingServiceClient.pause_evaluation_job`. - Pauses an evaluation job. Pausing an evaluation job that is already in a - ``PAUSED`` state is a no-op. + Pauses an evaluation job. Pausing an evaluation job that is already + in a ``PAUSED`` state is a no-op. Returns: Callable: A callable which accepts the appropriate diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_pb2.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_pb2.py index f60d7891cf18..c7303c49b9f3 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_pb2.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datalabeling_v1beta1/proto/annotation.proto - -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -28,12 +25,9 @@ name="google/cloud/datalabeling_v1beta1/proto/annotation.proto", package="google.cloud.datalabeling.v1beta1", syntax="proto3", - serialized_options=_b( - "\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling" - ), - serialized_pb=_b( - '\n8google/cloud/datalabeling_v1beta1/proto/annotation.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x41google/cloud/datalabeling_v1beta1/proto/annotation_spec_set.proto\x1a\x1egoogle/protobuf/duration.proto"\xe2\x02\n\nAnnotation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12N\n\x11\x61nnotation_source\x18\x02 \x01(\x0e\x32\x33.google.cloud.datalabeling.v1beta1.AnnotationSource\x12L\n\x10\x61nnotation_value\x18\x03 \x01(\x0b\x32\x32.google.cloud.datalabeling.v1beta1.AnnotationValue\x12R\n\x13\x61nnotation_metadata\x18\x04 \x01(\x0b\x32\x35.google.cloud.datalabeling.v1beta1.AnnotationMetadata\x12T\n\x14\x61nnotation_sentiment\x18\x06 \x01(\x0e\x32\x36.google.cloud.datalabeling.v1beta1.AnnotationSentiment"\xd1\x07\n\x0f\x41nnotationValue\x12k\n\x1fimage_classification_annotation\x18\x01 \x01(\x0b\x32@.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationH\x00\x12h\n\x1eimage_bounding_poly_annotation\x18\x02 \x01(\x0b\x32>.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationH\x00\x12_\n\x19image_polyline_annotation\x18\x08 \x01(\x0b\x32:.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationH\x00\x12g\n\x1dimage_segmentation_annotation\x18\t \x01(\x0b\x32>.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationH\x00\x12i\n\x1etext_classification_annotation\x18\x03 \x01(\x0b\x32?.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationH\x00\x12n\n!text_entity_extraction_annotation\x18\n \x01(\x0b\x32\x41.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationH\x00\x12k\n\x1fvideo_classification_annotation\x18\x04 \x01(\x0b\x32@.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationH\x00\x12l\n video_object_tracking_annotation\x18\x05 \x01(\x0b\x32@.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationH\x00\x12Y\n\x16video_event_annotation\x18\x06 \x01(\x0b\x32\x37.google.cloud.datalabeling.v1beta1.VideoEventAnnotationH\x00\x42\x0c\n\nvalue_type"k\n\x1dImageClassificationAnnotation\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"K\n\x0c\x42oundingPoly\x12;\n\x08vertices\x18\x01 \x03(\x0b\x32).google.cloud.datalabeling.v1beta1.Vertex"j\n\x16NormalizedBoundingPoly\x12P\n\x13normalized_vertices\x18\x01 \x03(\x0b\x32\x33.google.cloud.datalabeling.v1beta1.NormalizedVertex"\xa2\x02\n\x1bImageBoundingPolyAnnotation\x12H\n\rbounding_poly\x18\x02 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.BoundingPolyH\x00\x12]\n\x18normalized_bounding_poly\x18\x03 \x01(\x0b\x32\x39.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyH\x00\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpecB\x0e\n\x0c\x62ounded_area"G\n\x08Polyline\x12;\n\x08vertices\x18\x01 \x03(\x0b\x32).google.cloud.datalabeling.v1beta1.Vertex"f\n\x12NormalizedPolyline\x12P\n\x13normalized_vertices\x18\x01 \x03(\x0b\x32\x33.google.cloud.datalabeling.v1beta1.NormalizedVertex"\x84\x02\n\x17ImagePolylineAnnotation\x12?\n\x08polyline\x18\x02 \x01(\x0b\x32+.google.cloud.datalabeling.v1beta1.PolylineH\x00\x12T\n\x13normalized_polyline\x18\x03 \x01(\x0b\x32\x35.google.cloud.datalabeling.v1beta1.NormalizedPolylineH\x00\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpecB\x06\n\x04poly"\xa2\x02\n\x1bImageSegmentationAnnotation\x12o\n\x11\x61nnotation_colors\x18\x01 \x03(\x0b\x32T.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.AnnotationColorsEntry\x12\x11\n\tmime_type\x18\x02 \x01(\t\x12\x13\n\x0bimage_bytes\x18\x03 \x01(\x0c\x1aj\n\x15\x41nnotationColorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec:\x02\x38\x01"j\n\x1cTextClassificationAnnotation\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec"\xbe\x01\n\x1eTextEntityExtractionAnnotation\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12P\n\x12sequential_segment\x18\x02 \x01(\x0b\x32\x34.google.cloud.datalabeling.v1beta1.SequentialSegment"/\n\x11SequentialSegment\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05"w\n\x0bTimeSegment\x12\x34\n\x11start_time_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x65nd_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xb1\x01\n\x1dVideoClassificationAnnotation\x12\x44\n\x0ctime_segment\x18\x01 \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.TimeSegment\x12J\n\x0f\x61nnotation_spec\x18\x02 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec"\xfe\x01\n\x13ObjectTrackingFrame\x12H\n\rbounding_poly\x18\x01 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.BoundingPolyH\x00\x12]\n\x18normalized_bounding_poly\x18\x02 \x01(\x0b\x32\x39.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyH\x00\x12.\n\x0btime_offset\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\n\x0c\x62ounded_area"\x89\x02\n\x1dVideoObjectTrackingAnnotation\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12\x44\n\x0ctime_segment\x18\x02 \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.TimeSegment\x12V\n\x16object_tracking_frames\x18\x03 \x03(\x0b\x32\x36.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame"\xa8\x01\n\x14VideoEventAnnotation\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12\x44\n\x0ctime_segment\x18\x02 \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.TimeSegment"d\n\x12\x41nnotationMetadata\x12N\n\x11operator_metadata\x18\x02 \x01(\x0b\x32\x33.google.cloud.datalabeling.v1beta1.OperatorMetadata"]\n\x10OperatorMetadata\x12\r\n\x05score\x18\x01 \x01(\x02\x12\x13\n\x0btotal_votes\x18\x02 \x01(\x05\x12\x13\n\x0blabel_votes\x18\x03 \x01(\x05\x12\x10\n\x08\x63omments\x18\x04 \x03(\t*C\n\x10\x41nnotationSource\x12!\n\x1d\x41NNOTATION_SOURCE_UNSPECIFIED\x10\x00\x12\x0c\n\x08OPERATOR\x10\x03*W\n\x13\x41nnotationSentiment\x12$\n ANNOTATION_SENTIMENT_UNSPECIFIED\x10\x00\x12\x0c\n\x08NEGATIVE\x10\x01\x12\x0c\n\x08POSITIVE\x10\x02*\x91\x04\n\x0e\x41nnotationType\x12\x1f\n\x1b\x41NNOTATION_TYPE_UNSPECIFIED\x10\x00\x12#\n\x1fIMAGE_CLASSIFICATION_ANNOTATION\x10\x01\x12!\n\x1dIMAGE_BOUNDING_BOX_ANNOTATION\x10\x02\x12*\n&IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION\x10\r\x12"\n\x1eIMAGE_BOUNDING_POLY_ANNOTATION\x10\n\x12\x1d\n\x19IMAGE_POLYLINE_ANNOTATION\x10\x0b\x12!\n\x1dIMAGE_SEGMENTATION_ANNOTATION\x10\x0c\x12)\n%VIDEO_SHOTS_CLASSIFICATION_ANNOTATION\x10\x03\x12$\n VIDEO_OBJECT_TRACKING_ANNOTATION\x10\x04\x12%\n!VIDEO_OBJECT_DETECTION_ANNOTATION\x10\x05\x12\x1a\n\x16VIDEO_EVENT_ANNOTATION\x10\x06\x12"\n\x1eTEXT_CLASSIFICATION_ANNOTATION\x10\x08\x12%\n!TEXT_ENTITY_EXTRACTION_ANNOTATION\x10\t\x12%\n!GENERAL_CLASSIFICATION_ANNOTATION\x10\x0e\x42x\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3' - ), + serialized_options=b"\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n8google/cloud/datalabeling_v1beta1/proto/annotation.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x41google/cloud/datalabeling_v1beta1/proto/annotation_spec_set.proto\x1a\x1egoogle/protobuf/duration.proto"\xe2\x02\n\nAnnotation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12N\n\x11\x61nnotation_source\x18\x02 \x01(\x0e\x32\x33.google.cloud.datalabeling.v1beta1.AnnotationSource\x12L\n\x10\x61nnotation_value\x18\x03 \x01(\x0b\x32\x32.google.cloud.datalabeling.v1beta1.AnnotationValue\x12R\n\x13\x61nnotation_metadata\x18\x04 \x01(\x0b\x32\x35.google.cloud.datalabeling.v1beta1.AnnotationMetadata\x12T\n\x14\x61nnotation_sentiment\x18\x06 \x01(\x0e\x32\x36.google.cloud.datalabeling.v1beta1.AnnotationSentiment"\xd1\x07\n\x0f\x41nnotationValue\x12k\n\x1fimage_classification_annotation\x18\x01 \x01(\x0b\x32@.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationH\x00\x12h\n\x1eimage_bounding_poly_annotation\x18\x02 \x01(\x0b\x32>.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationH\x00\x12_\n\x19image_polyline_annotation\x18\x08 \x01(\x0b\x32:.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationH\x00\x12g\n\x1dimage_segmentation_annotation\x18\t \x01(\x0b\x32>.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationH\x00\x12i\n\x1etext_classification_annotation\x18\x03 \x01(\x0b\x32?.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationH\x00\x12n\n!text_entity_extraction_annotation\x18\n \x01(\x0b\x32\x41.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationH\x00\x12k\n\x1fvideo_classification_annotation\x18\x04 \x01(\x0b\x32@.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationH\x00\x12l\n video_object_tracking_annotation\x18\x05 \x01(\x0b\x32@.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationH\x00\x12Y\n\x16video_event_annotation\x18\x06 \x01(\x0b\x32\x37.google.cloud.datalabeling.v1beta1.VideoEventAnnotationH\x00\x42\x0c\n\nvalue_type"k\n\x1dImageClassificationAnnotation\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02"K\n\x0c\x42oundingPoly\x12;\n\x08vertices\x18\x01 \x03(\x0b\x32).google.cloud.datalabeling.v1beta1.Vertex"j\n\x16NormalizedBoundingPoly\x12P\n\x13normalized_vertices\x18\x01 \x03(\x0b\x32\x33.google.cloud.datalabeling.v1beta1.NormalizedVertex"\xa2\x02\n\x1bImageBoundingPolyAnnotation\x12H\n\rbounding_poly\x18\x02 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.BoundingPolyH\x00\x12]\n\x18normalized_bounding_poly\x18\x03 \x01(\x0b\x32\x39.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyH\x00\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpecB\x0e\n\x0c\x62ounded_area"G\n\x08Polyline\x12;\n\x08vertices\x18\x01 \x03(\x0b\x32).google.cloud.datalabeling.v1beta1.Vertex"f\n\x12NormalizedPolyline\x12P\n\x13normalized_vertices\x18\x01 \x03(\x0b\x32\x33.google.cloud.datalabeling.v1beta1.NormalizedVertex"\x84\x02\n\x17ImagePolylineAnnotation\x12?\n\x08polyline\x18\x02 \x01(\x0b\x32+.google.cloud.datalabeling.v1beta1.PolylineH\x00\x12T\n\x13normalized_polyline\x18\x03 \x01(\x0b\x32\x35.google.cloud.datalabeling.v1beta1.NormalizedPolylineH\x00\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpecB\x06\n\x04poly"\xa2\x02\n\x1bImageSegmentationAnnotation\x12o\n\x11\x61nnotation_colors\x18\x01 \x03(\x0b\x32T.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.AnnotationColorsEntry\x12\x11\n\tmime_type\x18\x02 \x01(\t\x12\x13\n\x0bimage_bytes\x18\x03 \x01(\x0c\x1aj\n\x15\x41nnotationColorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec:\x02\x38\x01"j\n\x1cTextClassificationAnnotation\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec"\xbe\x01\n\x1eTextEntityExtractionAnnotation\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12P\n\x12sequential_segment\x18\x02 \x01(\x0b\x32\x34.google.cloud.datalabeling.v1beta1.SequentialSegment"/\n\x11SequentialSegment\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05"w\n\x0bTimeSegment\x12\x34\n\x11start_time_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x65nd_time_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xb1\x01\n\x1dVideoClassificationAnnotation\x12\x44\n\x0ctime_segment\x18\x01 \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.TimeSegment\x12J\n\x0f\x61nnotation_spec\x18\x02 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec"\xfe\x01\n\x13ObjectTrackingFrame\x12H\n\rbounding_poly\x18\x01 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.BoundingPolyH\x00\x12]\n\x18normalized_bounding_poly\x18\x02 \x01(\x0b\x32\x39.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyH\x00\x12.\n\x0btime_offset\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x0e\n\x0c\x62ounded_area"\x89\x02\n\x1dVideoObjectTrackingAnnotation\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12\x44\n\x0ctime_segment\x18\x02 \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.TimeSegment\x12V\n\x16object_tracking_frames\x18\x03 \x03(\x0b\x32\x36.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame"\xa8\x01\n\x14VideoEventAnnotation\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12\x44\n\x0ctime_segment\x18\x02 \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.TimeSegment"d\n\x12\x41nnotationMetadata\x12N\n\x11operator_metadata\x18\x02 \x01(\x0b\x32\x33.google.cloud.datalabeling.v1beta1.OperatorMetadata"]\n\x10OperatorMetadata\x12\r\n\x05score\x18\x01 \x01(\x02\x12\x13\n\x0btotal_votes\x18\x02 \x01(\x05\x12\x13\n\x0blabel_votes\x18\x03 \x01(\x05\x12\x10\n\x08\x63omments\x18\x04 \x03(\t*C\n\x10\x41nnotationSource\x12!\n\x1d\x41NNOTATION_SOURCE_UNSPECIFIED\x10\x00\x12\x0c\n\x08OPERATOR\x10\x03*W\n\x13\x41nnotationSentiment\x12$\n ANNOTATION_SENTIMENT_UNSPECIFIED\x10\x00\x12\x0c\n\x08NEGATIVE\x10\x01\x12\x0c\n\x08POSITIVE\x10\x02*\x91\x04\n\x0e\x41nnotationType\x12\x1f\n\x1b\x41NNOTATION_TYPE_UNSPECIFIED\x10\x00\x12#\n\x1fIMAGE_CLASSIFICATION_ANNOTATION\x10\x01\x12!\n\x1dIMAGE_BOUNDING_BOX_ANNOTATION\x10\x02\x12*\n&IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION\x10\r\x12"\n\x1eIMAGE_BOUNDING_POLY_ANNOTATION\x10\n\x12\x1d\n\x19IMAGE_POLYLINE_ANNOTATION\x10\x0b\x12!\n\x1dIMAGE_SEGMENTATION_ANNOTATION\x10\x0c\x12)\n%VIDEO_SHOTS_CLASSIFICATION_ANNOTATION\x10\x03\x12$\n VIDEO_OBJECT_TRACKING_ANNOTATION\x10\x04\x12%\n!VIDEO_OBJECT_DETECTION_ANNOTATION\x10\x05\x12\x1a\n\x16VIDEO_EVENT_ANNOTATION\x10\x06\x12"\n\x1eTEXT_CLASSIFICATION_ANNOTATION\x10\x08\x12%\n!TEXT_ENTITY_EXTRACTION_ANNOTATION\x10\t\x12%\n!GENERAL_CLASSIFICATION_ANNOTATION\x10\x0e\x42x\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, @@ -47,6 +41,7 @@ full_name="google.cloud.datalabeling.v1beta1.AnnotationSource", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="ANNOTATION_SOURCE_UNSPECIFIED", @@ -54,9 +49,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="OPERATOR", index=1, number=3, serialized_options=None, type=None + name="OPERATOR", + index=1, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -72,6 +73,7 @@ full_name="google.cloud.datalabeling.v1beta1.AnnotationSentiment", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="ANNOTATION_SENTIMENT_UNSPECIFIED", @@ -79,12 +81,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NEGATIVE", index=1, number=1, serialized_options=None, type=None + name="NEGATIVE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POSITIVE", index=2, number=2, serialized_options=None, type=None + name="POSITIVE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -100,6 +113,7 @@ full_name="google.cloud.datalabeling.v1beta1.AnnotationType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="ANNOTATION_TYPE_UNSPECIFIED", @@ -107,6 +121,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="IMAGE_CLASSIFICATION_ANNOTATION", @@ -114,6 +129,7 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="IMAGE_BOUNDING_BOX_ANNOTATION", @@ -121,6 +137,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION", @@ -128,6 +145,7 @@ number=13, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="IMAGE_BOUNDING_POLY_ANNOTATION", @@ -135,6 +153,7 @@ number=10, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="IMAGE_POLYLINE_ANNOTATION", @@ -142,6 +161,7 @@ number=11, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="IMAGE_SEGMENTATION_ANNOTATION", @@ -149,6 +169,7 @@ number=12, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="VIDEO_SHOTS_CLASSIFICATION_ANNOTATION", @@ -156,6 +177,7 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="VIDEO_OBJECT_TRACKING_ANNOTATION", @@ -163,6 +185,7 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="VIDEO_OBJECT_DETECTION_ANNOTATION", @@ -170,6 +193,7 @@ number=5, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="VIDEO_EVENT_ANNOTATION", @@ -177,6 +201,7 @@ number=6, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="TEXT_CLASSIFICATION_ANNOTATION", @@ -184,6 +209,7 @@ number=8, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="TEXT_ENTITY_EXTRACTION_ANNOTATION", @@ -191,6 +217,7 @@ number=9, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="GENERAL_CLASSIFICATION_ANNOTATION", @@ -198,6 +225,7 @@ number=14, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -235,6 +263,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -245,7 +274,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -253,6 +282,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_source", @@ -271,6 +301,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_value", @@ -289,6 +320,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_metadata", @@ -307,6 +339,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_sentiment", @@ -325,6 +358,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -346,6 +380,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="image_classification_annotation", @@ -364,6 +399,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_bounding_poly_annotation", @@ -382,6 +418,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_polyline_annotation", @@ -400,6 +437,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_segmentation_annotation", @@ -418,6 +456,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text_classification_annotation", @@ -436,6 +475,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text_entity_extraction_annotation", @@ -454,6 +494,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="video_classification_annotation", @@ -472,6 +513,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="video_object_tracking_annotation", @@ -490,6 +532,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="video_event_annotation", @@ -508,6 +551,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -523,8 +567,9 @@ full_name="google.cloud.datalabeling.v1beta1.AnnotationValue.value_type", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=609, serialized_end=1586, @@ -537,6 +582,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec", @@ -555,7 +601,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -576,6 +623,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="x", @@ -594,6 +642,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="y", @@ -612,6 +661,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -633,6 +683,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="x", @@ -651,6 +702,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="y", @@ -669,6 +721,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -690,6 +743,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="vertices", @@ -708,7 +762,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -729,6 +784,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="normalized_vertices", @@ -747,7 +803,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -768,6 +825,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bounding_poly", @@ -786,6 +844,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="normalized_bounding_poly", @@ -804,6 +863,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_spec", @@ -822,6 +882,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -837,8 +898,9 @@ full_name="google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.bounded_area", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=1957, serialized_end=2247, @@ -851,6 +913,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="vertices", @@ -869,7 +932,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -890,6 +954,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="normalized_vertices", @@ -908,7 +973,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -929,6 +995,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="polyline", @@ -947,6 +1014,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="normalized_polyline", @@ -965,6 +1033,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_spec", @@ -983,6 +1052,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -998,8 +1068,9 @@ full_name="google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.poly", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=2427, serialized_end=2687, @@ -1012,6 +1083,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -1022,7 +1094,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1030,6 +1102,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -1048,12 +1121,13 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -1068,6 +1142,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_colors", @@ -1086,6 +1161,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="mime_type", @@ -1096,7 +1172,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1104,6 +1180,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_bytes", @@ -1114,7 +1191,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -1122,10 +1199,11 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_IMAGESEGMENTATIONANNOTATION_ANNOTATIONCOLORSENTRY], + nested_types=[_IMAGESEGMENTATIONANNOTATION_ANNOTATIONCOLORSENTRY,], enum_types=[], serialized_options=None, is_extendable=False, @@ -1143,6 +1221,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec", @@ -1161,7 +1240,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -1182,6 +1262,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec", @@ -1200,6 +1281,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sequential_segment", @@ -1218,6 +1300,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1239,6 +1322,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="start", @@ -1257,6 +1341,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end", @@ -1275,6 +1360,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1296,6 +1382,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="start_time_offset", @@ -1314,6 +1401,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_time_offset", @@ -1332,6 +1420,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1353,6 +1442,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="time_segment", @@ -1371,6 +1461,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_spec", @@ -1389,6 +1480,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1410,6 +1502,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bounding_poly", @@ -1428,6 +1521,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="normalized_bounding_poly", @@ -1446,6 +1540,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="time_offset", @@ -1464,6 +1559,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1479,8 +1575,9 @@ full_name="google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.bounded_area", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=3634, serialized_end=3888, @@ -1493,6 +1590,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec", @@ -1511,6 +1609,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="time_segment", @@ -1529,6 +1628,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="object_tracking_frames", @@ -1547,6 +1647,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1568,6 +1669,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec", @@ -1586,6 +1688,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="time_segment", @@ -1604,6 +1707,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1625,6 +1729,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="operator_metadata", @@ -1643,7 +1748,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -1664,6 +1770,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="score", @@ -1682,6 +1789,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="total_votes", @@ -1700,6 +1808,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="label_votes", @@ -1718,6 +1827,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="comments", @@ -1736,6 +1846,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2011,18 +2122,19 @@ Annotation = _reflection.GeneratedProtocolMessageType( "Annotation", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATION, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Annotation for Example. Each example may have one or more annotations. + { + "DESCRIPTOR": _ANNOTATION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Annotation for Example. Each example may have one or more annotations. For example in image classification problem, each image might have one or more labels. We call labels binded with this image an Annotation. + Attributes: name: Output only. Unique name of this annotation, format is: proje - cts/{project\_id}/datasets/{dataset\_id}/annotatedDatasets/{an - notated\_dataset}/examples/{example\_id}/annotations/{annotati - on\_id} + cts/{project_id}/datasets/{dataset_id}/annotatedDatasets/{anno + tated_dataset}/examples/{example_id}/annotations/{annotation_i + d} annotation_source: Output only. The source of the annotation. annotation_value: @@ -2035,17 +2147,18 @@ Output only. Sentiment for this annotation. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Annotation) - ), + }, ) _sym_db.RegisterMessage(Annotation) AnnotationValue = _reflection.GeneratedProtocolMessageType( "AnnotationValue", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATIONVALUE, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Annotation value for an example. + { + "DESCRIPTOR": _ANNOTATIONVALUE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Annotation value for an example. + Attributes: image_classification_annotation: Annotation value for image classification case. @@ -2071,98 +2184,104 @@ Annotation value for video event case. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotationValue) - ), + }, ) _sym_db.RegisterMessage(AnnotationValue) ImageClassificationAnnotation = _reflection.GeneratedProtocolMessageType( "ImageClassificationAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_IMAGECLASSIFICATIONANNOTATION, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Image classification annotation definition. + { + "DESCRIPTOR": _IMAGECLASSIFICATIONANNOTATION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Image classification annotation definition. + Attributes: annotation_spec: Label of image. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) - ), + }, ) _sym_db.RegisterMessage(ImageClassificationAnnotation) Vertex = _reflection.GeneratedProtocolMessageType( "Vertex", (_message.Message,), - dict( - DESCRIPTOR=_VERTEX, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""X coordinate. + { + "DESCRIPTOR": _VERTEX, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """X coordinate. + Attributes: y: Y coordinate. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Vertex) - ), + }, ) _sym_db.RegisterMessage(Vertex) NormalizedVertex = _reflection.GeneratedProtocolMessageType( "NormalizedVertex", (_message.Message,), - dict( - DESCRIPTOR=_NORMALIZEDVERTEX, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""X coordinate. + { + "DESCRIPTOR": _NORMALIZEDVERTEX, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """X coordinate. + Attributes: y: Y coordinate. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.NormalizedVertex) - ), + }, ) _sym_db.RegisterMessage(NormalizedVertex) BoundingPoly = _reflection.GeneratedProtocolMessageType( "BoundingPoly", (_message.Message,), - dict( - DESCRIPTOR=_BOUNDINGPOLY, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""A bounding polygon in the image. + { + "DESCRIPTOR": _BOUNDINGPOLY, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """A bounding polygon in the image. + Attributes: vertices: The bounding polygon vertices. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.BoundingPoly) - ), + }, ) _sym_db.RegisterMessage(BoundingPoly) NormalizedBoundingPoly = _reflection.GeneratedProtocolMessageType( "NormalizedBoundingPoly", (_message.Message,), - dict( - DESCRIPTOR=_NORMALIZEDBOUNDINGPOLY, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Normalized bounding polygon. + { + "DESCRIPTOR": _NORMALIZEDBOUNDINGPOLY, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Normalized bounding polygon. + Attributes: normalized_vertices: The bounding polygon normalized vertices. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) - ), + }, ) _sym_db.RegisterMessage(NormalizedBoundingPoly) ImageBoundingPolyAnnotation = _reflection.GeneratedProtocolMessageType( "ImageBoundingPolyAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_IMAGEBOUNDINGPOLYANNOTATION, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Image bounding poly annotation. It represents a polygon including + { + "DESCRIPTOR": _IMAGEBOUNDINGPOLYANNOTATION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Image bounding poly annotation. It represents a polygon including bounding box in the image. + Attributes: bounded_area: The region of the polygon. If it is a bounding box, it is @@ -2171,74 +2290,78 @@ Label of object in this bounding polygon. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) - ), + }, ) _sym_db.RegisterMessage(ImageBoundingPolyAnnotation) Polyline = _reflection.GeneratedProtocolMessageType( "Polyline", (_message.Message,), - dict( - DESCRIPTOR=_POLYLINE, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""A line with multiple line segments. + { + "DESCRIPTOR": _POLYLINE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """A line with multiple line segments. + Attributes: vertices: The polyline vertices. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Polyline) - ), + }, ) _sym_db.RegisterMessage(Polyline) NormalizedPolyline = _reflection.GeneratedProtocolMessageType( "NormalizedPolyline", (_message.Message,), - dict( - DESCRIPTOR=_NORMALIZEDPOLYLINE, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Normalized polyline. + { + "DESCRIPTOR": _NORMALIZEDPOLYLINE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Normalized polyline. + Attributes: normalized_vertices: The normalized polyline vertices. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.NormalizedPolyline) - ), + }, ) _sym_db.RegisterMessage(NormalizedPolyline) ImagePolylineAnnotation = _reflection.GeneratedProtocolMessageType( "ImagePolylineAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_IMAGEPOLYLINEANNOTATION, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""A polyline for the image annotation. + { + "DESCRIPTOR": _IMAGEPOLYLINEANNOTATION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """A polyline for the image annotation. + Attributes: annotation_spec: Label of this polyline. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) - ), + }, ) _sym_db.RegisterMessage(ImagePolylineAnnotation) ImageSegmentationAnnotation = _reflection.GeneratedProtocolMessageType( "ImageSegmentationAnnotation", (_message.Message,), - dict( - AnnotationColorsEntry=_reflection.GeneratedProtocolMessageType( + { + "AnnotationColorsEntry": _reflection.GeneratedProtocolMessageType( "AnnotationColorsEntry", (_message.Message,), - dict( - DESCRIPTOR=_IMAGESEGMENTATIONANNOTATION_ANNOTATIONCOLORSENTRY, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2" + { + "DESCRIPTOR": _IMAGESEGMENTATIONANNOTATION_ANNOTATIONCOLORSENTRY, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2" # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.AnnotationColorsEntry) - ), + }, ), - DESCRIPTOR=_IMAGESEGMENTATIONANNOTATION, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Image segmentation annotation. + "DESCRIPTOR": _IMAGESEGMENTATIONANNOTATION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Image segmentation annotation. + Attributes: annotation_colors: The mapping between rgb color and annotation spec. The key is @@ -2247,10 +2370,10 @@ mime_type: Image format. image_bytes: - A byte string of a full image's color map. + A byte string of a full image’s color map. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) - ), + }, ) _sym_db.RegisterMessage(ImageSegmentationAnnotation) _sym_db.RegisterMessage(ImageSegmentationAnnotation.AnnotationColorsEntry) @@ -2258,26 +2381,28 @@ TextClassificationAnnotation = _reflection.GeneratedProtocolMessageType( "TextClassificationAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_TEXTCLASSIFICATIONANNOTATION, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Text classification annotation. + { + "DESCRIPTOR": _TEXTCLASSIFICATIONANNOTATION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Text classification annotation. + Attributes: annotation_spec: Label of the text. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) - ), + }, ) _sym_db.RegisterMessage(TextClassificationAnnotation) TextEntityExtractionAnnotation = _reflection.GeneratedProtocolMessageType( "TextEntityExtractionAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_TEXTENTITYEXTRACTIONANNOTATION, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Text entity extraction annotation. + { + "DESCRIPTOR": _TEXTENTITYEXTRACTIONANNOTATION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Text entity extraction annotation. + Attributes: annotation_spec: Label of the text entities. @@ -2285,17 +2410,18 @@ Position of the entity. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) - ), + }, ) _sym_db.RegisterMessage(TextEntityExtractionAnnotation) SequentialSegment = _reflection.GeneratedProtocolMessageType( "SequentialSegment", (_message.Message,), - dict( - DESCRIPTOR=_SEQUENTIALSEGMENT, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Start and end position in a sequence (e.g. text segment). + { + "DESCRIPTOR": _SEQUENTIALSEGMENT, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Start and end position in a sequence (e.g. text segment). + Attributes: start: Start position (inclusive). @@ -2303,18 +2429,19 @@ End position (exclusive). """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SequentialSegment) - ), + }, ) _sym_db.RegisterMessage(SequentialSegment) TimeSegment = _reflection.GeneratedProtocolMessageType( "TimeSegment", (_message.Message,), - dict( - DESCRIPTOR=_TIMESEGMENT, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""A time period inside of an example that has a time dimension (e.g. - video). + { + "DESCRIPTOR": _TIMESEGMENT, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """A time period inside of an example that has a time dimension + (e.g. video). + Attributes: start_time_offset: Start of the time segment (inclusive), represented as the @@ -2324,35 +2451,37 @@ duration since the example start. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TimeSegment) - ), + }, ) _sym_db.RegisterMessage(TimeSegment) VideoClassificationAnnotation = _reflection.GeneratedProtocolMessageType( "VideoClassificationAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_VIDEOCLASSIFICATIONANNOTATION, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Video classification annotation. + { + "DESCRIPTOR": _VIDEOCLASSIFICATIONANNOTATION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Video classification annotation. + Attributes: time_segment: The time segment of the video to which the annotation applies. annotation_spec: - Label of the segment specified by time\_segment. + Label of the segment specified by time_segment. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) - ), + }, ) _sym_db.RegisterMessage(VideoClassificationAnnotation) ObjectTrackingFrame = _reflection.GeneratedProtocolMessageType( "ObjectTrackingFrame", (_message.Message,), - dict( - DESCRIPTOR=_OBJECTTRACKINGFRAME, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Video frame level annotation for object detection and tracking. + { + "DESCRIPTOR": _OBJECTTRACKINGFRAME, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Video frame level annotation for object detection and tracking. + Attributes: bounded_area: The bounding box location of this object track for the frame. @@ -2361,17 +2490,18 @@ video. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) - ), + }, ) _sym_db.RegisterMessage(ObjectTrackingFrame) VideoObjectTrackingAnnotation = _reflection.GeneratedProtocolMessageType( "VideoObjectTrackingAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_VIDEOOBJECTTRACKINGANNOTATION, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Video object tracking annotation. + { + "DESCRIPTOR": _VIDEOOBJECTTRACKINGANNOTATION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Video object tracking annotation. + Attributes: annotation_spec: Label of the object tracked in this annotation. @@ -2382,17 +2512,18 @@ The list of frames where this object track appears. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) - ), + }, ) _sym_db.RegisterMessage(VideoObjectTrackingAnnotation) VideoEventAnnotation = _reflection.GeneratedProtocolMessageType( "VideoEventAnnotation", (_message.Message,), - dict( - DESCRIPTOR=_VIDEOEVENTANNOTATION, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Video event annotation. + { + "DESCRIPTOR": _VIDEOEVENTANNOTATION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Video event annotation. + Attributes: annotation_spec: Label of the event in this annotation. @@ -2400,33 +2531,35 @@ The time segment of the video to which the annotation applies. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoEventAnnotation) - ), + }, ) _sym_db.RegisterMessage(VideoEventAnnotation) AnnotationMetadata = _reflection.GeneratedProtocolMessageType( "AnnotationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""Additional information associated with the annotation. + { + "DESCRIPTOR": _ANNOTATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """Additional information associated with the annotation. + Attributes: operator_metadata: Metadata related to human labeling. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotationMetadata) - ), + }, ) _sym_db.RegisterMessage(AnnotationMetadata) OperatorMetadata = _reflection.GeneratedProtocolMessageType( "OperatorMetadata", (_message.Message,), - dict( - DESCRIPTOR=_OPERATORMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_pb2", - __doc__="""General information useful for labels coming from contributors. + { + "DESCRIPTOR": _OPERATORMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_pb2", + "__doc__": """General information useful for labels coming from contributors. + Attributes: score: Confidence score corresponding to a label. For examle, if 3 @@ -2440,7 +2573,7 @@ Comments from contributors. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.OperatorMetadata) - ), + }, ) _sym_db.RegisterMessage(OperatorMetadata) diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_pb2_grpc.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_pb2_grpc.py index 07cb78fe03a9..8a9393943bdf 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_pb2_grpc.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_spec_set_pb2.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_spec_set_pb2.py index 3bcaa557c251..80dfcbdbd4c7 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_spec_set_pb2.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_spec_set_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datalabeling_v1beta1/proto/annotation_spec_set.proto - -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -23,12 +20,9 @@ name="google/cloud/datalabeling_v1beta1/proto/annotation_spec_set.proto", package="google.cloud.datalabeling.v1beta1", syntax="proto3", - serialized_options=_b( - "\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling" - ), - serialized_pb=_b( - '\nAgoogle/cloud/datalabeling_v1beta1/proto/annotation_spec_set.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto"\xa6\x02\n\x11\x41nnotationSpecSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12K\n\x10\x61nnotation_specs\x18\x04 \x03(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12\x1a\n\x12\x62locking_resources\x18\x05 \x03(\t:o\xea\x41l\n-datalabeling.googleapis.com/AnnotationSpecSet\x12;projects/{project}/annotationSpecSets/{annotation_spec_set}";\n\x0e\x41nnotationSpec\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\tBx\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3' - ), + serialized_options=b"\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\nAgoogle/cloud/datalabeling_v1beta1/proto/annotation_spec_set.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto"\xa6\x02\n\x11\x41nnotationSpecSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12K\n\x10\x61nnotation_specs\x18\x04 \x03(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12\x1a\n\x12\x62locking_resources\x18\x05 \x03(\t:o\xea\x41l\n-datalabeling.googleapis.com/AnnotationSpecSet\x12;projects/{project}/annotationSpecSets/{annotation_spec_set}";\n\x0e\x41nnotationSpec\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\tBx\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, @@ -42,6 +36,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -52,7 +47,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -60,6 +55,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="display_name", @@ -70,7 +66,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -78,6 +74,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -88,7 +85,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -96,6 +93,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_specs", @@ -114,6 +112,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="blocking_resources", @@ -132,14 +131,13 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352Al\n-datalabeling.googleapis.com/AnnotationSpecSet\022;projects/{project}/annotationSpecSets/{annotation_spec_set}" - ), + serialized_options=b"\352Al\n-datalabeling.googleapis.com/AnnotationSpecSet\022;projects/{project}/annotationSpecSets/{annotation_spec_set}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -155,6 +153,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="display_name", @@ -165,7 +164,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -173,6 +172,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -183,7 +183,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -191,6 +191,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -213,18 +214,19 @@ AnnotationSpecSet = _reflection.GeneratedProtocolMessageType( "AnnotationSpecSet", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATIONSPECSET, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_spec_set_pb2", - __doc__="""An AnnotationSpecSet is a collection of label definitions. For + { + "DESCRIPTOR": _ANNOTATIONSPECSET, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_spec_set_pb2", + "__doc__": """An AnnotationSpecSet is a collection of label definitions. For example, in image classification tasks, you define a set of possible labels for images as an AnnotationSpecSet. An AnnotationSpecSet is immutable upon creation. + Attributes: name: Output only. The AnnotationSpecSet resource name in the - following format: "projects/{project\_id}/annotationSpecSets/ - {annotation\_spec\_set\_id}" + following format: “projects/{project_id}/annotationSpecSets/{ + annotation_spec_set_id}” display_name: Required. The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters. @@ -241,20 +243,21 @@ blocking changes to the annotation spec set. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotationSpecSet) - ), + }, ) _sym_db.RegisterMessage(AnnotationSpecSet) AnnotationSpec = _reflection.GeneratedProtocolMessageType( "AnnotationSpec", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATIONSPEC, - __module__="google.cloud.datalabeling_v1beta1.proto.annotation_spec_set_pb2", - __doc__="""Container of information related to one possible annotation that can + { + "DESCRIPTOR": _ANNOTATIONSPEC, + "__module__": "google.cloud.datalabeling_v1beta1.proto.annotation_spec_set_pb2", + "__doc__": """Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as ``dog`` or ``cat`` must reference an AnnotationSpec for ``dog`` and an AnnotationSpec for ``cat``. + Attributes: display_name: Required. The display name of the AnnotationSpec. Maximum of @@ -265,7 +268,7 @@ long. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotationSpec) - ), + }, ) _sym_db.RegisterMessage(AnnotationSpec) diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_spec_set_pb2_grpc.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_spec_set_pb2_grpc.py index 07cb78fe03a9..8a9393943bdf 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_spec_set_pb2_grpc.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/annotation_spec_set_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_labeling_service_pb2.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_labeling_service_pb2.py index 1227cd0f0826..3e9bdfa694ea 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_labeling_service_pb2.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_labeling_service_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datalabeling_v1beta1/proto/data_labeling_service.proto - -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -48,12 +45,9 @@ name="google/cloud/datalabeling_v1beta1/proto/data_labeling_service.proto", package="google.cloud.datalabeling.v1beta1", syntax="proto3", - serialized_options=_b( - "\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling" - ), - serialized_pb=_b( - '\nCgoogle/cloud/datalabeling_v1beta1/proto/data_labeling_service.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x41google/cloud/datalabeling_v1beta1/proto/annotation_spec_set.proto\x1a\x35google/cloud/datalabeling_v1beta1/proto/dataset.proto\x1a\x38google/cloud/datalabeling_v1beta1/proto/evaluation.proto\x1a\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&datalabeling.googleapis.com/Evaluation\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01"x\n\x19SearchEvaluationsResponse\x12\x42\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32-.google.cloud.datalabeling.v1beta1.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x92\x01\n\x1fSearchExampleComparisonsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&datalabeling.googleapis.com/Evaluation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01"\xdb\x02\n SearchExampleComparisonsResponse\x12r\n\x13\x65xample_comparisons\x18\x01 \x03(\x0b\x32U.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\xa9\x01\n\x11\x45xampleComparison\x12H\n\x14ground_truth_example\x18\x01 \x01(\x0b\x32*.google.cloud.datalabeling.v1beta1.Example\x12J\n\x16model_created_examples\x18\x02 \x03(\x0b\x32*.google.cloud.datalabeling.v1beta1.Example"\xa5\x01\n\x1a\x43reateEvaluationJobRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x42\n\x03job\x18\x02 \x01(\x0b\x32\x30.google.cloud.datalabeling.v1beta1.EvaluationJobB\x03\xe0\x41\x02"\xa1\x01\n\x1aUpdateEvaluationJobRequest\x12M\n\x0e\x65valuation_job\x18\x01 \x01(\x0b\x32\x30.google.cloud.datalabeling.v1beta1.EvaluationJobB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"Z\n\x17GetEvaluationJobRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)datalabeling.googleapis.com/EvaluationJob"\\\n\x19PauseEvaluationJobRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)datalabeling.googleapis.com/EvaluationJob"]\n\x1aResumeEvaluationJobRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)datalabeling.googleapis.com/EvaluationJob"]\n\x1a\x44\x65leteEvaluationJobRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)datalabeling.googleapis.com/EvaluationJob"\xa6\x01\n\x19ListEvaluationJobsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01"\x80\x01\n\x1aListEvaluationJobsResponse\x12I\n\x0f\x65valuation_jobs\x18\x01 \x03(\x0b\x32\x30.google.cloud.datalabeling.v1beta1.EvaluationJob\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xa6\x38\n\x13\x44\x61taLabelingService\x12\xb7\x01\n\rCreateDataset\x12\x37.google.cloud.datalabeling.v1beta1.CreateDatasetRequest\x1a*.google.cloud.datalabeling.v1beta1.Dataset"A\x82\xd3\xe4\x93\x02*"%/v1beta1/{parent=projects/*}/datasets:\x01*\xda\x41\x0eparent,dataset\x12\xa4\x01\n\nGetDataset\x12\x34.google.cloud.datalabeling.v1beta1.GetDatasetRequest\x1a*.google.cloud.datalabeling.v1beta1.Dataset"4\x82\xd3\xe4\x93\x02\'\x12%/v1beta1/{name=projects/*/datasets/*}\xda\x41\x04name\x12\xbe\x01\n\x0cListDatasets\x12\x36.google.cloud.datalabeling.v1beta1.ListDatasetsRequest\x1a\x37.google.cloud.datalabeling.v1beta1.ListDatasetsResponse"=\x82\xd3\xe4\x93\x02\'\x12%/v1beta1/{parent=projects/*}/datasets\xda\x41\rparent,filter\x12\x96\x01\n\rDeleteDataset\x12\x37.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest\x1a\x16.google.protobuf.Empty"4\x82\xd3\xe4\x93\x02\'*%/v1beta1/{name=projects/*/datasets/*}\xda\x41\x04name\x12\xf0\x01\n\nImportData\x12\x34.google.cloud.datalabeling.v1beta1.ImportDataRequest\x1a\x1d.google.longrunning.Operation"\x8c\x01\x82\xd3\xe4\x93\x02\x35"0/v1beta1/{name=projects/*/datasets/*}:importData:\x01*\xda\x41\x11name,input_config\xca\x41:\n\x1bImportDataOperationResponse\x12\x1bImportDataOperationMetadata\x12\x8a\x02\n\nExportData\x12\x34.google.cloud.datalabeling.v1beta1.ExportDataRequest\x1a\x1d.google.longrunning.Operation"\xa6\x01\x82\xd3\xe4\x93\x02\x35"0/v1beta1/{name=projects/*/datasets/*}:exportData:\x01*\xda\x41+name,annotated_dataset,filter,output_config\xca\x41:\n\x1b\x45xportDataOperationResponse\x12\x1b\x45xportDataOperationMetadata\x12\xb3\x01\n\x0bGetDataItem\x12\x35.google.cloud.datalabeling.v1beta1.GetDataItemRequest\x1a+.google.cloud.datalabeling.v1beta1.DataItem"@\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{name=projects/*/datasets/*/dataItems/*}\xda\x41\x04name\x12\xcd\x01\n\rListDataItems\x12\x37.google.cloud.datalabeling.v1beta1.ListDataItemsRequest\x1a\x38.google.cloud.datalabeling.v1beta1.ListDataItemsResponse"I\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{parent=projects/*/datasets/*}/dataItems\xda\x41\rparent,filter\x12\xd3\x01\n\x13GetAnnotatedDataset\x12=.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest\x1a\x33.google.cloud.datalabeling.v1beta1.AnnotatedDataset"H\x82\xd3\xe4\x93\x02;\x12\x39/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*}\xda\x41\x04name\x12\xed\x01\n\x15ListAnnotatedDatasets\x12?.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest\x1a@.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse"Q\x82\xd3\xe4\x93\x02;\x12\x39/v1beta1/{parent=projects/*/datasets/*}/annotatedDatasets\xda\x41\rparent,filter\x12\xb5\x01\n\x16\x44\x65leteAnnotatedDataset\x12@.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest\x1a\x16.google.protobuf.Empty"A\x82\xd3\xe4\x93\x02;*9/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*}\x12\xed\x01\n\nLabelImage\x12\x34.google.cloud.datalabeling.v1beta1.LabelImageRequest\x1a\x1d.google.longrunning.Operation"\x89\x01\x82\xd3\xe4\x93\x02\x38"3/v1beta1/{parent=projects/*/datasets/*}/image:label:\x01*\xda\x41\x1bparent,basic_config,feature\xca\x41*\n\x10\x41nnotatedDataset\x12\x16LabelOperationMetadata\x12\xed\x01\n\nLabelVideo\x12\x34.google.cloud.datalabeling.v1beta1.LabelVideoRequest\x1a\x1d.google.longrunning.Operation"\x89\x01\x82\xd3\xe4\x93\x02\x38"3/v1beta1/{parent=projects/*/datasets/*}/video:label:\x01*\xda\x41\x1bparent,basic_config,feature\xca\x41*\n\x10\x41nnotatedDataset\x12\x16LabelOperationMetadata\x12\xea\x01\n\tLabelText\x12\x33.google.cloud.datalabeling.v1beta1.LabelTextRequest\x1a\x1d.google.longrunning.Operation"\x88\x01\x82\xd3\xe4\x93\x02\x37"2/v1beta1/{parent=projects/*/datasets/*}/text:label:\x01*\xda\x41\x1bparent,basic_config,feature\xca\x41*\n\x10\x41nnotatedDataset\x12\x16LabelOperationMetadata\x12\xca\x01\n\nGetExample\x12\x34.google.cloud.datalabeling.v1beta1.GetExampleRequest\x1a*.google.cloud.datalabeling.v1beta1.Example"Z\x82\xd3\xe4\x93\x02\x46\x12\x44/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*/examples/*}\xda\x41\x0bname,filter\x12\xdd\x01\n\x0cListExamples\x12\x36.google.cloud.datalabeling.v1beta1.ListExamplesRequest\x1a\x37.google.cloud.datalabeling.v1beta1.ListExamplesResponse"\\\x82\xd3\xe4\x93\x02\x46\x12\x44/v1beta1/{parent=projects/*/datasets/*/annotatedDatasets/*}/examples\xda\x41\rparent,filter\x12\xeb\x01\n\x17\x43reateAnnotationSpecSet\x12\x41.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest\x1a\x34.google.cloud.datalabeling.v1beta1.AnnotationSpecSet"W\x82\xd3\xe4\x93\x02\x34"//v1beta1/{parent=projects/*}/annotationSpecSets:\x01*\xda\x41\x1aparent,annotation_spec_set\x12\xcc\x01\n\x14GetAnnotationSpecSet\x12>.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest\x1a\x34.google.cloud.datalabeling.v1beta1.AnnotationSpecSet">\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{name=projects/*/annotationSpecSets/*}\xda\x41\x04name\x12\xe6\x01\n\x16ListAnnotationSpecSets\x12@.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest\x1a\x41.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse"G\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{parent=projects/*}/annotationSpecSets\xda\x41\rparent,filter\x12\xb4\x01\n\x17\x44\x65leteAnnotationSpecSet\x12\x41.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest\x1a\x16.google.protobuf.Empty">\x82\xd3\xe4\x93\x02\x31*//v1beta1/{name=projects/*/annotationSpecSets/*}\xda\x41\x04name\x12\xe5\x01\n\x11\x43reateInstruction\x12;.google.cloud.datalabeling.v1beta1.CreateInstructionRequest\x1a\x1d.google.longrunning.Operation"t\x82\xd3\xe4\x93\x02.")/v1beta1/{parent=projects/*}/instructions:\x01*\xda\x41\x12parent,instruction\xca\x41(\n\x0bInstruction\x12\x19\x43reateInstructionMetadata\x12\xb4\x01\n\x0eGetInstruction\x12\x38.google.cloud.datalabeling.v1beta1.GetInstructionRequest\x1a..google.cloud.datalabeling.v1beta1.Instruction"8\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{name=projects/*/instructions/*}\xda\x41\x04name\x12\xce\x01\n\x10ListInstructions\x12:.google.cloud.datalabeling.v1beta1.ListInstructionsRequest\x1a;.google.cloud.datalabeling.v1beta1.ListInstructionsResponse"A\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{parent=projects/*}/instructions\xda\x41\rparent,filter\x12\xa2\x01\n\x11\x44\x65leteInstruction\x12;.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest\x1a\x16.google.protobuf.Empty"8\x82\xd3\xe4\x93\x02+*)/v1beta1/{name=projects/*/instructions/*}\xda\x41\x04name\x12\xbb\x01\n\rGetEvaluation\x12\x37.google.cloud.datalabeling.v1beta1.GetEvaluationRequest\x1a-.google.cloud.datalabeling.v1beta1.Evaluation"B\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta1/{name=projects/*/datasets/*/evaluations/*}\xda\x41\x04name\x12\xd7\x01\n\x11SearchEvaluations\x12;.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest\x1a<.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse"G\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{parent=projects/*}/evaluations:search\xda\x41\rparent,filter\x12\x88\x02\n\x18SearchExampleComparisons\x12\x42.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest\x1a\x43.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse"c\x82\xd3\xe4\x93\x02T"O/v1beta1/{parent=projects/*/datasets/*/evaluations/*}/exampleComparisons:search:\x01*\xda\x41\x06parent\x12\xcb\x01\n\x13\x43reateEvaluationJob\x12=.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest\x1a\x30.google.cloud.datalabeling.v1beta1.EvaluationJob"C\x82\xd3\xe4\x93\x02\x30"+/v1beta1/{parent=projects/*}/evaluationJobs:\x01*\xda\x41\nparent,job\x12\xf7\x01\n\x13UpdateEvaluationJob\x12=.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest\x1a\x30.google.cloud.datalabeling.v1beta1.EvaluationJob"o\x82\xd3\xe4\x93\x02L2:/v1beta1/{evaluation_job.name=projects/*/evaluationJobs/*}:\x0e\x65valuation_job\xda\x41\x1a\x65valuation_job,update_mask\x12\xbc\x01\n\x10GetEvaluationJob\x12:.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest\x1a\x30.google.cloud.datalabeling.v1beta1.EvaluationJob":\x82\xd3\xe4\x93\x02-\x12+/v1beta1/{name=projects/*/evaluationJobs/*}\xda\x41\x04name\x12\xaf\x01\n\x12PauseEvaluationJob\x12<.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest\x1a\x16.google.protobuf.Empty"C\x82\xd3\xe4\x93\x02\x36"1/v1beta1/{name=projects/*/evaluationJobs/*}:pause:\x01*\xda\x41\x04name\x12\xb2\x01\n\x13ResumeEvaluationJob\x12=.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest\x1a\x16.google.protobuf.Empty"D\x82\xd3\xe4\x93\x02\x37"2/v1beta1/{name=projects/*/evaluationJobs/*}:resume:\x01*\xda\x41\x04name\x12\xa8\x01\n\x13\x44\x65leteEvaluationJob\x12=.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest\x1a\x16.google.protobuf.Empty":\x82\xd3\xe4\x93\x02-*+/v1beta1/{name=projects/*/evaluationJobs/*}\xda\x41\x04name\x12\xd6\x01\n\x12ListEvaluationJobs\x12<.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest\x1a=.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse"C\x82\xd3\xe4\x93\x02-\x12+/v1beta1/{parent=projects/*}/evaluationJobs\xda\x41\rparent,filter\x1aO\xca\x41\x1b\x64\x61talabeling.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBx\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3' - ), + serialized_options=b"\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\nCgoogle/cloud/datalabeling_v1beta1/proto/data_labeling_service.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x41google/cloud/datalabeling_v1beta1/proto/annotation_spec_set.proto\x1a\x35google/cloud/datalabeling_v1beta1/proto/dataset.proto\x1a\x38google/cloud/datalabeling_v1beta1/proto/evaluation.proto\x1a\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&datalabeling.googleapis.com/Evaluation\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01"x\n\x19SearchEvaluationsResponse\x12\x42\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32-.google.cloud.datalabeling.v1beta1.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x92\x01\n\x1fSearchExampleComparisonsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&datalabeling.googleapis.com/Evaluation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01"\xdb\x02\n SearchExampleComparisonsResponse\x12r\n\x13\x65xample_comparisons\x18\x01 \x03(\x0b\x32U.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\xa9\x01\n\x11\x45xampleComparison\x12H\n\x14ground_truth_example\x18\x01 \x01(\x0b\x32*.google.cloud.datalabeling.v1beta1.Example\x12J\n\x16model_created_examples\x18\x02 \x03(\x0b\x32*.google.cloud.datalabeling.v1beta1.Example"\xa5\x01\n\x1a\x43reateEvaluationJobRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x42\n\x03job\x18\x02 \x01(\x0b\x32\x30.google.cloud.datalabeling.v1beta1.EvaluationJobB\x03\xe0\x41\x02"\xa1\x01\n\x1aUpdateEvaluationJobRequest\x12M\n\x0e\x65valuation_job\x18\x01 \x01(\x0b\x32\x30.google.cloud.datalabeling.v1beta1.EvaluationJobB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"Z\n\x17GetEvaluationJobRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)datalabeling.googleapis.com/EvaluationJob"\\\n\x19PauseEvaluationJobRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)datalabeling.googleapis.com/EvaluationJob"]\n\x1aResumeEvaluationJobRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)datalabeling.googleapis.com/EvaluationJob"]\n\x1a\x44\x65leteEvaluationJobRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)datalabeling.googleapis.com/EvaluationJob"\xa6\x01\n\x19ListEvaluationJobsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01"\x80\x01\n\x1aListEvaluationJobsResponse\x12I\n\x0f\x65valuation_jobs\x18\x01 \x03(\x0b\x32\x30.google.cloud.datalabeling.v1beta1.EvaluationJob\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xa6\x38\n\x13\x44\x61taLabelingService\x12\xb7\x01\n\rCreateDataset\x12\x37.google.cloud.datalabeling.v1beta1.CreateDatasetRequest\x1a*.google.cloud.datalabeling.v1beta1.Dataset"A\x82\xd3\xe4\x93\x02*"%/v1beta1/{parent=projects/*}/datasets:\x01*\xda\x41\x0eparent,dataset\x12\xa4\x01\n\nGetDataset\x12\x34.google.cloud.datalabeling.v1beta1.GetDatasetRequest\x1a*.google.cloud.datalabeling.v1beta1.Dataset"4\x82\xd3\xe4\x93\x02\'\x12%/v1beta1/{name=projects/*/datasets/*}\xda\x41\x04name\x12\xbe\x01\n\x0cListDatasets\x12\x36.google.cloud.datalabeling.v1beta1.ListDatasetsRequest\x1a\x37.google.cloud.datalabeling.v1beta1.ListDatasetsResponse"=\x82\xd3\xe4\x93\x02\'\x12%/v1beta1/{parent=projects/*}/datasets\xda\x41\rparent,filter\x12\x96\x01\n\rDeleteDataset\x12\x37.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest\x1a\x16.google.protobuf.Empty"4\x82\xd3\xe4\x93\x02\'*%/v1beta1/{name=projects/*/datasets/*}\xda\x41\x04name\x12\xf0\x01\n\nImportData\x12\x34.google.cloud.datalabeling.v1beta1.ImportDataRequest\x1a\x1d.google.longrunning.Operation"\x8c\x01\x82\xd3\xe4\x93\x02\x35"0/v1beta1/{name=projects/*/datasets/*}:importData:\x01*\xda\x41\x11name,input_config\xca\x41:\n\x1bImportDataOperationResponse\x12\x1bImportDataOperationMetadata\x12\x8a\x02\n\nExportData\x12\x34.google.cloud.datalabeling.v1beta1.ExportDataRequest\x1a\x1d.google.longrunning.Operation"\xa6\x01\x82\xd3\xe4\x93\x02\x35"0/v1beta1/{name=projects/*/datasets/*}:exportData:\x01*\xda\x41+name,annotated_dataset,filter,output_config\xca\x41:\n\x1b\x45xportDataOperationResponse\x12\x1b\x45xportDataOperationMetadata\x12\xb3\x01\n\x0bGetDataItem\x12\x35.google.cloud.datalabeling.v1beta1.GetDataItemRequest\x1a+.google.cloud.datalabeling.v1beta1.DataItem"@\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{name=projects/*/datasets/*/dataItems/*}\xda\x41\x04name\x12\xcd\x01\n\rListDataItems\x12\x37.google.cloud.datalabeling.v1beta1.ListDataItemsRequest\x1a\x38.google.cloud.datalabeling.v1beta1.ListDataItemsResponse"I\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{parent=projects/*/datasets/*}/dataItems\xda\x41\rparent,filter\x12\xd3\x01\n\x13GetAnnotatedDataset\x12=.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest\x1a\x33.google.cloud.datalabeling.v1beta1.AnnotatedDataset"H\x82\xd3\xe4\x93\x02;\x12\x39/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*}\xda\x41\x04name\x12\xed\x01\n\x15ListAnnotatedDatasets\x12?.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest\x1a@.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse"Q\x82\xd3\xe4\x93\x02;\x12\x39/v1beta1/{parent=projects/*/datasets/*}/annotatedDatasets\xda\x41\rparent,filter\x12\xb5\x01\n\x16\x44\x65leteAnnotatedDataset\x12@.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest\x1a\x16.google.protobuf.Empty"A\x82\xd3\xe4\x93\x02;*9/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*}\x12\xed\x01\n\nLabelImage\x12\x34.google.cloud.datalabeling.v1beta1.LabelImageRequest\x1a\x1d.google.longrunning.Operation"\x89\x01\x82\xd3\xe4\x93\x02\x38"3/v1beta1/{parent=projects/*/datasets/*}/image:label:\x01*\xda\x41\x1bparent,basic_config,feature\xca\x41*\n\x10\x41nnotatedDataset\x12\x16LabelOperationMetadata\x12\xed\x01\n\nLabelVideo\x12\x34.google.cloud.datalabeling.v1beta1.LabelVideoRequest\x1a\x1d.google.longrunning.Operation"\x89\x01\x82\xd3\xe4\x93\x02\x38"3/v1beta1/{parent=projects/*/datasets/*}/video:label:\x01*\xda\x41\x1bparent,basic_config,feature\xca\x41*\n\x10\x41nnotatedDataset\x12\x16LabelOperationMetadata\x12\xea\x01\n\tLabelText\x12\x33.google.cloud.datalabeling.v1beta1.LabelTextRequest\x1a\x1d.google.longrunning.Operation"\x88\x01\x82\xd3\xe4\x93\x02\x37"2/v1beta1/{parent=projects/*/datasets/*}/text:label:\x01*\xda\x41\x1bparent,basic_config,feature\xca\x41*\n\x10\x41nnotatedDataset\x12\x16LabelOperationMetadata\x12\xca\x01\n\nGetExample\x12\x34.google.cloud.datalabeling.v1beta1.GetExampleRequest\x1a*.google.cloud.datalabeling.v1beta1.Example"Z\x82\xd3\xe4\x93\x02\x46\x12\x44/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*/examples/*}\xda\x41\x0bname,filter\x12\xdd\x01\n\x0cListExamples\x12\x36.google.cloud.datalabeling.v1beta1.ListExamplesRequest\x1a\x37.google.cloud.datalabeling.v1beta1.ListExamplesResponse"\\\x82\xd3\xe4\x93\x02\x46\x12\x44/v1beta1/{parent=projects/*/datasets/*/annotatedDatasets/*}/examples\xda\x41\rparent,filter\x12\xeb\x01\n\x17\x43reateAnnotationSpecSet\x12\x41.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest\x1a\x34.google.cloud.datalabeling.v1beta1.AnnotationSpecSet"W\x82\xd3\xe4\x93\x02\x34"//v1beta1/{parent=projects/*}/annotationSpecSets:\x01*\xda\x41\x1aparent,annotation_spec_set\x12\xcc\x01\n\x14GetAnnotationSpecSet\x12>.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest\x1a\x34.google.cloud.datalabeling.v1beta1.AnnotationSpecSet">\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{name=projects/*/annotationSpecSets/*}\xda\x41\x04name\x12\xe6\x01\n\x16ListAnnotationSpecSets\x12@.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest\x1a\x41.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse"G\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{parent=projects/*}/annotationSpecSets\xda\x41\rparent,filter\x12\xb4\x01\n\x17\x44\x65leteAnnotationSpecSet\x12\x41.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest\x1a\x16.google.protobuf.Empty">\x82\xd3\xe4\x93\x02\x31*//v1beta1/{name=projects/*/annotationSpecSets/*}\xda\x41\x04name\x12\xe5\x01\n\x11\x43reateInstruction\x12;.google.cloud.datalabeling.v1beta1.CreateInstructionRequest\x1a\x1d.google.longrunning.Operation"t\x82\xd3\xe4\x93\x02.")/v1beta1/{parent=projects/*}/instructions:\x01*\xda\x41\x12parent,instruction\xca\x41(\n\x0bInstruction\x12\x19\x43reateInstructionMetadata\x12\xb4\x01\n\x0eGetInstruction\x12\x38.google.cloud.datalabeling.v1beta1.GetInstructionRequest\x1a..google.cloud.datalabeling.v1beta1.Instruction"8\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{name=projects/*/instructions/*}\xda\x41\x04name\x12\xce\x01\n\x10ListInstructions\x12:.google.cloud.datalabeling.v1beta1.ListInstructionsRequest\x1a;.google.cloud.datalabeling.v1beta1.ListInstructionsResponse"A\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{parent=projects/*}/instructions\xda\x41\rparent,filter\x12\xa2\x01\n\x11\x44\x65leteInstruction\x12;.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest\x1a\x16.google.protobuf.Empty"8\x82\xd3\xe4\x93\x02+*)/v1beta1/{name=projects/*/instructions/*}\xda\x41\x04name\x12\xbb\x01\n\rGetEvaluation\x12\x37.google.cloud.datalabeling.v1beta1.GetEvaluationRequest\x1a-.google.cloud.datalabeling.v1beta1.Evaluation"B\x82\xd3\xe4\x93\x02\x35\x12\x33/v1beta1/{name=projects/*/datasets/*/evaluations/*}\xda\x41\x04name\x12\xd7\x01\n\x11SearchEvaluations\x12;.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest\x1a<.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse"G\x82\xd3\xe4\x93\x02\x31\x12//v1beta1/{parent=projects/*}/evaluations:search\xda\x41\rparent,filter\x12\x88\x02\n\x18SearchExampleComparisons\x12\x42.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest\x1a\x43.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse"c\x82\xd3\xe4\x93\x02T"O/v1beta1/{parent=projects/*/datasets/*/evaluations/*}/exampleComparisons:search:\x01*\xda\x41\x06parent\x12\xcb\x01\n\x13\x43reateEvaluationJob\x12=.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest\x1a\x30.google.cloud.datalabeling.v1beta1.EvaluationJob"C\x82\xd3\xe4\x93\x02\x30"+/v1beta1/{parent=projects/*}/evaluationJobs:\x01*\xda\x41\nparent,job\x12\xf7\x01\n\x13UpdateEvaluationJob\x12=.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest\x1a\x30.google.cloud.datalabeling.v1beta1.EvaluationJob"o\x82\xd3\xe4\x93\x02L2:/v1beta1/{evaluation_job.name=projects/*/evaluationJobs/*}:\x0e\x65valuation_job\xda\x41\x1a\x65valuation_job,update_mask\x12\xbc\x01\n\x10GetEvaluationJob\x12:.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest\x1a\x30.google.cloud.datalabeling.v1beta1.EvaluationJob":\x82\xd3\xe4\x93\x02-\x12+/v1beta1/{name=projects/*/evaluationJobs/*}\xda\x41\x04name\x12\xaf\x01\n\x12PauseEvaluationJob\x12<.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest\x1a\x16.google.protobuf.Empty"C\x82\xd3\xe4\x93\x02\x36"1/v1beta1/{name=projects/*/evaluationJobs/*}:pause:\x01*\xda\x41\x04name\x12\xb2\x01\n\x13ResumeEvaluationJob\x12=.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest\x1a\x16.google.protobuf.Empty"D\x82\xd3\xe4\x93\x02\x37"2/v1beta1/{name=projects/*/evaluationJobs/*}:resume:\x01*\xda\x41\x04name\x12\xa8\x01\n\x13\x44\x65leteEvaluationJob\x12=.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest\x1a\x16.google.protobuf.Empty":\x82\xd3\xe4\x93\x02-*+/v1beta1/{name=projects/*/evaluationJobs/*}\xda\x41\x04name\x12\xd6\x01\n\x12ListEvaluationJobs\x12<.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest\x1a=.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse"C\x82\xd3\xe4\x93\x02-\x12+/v1beta1/{parent=projects/*}/evaluationJobs\xda\x41\rparent,filter\x1aO\xca\x41\x1b\x64\x61talabeling.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBx\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -77,6 +71,7 @@ full_name="google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="FEATURE_UNSPECIFIED", @@ -84,12 +79,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CLASSIFICATION", index=1, number=1, serialized_options=None, type=None + name="CLASSIFICATION", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BOUNDING_BOX", index=2, number=2, serialized_options=None, type=None + name="BOUNDING_BOX", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ORIENTED_BOUNDING_BOX", @@ -97,15 +103,31 @@ number=6, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BOUNDING_POLY", index=4, number=3, serialized_options=None, type=None + name="BOUNDING_POLY", + index=4, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POLYLINE", index=5, number=4, serialized_options=None, type=None + name="POLYLINE", + index=5, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SEGMENTATION", index=6, number=5, serialized_options=None, type=None + name="SEGMENTATION", + index=6, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -120,6 +142,7 @@ full_name="google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="FEATURE_UNSPECIFIED", @@ -127,9 +150,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CLASSIFICATION", index=1, number=1, serialized_options=None, type=None + name="CLASSIFICATION", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="OBJECT_DETECTION", @@ -137,6 +166,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="OBJECT_TRACKING", @@ -144,9 +174,15 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EVENT", index=4, number=4, serialized_options=None, type=None + name="EVENT", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -161,6 +197,7 @@ full_name="google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="FEATURE_UNSPECIFIED", @@ -168,6 +205,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="TEXT_CLASSIFICATION", @@ -175,6 +213,7 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="TEXT_ENTITY_EXTRACTION", @@ -182,6 +221,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -198,6 +238,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -208,16 +249,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="dataset", @@ -234,8 +274,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -257,6 +298,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -267,17 +309,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#datalabeling.googleapis.com/Dataset" - ), + serialized_options=b"\340A\002\372A%\n#datalabeling.googleapis.com/Dataset", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -298,6 +339,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -308,16 +350,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -328,14 +369,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -352,8 +394,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -364,14 +407,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -393,6 +437,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="datasets", @@ -411,6 +456,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -421,7 +467,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -429,6 +475,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -450,6 +497,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -460,17 +508,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#datalabeling.googleapis.com/Dataset" - ), + serialized_options=b"\340A\002\372A%\n#datalabeling.googleapis.com/Dataset", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -491,6 +538,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -501,16 +549,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#datalabeling.googleapis.com/Dataset" - ), + serialized_options=b"\340A\002\372A%\n#datalabeling.googleapis.com/Dataset", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="input_config", @@ -527,8 +574,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="user_email_address", @@ -539,7 +587,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -547,6 +595,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -568,6 +617,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -578,16 +628,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#datalabeling.googleapis.com/Dataset" - ), + serialized_options=b"\340A\002\372A%\n#datalabeling.googleapis.com/Dataset", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotated_dataset", @@ -598,16 +647,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A.\n,datalabeling.googleapis.com/AnnotatedDataset" - ), + serialized_options=b"\340A\002\372A.\n,datalabeling.googleapis.com/AnnotatedDataset", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -618,14 +666,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="output_config", @@ -642,8 +691,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="user_email_address", @@ -654,7 +704,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -662,6 +712,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -683,6 +734,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -693,17 +745,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A&\n$datalabeling.googleapis.com/DataItem" - ), + serialized_options=b"\340A\002\372A&\n$datalabeling.googleapis.com/DataItem", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -724,6 +775,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -734,16 +786,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#datalabeling.googleapis.com/Dataset" - ), + serialized_options=b"\340A\002\372A%\n#datalabeling.googleapis.com/Dataset", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -754,14 +805,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -778,8 +830,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -790,14 +843,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -819,6 +873,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="data_items", @@ -837,6 +892,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -847,7 +903,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -855,6 +911,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -876,6 +933,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -886,17 +944,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A.\n,datalabeling.googleapis.com/AnnotatedDataset" - ), + serialized_options=b"\340A\002\372A.\n,datalabeling.googleapis.com/AnnotatedDataset", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -917,6 +974,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -927,16 +985,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#datalabeling.googleapis.com/Dataset" - ), + serialized_options=b"\340A\002\372A%\n#datalabeling.googleapis.com/Dataset", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -947,14 +1004,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -971,8 +1029,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -983,14 +1042,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1012,6 +1072,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotated_datasets", @@ -1030,6 +1091,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -1040,7 +1102,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1048,6 +1110,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1069,6 +1132,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1079,17 +1143,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A.\n,datalabeling.googleapis.com/AnnotatedDataset" - ), + serialized_options=b"\340A\002\372A.\n,datalabeling.googleapis.com/AnnotatedDataset", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -1110,6 +1173,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="image_classification_config", @@ -1128,6 +1192,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_poly_config", @@ -1146,6 +1211,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="polyline_config", @@ -1164,6 +1230,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="segmentation_config", @@ -1182,6 +1249,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="parent", @@ -1192,16 +1260,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#datalabeling.googleapis.com/Dataset" - ), + serialized_options=b"\340A\002\372A%\n#datalabeling.googleapis.com/Dataset", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="basic_config", @@ -1218,8 +1285,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="feature", @@ -1236,13 +1304,14 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_LABELIMAGEREQUEST_FEATURE], + enum_types=[_LABELIMAGEREQUEST_FEATURE,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1253,8 +1322,9 @@ full_name="google.cloud.datalabeling.v1beta1.LabelImageRequest.request_config", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=2619, serialized_end=3391, @@ -1267,6 +1337,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="video_classification_config", @@ -1285,6 +1356,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="object_detection_config", @@ -1303,6 +1375,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="object_tracking_config", @@ -1321,6 +1394,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="event_config", @@ -1339,6 +1413,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="parent", @@ -1349,16 +1424,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#datalabeling.googleapis.com/Dataset" - ), + serialized_options=b"\340A\002\372A%\n#datalabeling.googleapis.com/Dataset", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="basic_config", @@ -1375,8 +1449,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="feature", @@ -1393,13 +1468,14 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_LABELVIDEOREQUEST_FEATURE], + enum_types=[_LABELVIDEOREQUEST_FEATURE,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1410,8 +1486,9 @@ full_name="google.cloud.datalabeling.v1beta1.LabelVideoRequest.request_config", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=3394, serialized_end=4128, @@ -1424,6 +1501,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="text_classification_config", @@ -1442,6 +1520,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text_entity_extraction_config", @@ -1460,6 +1539,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="parent", @@ -1470,16 +1550,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#datalabeling.googleapis.com/Dataset" - ), + serialized_options=b"\340A\002\372A%\n#datalabeling.googleapis.com/Dataset", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="basic_config", @@ -1496,8 +1575,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="feature", @@ -1514,13 +1594,14 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_LABELTEXTREQUEST_FEATURE], + enum_types=[_LABELTEXTREQUEST_FEATURE,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1531,8 +1612,9 @@ full_name="google.cloud.datalabeling.v1beta1.LabelTextRequest.request_config", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=4131, serialized_end=4688, @@ -1545,6 +1627,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1555,16 +1638,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#datalabeling.googleapis.com/Example" - ), + serialized_options=b"\340A\002\372A%\n#datalabeling.googleapis.com/Example", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -1575,14 +1657,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1604,6 +1687,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1614,16 +1698,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A.\n,datalabeling.googleapis.com/AnnotatedDataset" - ), + serialized_options=b"\340A\002\372A.\n,datalabeling.googleapis.com/AnnotatedDataset", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -1634,14 +1717,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -1658,8 +1742,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -1670,14 +1755,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1699,6 +1785,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="examples", @@ -1717,6 +1804,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -1727,7 +1815,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1735,6 +1823,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1756,6 +1845,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1766,16 +1856,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_spec_set", @@ -1792,8 +1881,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1815,6 +1905,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1825,17 +1916,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A/\n-datalabeling.googleapis.com/AnnotationSpecSet" - ), + serialized_options=b"\340A\002\372A/\n-datalabeling.googleapis.com/AnnotationSpecSet", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -1856,6 +1946,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1866,16 +1957,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -1886,14 +1976,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -1910,8 +2001,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -1922,14 +2014,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1951,6 +2044,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec_sets", @@ -1969,6 +2063,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -1979,7 +2074,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1987,6 +2082,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2008,6 +2104,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -2018,17 +2115,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A/\n-datalabeling.googleapis.com/AnnotationSpecSet" - ), + serialized_options=b"\340A\002\372A/\n-datalabeling.googleapis.com/AnnotationSpecSet", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -2049,6 +2145,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -2059,16 +2156,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="instruction", @@ -2085,8 +2181,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2108,6 +2205,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -2118,17 +2216,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A)\n'datalabeling.googleapis.com/Instruction" - ), + serialized_options=b"\340A\002\372A)\n'datalabeling.googleapis.com/Instruction", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -2149,6 +2246,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -2159,17 +2257,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A)\n'datalabeling.googleapis.com/Instruction" - ), + serialized_options=b"\340A\002\372A)\n'datalabeling.googleapis.com/Instruction", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -2190,6 +2287,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -2200,16 +2298,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -2220,14 +2317,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -2244,8 +2342,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -2256,14 +2355,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2285,6 +2385,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="instructions", @@ -2303,6 +2404,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -2313,7 +2415,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2321,6 +2423,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2342,6 +2445,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -2352,17 +2456,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A(\n&datalabeling.googleapis.com/Evaluation" - ), + serialized_options=b"\340A\002\372A(\n&datalabeling.googleapis.com/Evaluation", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -2383,6 +2486,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -2393,16 +2497,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A(\n&datalabeling.googleapis.com/Evaluation" - ), + serialized_options=b"\340A\002\372A(\n&datalabeling.googleapis.com/Evaluation", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -2413,14 +2516,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -2437,8 +2541,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -2449,14 +2554,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2478,6 +2584,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="evaluations", @@ -2496,6 +2603,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -2506,7 +2614,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2514,6 +2622,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2535,6 +2644,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -2545,16 +2655,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A(\n&datalabeling.googleapis.com/Evaluation" - ), + serialized_options=b"\340A\002\372A(\n&datalabeling.googleapis.com/Evaluation", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -2571,8 +2680,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -2583,14 +2693,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2612,6 +2723,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="ground_truth_example", @@ -2630,6 +2742,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="model_created_examples", @@ -2648,6 +2761,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2668,6 +2782,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="example_comparisons", @@ -2686,6 +2801,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -2696,7 +2812,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -2704,10 +2820,11 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_SEARCHEXAMPLECOMPARISONSRESPONSE_EXAMPLECOMPARISON], + nested_types=[_SEARCHEXAMPLECOMPARISONSRESPONSE_EXAMPLECOMPARISON,], enum_types=[], serialized_options=None, is_extendable=False, @@ -2725,6 +2842,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -2735,16 +2853,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job", @@ -2761,8 +2878,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2784,6 +2902,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="evaluation_job", @@ -2800,8 +2919,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_mask", @@ -2818,8 +2938,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2841,6 +2962,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -2851,17 +2973,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)datalabeling.googleapis.com/EvaluationJob" - ), + serialized_options=b"\340A\002\372A+\n)datalabeling.googleapis.com/EvaluationJob", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -2882,6 +3003,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -2892,17 +3014,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)datalabeling.googleapis.com/EvaluationJob" - ), + serialized_options=b"\340A\002\372A+\n)datalabeling.googleapis.com/EvaluationJob", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -2923,6 +3044,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -2933,17 +3055,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)datalabeling.googleapis.com/EvaluationJob" - ), + serialized_options=b"\340A\002\372A+\n)datalabeling.googleapis.com/EvaluationJob", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -2964,6 +3085,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -2974,17 +3096,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A+\n)datalabeling.googleapis.com/EvaluationJob" - ), + serialized_options=b"\340A\002\372A+\n)datalabeling.googleapis.com/EvaluationJob", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -3005,6 +3126,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -3015,16 +3137,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" - ), + serialized_options=b"\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -3035,14 +3156,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -3059,8 +3181,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -3071,14 +3194,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -3100,6 +3224,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="evaluation_jobs", @@ -3118,6 +3243,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -3128,7 +3254,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -3136,6 +3262,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -3461,50 +3588,53 @@ CreateDatasetRequest = _reflection.GeneratedProtocolMessageType( "CreateDatasetRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEDATASETREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for CreateDataset. + { + "DESCRIPTOR": _CREATEDATASETREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for CreateDataset. + Attributes: parent: Required. Dataset resource parent, format: - projects/{project\_id} + projects/{project_id} dataset: Required. The dataset to be created. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateDatasetRequest) - ), + }, ) _sym_db.RegisterMessage(CreateDatasetRequest) GetDatasetRequest = _reflection.GeneratedProtocolMessageType( "GetDatasetRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETDATASETREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for GetDataSet. + { + "DESCRIPTOR": _GETDATASETREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for GetDataSet. + Attributes: name: Required. Dataset resource name, format: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetDatasetRequest) - ), + }, ) _sym_db.RegisterMessage(GetDatasetRequest) ListDatasetsRequest = _reflection.GeneratedProtocolMessageType( "ListDatasetsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTDATASETSREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for ListDataset. + { + "DESCRIPTOR": _LISTDATASETSREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for ListDataset. + Attributes: parent: Required. Dataset resource parent, format: - projects/{project\_id} + projects/{project_id} filter: Optional. Filter on dataset is not supported at this moment. page_size: @@ -3512,24 +3642,25 @@ than requested. Default value is 100. page_token: Optional. A token identifying a page of results for the server - to return. Typically obtained by [ListDatasetsResponse.next\_p - age\_token][google.cloud.datalabeling.v1beta1.ListDatasetsResp - onse.next\_page\_token] of the previous + to return. Typically obtained by [ListDatasetsResponse.next_pa + ge_token][google.cloud.datalabeling.v1beta1.ListDatasetsRespon + se.next_page_token] of the previous [DataLabelingService.ListDatasets] call. Returns the first page if empty. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListDatasetsRequest) - ), + }, ) _sym_db.RegisterMessage(ListDatasetsRequest) ListDatasetsResponse = _reflection.GeneratedProtocolMessageType( "ListDatasetsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTDATASETSRESPONSE, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Results of listing datasets within a project. + { + "DESCRIPTOR": _LISTDATASETSRESPONSE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Results of listing datasets within a project. + Attributes: datasets: The list of datasets to return. @@ -3537,38 +3668,40 @@ A token to retrieve next page of results. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListDatasetsResponse) - ), + }, ) _sym_db.RegisterMessage(ListDatasetsResponse) DeleteDatasetRequest = _reflection.GeneratedProtocolMessageType( "DeleteDatasetRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEDATASETREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for DeleteDataset. + { + "DESCRIPTOR": _DELETEDATASETREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for DeleteDataset. + Attributes: name: Required. Dataset resource name, format: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteDatasetRequest) ImportDataRequest = _reflection.GeneratedProtocolMessageType( "ImportDataRequest", (_message.Message,), - dict( - DESCRIPTOR=_IMPORTDATAREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for ImportData API. + { + "DESCRIPTOR": _IMPORTDATAREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for ImportData API. + Attributes: name: Required. Dataset resource name, format: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} input_config: Required. Specify the input source of the data. user_email_address: @@ -3576,26 +3709,28 @@ notified by email. If empty no notification will be sent. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImportDataRequest) - ), + }, ) _sym_db.RegisterMessage(ImportDataRequest) ExportDataRequest = _reflection.GeneratedProtocolMessageType( "ExportDataRequest", (_message.Message,), - dict( - DESCRIPTOR=_EXPORTDATAREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for ExportData API. + { + "DESCRIPTOR": _EXPORTDATAREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for ExportData API. + Attributes: name: Required. Dataset resource name, format: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} annotated_dataset: Required. Annotated dataset resource name. DataItem in Dataset and their annotations in specified annotated dataset will be - exported. It's in format of projects/{project\_id}/datasets/{d - ataset\_id}/annotatedDatasets/ {annotated\_dataset\_id} + exported. It’s in format of + projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + {annotated_dataset_id} filter: Optional. Filter is not supported at this moment. output_config: @@ -3605,38 +3740,40 @@ notified by email. If empty no notification will be sent. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ExportDataRequest) - ), + }, ) _sym_db.RegisterMessage(ExportDataRequest) GetDataItemRequest = _reflection.GeneratedProtocolMessageType( "GetDataItemRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETDATAITEMREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for GetDataItem. + { + "DESCRIPTOR": _GETDATAITEMREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for GetDataItem. + Attributes: name: Required. The name of the data item to get, format: projects/{ - project\_id}/datasets/{dataset\_id}/dataItems/{data\_item\_id} + project_id}/datasets/{dataset_id}/dataItems/{data_item_id} """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetDataItemRequest) - ), + }, ) _sym_db.RegisterMessage(GetDataItemRequest) ListDataItemsRequest = _reflection.GeneratedProtocolMessageType( "ListDataItemsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTDATAITEMSREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for ListDataItems. + { + "DESCRIPTOR": _LISTDATAITEMSREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for ListDataItems. + Attributes: parent: Required. Name of the dataset to list data items, format: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} filter: Optional. Filter is not supported at this moment. page_size: @@ -3644,24 +3781,25 @@ than requested. Default value is 100. page_token: Optional. A token identifying a page of results for the server - to return. Typically obtained by [ListDataItemsResponse.next\_ - page\_token][google.cloud.datalabeling.v1beta1.ListDataItemsRe - sponse.next\_page\_token] of the previous + to return. Typically obtained by [ListDataItemsResponse.next_p + age_token][google.cloud.datalabeling.v1beta1.ListDataItemsResp + onse.next_page_token] of the previous [DataLabelingService.ListDataItems] call. Return first page if empty. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListDataItemsRequest) - ), + }, ) _sym_db.RegisterMessage(ListDataItemsRequest) ListDataItemsResponse = _reflection.GeneratedProtocolMessageType( "ListDataItemsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTDATAITEMSRESPONSE, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Results of listing data items in a dataset. + { + "DESCRIPTOR": _LISTDATAITEMSRESPONSE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Results of listing data items in a dataset. + Attributes: data_items: The list of data items to return. @@ -3669,39 +3807,41 @@ A token to retrieve next page of results. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListDataItemsResponse) - ), + }, ) _sym_db.RegisterMessage(ListDataItemsResponse) GetAnnotatedDatasetRequest = _reflection.GeneratedProtocolMessageType( "GetAnnotatedDatasetRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETANNOTATEDDATASETREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for GetAnnotatedDataset. + { + "DESCRIPTOR": _GETANNOTATEDDATASETREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for GetAnnotatedDataset. + Attributes: name: - Required. Name of the annotated dataset to get, format: projec - ts/{project\_id}/datasets/{dataset\_id}/annotatedDatasets/ - {annotated\_dataset\_id} + Required. Name of the annotated dataset to get, format: + projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + {annotated_dataset_id} """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) - ), + }, ) _sym_db.RegisterMessage(GetAnnotatedDatasetRequest) ListAnnotatedDatasetsRequest = _reflection.GeneratedProtocolMessageType( "ListAnnotatedDatasetsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTANNOTATEDDATASETSREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for ListAnnotatedDatasets. + { + "DESCRIPTOR": _LISTANNOTATEDDATASETSREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for ListAnnotatedDatasets. + Attributes: parent: Required. Name of the dataset to list annotated datasets, - format: projects/{project\_id}/datasets/{dataset\_id} + format: projects/{project_id}/datasets/{dataset_id} filter: Optional. Filter is not supported at this moment. page_size: @@ -3710,23 +3850,24 @@ page_token: Optional. A token identifying a page of results for the server to return. Typically obtained by [ListAnnotatedDatasetsRespons - e.next\_page\_token][google.cloud.datalabeling.v1beta1.ListAnn - otatedDatasetsResponse.next\_page\_token] of the previous + e.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnot + atedDatasetsResponse.next_page_token] of the previous [DataLabelingService.ListAnnotatedDatasets] call. Return first page if empty. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) - ), + }, ) _sym_db.RegisterMessage(ListAnnotatedDatasetsRequest) ListAnnotatedDatasetsResponse = _reflection.GeneratedProtocolMessageType( "ListAnnotatedDatasetsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTANNOTATEDDATASETSRESPONSE, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Results of listing annotated datasets for a dataset. + { + "DESCRIPTOR": _LISTANNOTATEDDATASETSRESPONSE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Results of listing annotated datasets for a dataset. + Attributes: annotated_datasets: The list of annotated datasets to return. @@ -3734,200 +3875,207 @@ A token to retrieve next page of results. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) - ), + }, ) _sym_db.RegisterMessage(ListAnnotatedDatasetsResponse) DeleteAnnotatedDatasetRequest = _reflection.GeneratedProtocolMessageType( "DeleteAnnotatedDatasetRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEANNOTATEDDATASETREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for DeleteAnnotatedDataset. + { + "DESCRIPTOR": _DELETEANNOTATEDDATASETREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for DeleteAnnotatedDataset. + Attributes: name: - Required. Name of the annotated dataset to delete, format: pro - jects/{project\_id}/datasets/{dataset\_id}/annotatedDatasets/ - {annotated\_dataset\_id} + Required. Name of the annotated dataset to delete, format: + projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + {annotated_dataset_id} """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteAnnotatedDatasetRequest) LabelImageRequest = _reflection.GeneratedProtocolMessageType( "LabelImageRequest", (_message.Message,), - dict( - DESCRIPTOR=_LABELIMAGEREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for starting an image labeling task. + { + "DESCRIPTOR": _LABELIMAGEREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for starting an image labeling task. + Attributes: request_config: Required. Config for labeling tasks. The type of request config must match the selected feature. image_classification_config: Configuration for image classification task. One of - image\_classification\_config, bounding\_poly\_config, - polyline\_config and segmentation\_config are required. + image_classification_config, bounding_poly_config, + polyline_config and segmentation_config are required. bounding_poly_config: Configuration for bounding box and bounding poly task. One of - image\_classification\_config, bounding\_poly\_config, - polyline\_config and segmentation\_config are required. + image_classification_config, bounding_poly_config, + polyline_config and segmentation_config are required. polyline_config: Configuration for polyline task. One of - image\_classification\_config, bounding\_poly\_config, - polyline\_config and segmentation\_config are required. + image_classification_config, bounding_poly_config, + polyline_config and segmentation_config are required. segmentation_config: Configuration for segmentation task. One of - image\_classification\_config, bounding\_poly\_config, - polyline\_config and segmentation\_config are required. + image_classification_config, bounding_poly_config, + polyline_config and segmentation_config are required. parent: Required. Name of the dataset to request labeling task, - format: projects/{project\_id}/datasets/{dataset\_id} + format: projects/{project_id}/datasets/{dataset_id} basic_config: Required. Basic human annotation config. feature: Required. The type of image labeling task. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageRequest) - ), + }, ) _sym_db.RegisterMessage(LabelImageRequest) LabelVideoRequest = _reflection.GeneratedProtocolMessageType( "LabelVideoRequest", (_message.Message,), - dict( - DESCRIPTOR=_LABELVIDEOREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for LabelVideo. + { + "DESCRIPTOR": _LABELVIDEOREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for LabelVideo. + Attributes: request_config: Required. Config for labeling tasks. The type of request config must match the selected feature. video_classification_config: Configuration for video classification task. One of - video\_classification\_config, object\_detection\_config, - object\_tracking\_config and event\_config is required. + video_classification_config, object_detection_config, + object_tracking_config and event_config is required. object_detection_config: Configuration for video object detection task. One of - video\_classification\_config, object\_detection\_config, - object\_tracking\_config and event\_config is required. + video_classification_config, object_detection_config, + object_tracking_config and event_config is required. object_tracking_config: Configuration for video object tracking task. One of - video\_classification\_config, object\_detection\_config, - object\_tracking\_config and event\_config is required. + video_classification_config, object_detection_config, + object_tracking_config and event_config is required. event_config: Configuration for video event task. One of - video\_classification\_config, object\_detection\_config, - object\_tracking\_config and event\_config is required. + video_classification_config, object_detection_config, + object_tracking_config and event_config is required. parent: Required. Name of the dataset to request labeling task, - format: projects/{project\_id}/datasets/{dataset\_id} + format: projects/{project_id}/datasets/{dataset_id} basic_config: Required. Basic human annotation config. feature: Required. The type of video labeling task. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoRequest) - ), + }, ) _sym_db.RegisterMessage(LabelVideoRequest) LabelTextRequest = _reflection.GeneratedProtocolMessageType( "LabelTextRequest", (_message.Message,), - dict( - DESCRIPTOR=_LABELTEXTREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for LabelText. + { + "DESCRIPTOR": _LABELTEXTREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for LabelText. + Attributes: request_config: Required. Config for labeling tasks. The type of request config must match the selected feature. text_classification_config: Configuration for text classification task. One of - text\_classification\_config and - text\_entity\_extraction\_config is required. + text_classification_config and text_entity_extraction_config + is required. text_entity_extraction_config: Configuration for entity extraction task. One of - text\_classification\_config and - text\_entity\_extraction\_config is required. + text_classification_config and text_entity_extraction_config + is required. parent: Required. Name of the data set to request labeling task, - format: projects/{project\_id}/datasets/{dataset\_id} + format: projects/{project_id}/datasets/{dataset_id} basic_config: Required. Basic human annotation config. feature: Required. The type of text labeling task. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelTextRequest) - ), + }, ) _sym_db.RegisterMessage(LabelTextRequest) GetExampleRequest = _reflection.GeneratedProtocolMessageType( "GetExampleRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETEXAMPLEREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for GetExample + { + "DESCRIPTOR": _GETEXAMPLEREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for GetExample + Attributes: name: - Required. Name of example, format: projects/{project\_id}/data - sets/{dataset\_id}/annotatedDatasets/ - {annotated\_dataset\_id}/examples/{example\_id} + Required. Name of example, format: + projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + {annotated_dataset_id}/examples/{example_id} filter: Optional. An expression for filtering Examples. Filter by - annotation\_spec.display\_name is supported. Format - "annotation\_spec.display\_name = {display\_name}" + annotation_spec.display_name is supported. Format + “annotation_spec.display_name = {display_name}” """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetExampleRequest) - ), + }, ) _sym_db.RegisterMessage(GetExampleRequest) ListExamplesRequest = _reflection.GeneratedProtocolMessageType( "ListExamplesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTEXAMPLESREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for ListExamples. + { + "DESCRIPTOR": _LISTEXAMPLESREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for ListExamples. + Attributes: parent: Required. Example resource parent. filter: Optional. An expression for filtering Examples. For annotated datasets that have annotation spec set, filter by - annotation\_spec.display\_name is supported. Format - "annotation\_spec.display\_name = {display\_name}" + annotation_spec.display_name is supported. Format + “annotation_spec.display_name = {display_name}” page_size: Optional. Requested page size. Server may return fewer results than requested. Default value is 100. page_token: Optional. A token identifying a page of results for the server - to return. Typically obtained by [ListExamplesResponse.next\_p - age\_token][google.cloud.datalabeling.v1beta1.ListExamplesResp - onse.next\_page\_token] of the previous + to return. Typically obtained by [ListExamplesResponse.next_pa + ge_token][google.cloud.datalabeling.v1beta1.ListExamplesRespon + se.next_page_token] of the previous [DataLabelingService.ListExamples] call. Return first page if empty. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListExamplesRequest) - ), + }, ) _sym_db.RegisterMessage(ListExamplesRequest) ListExamplesResponse = _reflection.GeneratedProtocolMessageType( "ListExamplesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTEXAMPLESRESPONSE, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Results of listing Examples in and annotated dataset. + { + "DESCRIPTOR": _LISTEXAMPLESRESPONSE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Results of listing Examples in and annotated dataset. + Attributes: examples: The list of examples to return. @@ -3935,59 +4083,62 @@ A token to retrieve next page of results. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListExamplesResponse) - ), + }, ) _sym_db.RegisterMessage(ListExamplesResponse) CreateAnnotationSpecSetRequest = _reflection.GeneratedProtocolMessageType( "CreateAnnotationSpecSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEANNOTATIONSPECSETREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for CreateAnnotationSpecSet. + { + "DESCRIPTOR": _CREATEANNOTATIONSPECSETREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for CreateAnnotationSpecSet. + Attributes: parent: Required. AnnotationSpecSet resource parent, format: - projects/{project\_id} + projects/{project_id} annotation_spec_set: Required. Annotation spec set to create. Annotation specs must be included. Only one annotation spec will be accepted for - annotation specs with same display\_name. + annotation specs with same display_name. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) - ), + }, ) _sym_db.RegisterMessage(CreateAnnotationSpecSetRequest) GetAnnotationSpecSetRequest = _reflection.GeneratedProtocolMessageType( "GetAnnotationSpecSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETANNOTATIONSPECSETREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for GetAnnotationSpecSet. + { + "DESCRIPTOR": _GETANNOTATIONSPECSETREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for GetAnnotationSpecSet. + Attributes: name: Required. AnnotationSpecSet resource name, format: projects/{p - roject\_id}/annotationSpecSets/{annotation\_spec\_set\_id} + roject_id}/annotationSpecSets/{annotation_spec_set_id} """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) - ), + }, ) _sym_db.RegisterMessage(GetAnnotationSpecSetRequest) ListAnnotationSpecSetsRequest = _reflection.GeneratedProtocolMessageType( "ListAnnotationSpecSetsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTANNOTATIONSPECSETSREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for ListAnnotationSpecSets. + { + "DESCRIPTOR": _LISTANNOTATIONSPECSETSREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for ListAnnotationSpecSets. + Attributes: parent: Required. Parent of AnnotationSpecSet resource, format: - projects/{project\_id} + projects/{project_id} filter: Optional. Filter is not supported at this moment. page_size: @@ -3996,23 +4147,24 @@ page_token: Optional. A token identifying a page of results for the server to return. Typically obtained by [ListAnnotationSpecSetsRespon - se.next\_page\_token][google.cloud.datalabeling.v1beta1.ListAn - notationSpecSetsResponse.next\_page\_token] of the previous + se.next_page_token][google.cloud.datalabeling.v1beta1.ListAnno + tationSpecSetsResponse.next_page_token] of the previous [DataLabelingService.ListAnnotationSpecSets] call. Return first page if empty. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) - ), + }, ) _sym_db.RegisterMessage(ListAnnotationSpecSetsRequest) ListAnnotationSpecSetsResponse = _reflection.GeneratedProtocolMessageType( "ListAnnotationSpecSetsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTANNOTATIONSPECSETSRESPONSE, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Results of listing annotation spec set under a project. + { + "DESCRIPTOR": _LISTANNOTATIONSPECSETSRESPONSE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Results of listing annotation spec set under a project. + Attributes: annotation_spec_sets: The list of annotation spec sets. @@ -4020,91 +4172,96 @@ A token to retrieve next page of results. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) - ), + }, ) _sym_db.RegisterMessage(ListAnnotationSpecSetsResponse) DeleteAnnotationSpecSetRequest = _reflection.GeneratedProtocolMessageType( "DeleteAnnotationSpecSetRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEANNOTATIONSPECSETREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for DeleteAnnotationSpecSet. + { + "DESCRIPTOR": _DELETEANNOTATIONSPECSETREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for DeleteAnnotationSpecSet. + Attributes: name: Required. AnnotationSpec resource name, format: ``projects/{pr oject_id}/annotationSpecSets/{annotation_spec_set_id}``. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteAnnotationSpecSetRequest) CreateInstructionRequest = _reflection.GeneratedProtocolMessageType( "CreateInstructionRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEINSTRUCTIONREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for CreateInstruction. + { + "DESCRIPTOR": _CREATEINSTRUCTIONREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for CreateInstruction. + Attributes: parent: Required. Instruction resource parent, format: - projects/{project\_id} + projects/{project_id} instruction: Required. Instruction of how to perform the labeling task. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateInstructionRequest) - ), + }, ) _sym_db.RegisterMessage(CreateInstructionRequest) GetInstructionRequest = _reflection.GeneratedProtocolMessageType( "GetInstructionRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETINSTRUCTIONREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for GetInstruction. + { + "DESCRIPTOR": _GETINSTRUCTIONREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for GetInstruction. + Attributes: name: Required. Instruction resource name, format: - projects/{project\_id}/instructions/{instruction\_id} + projects/{project_id}/instructions/{instruction_id} """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetInstructionRequest) - ), + }, ) _sym_db.RegisterMessage(GetInstructionRequest) DeleteInstructionRequest = _reflection.GeneratedProtocolMessageType( "DeleteInstructionRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEINSTRUCTIONREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for DeleteInstruction. + { + "DESCRIPTOR": _DELETEINSTRUCTIONREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for DeleteInstruction. + Attributes: name: Required. Instruction resource name, format: - projects/{project\_id}/instructions/{instruction\_id} + projects/{project_id}/instructions/{instruction_id} """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteInstructionRequest) ListInstructionsRequest = _reflection.GeneratedProtocolMessageType( "ListInstructionsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTINSTRUCTIONSREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for ListInstructions. + { + "DESCRIPTOR": _LISTINSTRUCTIONSREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for ListInstructions. + Attributes: parent: Required. Instruction resource parent, format: - projects/{project\_id} + projects/{project_id} filter: Optional. Filter is not supported at this moment. page_size: @@ -4113,23 +4270,24 @@ page_token: Optional. A token identifying a page of results for the server to return. Typically obtained by [ListInstructionsResponse.nex - t\_page\_token][google.cloud.datalabeling.v1beta1.ListInstruct - ionsResponse.next\_page\_token] of the previous + t_page_token][google.cloud.datalabeling.v1beta1.ListInstructio + nsResponse.next_page_token] of the previous [DataLabelingService.ListInstructions] call. Return first page if empty. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListInstructionsRequest) - ), + }, ) _sym_db.RegisterMessage(ListInstructionsRequest) ListInstructionsResponse = _reflection.GeneratedProtocolMessageType( "ListInstructionsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTINSTRUCTIONSRESPONSE, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Results of listing instructions under a project. + { + "DESCRIPTOR": _LISTINSTRUCTIONSRESPONSE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Results of listing instructions under a project. + Attributes: instructions: The list of Instructions to return. @@ -4137,89 +4295,91 @@ A token to retrieve next page of results. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListInstructionsResponse) - ), + }, ) _sym_db.RegisterMessage(ListInstructionsResponse) GetEvaluationRequest = _reflection.GeneratedProtocolMessageType( "GetEvaluationRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETEVALUATIONREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for GetEvaluation. + { + "DESCRIPTOR": _GETEVALUATIONREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for GetEvaluation. + Attributes: name: - Required. Name of the evaluation. Format: "projects/{project\ - _id}/datasets/{dataset\_id}/evaluations/{evaluation\_id}' + Required. Name of the evaluation. Format: "projects/{project\_ + id}/datasets/{dataset_id}/evaluations/{evaluation_id}’ """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetEvaluationRequest) - ), + }, ) _sym_db.RegisterMessage(GetEvaluationRequest) SearchEvaluationsRequest = _reflection.GeneratedProtocolMessageType( "SearchEvaluationsRequest", (_message.Message,), - dict( - DESCRIPTOR=_SEARCHEVALUATIONSREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for SearchEvaluation. + { + "DESCRIPTOR": _SEARCHEVALUATIONSREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for SearchEvaluation. + Attributes: parent: Required. Evaluation search parent (project ID). Format: - "projects/{project\_id}" + “projects/{project_id}” filter: Optional. To search evaluations, you can filter by the - following: - evaluation\_job.evaluation\_job\_id (the last + following: - evaluation\_job.evaluation_job_id (the last part of [EvaluationJob.name][google.cloud.datalabeling.v1be - ta1.EvaluationJob.name]) - evaluation\_job.model\_id (the - {model\_name} portion of [EvaluationJob.modelVersion][googl - e.cloud.datalabeling.v1beta1.EvaluationJob.model\_version]) - - evaluation\_job.evaluation\_job\_run\_time\_start (Minimum - threshold for the [evaluationJobRunTime][google.cloud.da - talabeling.v1beta1.Evaluation.evaluation\_job\_run\_time] - that created the evaluation) - - evaluation\_job.evaluation\_job\_run\_time\_end (Maximum - threshold for the [evaluationJobRunTime][google.cloud.da - talabeling.v1beta1.Evaluation.evaluation\_job\_run\_time] - that created the evaluation) - evaluation\_job.job\_state - ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.Evalu - ationJob.state]) - annotation\_spec.display\_name (the - Evaluation contains a metric for the annotation spec with - this [displayName][google.cloud.datalabeling.v1beta1.Annota - tionSpec.display\_name]) To filter by multiple critiera, use - the ``AND`` operator or the ``OR`` operator. The following - examples shows a string that filters by several critiera: - "evaluation\_job.evaluation\_job\_id = {evaluation\_job\_id} - AND evaluation\ *job.model\_id = {model\_name} AND - evaluation*\ job.evaluation\_job\_run\_time\_start = - {timestamp\_1} AND evaluation\ - *job.evaluation\_job\_run\_time\_end = {timestamp\_2} AND - annotation*\ spec.display\_name = {display\_name}" + ta1.EvaluationJob.name]) - evaluation\_job.model_id (the + {model_name} portion of [EvaluationJob.modelVersion][google + .cloud.datalabeling.v1beta1.EvaluationJob.model_version]) - + evaluation\_job.evaluation_job_run_time_start (Minimum + threshold for the [evaluationJobRunTime][google.cloud.da + talabeling.v1beta1.Evaluation.evaluation_job_run_time] that + created the evaluation) - + evaluation\_job.evaluation_job_run_time_end (Maximum threshold + for the [evaluationJobRunTime][google.cloud.datalabeling + .v1beta1.Evaluation.evaluation_job_run_time] that created + the evaluation) - evaluation\_job.job_state ([EvaluationJo + b.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state + ]) - annotation\_spec.display_name (the Evaluation contains a + metric for the annotation spec with this [displayName][g + oogle.cloud.datalabeling.v1beta1.AnnotationSpec.display_name]) + To filter by multiple critiera, use the ``AND`` operator or + the ``OR`` operator. The following examples shows a string + that filters by several critiera: + "evaluation\_job.evaluation_job_id = {evaluation_job_id} AND + evaluationjob.model_id = {model_name} AND + evaluationjob.evaluation_job_run_time_start = {timestamp_1} + AND evaluationjob.evaluation_job_run_time_end = {timestamp_2} + AND annotationspec.display_name = {display_name}" page_size: Optional. Requested page size. Server may return fewer results than requested. Default value is 100. page_token: Optional. A token identifying a page of results for the server to return. Typically obtained by the [nextPageToken][google.cl - oud.datalabeling.v1beta1.SearchEvaluationsResponse.next\_page\ - _token] of the response to a previous search request. If you - don't specify this field, the API call requests the first page + oud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_t + oken] of the response to a previous search request. If you + don’t specify this field, the API call requests the first page of the search. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) - ), + }, ) _sym_db.RegisterMessage(SearchEvaluationsRequest) SearchEvaluationsResponse = _reflection.GeneratedProtocolMessageType( "SearchEvaluationsResponse", (_message.Message,), - dict( - DESCRIPTOR=_SEARCHEVALUATIONSRESPONSE, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Results of searching evaluations. + { + "DESCRIPTOR": _SEARCHEVALUATIONSRESPONSE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Results of searching evaluations. + Attributes: evaluations: The list of evaluations matching the search. @@ -4227,52 +4387,54 @@ A token to retrieve next page of results. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) - ), + }, ) _sym_db.RegisterMessage(SearchEvaluationsResponse) SearchExampleComparisonsRequest = _reflection.GeneratedProtocolMessageType( "SearchExampleComparisonsRequest", (_message.Message,), - dict( - DESCRIPTOR=_SEARCHEXAMPLECOMPARISONSREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message of SearchExampleComparisons. + { + "DESCRIPTOR": _SEARCHEXAMPLECOMPARISONSREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message of SearchExampleComparisons. + Attributes: parent: Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] - resource to search for example comparisons from. Format: "pro - jects/{project\_id}/datasets/{dataset\_id}/evaluations/{evalua - tion\_id}" + resource to search for example comparisons from. Format: “pro + jects/{project_id}/datasets/{dataset_id}/evaluations/{evaluati + on_id}” page_size: Optional. Requested page size. Server may return fewer results than requested. Default value is 100. page_token: Optional. A token identifying a page of results for the server to return. Typically obtained by the - [nextPageToken][SearchExampleComparisons.next\_page\_token] of - the response to a previous search rquest. If you don't + [nextPageToken][SearchExampleComparisons.next_page_token] of + the response to a previous search rquest. If you don’t specify this field, the API call requests the first page of the search. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) - ), + }, ) _sym_db.RegisterMessage(SearchExampleComparisonsRequest) SearchExampleComparisonsResponse = _reflection.GeneratedProtocolMessageType( "SearchExampleComparisonsResponse", (_message.Message,), - dict( - ExampleComparison=_reflection.GeneratedProtocolMessageType( + { + "ExampleComparison": _reflection.GeneratedProtocolMessageType( "ExampleComparison", (_message.Message,), - dict( - DESCRIPTOR=_SEARCHEXAMPLECOMPARISONSRESPONSE_EXAMPLECOMPARISON, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Example comparisons comparing ground truth output and predictions for + { + "DESCRIPTOR": _SEARCHEXAMPLECOMPARISONSRESPONSE_EXAMPLECOMPARISON, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Example comparisons comparing ground truth output and predictions for a specific input. + Attributes: ground_truth_example: The ground truth output for the input. @@ -4280,11 +4442,12 @@ Predictions by the model for the input. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) - ), + }, ), - DESCRIPTOR=_SEARCHEXAMPLECOMPARISONSRESPONSE, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Results of searching example comparisons. + "DESCRIPTOR": _SEARCHEXAMPLECOMPARISONSRESPONSE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Results of searching example comparisons. + Attributes: example_comparisons: A list of example comparisons matching the search criteria. @@ -4292,7 +4455,7 @@ A token to retrieve next page of results. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) - ), + }, ) _sym_db.RegisterMessage(SearchExampleComparisonsResponse) _sym_db.RegisterMessage(SearchExampleComparisonsResponse.ExampleComparison) @@ -4300,29 +4463,31 @@ CreateEvaluationJobRequest = _reflection.GeneratedProtocolMessageType( "CreateEvaluationJobRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEEVALUATIONJOBREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for CreateEvaluationJob. + { + "DESCRIPTOR": _CREATEEVALUATIONJOBREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for CreateEvaluationJob. + Attributes: parent: Required. Evaluation job resource parent. Format: - "projects/{project\_id}" + “projects/{project_id}” job: Required. The evaluation job to create. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) - ), + }, ) _sym_db.RegisterMessage(CreateEvaluationJobRequest) UpdateEvaluationJobRequest = _reflection.GeneratedProtocolMessageType( "UpdateEvaluationJobRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEEVALUATIONJOBREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for UpdateEvaluationJob. + { + "DESCRIPTOR": _UPDATEEVALUATIONJOBREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for UpdateEvaluationJob. + Attributes: evaluation_job: Required. Evaluation job that is going to be updated. @@ -4336,125 +4501,130 @@ commas. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateEvaluationJobRequest) GetEvaluationJobRequest = _reflection.GeneratedProtocolMessageType( "GetEvaluationJobRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETEVALUATIONJOBREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for GetEvaluationJob. + { + "DESCRIPTOR": _GETEVALUATIONJOBREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for GetEvaluationJob. + Attributes: name: Required. Name of the evaluation job. Format: - "projects/{project\_id}/evaluationJobs/{evaluation\_job\_id}" + “projects/{project_id}/evaluationJobs/{evaluation_job_id}” """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) - ), + }, ) _sym_db.RegisterMessage(GetEvaluationJobRequest) PauseEvaluationJobRequest = _reflection.GeneratedProtocolMessageType( "PauseEvaluationJobRequest", (_message.Message,), - dict( - DESCRIPTOR=_PAUSEEVALUATIONJOBREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for PauseEvaluationJob. + { + "DESCRIPTOR": _PAUSEEVALUATIONJOBREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for PauseEvaluationJob. + Attributes: name: Required. Name of the evaluation job that is going to be paused. Format: - "projects/{project\_id}/evaluationJobs/{evaluation\_job\_id}" + “projects/{project_id}/evaluationJobs/{evaluation_job_id}” """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) - ), + }, ) _sym_db.RegisterMessage(PauseEvaluationJobRequest) ResumeEvaluationJobRequest = _reflection.GeneratedProtocolMessageType( "ResumeEvaluationJobRequest", (_message.Message,), - dict( - DESCRIPTOR=_RESUMEEVALUATIONJOBREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message ResumeEvaluationJob. + { + "DESCRIPTOR": _RESUMEEVALUATIONJOBREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message ResumeEvaluationJob. + Attributes: name: Required. Name of the evaluation job that is going to be resumed. Format: - "projects/{project\_id}/evaluationJobs/{evaluation\_job\_id}" + “projects/{project_id}/evaluationJobs/{evaluation_job_id}” """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) - ), + }, ) _sym_db.RegisterMessage(ResumeEvaluationJobRequest) DeleteEvaluationJobRequest = _reflection.GeneratedProtocolMessageType( "DeleteEvaluationJobRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEEVALUATIONJOBREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message DeleteEvaluationJob. + { + "DESCRIPTOR": _DELETEEVALUATIONJOBREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message DeleteEvaluationJob. + Attributes: name: Required. Name of the evaluation job that is going to be deleted. Format: - "projects/{project\_id}/evaluationJobs/{evaluation\_job\_id}" + “projects/{project_id}/evaluationJobs/{evaluation_job_id}” """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteEvaluationJobRequest) ListEvaluationJobsRequest = _reflection.GeneratedProtocolMessageType( "ListEvaluationJobsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTEVALUATIONJOBSREQUEST, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Request message for ListEvaluationJobs. + { + "DESCRIPTOR": _LISTEVALUATIONJOBSREQUEST, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Request message for ListEvaluationJobs. + Attributes: parent: Required. Evaluation job resource parent. Format: - "projects/{project\_id}" + “projects/{project_id}” filter: - Optional. You can filter the jobs to list by model\_id (also - known as model\_name, as described in [EvaluationJob.modelVers - ion][google.cloud.datalabeling.v1beta1.EvaluationJob.model\_ve - rsion]) or by evaluation job state (as described in [Evaluatio - nJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.st - ate]). To filter by both criteria, use the ``AND`` operator or + Optional. You can filter the jobs to list by model_id (also + known as model_name, as described in [EvaluationJob.modelVersi + on][google.cloud.datalabeling.v1beta1.EvaluationJob.model_vers + ion]) or by evaluation job state (as described in [EvaluationJ + ob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.stat + e]). To filter by both criteria, use the ``AND`` operator or the ``OR`` operator. For example, you can use the following - string for your filter: "evaluation*job.model\_id = - {model\_name} AND evaluation*\ job.state = - {evaluation\_job\_state}" + string for your filter: “evaluationjob.model_id = {model_name} + AND evaluationjob.state = {evaluation_job_state}” page_size: Optional. Requested page size. Server may return fewer results than requested. Default value is 100. page_token: Optional. A token identifying a page of results for the server to return. Typically obtained by the [nextPageToken][google.cl - oud.datalabeling.v1beta1.ListEvaluationJobsResponse.next\_page - \_token] in the response to the previous request. The request + oud.datalabeling.v1beta1.ListEvaluationJobsResponse.next_page\_ + token] in the response to the previous request. The request returns the first page if this is empty. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) - ), + }, ) _sym_db.RegisterMessage(ListEvaluationJobsRequest) ListEvaluationJobsResponse = _reflection.GeneratedProtocolMessageType( "ListEvaluationJobsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTEVALUATIONJOBSRESPONSE, - __module__="google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", - __doc__="""Results for listing evaluation jobs. + { + "DESCRIPTOR": _LISTEVALUATIONJOBSRESPONSE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_labeling_service_pb2", + "__doc__": """Results for listing evaluation jobs. + Attributes: evaluation_jobs: The list of evaluation jobs to return. @@ -4462,7 +4632,7 @@ A token to retrieve next page of results. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) - ), + }, ) _sym_db.RegisterMessage(ListEvaluationJobsResponse) @@ -4550,9 +4720,8 @@ full_name="google.cloud.datalabeling.v1beta1.DataLabelingService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\033datalabeling.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platform" - ), + serialized_options=b"\312A\033datalabeling.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platform", + create_key=_descriptor._internal_create_key, serialized_start=8298, serialized_end=15504, methods=[ @@ -4563,9 +4732,8 @@ containing_service=None, input_type=_CREATEDATASETREQUEST, output_type=google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_dataset__pb2._DATASET, - serialized_options=_b( - '\202\323\344\223\002*"%/v1beta1/{parent=projects/*}/datasets:\001*\332A\016parent,dataset' - ), + serialized_options=b'\202\323\344\223\002*"%/v1beta1/{parent=projects/*}/datasets:\001*\332A\016parent,dataset', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetDataset", @@ -4574,9 +4742,8 @@ containing_service=None, input_type=_GETDATASETREQUEST, output_type=google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_dataset__pb2._DATASET, - serialized_options=_b( - "\202\323\344\223\002'\022%/v1beta1/{name=projects/*/datasets/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002'\022%/v1beta1/{name=projects/*/datasets/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListDatasets", @@ -4585,9 +4752,8 @@ containing_service=None, input_type=_LISTDATASETSREQUEST, output_type=_LISTDATASETSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002'\022%/v1beta1/{parent=projects/*}/datasets\332A\rparent,filter" - ), + serialized_options=b"\202\323\344\223\002'\022%/v1beta1/{parent=projects/*}/datasets\332A\rparent,filter", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteDataset", @@ -4596,9 +4762,8 @@ containing_service=None, input_type=_DELETEDATASETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002'*%/v1beta1/{name=projects/*/datasets/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002'*%/v1beta1/{name=projects/*/datasets/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ImportData", @@ -4607,9 +4772,8 @@ containing_service=None, input_type=_IMPORTDATAREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\0025"0/v1beta1/{name=projects/*/datasets/*}:importData:\001*\332A\021name,input_config\312A:\n\033ImportDataOperationResponse\022\033ImportDataOperationMetadata' - ), + serialized_options=b'\202\323\344\223\0025"0/v1beta1/{name=projects/*/datasets/*}:importData:\001*\332A\021name,input_config\312A:\n\033ImportDataOperationResponse\022\033ImportDataOperationMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ExportData", @@ -4618,9 +4782,8 @@ containing_service=None, input_type=_EXPORTDATAREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\0025"0/v1beta1/{name=projects/*/datasets/*}:exportData:\001*\332A+name,annotated_dataset,filter,output_config\312A:\n\033ExportDataOperationResponse\022\033ExportDataOperationMetadata' - ), + serialized_options=b'\202\323\344\223\0025"0/v1beta1/{name=projects/*/datasets/*}:exportData:\001*\332A+name,annotated_dataset,filter,output_config\312A:\n\033ExportDataOperationResponse\022\033ExportDataOperationMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetDataItem", @@ -4629,9 +4792,8 @@ containing_service=None, input_type=_GETDATAITEMREQUEST, output_type=google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_dataset__pb2._DATAITEM, - serialized_options=_b( - "\202\323\344\223\0023\0221/v1beta1/{name=projects/*/datasets/*/dataItems/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0023\0221/v1beta1/{name=projects/*/datasets/*/dataItems/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListDataItems", @@ -4640,9 +4802,8 @@ containing_service=None, input_type=_LISTDATAITEMSREQUEST, output_type=_LISTDATAITEMSRESPONSE, - serialized_options=_b( - "\202\323\344\223\0023\0221/v1beta1/{parent=projects/*/datasets/*}/dataItems\332A\rparent,filter" - ), + serialized_options=b"\202\323\344\223\0023\0221/v1beta1/{parent=projects/*/datasets/*}/dataItems\332A\rparent,filter", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetAnnotatedDataset", @@ -4651,9 +4812,8 @@ containing_service=None, input_type=_GETANNOTATEDDATASETREQUEST, output_type=google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_dataset__pb2._ANNOTATEDDATASET, - serialized_options=_b( - "\202\323\344\223\002;\0229/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002;\0229/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListAnnotatedDatasets", @@ -4662,9 +4822,8 @@ containing_service=None, input_type=_LISTANNOTATEDDATASETSREQUEST, output_type=_LISTANNOTATEDDATASETSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002;\0229/v1beta1/{parent=projects/*/datasets/*}/annotatedDatasets\332A\rparent,filter" - ), + serialized_options=b"\202\323\344\223\002;\0229/v1beta1/{parent=projects/*/datasets/*}/annotatedDatasets\332A\rparent,filter", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteAnnotatedDataset", @@ -4673,9 +4832,8 @@ containing_service=None, input_type=_DELETEANNOTATEDDATASETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002;*9/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*}" - ), + serialized_options=b"\202\323\344\223\002;*9/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*}", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="LabelImage", @@ -4684,9 +4842,8 @@ containing_service=None, input_type=_LABELIMAGEREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\0028"3/v1beta1/{parent=projects/*/datasets/*}/image:label:\001*\332A\033parent,basic_config,feature\312A*\n\020AnnotatedDataset\022\026LabelOperationMetadata' - ), + serialized_options=b'\202\323\344\223\0028"3/v1beta1/{parent=projects/*/datasets/*}/image:label:\001*\332A\033parent,basic_config,feature\312A*\n\020AnnotatedDataset\022\026LabelOperationMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="LabelVideo", @@ -4695,9 +4852,8 @@ containing_service=None, input_type=_LABELVIDEOREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\0028"3/v1beta1/{parent=projects/*/datasets/*}/video:label:\001*\332A\033parent,basic_config,feature\312A*\n\020AnnotatedDataset\022\026LabelOperationMetadata' - ), + serialized_options=b'\202\323\344\223\0028"3/v1beta1/{parent=projects/*/datasets/*}/video:label:\001*\332A\033parent,basic_config,feature\312A*\n\020AnnotatedDataset\022\026LabelOperationMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="LabelText", @@ -4706,9 +4862,8 @@ containing_service=None, input_type=_LABELTEXTREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\0027"2/v1beta1/{parent=projects/*/datasets/*}/text:label:\001*\332A\033parent,basic_config,feature\312A*\n\020AnnotatedDataset\022\026LabelOperationMetadata' - ), + serialized_options=b'\202\323\344\223\0027"2/v1beta1/{parent=projects/*/datasets/*}/text:label:\001*\332A\033parent,basic_config,feature\312A*\n\020AnnotatedDataset\022\026LabelOperationMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetExample", @@ -4717,9 +4872,8 @@ containing_service=None, input_type=_GETEXAMPLEREQUEST, output_type=google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_dataset__pb2._EXAMPLE, - serialized_options=_b( - "\202\323\344\223\002F\022D/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*/examples/*}\332A\013name,filter" - ), + serialized_options=b"\202\323\344\223\002F\022D/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*/examples/*}\332A\013name,filter", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListExamples", @@ -4728,9 +4882,8 @@ containing_service=None, input_type=_LISTEXAMPLESREQUEST, output_type=_LISTEXAMPLESRESPONSE, - serialized_options=_b( - "\202\323\344\223\002F\022D/v1beta1/{parent=projects/*/datasets/*/annotatedDatasets/*}/examples\332A\rparent,filter" - ), + serialized_options=b"\202\323\344\223\002F\022D/v1beta1/{parent=projects/*/datasets/*/annotatedDatasets/*}/examples\332A\rparent,filter", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateAnnotationSpecSet", @@ -4739,9 +4892,8 @@ containing_service=None, input_type=_CREATEANNOTATIONSPECSETREQUEST, output_type=google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_annotation__spec__set__pb2._ANNOTATIONSPECSET, - serialized_options=_b( - '\202\323\344\223\0024"//v1beta1/{parent=projects/*}/annotationSpecSets:\001*\332A\032parent,annotation_spec_set' - ), + serialized_options=b'\202\323\344\223\0024"//v1beta1/{parent=projects/*}/annotationSpecSets:\001*\332A\032parent,annotation_spec_set', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetAnnotationSpecSet", @@ -4750,9 +4902,8 @@ containing_service=None, input_type=_GETANNOTATIONSPECSETREQUEST, output_type=google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_annotation__spec__set__pb2._ANNOTATIONSPECSET, - serialized_options=_b( - "\202\323\344\223\0021\022//v1beta1/{name=projects/*/annotationSpecSets/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0021\022//v1beta1/{name=projects/*/annotationSpecSets/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListAnnotationSpecSets", @@ -4761,9 +4912,8 @@ containing_service=None, input_type=_LISTANNOTATIONSPECSETSREQUEST, output_type=_LISTANNOTATIONSPECSETSRESPONSE, - serialized_options=_b( - "\202\323\344\223\0021\022//v1beta1/{parent=projects/*}/annotationSpecSets\332A\rparent,filter" - ), + serialized_options=b"\202\323\344\223\0021\022//v1beta1/{parent=projects/*}/annotationSpecSets\332A\rparent,filter", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteAnnotationSpecSet", @@ -4772,9 +4922,8 @@ containing_service=None, input_type=_DELETEANNOTATIONSPECSETREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\0021*//v1beta1/{name=projects/*/annotationSpecSets/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0021*//v1beta1/{name=projects/*/annotationSpecSets/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateInstruction", @@ -4783,9 +4932,8 @@ containing_service=None, input_type=_CREATEINSTRUCTIONREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002.")/v1beta1/{parent=projects/*}/instructions:\001*\332A\022parent,instruction\312A(\n\013Instruction\022\031CreateInstructionMetadata' - ), + serialized_options=b'\202\323\344\223\002.")/v1beta1/{parent=projects/*}/instructions:\001*\332A\022parent,instruction\312A(\n\013Instruction\022\031CreateInstructionMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetInstruction", @@ -4794,9 +4942,8 @@ containing_service=None, input_type=_GETINSTRUCTIONREQUEST, output_type=google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_instruction__pb2._INSTRUCTION, - serialized_options=_b( - "\202\323\344\223\002+\022)/v1beta1/{name=projects/*/instructions/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002+\022)/v1beta1/{name=projects/*/instructions/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListInstructions", @@ -4805,9 +4952,8 @@ containing_service=None, input_type=_LISTINSTRUCTIONSREQUEST, output_type=_LISTINSTRUCTIONSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002+\022)/v1beta1/{parent=projects/*}/instructions\332A\rparent,filter" - ), + serialized_options=b"\202\323\344\223\002+\022)/v1beta1/{parent=projects/*}/instructions\332A\rparent,filter", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteInstruction", @@ -4816,9 +4962,8 @@ containing_service=None, input_type=_DELETEINSTRUCTIONREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002+*)/v1beta1/{name=projects/*/instructions/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002+*)/v1beta1/{name=projects/*/instructions/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetEvaluation", @@ -4827,9 +4972,8 @@ containing_service=None, input_type=_GETEVALUATIONREQUEST, output_type=google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_evaluation__pb2._EVALUATION, - serialized_options=_b( - "\202\323\344\223\0025\0223/v1beta1/{name=projects/*/datasets/*/evaluations/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0025\0223/v1beta1/{name=projects/*/datasets/*/evaluations/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="SearchEvaluations", @@ -4838,9 +4982,8 @@ containing_service=None, input_type=_SEARCHEVALUATIONSREQUEST, output_type=_SEARCHEVALUATIONSRESPONSE, - serialized_options=_b( - "\202\323\344\223\0021\022//v1beta1/{parent=projects/*}/evaluations:search\332A\rparent,filter" - ), + serialized_options=b"\202\323\344\223\0021\022//v1beta1/{parent=projects/*}/evaluations:search\332A\rparent,filter", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="SearchExampleComparisons", @@ -4849,9 +4992,8 @@ containing_service=None, input_type=_SEARCHEXAMPLECOMPARISONSREQUEST, output_type=_SEARCHEXAMPLECOMPARISONSRESPONSE, - serialized_options=_b( - '\202\323\344\223\002T"O/v1beta1/{parent=projects/*/datasets/*/evaluations/*}/exampleComparisons:search:\001*\332A\006parent' - ), + serialized_options=b'\202\323\344\223\002T"O/v1beta1/{parent=projects/*/datasets/*/evaluations/*}/exampleComparisons:search:\001*\332A\006parent', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateEvaluationJob", @@ -4860,9 +5002,8 @@ containing_service=None, input_type=_CREATEEVALUATIONJOBREQUEST, output_type=google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_evaluation__job__pb2._EVALUATIONJOB, - serialized_options=_b( - '\202\323\344\223\0020"+/v1beta1/{parent=projects/*}/evaluationJobs:\001*\332A\nparent,job' - ), + serialized_options=b'\202\323\344\223\0020"+/v1beta1/{parent=projects/*}/evaluationJobs:\001*\332A\nparent,job', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateEvaluationJob", @@ -4871,9 +5012,8 @@ containing_service=None, input_type=_UPDATEEVALUATIONJOBREQUEST, output_type=google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_evaluation__job__pb2._EVALUATIONJOB, - serialized_options=_b( - "\202\323\344\223\002L2:/v1beta1/{evaluation_job.name=projects/*/evaluationJobs/*}:\016evaluation_job\332A\032evaluation_job,update_mask" - ), + serialized_options=b"\202\323\344\223\002L2:/v1beta1/{evaluation_job.name=projects/*/evaluationJobs/*}:\016evaluation_job\332A\032evaluation_job,update_mask", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetEvaluationJob", @@ -4882,9 +5022,8 @@ containing_service=None, input_type=_GETEVALUATIONJOBREQUEST, output_type=google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_evaluation__job__pb2._EVALUATIONJOB, - serialized_options=_b( - "\202\323\344\223\002-\022+/v1beta1/{name=projects/*/evaluationJobs/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002-\022+/v1beta1/{name=projects/*/evaluationJobs/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="PauseEvaluationJob", @@ -4893,9 +5032,8 @@ containing_service=None, input_type=_PAUSEEVALUATIONJOBREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\0026"1/v1beta1/{name=projects/*/evaluationJobs/*}:pause:\001*\332A\004name' - ), + serialized_options=b'\202\323\344\223\0026"1/v1beta1/{name=projects/*/evaluationJobs/*}:pause:\001*\332A\004name', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ResumeEvaluationJob", @@ -4904,9 +5042,8 @@ containing_service=None, input_type=_RESUMEEVALUATIONJOBREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\0027"2/v1beta1/{name=projects/*/evaluationJobs/*}:resume:\001*\332A\004name' - ), + serialized_options=b'\202\323\344\223\0027"2/v1beta1/{name=projects/*/evaluationJobs/*}:resume:\001*\332A\004name', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteEvaluationJob", @@ -4915,9 +5052,8 @@ containing_service=None, input_type=_DELETEEVALUATIONJOBREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002-*+/v1beta1/{name=projects/*/evaluationJobs/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002-*+/v1beta1/{name=projects/*/evaluationJobs/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListEvaluationJobs", @@ -4926,9 +5062,8 @@ containing_service=None, input_type=_LISTEVALUATIONJOBSREQUEST, output_type=_LISTEVALUATIONJOBSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002-\022+/v1beta1/{parent=projects/*}/evaluationJobs\332A\rparent,filter" - ), + serialized_options=b"\202\323\344\223\002-\022+/v1beta1/{parent=projects/*}/evaluationJobs\332A\rparent,filter", + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_labeling_service_pb2_grpc.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_labeling_service_pb2_grpc.py index 0fd76723ce2f..ad9c37de9ea0 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_labeling_service_pb2_grpc.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_labeling_service_pb2_grpc.py @@ -1,4 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc from google.cloud.datalabeling_v1beta1.proto import ( @@ -26,15 +27,14 @@ class DataLabelingServiceStub(object): - # missing associated documentation comment in .proto file - pass + """Missing associated documentation comment in .proto file.""" def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.CreateDataset = channel.unary_unary( "/google.cloud.datalabeling.v1beta1.DataLabelingService/CreateDataset", request_serializer=google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.CreateDatasetRequest.SerializeToString, @@ -208,263 +208,262 @@ def __init__(self, channel): class DataLabelingServiceServicer(object): - # missing associated documentation comment in .proto file - pass + """Missing associated documentation comment in .proto file.""" def CreateDataset(self, request, context): """Creates dataset. If success return a Dataset resource. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetDataset(self, request, context): """Gets dataset by resource name. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListDatasets(self, request, context): """Lists datasets under a project. Pagination is supported. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def DeleteDataset(self, request, context): """Deletes a dataset by resource name. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ImportData(self, request, context): """Imports data into dataset based on source locations defined in request. - It can be called multiple times for the same dataset. Each dataset can - only have one long running operation running on it. For example, no - labeling task (also long running operation) can be started while - importing is still ongoing. Vice versa. - """ + It can be called multiple times for the same dataset. Each dataset can + only have one long running operation running on it. For example, no + labeling task (also long running operation) can be started while + importing is still ongoing. Vice versa. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ExportData(self, request, context): """Exports data and annotations from dataset. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetDataItem(self, request, context): """Gets a data item in a dataset by resource name. This API can be - called after data are imported into dataset. - """ + called after data are imported into dataset. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListDataItems(self, request, context): """Lists data items in a dataset. This API can be called after data - are imported into dataset. Pagination is supported. - """ + are imported into dataset. Pagination is supported. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetAnnotatedDataset(self, request, context): """Gets an annotated dataset by resource name. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListAnnotatedDatasets(self, request, context): """Lists annotated datasets for a dataset. Pagination is supported. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def DeleteAnnotatedDataset(self, request, context): """Deletes an annotated dataset by resource name. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def LabelImage(self, request, context): """Starts a labeling task for image. The type of image labeling task is - configured by feature in the request. - """ + configured by feature in the request. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def LabelVideo(self, request, context): """Starts a labeling task for video. The type of video labeling task is - configured by feature in the request. - """ + configured by feature in the request. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def LabelText(self, request, context): """Starts a labeling task for text. The type of text labeling task is - configured by feature in the request. - """ + configured by feature in the request. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetExample(self, request, context): """Gets an example by resource name, including both data and annotation. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListExamples(self, request, context): """Lists examples in an annotated dataset. Pagination is supported. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def CreateAnnotationSpecSet(self, request, context): """Creates an annotation spec set by providing a set of labels. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetAnnotationSpecSet(self, request, context): """Gets an annotation spec set by resource name. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListAnnotationSpecSets(self, request, context): """Lists annotation spec sets for a project. Pagination is supported. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def DeleteAnnotationSpecSet(self, request, context): """Deletes an annotation spec set by resource name. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def CreateInstruction(self, request, context): """Creates an instruction for how data should be labeled. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetInstruction(self, request, context): """Gets an instruction by resource name. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListInstructions(self, request, context): """Lists instructions for a project. Pagination is supported. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def DeleteInstruction(self, request, context): """Deletes an instruction object by resource name. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetEvaluation(self, request, context): """Gets an evaluation by resource name (to search, use - [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]). - """ + [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]). + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def SearchEvaluations(self, request, context): """Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def SearchExampleComparisons(self, request, context): """Searches example comparisons from an evaluation. The return format is a - list of example comparisons that show ground truth and prediction(s) for - a single input. Search by providing an evaluation ID. - """ + list of example comparisons that show ground truth and prediction(s) for + a single input. Search by providing an evaluation ID. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def CreateEvaluationJob(self, request, context): """Creates an evaluation job. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def UpdateEvaluationJob(self, request, context): """Updates an evaluation job. You can only update certain fields of the job's - [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`, - `exampleCount`, and `exampleSamplePercentage`. + [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`, + `exampleCount`, and `exampleSamplePercentage`. - If you want to change any other aspect of the evaluation job, you must - delete the job and create a new one. - """ + If you want to change any other aspect of the evaluation job, you must + delete the job and create a new one. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetEvaluationJob(self, request, context): """Gets an evaluation job by resource name. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def PauseEvaluationJob(self, request, context): """Pauses an evaluation job. Pausing an evaluation job that is already in a - `PAUSED` state is a no-op. - """ + `PAUSED` state is a no-op. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ResumeEvaluationJob(self, request, context): """Resumes a paused evaluation job. A deleted evaluation job can't be resumed. - Resuming a running or scheduled evaluation job is a no-op. - """ + Resuming a running or scheduled evaluation job is a no-op. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def DeleteEvaluationJob(self, request, context): """Stops and deletes an evaluation job. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListEvaluationJobs(self, request, context): """Lists all evaluation jobs within a project with possible filters. - Pagination is supported. - """ + Pagination is supported. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -647,3 +646,926 @@ def add_DataLabelingServiceServicer_to_server(servicer, server): "google.cloud.datalabeling.v1beta1.DataLabelingService", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class DataLabelingService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def CreateDataset( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/CreateDataset", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.CreateDatasetRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_dataset__pb2.Dataset.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetDataset( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetDataset", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.GetDatasetRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_dataset__pb2.Dataset.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListDatasets( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListDatasets", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListDatasetsRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListDatasetsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteDataset( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteDataset", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.DeleteDatasetRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ImportData( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/ImportData", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ImportDataRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ExportData( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/ExportData", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ExportDataRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetDataItem( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetDataItem", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.GetDataItemRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_dataset__pb2.DataItem.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListDataItems( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListDataItems", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListDataItemsRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListDataItemsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetAnnotatedDataset( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetAnnotatedDataset", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.GetAnnotatedDatasetRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_dataset__pb2.AnnotatedDataset.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListAnnotatedDatasets( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListAnnotatedDatasets", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListAnnotatedDatasetsRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListAnnotatedDatasetsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteAnnotatedDataset( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteAnnotatedDataset", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.DeleteAnnotatedDatasetRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def LabelImage( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/LabelImage", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.LabelImageRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def LabelVideo( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/LabelVideo", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.LabelVideoRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def LabelText( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/LabelText", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.LabelTextRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetExample( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetExample", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.GetExampleRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_dataset__pb2.Example.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListExamples( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListExamples", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListExamplesRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListExamplesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def CreateAnnotationSpecSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/CreateAnnotationSpecSet", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.CreateAnnotationSpecSetRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_annotation__spec__set__pb2.AnnotationSpecSet.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetAnnotationSpecSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetAnnotationSpecSet", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.GetAnnotationSpecSetRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_annotation__spec__set__pb2.AnnotationSpecSet.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListAnnotationSpecSets( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListAnnotationSpecSets", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListAnnotationSpecSetsRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListAnnotationSpecSetsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteAnnotationSpecSet( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteAnnotationSpecSet", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.DeleteAnnotationSpecSetRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def CreateInstruction( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/CreateInstruction", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.CreateInstructionRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetInstruction( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetInstruction", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.GetInstructionRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_instruction__pb2.Instruction.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListInstructions( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListInstructions", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListInstructionsRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListInstructionsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteInstruction( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteInstruction", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.DeleteInstructionRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetEvaluation( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetEvaluation", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.GetEvaluationRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_evaluation__pb2.Evaluation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def SearchEvaluations( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/SearchEvaluations", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.SearchEvaluationsRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.SearchEvaluationsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def SearchExampleComparisons( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/SearchExampleComparisons", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.SearchExampleComparisonsRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.SearchExampleComparisonsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def CreateEvaluationJob( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/CreateEvaluationJob", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.CreateEvaluationJobRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_evaluation__job__pb2.EvaluationJob.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateEvaluationJob( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/UpdateEvaluationJob", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.UpdateEvaluationJobRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_evaluation__job__pb2.EvaluationJob.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetEvaluationJob( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/GetEvaluationJob", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.GetEvaluationJobRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_evaluation__job__pb2.EvaluationJob.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def PauseEvaluationJob( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/PauseEvaluationJob", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.PauseEvaluationJobRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ResumeEvaluationJob( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/ResumeEvaluationJob", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ResumeEvaluationJobRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteEvaluationJob( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteEvaluationJob", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.DeleteEvaluationJobRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListEvaluationJobs( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/google.cloud.datalabeling.v1beta1.DataLabelingService/ListEvaluationJobs", + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListEvaluationJobsRequest.SerializeToString, + google_dot_cloud_dot_datalabeling__v1beta1_dot_proto_dot_data__labeling__service__pb2.ListEvaluationJobsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_payloads_pb2.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_payloads_pb2.py index a6647d1dddf3..58f3533c84b0 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_payloads_pb2.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_payloads_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datalabeling_v1beta1/proto/data_payloads.proto - -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -24,12 +21,9 @@ name="google/cloud/datalabeling_v1beta1/proto/data_payloads.proto", package="google.cloud.datalabeling.v1beta1", syntax="proto3", - serialized_options=_b( - "\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling" - ), - serialized_pb=_b( - '\n;google/cloud/datalabeling_v1beta1/proto/data_payloads.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"a\n\x0cImagePayload\x12\x11\n\tmime_type\x18\x01 \x01(\t\x12\x17\n\x0fimage_thumbnail\x18\x02 \x01(\x0c\x12\x11\n\timage_uri\x18\x03 \x01(\t\x12\x12\n\nsigned_uri\x18\x04 \x01(\t"#\n\x0bTextPayload\x12\x14\n\x0ctext_content\x18\x01 \x01(\t"S\n\x0eVideoThumbnail\x12\x11\n\tthumbnail\x18\x01 \x01(\x0c\x12.\n\x0btime_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xa9\x01\n\x0cVideoPayload\x12\x11\n\tmime_type\x18\x01 \x01(\t\x12\x11\n\tvideo_uri\x18\x02 \x01(\t\x12K\n\x10video_thumbnails\x18\x03 \x03(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.VideoThumbnail\x12\x12\n\nframe_rate\x18\x04 \x01(\x02\x12\x12\n\nsigned_uri\x18\x05 \x01(\tBx\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3' - ), + serialized_options=b"\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n;google/cloud/datalabeling_v1beta1/proto/data_payloads.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"a\n\x0cImagePayload\x12\x11\n\tmime_type\x18\x01 \x01(\t\x12\x17\n\x0fimage_thumbnail\x18\x02 \x01(\x0c\x12\x11\n\timage_uri\x18\x03 \x01(\t\x12\x12\n\nsigned_uri\x18\x04 \x01(\t"#\n\x0bTextPayload\x12\x14\n\x0ctext_content\x18\x01 \x01(\t"S\n\x0eVideoThumbnail\x12\x11\n\tthumbnail\x18\x01 \x01(\x0c\x12.\n\x0btime_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xa9\x01\n\x0cVideoPayload\x12\x11\n\tmime_type\x18\x01 \x01(\t\x12\x11\n\tvideo_uri\x18\x02 \x01(\t\x12K\n\x10video_thumbnails\x18\x03 \x03(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.VideoThumbnail\x12\x12\n\nframe_rate\x18\x04 \x01(\x02\x12\x12\n\nsigned_uri\x18\x05 \x01(\tBx\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, @@ -44,6 +38,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="mime_type", @@ -54,7 +49,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -62,6 +57,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_thumbnail", @@ -72,7 +68,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -80,6 +76,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_uri", @@ -90,7 +87,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -98,6 +95,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="signed_uri", @@ -108,7 +106,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -116,6 +114,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -137,6 +136,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="text_content", @@ -147,7 +147,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -155,7 +155,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -176,6 +177,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="thumbnail", @@ -186,7 +188,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -194,6 +196,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="time_offset", @@ -212,6 +215,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -233,6 +237,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="mime_type", @@ -243,7 +248,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -251,6 +256,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="video_uri", @@ -261,7 +267,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -269,6 +275,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="video_thumbnails", @@ -287,6 +294,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="frame_rate", @@ -305,6 +313,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="signed_uri", @@ -315,7 +324,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -323,6 +332,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -350,10 +360,11 @@ ImagePayload = _reflection.GeneratedProtocolMessageType( "ImagePayload", (_message.Message,), - dict( - DESCRIPTOR=_IMAGEPAYLOAD, - __module__="google.cloud.datalabeling_v1beta1.proto.data_payloads_pb2", - __doc__="""Container of information about an image. + { + "DESCRIPTOR": _IMAGEPAYLOAD, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_payloads_pb2", + "__doc__": """Container of information about an image. + Attributes: mime_type: Image format. @@ -365,33 +376,35 @@ Signed uri of the image file in the service bucket. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImagePayload) - ), + }, ) _sym_db.RegisterMessage(ImagePayload) TextPayload = _reflection.GeneratedProtocolMessageType( "TextPayload", (_message.Message,), - dict( - DESCRIPTOR=_TEXTPAYLOAD, - __module__="google.cloud.datalabeling_v1beta1.proto.data_payloads_pb2", - __doc__="""Container of information about a piece of text. + { + "DESCRIPTOR": _TEXTPAYLOAD, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_payloads_pb2", + "__doc__": """Container of information about a piece of text. + Attributes: text_content: Text content. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextPayload) - ), + }, ) _sym_db.RegisterMessage(TextPayload) VideoThumbnail = _reflection.GeneratedProtocolMessageType( "VideoThumbnail", (_message.Message,), - dict( - DESCRIPTOR=_VIDEOTHUMBNAIL, - __module__="google.cloud.datalabeling_v1beta1.proto.data_payloads_pb2", - __doc__="""Container of information of a video thumbnail. + { + "DESCRIPTOR": _VIDEOTHUMBNAIL, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_payloads_pb2", + "__doc__": """Container of information of a video thumbnail. + Attributes: thumbnail: A byte string of the video frame. @@ -401,17 +414,18 @@ extracted from. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoThumbnail) - ), + }, ) _sym_db.RegisterMessage(VideoThumbnail) VideoPayload = _reflection.GeneratedProtocolMessageType( "VideoPayload", (_message.Message,), - dict( - DESCRIPTOR=_VIDEOPAYLOAD, - __module__="google.cloud.datalabeling_v1beta1.proto.data_payloads_pb2", - __doc__="""Container of information of a video. + { + "DESCRIPTOR": _VIDEOPAYLOAD, + "__module__": "google.cloud.datalabeling_v1beta1.proto.data_payloads_pb2", + "__doc__": """Container of information of a video. + Attributes: mime_type: Video format. @@ -425,7 +439,7 @@ Signed uri of the video file in the service bucket. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoPayload) - ), + }, ) _sym_db.RegisterMessage(VideoPayload) diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_payloads_pb2_grpc.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_payloads_pb2_grpc.py index 07cb78fe03a9..8a9393943bdf 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_payloads_pb2_grpc.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/data_payloads_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/dataset_pb2.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/dataset_pb2.py index c70ecd87c46c..684da51b44f3 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/dataset_pb2.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/dataset_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datalabeling_v1beta1/proto/dataset.proto - -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -37,12 +34,9 @@ name="google/cloud/datalabeling_v1beta1/proto/dataset.proto", package="google.cloud.datalabeling.v1beta1", syntax="proto3", - serialized_options=_b( - "\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling" - ), - serialized_pb=_b( - '\n5google/cloud/datalabeling_v1beta1/proto/dataset.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/datalabeling_v1beta1/proto/annotation.proto\x1a\x41google/cloud/datalabeling_v1beta1/proto/annotation_spec_set.proto\x1a;google/cloud/datalabeling_v1beta1/proto/data_payloads.proto\x1a\x45google/cloud/datalabeling_v1beta1/proto/human_annotation_config.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xc0\x02\n\x07\x44\x61taset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\rinput_configs\x18\x05 \x03(\x0b\x32..google.cloud.datalabeling.v1beta1.InputConfig\x12\x1a\n\x12\x62locking_resources\x18\x06 \x03(\t\x12\x17\n\x0f\x64\x61ta_item_count\x18\x07 \x01(\x03:O\xea\x41L\n#datalabeling.googleapis.com/Dataset\x12%projects/{project}/datasets/{dataset}"\xf1\x03\n\x0bInputConfig\x12H\n\rtext_metadata\x18\x06 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.TextMetadataH\x00\x12\x42\n\ngcs_source\x18\x02 \x01(\x0b\x32,.google.cloud.datalabeling.v1beta1.GcsSourceH\x01\x12L\n\x0f\x62igquery_source\x18\x05 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.BigQuerySourceH\x01\x12>\n\tdata_type\x18\x01 \x01(\x0e\x32+.google.cloud.datalabeling.v1beta1.DataType\x12J\n\x0f\x61nnotation_type\x18\x03 \x01(\x0e\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationType\x12Z\n\x17\x63lassification_metadata\x18\x04 \x01(\x0b\x32\x39.google.cloud.datalabeling.v1beta1.ClassificationMetadataB\x14\n\x12\x64\x61ta_type_metadataB\x08\n\x06source"%\n\x0cTextMetadata\x12\x15\n\rlanguage_code\x18\x01 \x01(\t"0\n\x16\x43lassificationMetadata\x12\x16\n\x0eis_multi_label\x18\x01 \x01(\x08"1\n\tGcsSource\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t"#\n\x0e\x42igQuerySource\x12\x11\n\tinput_uri\x18\x01 \x01(\t"\xc6\x01\n\x0cOutputConfig\x12L\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.GcsDestinationH\x00\x12Y\n\x16gcs_folder_destination\x18\x02 \x01(\x0b\x32\x37.google.cloud.datalabeling.v1beta1.GcsFolderDestinationH\x00\x42\r\n\x0b\x64\x65stination"7\n\x0eGcsDestination\x12\x12\n\noutput_uri\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t"1\n\x14GcsFolderDestination\x12\x19\n\x11output_folder_uri\x18\x01 \x01(\t"\xe7\x02\n\x08\x44\x61taItem\x12H\n\rimage_payload\x18\x02 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.ImagePayloadH\x00\x12\x46\n\x0ctext_payload\x18\x03 \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.TextPayloadH\x00\x12H\n\rvideo_payload\x18\x04 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.VideoPayloadH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t:f\xea\x41\x63\n$datalabeling.googleapis.com/DataItem\x12;projects/{project}/datasets/{dataset}/dataItems/{data_item}B\t\n\x07payload"\xff\x04\n\x10\x41nnotatedDataset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\t \x01(\t\x12N\n\x11\x61nnotation_source\x18\x03 \x01(\x0e\x32\x33.google.cloud.datalabeling.v1beta1.AnnotationSource\x12J\n\x0f\x61nnotation_type\x18\x08 \x01(\x0e\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationType\x12\x15\n\rexample_count\x18\x04 \x01(\x03\x12\x1f\n\x17\x63ompleted_example_count\x18\x05 \x01(\x03\x12\x42\n\x0blabel_stats\x18\x06 \x01(\x0b\x32-.google.cloud.datalabeling.v1beta1.LabelStats\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12M\n\x08metadata\x18\n \x01(\x0b\x32;.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata\x12\x1a\n\x12\x62locking_resources\x18\x0b \x03(\t:~\xea\x41{\n,datalabeling.googleapis.com/AnnotatedDataset\x12Kprojects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}"\x99\x01\n\nLabelStats\x12V\n\rexample_count\x18\x01 \x03(\x0b\x32?.google.cloud.datalabeling.v1beta1.LabelStats.ExampleCountEntry\x1a\x33\n\x11\x45xampleCountEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01"\xa2\x08\n\x18\x41nnotatedDatasetMetadata\x12\x63\n\x1bimage_classification_config\x18\x02 \x01(\x0b\x32<.google.cloud.datalabeling.v1beta1.ImageClassificationConfigH\x00\x12U\n\x14\x62ounding_poly_config\x18\x03 \x01(\x0b\x32\x35.google.cloud.datalabeling.v1beta1.BoundingPolyConfigH\x00\x12L\n\x0fpolyline_config\x18\x04 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.PolylineConfigH\x00\x12T\n\x13segmentation_config\x18\x05 \x01(\x0b\x32\x35.google.cloud.datalabeling.v1beta1.SegmentationConfigH\x00\x12\x63\n\x1bvideo_classification_config\x18\x06 \x01(\x0b\x32<.google.cloud.datalabeling.v1beta1.VideoClassificationConfigH\x00\x12[\n\x17object_detection_config\x18\x07 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigH\x00\x12Y\n\x16object_tracking_config\x18\x08 \x01(\x0b\x32\x37.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigH\x00\x12\x46\n\x0c\x65vent_config\x18\t \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.EventConfigH\x00\x12\x61\n\x1atext_classification_config\x18\n \x01(\x0b\x32;.google.cloud.datalabeling.v1beta1.TextClassificationConfigH\x00\x12\x66\n\x1dtext_entity_extraction_config\x18\x0b \x01(\x0b\x32=.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigH\x00\x12Y\n\x17human_annotation_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigB\x1b\n\x19\x61nnotation_request_config"\xce\x03\n\x07\x45xample\x12H\n\rimage_payload\x18\x02 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.ImagePayloadH\x00\x12\x46\n\x0ctext_payload\x18\x06 \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.TextPayloadH\x00\x12H\n\rvideo_payload\x18\x07 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.VideoPayloadH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x42\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32-.google.cloud.datalabeling.v1beta1.Annotation:\x89\x01\xea\x41\x85\x01\n#datalabeling.googleapis.com/Example\x12^projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}/examples/{example}B\t\n\x07payload*W\n\x08\x44\x61taType\x12\x19\n\x15\x44\x41TA_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05IMAGE\x10\x01\x12\t\n\x05VIDEO\x10\x02\x12\x08\n\x04TEXT\x10\x04\x12\x10\n\x0cGENERAL_DATA\x10\x06\x42x\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3' - ), + serialized_options=b"\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n5google/cloud/datalabeling_v1beta1/proto/dataset.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/datalabeling_v1beta1/proto/annotation.proto\x1a\x41google/cloud/datalabeling_v1beta1/proto/annotation_spec_set.proto\x1a;google/cloud/datalabeling_v1beta1/proto/data_payloads.proto\x1a\x45google/cloud/datalabeling_v1beta1/proto/human_annotation_config.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xc0\x02\n\x07\x44\x61taset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\rinput_configs\x18\x05 \x03(\x0b\x32..google.cloud.datalabeling.v1beta1.InputConfig\x12\x1a\n\x12\x62locking_resources\x18\x06 \x03(\t\x12\x17\n\x0f\x64\x61ta_item_count\x18\x07 \x01(\x03:O\xea\x41L\n#datalabeling.googleapis.com/Dataset\x12%projects/{project}/datasets/{dataset}"\xf1\x03\n\x0bInputConfig\x12H\n\rtext_metadata\x18\x06 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.TextMetadataH\x00\x12\x42\n\ngcs_source\x18\x02 \x01(\x0b\x32,.google.cloud.datalabeling.v1beta1.GcsSourceH\x01\x12L\n\x0f\x62igquery_source\x18\x05 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.BigQuerySourceH\x01\x12>\n\tdata_type\x18\x01 \x01(\x0e\x32+.google.cloud.datalabeling.v1beta1.DataType\x12J\n\x0f\x61nnotation_type\x18\x03 \x01(\x0e\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationType\x12Z\n\x17\x63lassification_metadata\x18\x04 \x01(\x0b\x32\x39.google.cloud.datalabeling.v1beta1.ClassificationMetadataB\x14\n\x12\x64\x61ta_type_metadataB\x08\n\x06source"%\n\x0cTextMetadata\x12\x15\n\rlanguage_code\x18\x01 \x01(\t"0\n\x16\x43lassificationMetadata\x12\x16\n\x0eis_multi_label\x18\x01 \x01(\x08"1\n\tGcsSource\x12\x11\n\tinput_uri\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t"#\n\x0e\x42igQuerySource\x12\x11\n\tinput_uri\x18\x01 \x01(\t"\xc6\x01\n\x0cOutputConfig\x12L\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.GcsDestinationH\x00\x12Y\n\x16gcs_folder_destination\x18\x02 \x01(\x0b\x32\x37.google.cloud.datalabeling.v1beta1.GcsFolderDestinationH\x00\x42\r\n\x0b\x64\x65stination"7\n\x0eGcsDestination\x12\x12\n\noutput_uri\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t"1\n\x14GcsFolderDestination\x12\x19\n\x11output_folder_uri\x18\x01 \x01(\t"\xe7\x02\n\x08\x44\x61taItem\x12H\n\rimage_payload\x18\x02 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.ImagePayloadH\x00\x12\x46\n\x0ctext_payload\x18\x03 \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.TextPayloadH\x00\x12H\n\rvideo_payload\x18\x04 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.VideoPayloadH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t:f\xea\x41\x63\n$datalabeling.googleapis.com/DataItem\x12;projects/{project}/datasets/{dataset}/dataItems/{data_item}B\t\n\x07payload"\xff\x04\n\x10\x41nnotatedDataset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\t \x01(\t\x12N\n\x11\x61nnotation_source\x18\x03 \x01(\x0e\x32\x33.google.cloud.datalabeling.v1beta1.AnnotationSource\x12J\n\x0f\x61nnotation_type\x18\x08 \x01(\x0e\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationType\x12\x15\n\rexample_count\x18\x04 \x01(\x03\x12\x1f\n\x17\x63ompleted_example_count\x18\x05 \x01(\x03\x12\x42\n\x0blabel_stats\x18\x06 \x01(\x0b\x32-.google.cloud.datalabeling.v1beta1.LabelStats\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12M\n\x08metadata\x18\n \x01(\x0b\x32;.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata\x12\x1a\n\x12\x62locking_resources\x18\x0b \x03(\t:~\xea\x41{\n,datalabeling.googleapis.com/AnnotatedDataset\x12Kprojects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}"\x99\x01\n\nLabelStats\x12V\n\rexample_count\x18\x01 \x03(\x0b\x32?.google.cloud.datalabeling.v1beta1.LabelStats.ExampleCountEntry\x1a\x33\n\x11\x45xampleCountEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01"\xa2\x08\n\x18\x41nnotatedDatasetMetadata\x12\x63\n\x1bimage_classification_config\x18\x02 \x01(\x0b\x32<.google.cloud.datalabeling.v1beta1.ImageClassificationConfigH\x00\x12U\n\x14\x62ounding_poly_config\x18\x03 \x01(\x0b\x32\x35.google.cloud.datalabeling.v1beta1.BoundingPolyConfigH\x00\x12L\n\x0fpolyline_config\x18\x04 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.PolylineConfigH\x00\x12T\n\x13segmentation_config\x18\x05 \x01(\x0b\x32\x35.google.cloud.datalabeling.v1beta1.SegmentationConfigH\x00\x12\x63\n\x1bvideo_classification_config\x18\x06 \x01(\x0b\x32<.google.cloud.datalabeling.v1beta1.VideoClassificationConfigH\x00\x12[\n\x17object_detection_config\x18\x07 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigH\x00\x12Y\n\x16object_tracking_config\x18\x08 \x01(\x0b\x32\x37.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigH\x00\x12\x46\n\x0c\x65vent_config\x18\t \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.EventConfigH\x00\x12\x61\n\x1atext_classification_config\x18\n \x01(\x0b\x32;.google.cloud.datalabeling.v1beta1.TextClassificationConfigH\x00\x12\x66\n\x1dtext_entity_extraction_config\x18\x0b \x01(\x0b\x32=.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigH\x00\x12Y\n\x17human_annotation_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigB\x1b\n\x19\x61nnotation_request_config"\xce\x03\n\x07\x45xample\x12H\n\rimage_payload\x18\x02 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.ImagePayloadH\x00\x12\x46\n\x0ctext_payload\x18\x06 \x01(\x0b\x32..google.cloud.datalabeling.v1beta1.TextPayloadH\x00\x12H\n\rvideo_payload\x18\x07 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.VideoPayloadH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x42\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32-.google.cloud.datalabeling.v1beta1.Annotation:\x89\x01\xea\x41\x85\x01\n#datalabeling.googleapis.com/Example\x12^projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}/examples/{example}B\t\n\x07payload*W\n\x08\x44\x61taType\x12\x19\n\x15\x44\x41TA_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05IMAGE\x10\x01\x12\t\n\x05VIDEO\x10\x02\x12\x08\n\x04TEXT\x10\x04\x12\x10\n\x0cGENERAL_DATA\x10\x06\x42x\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, @@ -59,6 +53,7 @@ full_name="google.cloud.datalabeling.v1beta1.DataType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="DATA_TYPE_UNSPECIFIED", @@ -66,18 +61,39 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IMAGE", index=1, number=1, serialized_options=None, type=None + name="IMAGE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VIDEO", index=2, number=2, serialized_options=None, type=None + name="VIDEO", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TEXT", index=3, number=4, serialized_options=None, type=None + name="TEXT", + index=3, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GENERAL_DATA", index=4, number=6, serialized_options=None, type=None + name="GENERAL_DATA", + index=4, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -101,6 +117,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -111,7 +128,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -119,6 +136,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="display_name", @@ -129,7 +147,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -137,6 +155,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -147,7 +166,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -155,6 +174,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -173,6 +193,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="input_configs", @@ -191,6 +212,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="blocking_resources", @@ -209,6 +231,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="data_item_count", @@ -227,14 +250,13 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352AL\n#datalabeling.googleapis.com/Dataset\022%projects/{project}/datasets/{dataset}" - ), + serialized_options=b"\352AL\n#datalabeling.googleapis.com/Dataset\022%projects/{project}/datasets/{dataset}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -250,6 +272,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="text_metadata", @@ -268,6 +291,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="gcs_source", @@ -286,6 +310,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bigquery_source", @@ -304,6 +329,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="data_type", @@ -322,6 +348,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_type", @@ -340,6 +367,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="classification_metadata", @@ -358,6 +386,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -373,6 +402,7 @@ full_name="google.cloud.datalabeling.v1beta1.InputConfig.data_type_metadata", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), _descriptor.OneofDescriptor( @@ -380,6 +410,7 @@ full_name="google.cloud.datalabeling.v1beta1.InputConfig.source", index=1, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], @@ -394,6 +425,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="language_code", @@ -404,7 +436,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -412,7 +444,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -433,6 +466,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="is_multi_label", @@ -451,7 +485,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -472,6 +507,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="input_uri", @@ -482,7 +518,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -490,6 +526,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="mime_type", @@ -500,7 +537,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -508,6 +545,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -529,6 +567,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="input_uri", @@ -539,7 +578,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -547,7 +586,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -568,6 +608,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_destination", @@ -586,6 +627,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="gcs_folder_destination", @@ -604,6 +646,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -619,8 +662,9 @@ full_name="google.cloud.datalabeling.v1beta1.OutputConfig.destination", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=1440, serialized_end=1638, @@ -633,6 +677,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="output_uri", @@ -643,7 +688,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -651,6 +696,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="mime_type", @@ -661,7 +707,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -669,6 +715,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -690,6 +737,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="output_folder_uri", @@ -700,7 +748,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -708,7 +756,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -729,6 +778,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="image_payload", @@ -747,6 +797,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text_payload", @@ -765,6 +816,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="video_payload", @@ -783,6 +835,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="name", @@ -793,7 +846,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -801,14 +854,13 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352Ac\n$datalabeling.googleapis.com/DataItem\022;projects/{project}/datasets/{dataset}/dataItems/{data_item}" - ), + serialized_options=b"\352Ac\n$datalabeling.googleapis.com/DataItem\022;projects/{project}/datasets/{dataset}/dataItems/{data_item}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -818,8 +870,9 @@ full_name="google.cloud.datalabeling.v1beta1.DataItem.payload", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=1749, serialized_end=2108, @@ -832,6 +885,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -842,7 +896,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -850,6 +904,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="display_name", @@ -860,7 +915,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -868,6 +923,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -878,7 +934,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -886,6 +942,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_source", @@ -904,6 +961,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_type", @@ -922,6 +980,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="example_count", @@ -940,6 +999,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="completed_example_count", @@ -958,6 +1018,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="label_stats", @@ -976,6 +1037,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -994,6 +1056,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="metadata", @@ -1012,6 +1075,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="blocking_resources", @@ -1030,14 +1094,13 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352A{\n,datalabeling.googleapis.com/AnnotatedDataset\022Kprojects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}" - ), + serialized_options=b"\352A{\n,datalabeling.googleapis.com/AnnotatedDataset\022Kprojects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -1053,6 +1116,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -1063,7 +1127,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1071,6 +1135,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -1089,12 +1154,13 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("8\001"), + serialized_options=b"8\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -1109,6 +1175,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="example_count", @@ -1127,10 +1194,11 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], - nested_types=[_LABELSTATS_EXAMPLECOUNTENTRY], + nested_types=[_LABELSTATS_EXAMPLECOUNTENTRY,], enum_types=[], serialized_options=None, is_extendable=False, @@ -1148,6 +1216,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="image_classification_config", @@ -1166,6 +1235,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="bounding_poly_config", @@ -1184,6 +1254,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="polyline_config", @@ -1202,6 +1273,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="segmentation_config", @@ -1220,6 +1292,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="video_classification_config", @@ -1238,6 +1311,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="object_detection_config", @@ -1256,6 +1330,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="object_tracking_config", @@ -1274,6 +1349,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="event_config", @@ -1292,6 +1368,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text_classification_config", @@ -1310,6 +1387,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text_entity_extraction_config", @@ -1328,6 +1406,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="human_annotation_config", @@ -1346,6 +1425,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1361,8 +1441,9 @@ full_name="google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.annotation_request_config", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=2909, serialized_end=3967, @@ -1375,6 +1456,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="image_payload", @@ -1393,6 +1475,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text_payload", @@ -1411,6 +1494,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="video_payload", @@ -1429,6 +1513,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="name", @@ -1439,7 +1524,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1447,6 +1532,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotations", @@ -1465,14 +1551,13 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352A\205\001\n#datalabeling.googleapis.com/Example\022^projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}/examples/{example}" - ), + serialized_options=b"\352A\205\001\n#datalabeling.googleapis.com/Example\022^projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}/examples/{example}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -1482,8 +1567,9 @@ full_name="google.cloud.datalabeling.v1beta1.Example.payload", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=3970, serialized_end=4432, @@ -1782,16 +1868,17 @@ Dataset = _reflection.GeneratedProtocolMessageType( "Dataset", (_message.Message,), - dict( - DESCRIPTOR=_DATASET, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""Dataset is the resource to hold your data. You can request multiple + { + "DESCRIPTOR": _DATASET, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """Dataset is the resource to hold your data. You can request multiple labeling tasks for a dataset while each one will generate an AnnotatedDataset. + Attributes: name: Output only. Dataset resource name, format is: - projects/{project\_id}/datasets/{dataset\_id} + projects/{project_id}/datasets/{dataset_id} display_name: Required. The display name of the dataset. Maximum of 64 characters. @@ -1812,17 +1899,18 @@ Output only. The number of data items in the dataset. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Dataset) - ), + }, ) _sym_db.RegisterMessage(Dataset) InputConfig = _reflection.GeneratedProtocolMessageType( "InputConfig", (_message.Message,), - dict( - DESCRIPTOR=_INPUTCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""The configuration of input data, including data type, location, etc. + { + "DESCRIPTOR": _INPUTCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """The configuration of input data, including data type, location, etc. + Attributes: data_type_metadata: Optional. The metadata associated with each data type. @@ -1851,73 +1939,77 @@ for a model version that performs classification. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.InputConfig) - ), + }, ) _sym_db.RegisterMessage(InputConfig) TextMetadata = _reflection.GeneratedProtocolMessageType( "TextMetadata", (_message.Message,), - dict( - DESCRIPTOR=_TEXTMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""Metadata for the text. + { + "DESCRIPTOR": _TEXTMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """Metadata for the text. + Attributes: language_code: The language of this text, as a `BCP-47 `__. Default value is en-US. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextMetadata) - ), + }, ) _sym_db.RegisterMessage(TextMetadata) ClassificationMetadata = _reflection.GeneratedProtocolMessageType( "ClassificationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_CLASSIFICATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""Metadata for classification annotations. + { + "DESCRIPTOR": _CLASSIFICATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """Metadata for classification annotations. + Attributes: is_multi_label: Whether the classification task is multi-label or not. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ClassificationMetadata) - ), + }, ) _sym_db.RegisterMessage(ClassificationMetadata) GcsSource = _reflection.GeneratedProtocolMessageType( "GcsSource", (_message.Message,), - dict( - DESCRIPTOR=_GCSSOURCE, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""Source of the Cloud Storage file to be imported. + { + "DESCRIPTOR": _GCSSOURCE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """Source of the Cloud Storage file to be imported. + Attributes: input_uri: Required. The input URI of source file. This must be a Cloud Storage path (``gs://...``). mime_type: - Required. The format of the source file. Only "text/csv" is + Required. The format of the source file. Only “text/csv” is supported. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GcsSource) - ), + }, ) _sym_db.RegisterMessage(GcsSource) BigQuerySource = _reflection.GeneratedProtocolMessageType( "BigQuerySource", (_message.Message,), - dict( - DESCRIPTOR=_BIGQUERYSOURCE, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""The BigQuery location for input data. If used in an + { + "DESCRIPTOR": _BIGQUERYSOURCE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """The BigQuery location for input data. If used in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob], this is where the service saves the prediction input and output sampled from the model version. + Attributes: input_uri: Required. BigQuery URI to a table, up to 2,000 characters @@ -1928,22 +2020,24 @@ of a table that already exists, it must have the `correct schema `__. Provide the table URI in the following - format: "bq://{your\_project\_id}/{your\_dataset\_name}/{your - \_table\_name}" `Learn more `__. + format: + “bq://{your_project_id}/{your_dataset_name}/{your_table_name}” + `Learn more `__. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.BigQuerySource) - ), + }, ) _sym_db.RegisterMessage(BigQuerySource) OutputConfig = _reflection.GeneratedProtocolMessageType( "OutputConfig", (_message.Message,), - dict( - DESCRIPTOR=_OUTPUTCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""The configuration of output data. + { + "DESCRIPTOR": _OUTPUTCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """The configuration of output data. + Attributes: destination: Required. Location to output data to. @@ -1955,54 +2049,56 @@ segmentation labeling output. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.OutputConfig) - ), + }, ) _sym_db.RegisterMessage(OutputConfig) GcsDestination = _reflection.GeneratedProtocolMessageType( "GcsDestination", (_message.Message,), - dict( - DESCRIPTOR=_GCSDESTINATION, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""Export destination of the data.Only gcs path is allowed in - output\_uri. + { + "DESCRIPTOR": _GCSDESTINATION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """Export destination of the data.Only gcs path is allowed in output_uri. + Attributes: output_uri: Required. The output uri of destination file. mime_type: - Required. The format of the gcs destination. Only "text/csv" - and "application/json" are supported. + Required. The format of the gcs destination. Only “text/csv” + and “application/json” are supported. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GcsDestination) - ), + }, ) _sym_db.RegisterMessage(GcsDestination) GcsFolderDestination = _reflection.GeneratedProtocolMessageType( "GcsFolderDestination", (_message.Message,), - dict( - DESCRIPTOR=_GCSFOLDERDESTINATION, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""Export folder destination of the data. + { + "DESCRIPTOR": _GCSFOLDERDESTINATION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """Export folder destination of the data. + Attributes: output_folder_uri: Required. Cloud Storage directory to export data to. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GcsFolderDestination) - ), + }, ) _sym_db.RegisterMessage(GcsFolderDestination) DataItem = _reflection.GeneratedProtocolMessageType( "DataItem", (_message.Message,), - dict( - DESCRIPTOR=_DATAITEM, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""DataItem is a piece of data, without annotation. For example, an + { + "DESCRIPTOR": _DATAITEM, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """DataItem is a piece of data, without annotation. For example, an image. + Attributes: payload: Output only. @@ -2014,27 +2110,28 @@ The video payload, a container of the video uri. name: Output only. Name of the data item, in format of: projects/{pr - oject\_id}/datasets/{dataset\_id}/dataItems/{data\_item\_id} + oject_id}/datasets/{dataset_id}/dataItems/{data_item_id} """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DataItem) - ), + }, ) _sym_db.RegisterMessage(DataItem) AnnotatedDataset = _reflection.GeneratedProtocolMessageType( "AnnotatedDataset", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEDDATASET, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""AnnotatedDataset is a set holding annotations for data in a Dataset. + { + "DESCRIPTOR": _ANNOTATEDDATASET, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """AnnotatedDataset is a set holding annotations for data in a Dataset. Each labeling task will generate an AnnotatedDataset under the Dataset that the task is requested for. + Attributes: name: - Output only. AnnotatedDataset resource name in format of: proj - ects/{project\_id}/datasets/{dataset\_id}/annotatedDatasets/ - {annotated\_dataset\_id} + Output only. AnnotatedDataset resource name in format of: + projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + {annotated_dataset_id} display_name: Output only. The display name of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling @@ -2064,36 +2161,37 @@ blocking changes to the annotated dataset. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotatedDataset) - ), + }, ) _sym_db.RegisterMessage(AnnotatedDataset) LabelStats = _reflection.GeneratedProtocolMessageType( "LabelStats", (_message.Message,), - dict( - ExampleCountEntry=_reflection.GeneratedProtocolMessageType( + { + "ExampleCountEntry": _reflection.GeneratedProtocolMessageType( "ExampleCountEntry", (_message.Message,), - dict( - DESCRIPTOR=_LABELSTATS_EXAMPLECOUNTENTRY, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2" + { + "DESCRIPTOR": _LABELSTATS_EXAMPLECOUNTENTRY, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2" # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelStats.ExampleCountEntry) - ), + }, ), - DESCRIPTOR=_LABELSTATS, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""Statistics about annotation specs. + "DESCRIPTOR": _LABELSTATS, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """Statistics about annotation specs. + Attributes: example_count: - Map of each annotation spec's example count. Key is the + Map of each annotation spec’s example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelStats) - ), + }, ) _sym_db.RegisterMessage(LabelStats) _sym_db.RegisterMessage(LabelStats.ExampleCountEntry) @@ -2101,10 +2199,11 @@ AnnotatedDatasetMetadata = _reflection.GeneratedProtocolMessageType( "AnnotatedDatasetMetadata", (_message.Message,), - dict( - DESCRIPTOR=_ANNOTATEDDATASETMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""Metadata on AnnotatedDataset. + { + "DESCRIPTOR": _ANNOTATEDDATASETMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """Metadata on AnnotatedDataset. + Attributes: annotation_request_config: Specific request configuration used when requesting the @@ -2134,18 +2233,19 @@ task for this AnnotatedDataset. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) - ), + }, ) _sym_db.RegisterMessage(AnnotatedDatasetMetadata) Example = _reflection.GeneratedProtocolMessageType( "Example", (_message.Message,), - dict( - DESCRIPTOR=_EXAMPLE, - __module__="google.cloud.datalabeling_v1beta1.proto.dataset_pb2", - __doc__="""An Example is a piece of data and its annotation. For example, an - image with label "house". + { + "DESCRIPTOR": _EXAMPLE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.dataset_pb2", + "__doc__": """An Example is a piece of data and its annotation. For example, an + image with label “house”. + Attributes: payload: Output only. The data part of Example. @@ -2156,15 +2256,15 @@ video_payload: The video payload, a container of the video uri. name: - Output only. Name of the example, in format of: projects/{proj - ect\_id}/datasets/{dataset\_id}/annotatedDatasets/ - {annotated\_dataset\_id}/examples/{example\_id} + Output only. Name of the example, in format of: + projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + {annotated_dataset_id}/examples/{example_id} annotations: Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Example) - ), + }, ) _sym_db.RegisterMessage(Example) diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/dataset_pb2_grpc.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/dataset_pb2_grpc.py index 07cb78fe03a9..8a9393943bdf 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/dataset_pb2_grpc.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/dataset_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_job_pb2.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_job_pb2.py index 4e9a1cc68176..654cbb972be2 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_job_pb2.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_job_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datalabeling_v1beta1/proto/evaluation_job.proto - -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -34,12 +31,9 @@ name="google/cloud/datalabeling_v1beta1/proto/evaluation_job.proto", package="google.cloud.datalabeling.v1beta1", syntax="proto3", - serialized_options=_b( - "\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling" - ), - serialized_pb=_b( - '\n`__ is the starting point for using continuous evaluation. + Attributes: name: Output only. After you create a job, Data Labeling Service assigns a name to the job with the following format: - "projects/{project\_id}/evaluationJobs/{evaluation\_job\_id}" + “projects/{project_id}/evaluationJobs/{evaluation_job_id}” description: Required. Description of the job. The description can be up to 25,000 characters long. @@ -785,9 +832,9 @@ engine/docs/prediction-overview>`__ to be evaluated. Prediction input and output is sampled from this model version. When creating an evaluation job, specify the model - version in the following format: "projects/{project\_id}/mode - ls/{model\_name}/versions/{version\_name}" There can only be - one evaluation job per model version. + version in the following format: “projects/{project_id}/model + s/{model_name}/versions/{version_name}” There can only be one + evaluation job per model version. evaluation_job_config: Required. Configuration details for the evaluation job. annotation_spec_set: @@ -795,14 +842,14 @@ eling.v1beta1.AnnotationSpecSet] describing all the labels that your machine learning model outputs. You must create this resource before you create an evaluation job and provide its - name in the following format: "projects/{project\_id}/annotat - ionSpecSets/{annotation\_spec\_set\_id}" + name in the following format: “projects/{project_id}/annotati + onSpecSets/{annotation_spec_set_id}” label_missing_ground_truth: Required. Whether you want Data Labeling Service to provide ground truth labels for prediction input. If you want the service to assign human labelers to annotate your data, set this to ``true``. If you want to provide your own ground truth - labels in the evaluation job's BigQuery table, set this to + labels in the evaluation job’s BigQuery table, set this to ``false``. attempts: Output only. Every time the evaluation job runs and an error @@ -812,27 +859,28 @@ created. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationJob) - ), + }, ) _sym_db.RegisterMessage(EvaluationJob) EvaluationJobConfig = _reflection.GeneratedProtocolMessageType( "EvaluationJobConfig", (_message.Message,), - dict( - BigqueryImportKeysEntry=_reflection.GeneratedProtocolMessageType( + { + "BigqueryImportKeysEntry": _reflection.GeneratedProtocolMessageType( "BigqueryImportKeysEntry", (_message.Message,), - dict( - DESCRIPTOR=_EVALUATIONJOBCONFIG_BIGQUERYIMPORTKEYSENTRY, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_job_pb2" + { + "DESCRIPTOR": _EVALUATIONJOBCONFIG_BIGQUERYIMPORTKEYSENTRY, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_job_pb2" # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationJobConfig.BigqueryImportKeysEntry) - ), + }, ), - DESCRIPTOR=_EVALUATIONJOBCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_job_pb2", - __doc__="""Configures specific details of how a continuous evaluation job works. + "DESCRIPTOR": _EVALUATIONJOBCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_job_pb2", + "__doc__": """Configures specific details of how a continuous evaluation job works. Provide this configuration when you create an EvaluationJob. + Attributes: human_annotation_request_config: Required. Details for how you want human reviewers to provide @@ -842,26 +890,26 @@ classification or general classification. ``annotationSpecSet`` in this configuration must match [Evalua tionJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.E - valuationJob.annotation\_spec\_set]. ``allowMultiLabel`` in - this configuration must match - ``classificationMetadata.isMultiLabel`` in [input\_config][goo - gle.cloud.datalabeling.v1beta1.EvaluationJobConfig.input\_conf - ig]. + valuationJob.annotation_spec_set]. ``allowMultiLabel`` in this + configuration must match + ``classificationMetadata.isMultiLabel`` in [input_config][goog + le.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config + ]. bounding_poly_config: Specify this field if your model version performs image object detection (bounding box detection). ``annotationSpecSet`` in this configuration must match [EvaluationJob.annotationSpecSet - ][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation\_ - spec\_set]. + ][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_s + pec_set]. text_classification_config: Specify this field if your model version performs text classification. ``annotationSpecSet`` in this configuration must match [EvaluationJob.annotationSpecSet][google.cloud.data - labeling.v1beta1.EvaluationJob.annotation\_spec\_set]. + labeling.v1beta1.EvaluationJob.annotation_spec_set]. ``allowMultiLabel`` in this configuration must match - ``classificationMetadata.isMultiLabel`` in [input\_config][goo - gle.cloud.datalabeling.v1beta1.EvaluationJobConfig.input\_conf - ig]. + ``classificationMetadata.isMultiLabel`` in [input_config][goog + le.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config + ]. input_config: Rquired. Details for the sampled prediction input. Within this configuration, there are requirements for several fields: - @@ -885,7 +933,7 @@ human_annotation_config: Optional. Details for human annotation of your data. If you set [labelMissingGroundTruth][google.cloud.datalabeling.v1beta - 1.EvaluationJob.label\_missing\_ground\_truth] to ``true`` for + 1.EvaluationJob.label_missing_ground_truth] to ``true`` for this evaluation job, then you must specify this field. If you plan to provide your own ground truth labels, then omit this field. Note that you must create an @@ -933,7 +981,7 @@ average precision during a run. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationJobConfig) - ), + }, ) _sym_db.RegisterMessage(EvaluationJobConfig) _sym_db.RegisterMessage(EvaluationJobConfig.BigqueryImportKeysEntry) @@ -941,41 +989,43 @@ EvaluationJobAlertConfig = _reflection.GeneratedProtocolMessageType( "EvaluationJobAlertConfig", (_message.Message,), - dict( - DESCRIPTOR=_EVALUATIONJOBALERTCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_job_pb2", - __doc__="""Provides details for how an evaluation job sends email alerts based on + { + "DESCRIPTOR": _EVALUATIONJOBALERTCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_job_pb2", + "__doc__": """Provides details for how an evaluation job sends email alerts based on the results of a run. + Attributes: email: Required. An email address to send alerts to. min_acceptable_mean_average_precision: Required. A number between 0 and 1 that describes a minimum mean average precision threshold. When the evaluation job - runs, if it calculates that your model version's predictions + runs, if it calculates that your model version’s predictions from the recent interval have [meanAveragePrecision][google.cl - oud.datalabeling.v1beta1.PrCurve.mean\_average\_precision] - below this threshold, then it sends an alert to your specified + oud.datalabeling.v1beta1.PrCurve.mean_average_precision] below + this threshold, then it sends an alert to your specified email. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) - ), + }, ) _sym_db.RegisterMessage(EvaluationJobAlertConfig) Attempt = _reflection.GeneratedProtocolMessageType( "Attempt", (_message.Message,), - dict( - DESCRIPTOR=_ATTEMPT, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_job_pb2", - __doc__="""Records a failed evaluation job run. + { + "DESCRIPTOR": _ATTEMPT, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_job_pb2", + "__doc__": """Records a failed evaluation job run. + Attributes: partial_failures: Details of errors that occurred. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Attempt) - ), + }, ) _sym_db.RegisterMessage(Attempt) diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_job_pb2_grpc.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_job_pb2_grpc.py index 07cb78fe03a9..8a9393943bdf 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_job_pb2_grpc.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_job_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_pb2.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_pb2.py index 029190db101e..87a809cfc3b1 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_pb2.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datalabeling_v1beta1/proto/evaluation.proto - -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -30,12 +27,9 @@ name="google/cloud/datalabeling_v1beta1/proto/evaluation.proto", package="google.cloud.datalabeling.v1beta1", syntax="proto3", - serialized_options=_b( - "\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling" - ), - serialized_pb=_b( - '\n8google/cloud/datalabeling_v1beta1/proto/evaluation.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/datalabeling_v1beta1/proto/annotation.proto\x1a\x41google/cloud/datalabeling_v1beta1/proto/annotation_spec_set.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xf6\x03\n\nEvaluation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x33.google.cloud.datalabeling.v1beta1.EvaluationConfig\x12;\n\x17\x65valuation_job_run_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12P\n\x12\x65valuation_metrics\x18\x05 \x01(\x0b\x32\x34.google.cloud.datalabeling.v1beta1.EvaluationMetrics\x12J\n\x0f\x61nnotation_type\x18\x06 \x01(\x0e\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationType\x12\x1c\n\x14\x65valuated_item_count\x18\x07 \x01(\x03:k\xea\x41h\n&datalabeling.googleapis.com/Evaluation\x12>projects/{project}/datasets/{dataset}/evaluations/{evaluation}"\x91\x01\n\x10\x45valuationConfig\x12j\n\x1f\x62ounding_box_evaluation_options\x18\x01 \x01(\x0b\x32?.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsH\x00\x42\x11\n\x0fvertical_option"5\n\x1c\x42oundingBoxEvaluationOptions\x12\x15\n\riou_threshold\x18\x01 \x01(\x02"\xd9\x01\n\x11\x45valuationMetrics\x12Z\n\x16\x63lassification_metrics\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.ClassificationMetricsH\x00\x12]\n\x18object_detection_metrics\x18\x02 \x01(\x0b\x32\x39.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsH\x00\x42\t\n\x07metrics"\xa3\x01\n\x15\x43lassificationMetrics\x12<\n\x08pr_curve\x18\x01 \x01(\x0b\x32*.google.cloud.datalabeling.v1beta1.PrCurve\x12L\n\x10\x63onfusion_matrix\x18\x02 \x01(\x0b\x32\x32.google.cloud.datalabeling.v1beta1.ConfusionMatrix"V\n\x16ObjectDetectionMetrics\x12<\n\x08pr_curve\x18\x01 \x01(\x0b\x32*.google.cloud.datalabeling.v1beta1.PrCurve"\xe6\x03\n\x07PrCurve\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12\x18\n\x10\x61rea_under_curve\x18\x02 \x01(\x02\x12\x65\n\x1a\x63onfidence_metrics_entries\x18\x03 \x03(\x0b\x32\x41.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry\x12\x1e\n\x16mean_average_precision\x18\x04 \x01(\x02\x1a\xed\x01\n\x16\x43onfidenceMetricsEntry\x12\x1c\n\x14\x63onfidence_threshold\x18\x01 \x01(\x02\x12\x0e\n\x06recall\x18\x02 \x01(\x02\x12\x11\n\tprecision\x18\x03 \x01(\x02\x12\x10\n\x08\x66\x31_score\x18\x04 \x01(\x02\x12\x12\n\nrecall_at1\x18\x05 \x01(\x02\x12\x15\n\rprecision_at1\x18\x06 \x01(\x02\x12\x14\n\x0c\x66\x31_score_at1\x18\x07 \x01(\x02\x12\x12\n\nrecall_at5\x18\x08 \x01(\x02\x12\x15\n\rprecision_at5\x18\t \x01(\x02\x12\x14\n\x0c\x66\x31_score_at5\x18\n \x01(\x02"\xfc\x02\n\x0f\x43onfusionMatrix\x12\x43\n\x03row\x18\x01 \x03(\x0b\x32\x36.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row\x1av\n\x14\x43onfusionMatrixEntry\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12\x12\n\nitem_count\x18\x02 \x01(\x05\x1a\xab\x01\n\x03Row\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12X\n\x07\x65ntries\x18\x02 \x03(\x0b\x32G.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryBx\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3' - ), + serialized_options=b"\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n8google/cloud/datalabeling_v1beta1/proto/evaluation.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/datalabeling_v1beta1/proto/annotation.proto\x1a\x41google/cloud/datalabeling_v1beta1/proto/annotation_spec_set.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xf6\x03\n\nEvaluation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x33.google.cloud.datalabeling.v1beta1.EvaluationConfig\x12;\n\x17\x65valuation_job_run_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12P\n\x12\x65valuation_metrics\x18\x05 \x01(\x0b\x32\x34.google.cloud.datalabeling.v1beta1.EvaluationMetrics\x12J\n\x0f\x61nnotation_type\x18\x06 \x01(\x0e\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationType\x12\x1c\n\x14\x65valuated_item_count\x18\x07 \x01(\x03:k\xea\x41h\n&datalabeling.googleapis.com/Evaluation\x12>projects/{project}/datasets/{dataset}/evaluations/{evaluation}"\x91\x01\n\x10\x45valuationConfig\x12j\n\x1f\x62ounding_box_evaluation_options\x18\x01 \x01(\x0b\x32?.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsH\x00\x42\x11\n\x0fvertical_option"5\n\x1c\x42oundingBoxEvaluationOptions\x12\x15\n\riou_threshold\x18\x01 \x01(\x02"\xd9\x01\n\x11\x45valuationMetrics\x12Z\n\x16\x63lassification_metrics\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.ClassificationMetricsH\x00\x12]\n\x18object_detection_metrics\x18\x02 \x01(\x0b\x32\x39.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsH\x00\x42\t\n\x07metrics"\xa3\x01\n\x15\x43lassificationMetrics\x12<\n\x08pr_curve\x18\x01 \x01(\x0b\x32*.google.cloud.datalabeling.v1beta1.PrCurve\x12L\n\x10\x63onfusion_matrix\x18\x02 \x01(\x0b\x32\x32.google.cloud.datalabeling.v1beta1.ConfusionMatrix"V\n\x16ObjectDetectionMetrics\x12<\n\x08pr_curve\x18\x01 \x01(\x0b\x32*.google.cloud.datalabeling.v1beta1.PrCurve"\xe6\x03\n\x07PrCurve\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12\x18\n\x10\x61rea_under_curve\x18\x02 \x01(\x02\x12\x65\n\x1a\x63onfidence_metrics_entries\x18\x03 \x03(\x0b\x32\x41.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry\x12\x1e\n\x16mean_average_precision\x18\x04 \x01(\x02\x1a\xed\x01\n\x16\x43onfidenceMetricsEntry\x12\x1c\n\x14\x63onfidence_threshold\x18\x01 \x01(\x02\x12\x0e\n\x06recall\x18\x02 \x01(\x02\x12\x11\n\tprecision\x18\x03 \x01(\x02\x12\x10\n\x08\x66\x31_score\x18\x04 \x01(\x02\x12\x12\n\nrecall_at1\x18\x05 \x01(\x02\x12\x15\n\rprecision_at1\x18\x06 \x01(\x02\x12\x14\n\x0c\x66\x31_score_at1\x18\x07 \x01(\x02\x12\x12\n\nrecall_at5\x18\x08 \x01(\x02\x12\x15\n\rprecision_at5\x18\t \x01(\x02\x12\x14\n\x0c\x66\x31_score_at5\x18\n \x01(\x02"\xfc\x02\n\x0f\x43onfusionMatrix\x12\x43\n\x03row\x18\x01 \x03(\x0b\x32\x36.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row\x1av\n\x14\x43onfusionMatrixEntry\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12\x12\n\nitem_count\x18\x02 \x01(\x05\x1a\xab\x01\n\x03Row\x12J\n\x0f\x61nnotation_spec\x18\x01 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.AnnotationSpec\x12X\n\x07\x65ntries\x18\x02 \x03(\x0b\x32G.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryBx\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, @@ -52,6 +46,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -62,7 +57,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -70,6 +65,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="config", @@ -88,6 +84,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="evaluation_job_run_time", @@ -106,6 +103,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -124,6 +122,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="evaluation_metrics", @@ -142,6 +141,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_type", @@ -160,6 +160,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="evaluated_item_count", @@ -178,14 +179,13 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352Ah\n&datalabeling.googleapis.com/Evaluation\022>projects/{project}/datasets/{dataset}/evaluations/{evaluation}" - ), + serialized_options=b"\352Ah\n&datalabeling.googleapis.com/Evaluation\022>projects/{project}/datasets/{dataset}/evaluations/{evaluation}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -201,6 +201,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bounding_box_evaluation_options", @@ -219,7 +220,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -234,8 +236,9 @@ full_name="google.cloud.datalabeling.v1beta1.EvaluationConfig.vertical_option", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=816, serialized_end=961, @@ -248,6 +251,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="iou_threshold", @@ -266,7 +270,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -287,6 +292,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="classification_metrics", @@ -305,6 +311,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="object_detection_metrics", @@ -323,6 +330,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -338,8 +346,9 @@ full_name="google.cloud.datalabeling.v1beta1.EvaluationMetrics.metrics", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=1019, serialized_end=1236, @@ -352,6 +361,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="pr_curve", @@ -370,6 +380,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confusion_matrix", @@ -388,6 +399,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -409,6 +421,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="pr_curve", @@ -427,7 +440,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -448,6 +462,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="confidence_threshold", @@ -466,6 +481,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="recall", @@ -484,6 +500,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="precision", @@ -502,6 +519,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="f1_score", @@ -520,6 +538,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="recall_at1", @@ -538,6 +557,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="precision_at1", @@ -556,6 +576,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="f1_score_at1", @@ -574,6 +595,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="recall_at5", @@ -592,6 +614,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="precision_at5", @@ -610,6 +633,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="f1_score_at5", @@ -628,6 +652,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -648,6 +673,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec", @@ -666,6 +692,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="area_under_curve", @@ -684,6 +711,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidence_metrics_entries", @@ -702,6 +730,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="mean_average_precision", @@ -720,10 +749,11 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_PRCURVE_CONFIDENCEMETRICSENTRY], + nested_types=[_PRCURVE_CONFIDENCEMETRICSENTRY,], enum_types=[], serialized_options=None, is_extendable=False, @@ -741,6 +771,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec", @@ -759,6 +790,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="item_count", @@ -777,6 +809,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -797,6 +830,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec", @@ -815,6 +849,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="entries", @@ -833,6 +868,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -853,6 +889,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="row", @@ -871,10 +908,11 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], - nested_types=[_CONFUSIONMATRIX_CONFUSIONMATRIXENTRY, _CONFUSIONMATRIX_ROW], + nested_types=[_CONFUSIONMATRIX_CONFUSIONMATRIXENTRY, _CONFUSIONMATRIX_ROW,], enum_types=[], serialized_options=None, is_extendable=False, @@ -970,18 +1008,19 @@ Evaluation = _reflection.GeneratedProtocolMessageType( "Evaluation", (_message.Message,), - dict( - DESCRIPTOR=_EVALUATION, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", - __doc__="""Describes an evaluation between a machine learning model's predictions + { + "DESCRIPTOR": _EVALUATION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", + "__doc__": """Describes an evaluation between a machine learning model’s predictions and ground truth labels. Created when an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] runs successfully. + Attributes: name: Output only. Resource name of an evaluation. The name has the - following format: "projects/{project\_id}/datasets/{dataset\_ - id}/evaluations/{evaluation\_id}' + following format: "projects/{project_id}/datasets/{dataset_id + }/evaluations/{evaluation_id}’ config: Output only. Options used in the evaluation job that created this evaluation. @@ -997,7 +1036,7 @@ Output only. Type of task that the model version being evaluated performs, as defined in the [evaluationJobConfig.in putConfig.annotationType][google.cloud.datalabeling.v1beta1.Ev - aluationJobConfig.input\_config] field of the evaluation job + aluationJobConfig.input_config] field of the evaluation job that created this evaluation. evaluated_item_count: Output only. The number of items in the ground truth dataset @@ -1005,19 +1044,20 @@ evaulation is for certain AnnotationTypes. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Evaluation) - ), + }, ) _sym_db.RegisterMessage(Evaluation) EvaluationConfig = _reflection.GeneratedProtocolMessageType( "EvaluationConfig", (_message.Message,), - dict( - DESCRIPTOR=_EVALUATIONCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", - __doc__="""Configuration details used for calculating evaluation metrics and + { + "DESCRIPTOR": _EVALUATIONCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", + "__doc__": """Configuration details used for calculating evaluation metrics and creating an [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation]. + Attributes: vertical_option: Vertical specific options for general metrics. @@ -1027,17 +1067,18 @@ Describes how to evaluate bounding boxes. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationConfig) - ), + }, ) _sym_db.RegisterMessage(EvaluationConfig) BoundingBoxEvaluationOptions = _reflection.GeneratedProtocolMessageType( "BoundingBoxEvaluationOptions", (_message.Message,), - dict( - DESCRIPTOR=_BOUNDINGBOXEVALUATIONOPTIONS, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", - __doc__="""Options regarding evaluation between bounding boxes. + { + "DESCRIPTOR": _BOUNDINGBOXEVALUATIONOPTIONS, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", + "__doc__": """Options regarding evaluation between bounding boxes. + Attributes: iou_threshold: Minimum [intersection-over-union @@ -1047,78 +1088,80 @@ number between 0 and 1. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) - ), + }, ) _sym_db.RegisterMessage(BoundingBoxEvaluationOptions) EvaluationMetrics = _reflection.GeneratedProtocolMessageType( "EvaluationMetrics", (_message.Message,), - dict( - DESCRIPTOR=_EVALUATIONMETRICS, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", - __doc__=""" + { + "DESCRIPTOR": _EVALUATIONMETRICS, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", + "__doc__": """ Attributes: metrics: Common metrics covering most general cases. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationMetrics) - ), + }, ) _sym_db.RegisterMessage(EvaluationMetrics) ClassificationMetrics = _reflection.GeneratedProtocolMessageType( "ClassificationMetrics", (_message.Message,), - dict( - DESCRIPTOR=_CLASSIFICATIONMETRICS, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", - __doc__="""Metrics calculated for a classification model. + { + "DESCRIPTOR": _CLASSIFICATIONMETRICS, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", + "__doc__": """Metrics calculated for a classification model. + Attributes: pr_curve: Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels. confusion_matrix: - Confusion matrix of predicted labels vs. ground truth labels. + Confusion matrix of predicted labels vs. ground truth labels. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ClassificationMetrics) - ), + }, ) _sym_db.RegisterMessage(ClassificationMetrics) ObjectDetectionMetrics = _reflection.GeneratedProtocolMessageType( "ObjectDetectionMetrics", (_message.Message,), - dict( - DESCRIPTOR=_OBJECTDETECTIONMETRICS, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", - __doc__="""Metrics calculated for an image object detection (bounding box) model. + { + "DESCRIPTOR": _OBJECTDETECTIONMETRICS, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", + "__doc__": """Metrics calculated for an image object detection (bounding box) model. + Attributes: pr_curve: Precision-recall curve. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) - ), + }, ) _sym_db.RegisterMessage(ObjectDetectionMetrics) PrCurve = _reflection.GeneratedProtocolMessageType( "PrCurve", (_message.Message,), - dict( - ConfidenceMetricsEntry=_reflection.GeneratedProtocolMessageType( + { + "ConfidenceMetricsEntry": _reflection.GeneratedProtocolMessageType( "ConfidenceMetricsEntry", (_message.Message,), - dict( - DESCRIPTOR=_PRCURVE_CONFIDENCEMETRICSENTRY, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", - __doc__=""" + { + "DESCRIPTOR": _PRCURVE_CONFIDENCEMETRICSENTRY, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", + "__doc__": """ Attributes: confidence_threshold: Threshold used for this entry. For classification tasks, this is a classification threshold: a predicted label is categorized as positive or negative (in the context of this - point on the PR curve) based on whether the label's score + point on the PR curve) based on whether the label’s score meets this threshold. For image object detection (bounding box) tasks, this is the [intersection-over-union (IOU)](/vision/automl/object- @@ -1135,27 +1178,27 @@ precision_at1: Precision value for entries with label that has highest score. f1_score_at1: - The harmonic mean of [recall\_at1][google.cloud.datalabeling.v - 1beta1.PrCurve.ConfidenceMetricsEntry.recall\_at1] and [precis - ion\_at1][google.cloud.datalabeling.v1beta1.PrCurve.Confidence - MetricsEntry.precision\_at1]. + The harmonic mean of [recall_at1][google.cloud.datalabeling.v1 + beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precisio + n_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMet + ricsEntry.precision_at1]. recall_at5: Recall value for entries with label that has highest 5 scores. precision_at5: Precision value for entries with label that has highest 5 scores. f1_score_at5: - The harmonic mean of [recall\_at5][google.cloud.datalabeling.v - 1beta1.PrCurve.ConfidenceMetricsEntry.recall\_at5] and [precis - ion\_at5][google.cloud.datalabeling.v1beta1.PrCurve.Confidence - MetricsEntry.precision\_at5]. + The harmonic mean of [recall_at5][google.cloud.datalabeling.v1 + beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precisio + n_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMet + ricsEntry.precision_at5]. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) - ), + }, ), - DESCRIPTOR=_PRCURVE, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", - __doc__=""" + "DESCRIPTOR": _PRCURVE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", + "__doc__": """ Attributes: annotation_spec: The annotation spec of the label for which the precision- @@ -1167,13 +1210,13 @@ area under a receiver operating characteristic (ROC) curve. confidence_metrics_entries: Entries that make up the precision-recall graph. Each entry is - a "point" on the graph drawn for a different + a “point” on the graph drawn for a different ``confidence_threshold``. mean_average_precision: Mean average prcision of this curve. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PrCurve) - ), + }, ) _sym_db.RegisterMessage(PrCurve) _sym_db.RegisterMessage(PrCurve.ConfidenceMetricsEntry) @@ -1181,33 +1224,34 @@ ConfusionMatrix = _reflection.GeneratedProtocolMessageType( "ConfusionMatrix", (_message.Message,), - dict( - ConfusionMatrixEntry=_reflection.GeneratedProtocolMessageType( + { + "ConfusionMatrixEntry": _reflection.GeneratedProtocolMessageType( "ConfusionMatrixEntry", (_message.Message,), - dict( - DESCRIPTOR=_CONFUSIONMATRIX_CONFUSIONMATRIXENTRY, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", - __doc__=""" + { + "DESCRIPTOR": _CONFUSIONMATRIX_CONFUSIONMATRIXENTRY, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", + "__doc__": """ Attributes: annotation_spec: The annotation spec of a predicted label. item_count: Number of items predicted to have this label. (The ground truth label for these items is the ``Row.annotationSpec`` of - this entry's parent.) + this entry’s parent.) """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) - ), + }, ), - Row=_reflection.GeneratedProtocolMessageType( + "Row": _reflection.GeneratedProtocolMessageType( "Row", (_message.Message,), - dict( - DESCRIPTOR=_CONFUSIONMATRIX_ROW, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", - __doc__="""A row in the confusion matrix. Each entry in this row has the same + { + "DESCRIPTOR": _CONFUSIONMATRIX_ROW, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", + "__doc__": """A row in the confusion matrix. Each entry in this row has the same ground truth label. + Attributes: annotation_spec: The annotation spec of the ground truth label for this row. @@ -1216,15 +1260,15 @@ possible predicted label. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) - ), + }, ), - DESCRIPTOR=_CONFUSIONMATRIX, - __module__="google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", - __doc__="""Confusion matrix of the model running the classification. Only + "DESCRIPTOR": _CONFUSIONMATRIX, + "__module__": "google.cloud.datalabeling_v1beta1.proto.evaluation_pb2", + "__doc__": """Confusion matrix of the model running the classification. Only applicable when the metrics entry aggregates multiple labels. Not applicable when the entry is for a single label.""", # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix) - ), + }, ) _sym_db.RegisterMessage(ConfusionMatrix) _sym_db.RegisterMessage(ConfusionMatrix.ConfusionMatrixEntry) diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_pb2_grpc.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_pb2_grpc.py index 07cb78fe03a9..8a9393943bdf 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_pb2_grpc.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/evaluation_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/human_annotation_config_pb2.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/human_annotation_config_pb2.py index 7311cdbdd8c6..35de231f1c0c 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/human_annotation_config_pb2.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/human_annotation_config_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datalabeling_v1beta1/proto/human_annotation_config.proto - -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -25,12 +22,9 @@ name="google/cloud/datalabeling_v1beta1/proto/human_annotation_config.proto", package="google.cloud.datalabeling.v1beta1", syntax="proto3", - serialized_options=_b( - "\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling" - ), - serialized_pb=_b( - '\nEgoogle/cloud/datalabeling_v1beta1/proto/human_annotation_config.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/duration.proto"\xd4\x02\n\x15HumanAnnotationConfig\x12\x18\n\x0binstruction\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12+\n\x1e\x61nnotated_dataset_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12*\n\x1d\x61nnotated_dataset_description\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0blabel_group\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rreplica_count\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x39\n\x11question_duration\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x1f\n\x12\x63ontributor_emails\x18\t \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\x12user_email_address\x18\n \x01(\t"\xbd\x01\n\x19ImageClassificationConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11\x61llow_multi_label\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12^\n\x17\x61nswer_aggregation_type\x18\x03 \x01(\x0e\x32\x38.google.cloud.datalabeling.v1beta1.StringAggregationTypeB\x03\xe0\x41\x01"X\n\x12\x42oundingPolyConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13instruction_message\x18\x02 \x01(\tB\x03\xe0\x41\x01"T\n\x0ePolylineConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13instruction_message\x18\x02 \x01(\tB\x03\xe0\x41\x01"S\n\x12SegmentationConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x13instruction_message\x18\x02 \x01(\t"\x9b\x02\n\x19VideoClassificationConfig\x12~\n\x1b\x61nnotation_spec_set_configs\x18\x01 \x03(\x0b\x32T.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigB\x03\xe0\x41\x02\x12!\n\x14\x61pply_shot_detection\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1a[\n\x17\x41nnotationSpecSetConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11\x61llow_multi_label\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01"]\n\x15ObjectDetectionConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12"\n\x15\x65xtraction_frame_rate\x18\x03 \x01(\x01\x42\x03\xe0\x41\x02"8\n\x14ObjectTrackingConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02"0\n\x0b\x45ventConfig\x12!\n\x14\x61nnotation_spec_sets\x18\x01 \x03(\tB\x03\xe0\x41\x02"\xaf\x01\n\x18TextClassificationConfig\x12\x1e\n\x11\x61llow_multi_label\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13\x61nnotation_spec_set\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Q\n\x10sentiment_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.datalabeling.v1beta1.SentimentConfigB\x03\xe0\x41\x01";\n\x0fSentimentConfig\x12(\n enable_label_sentiment_selection\x18\x01 \x01(\x08">\n\x1aTextEntityExtractionConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02*{\n\x15StringAggregationType\x12\'\n#STRING_AGGREGATION_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rMAJORITY_VOTE\x10\x01\x12\x12\n\x0eUNANIMOUS_VOTE\x10\x02\x12\x12\n\x0eNO_AGGREGATION\x10\x03\x42x\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3' - ), + serialized_options=b"\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\nEgoogle/cloud/datalabeling_v1beta1/proto/human_annotation_config.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/duration.proto"\xd4\x02\n\x15HumanAnnotationConfig\x12\x18\n\x0binstruction\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12+\n\x1e\x61nnotated_dataset_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12*\n\x1d\x61nnotated_dataset_description\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0blabel_group\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rreplica_count\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x39\n\x11question_duration\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x1f\n\x12\x63ontributor_emails\x18\t \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\x12user_email_address\x18\n \x01(\t"\xbd\x01\n\x19ImageClassificationConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11\x61llow_multi_label\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12^\n\x17\x61nswer_aggregation_type\x18\x03 \x01(\x0e\x32\x38.google.cloud.datalabeling.v1beta1.StringAggregationTypeB\x03\xe0\x41\x01"X\n\x12\x42oundingPolyConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13instruction_message\x18\x02 \x01(\tB\x03\xe0\x41\x01"T\n\x0ePolylineConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13instruction_message\x18\x02 \x01(\tB\x03\xe0\x41\x01"S\n\x12SegmentationConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x13instruction_message\x18\x02 \x01(\t"\x9b\x02\n\x19VideoClassificationConfig\x12~\n\x1b\x61nnotation_spec_set_configs\x18\x01 \x03(\x0b\x32T.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigB\x03\xe0\x41\x02\x12!\n\x14\x61pply_shot_detection\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1a[\n\x17\x41nnotationSpecSetConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11\x61llow_multi_label\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01"]\n\x15ObjectDetectionConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12"\n\x15\x65xtraction_frame_rate\x18\x03 \x01(\x01\x42\x03\xe0\x41\x02"8\n\x14ObjectTrackingConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02"0\n\x0b\x45ventConfig\x12!\n\x14\x61nnotation_spec_sets\x18\x01 \x03(\tB\x03\xe0\x41\x02"\xaf\x01\n\x18TextClassificationConfig\x12\x1e\n\x11\x61llow_multi_label\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13\x61nnotation_spec_set\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Q\n\x10sentiment_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.datalabeling.v1beta1.SentimentConfigB\x03\xe0\x41\x01";\n\x0fSentimentConfig\x12(\n enable_label_sentiment_selection\x18\x01 \x01(\x08">\n\x1aTextEntityExtractionConfig\x12 \n\x13\x61nnotation_spec_set\x18\x01 \x01(\tB\x03\xe0\x41\x02*{\n\x15StringAggregationType\x12\'\n#STRING_AGGREGATION_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rMAJORITY_VOTE\x10\x01\x12\x12\n\x0eUNANIMOUS_VOTE\x10\x02\x12\x12\n\x0eNO_AGGREGATION\x10\x03\x42x\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, @@ -43,6 +37,7 @@ full_name="google.cloud.datalabeling.v1beta1.StringAggregationType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="STRING_AGGREGATION_TYPE_UNSPECIFIED", @@ -50,15 +45,31 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MAJORITY_VOTE", index=1, number=1, serialized_options=None, type=None + name="MAJORITY_VOTE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UNANIMOUS_VOTE", index=2, number=2, serialized_options=None, type=None + name="UNANIMOUS_VOTE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NO_AGGREGATION", index=3, number=3, serialized_options=None, type=None + name="NO_AGGREGATION", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -81,6 +92,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="instruction", @@ -91,14 +103,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotated_dataset_display_name", @@ -109,14 +122,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotated_dataset_description", @@ -127,14 +141,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="label_group", @@ -145,14 +160,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_code", @@ -163,14 +179,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="replica_count", @@ -187,8 +204,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="question_duration", @@ -205,8 +223,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="contributor_emails", @@ -223,8 +242,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="user_email_address", @@ -235,7 +255,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -243,6 +263,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -264,6 +285,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec_set", @@ -274,14 +296,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="allow_multi_label", @@ -298,8 +321,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="answer_aggregation_type", @@ -316,8 +340,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -339,6 +364,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec_set", @@ -349,14 +375,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="instruction_message", @@ -367,14 +394,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -396,6 +424,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec_set", @@ -406,14 +435,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="instruction_message", @@ -424,14 +454,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -453,6 +484,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec_set", @@ -463,14 +495,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="instruction_message", @@ -481,7 +514,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -489,6 +522,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -510,6 +544,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec_set", @@ -520,14 +555,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="allow_multi_label", @@ -544,8 +580,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -566,6 +603,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec_set_configs", @@ -582,8 +620,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="apply_shot_detection", @@ -600,12 +639,13 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_VIDEOCLASSIFICATIONCONFIG_ANNOTATIONSPECSETCONFIG], + nested_types=[_VIDEOCLASSIFICATIONCONFIG_ANNOTATIONSPECSETCONFIG,], enum_types=[], serialized_options=None, is_extendable=False, @@ -623,6 +663,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec_set", @@ -633,14 +674,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="extraction_frame_rate", @@ -657,8 +699,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -680,6 +723,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec_set", @@ -690,15 +734,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -719,6 +764,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec_sets", @@ -735,9 +781,10 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -758,6 +805,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="allow_multi_label", @@ -774,8 +822,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annotation_spec_set", @@ -786,14 +835,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="sentiment_config", @@ -810,8 +860,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=b"\340A\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -833,6 +884,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="enable_label_sentiment_selection", @@ -851,7 +903,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -872,6 +925,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="annotation_spec_set", @@ -882,15 +936,16 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -943,10 +998,11 @@ HumanAnnotationConfig = _reflection.GeneratedProtocolMessageType( "HumanAnnotationConfig", (_message.Message,), - dict( - DESCRIPTOR=_HUMANANNOTATIONCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", - __doc__="""Configuration for how human labeling task should be done. + { + "DESCRIPTOR": _HUMANANNOTATIONCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", + "__doc__": """Configuration for how human labeling task should be done. + Attributes: instruction: Required. Instruction resource name. @@ -985,38 +1041,40 @@ notified by email. If empty no notification will be sent. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) - ), + }, ) _sym_db.RegisterMessage(HumanAnnotationConfig) ImageClassificationConfig = _reflection.GeneratedProtocolMessageType( "ImageClassificationConfig", (_message.Message,), - dict( - DESCRIPTOR=_IMAGECLASSIFICATIONCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", - __doc__="""Config for image classification human labeling task. + { + "DESCRIPTOR": _IMAGECLASSIFICATIONCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", + "__doc__": """Config for image classification human labeling task. + Attributes: annotation_spec_set: Required. Annotation spec set resource name. allow_multi_label: - Optional. If allow\_multi\_label is true, contributors are - able to choose multiple labels for one image. + Optional. If allow_multi_label is true, contributors are able + to choose multiple labels for one image. answer_aggregation_type: Optional. The type of how to aggregate answers. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - ), + }, ) _sym_db.RegisterMessage(ImageClassificationConfig) BoundingPolyConfig = _reflection.GeneratedProtocolMessageType( "BoundingPolyConfig", (_message.Message,), - dict( - DESCRIPTOR=_BOUNDINGPOLYCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", - __doc__="""Config for image bounding poly (and bounding box) human labeling task. + { + "DESCRIPTOR": _BOUNDINGPOLYCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", + "__doc__": """Config for image bounding poly (and bounding box) human labeling task. + Attributes: annotation_spec_set: Required. Annotation spec set resource name. @@ -1024,17 +1082,18 @@ Optional. Instruction message showed on contributors UI. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.BoundingPolyConfig) - ), + }, ) _sym_db.RegisterMessage(BoundingPolyConfig) PolylineConfig = _reflection.GeneratedProtocolMessageType( "PolylineConfig", (_message.Message,), - dict( - DESCRIPTOR=_POLYLINECONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", - __doc__="""Config for image polyline human labeling task. + { + "DESCRIPTOR": _POLYLINECONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", + "__doc__": """Config for image polyline human labeling task. + Attributes: annotation_spec_set: Required. Annotation spec set resource name. @@ -1042,56 +1101,59 @@ Optional. Instruction message showed on contributors UI. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PolylineConfig) - ), + }, ) _sym_db.RegisterMessage(PolylineConfig) SegmentationConfig = _reflection.GeneratedProtocolMessageType( "SegmentationConfig", (_message.Message,), - dict( - DESCRIPTOR=_SEGMENTATIONCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", - __doc__="""Config for image segmentation + { + "DESCRIPTOR": _SEGMENTATIONCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", + "__doc__": """Config for image segmentation + Attributes: annotation_spec_set: Required. Annotation spec set resource name. format: projects/ - {project\_id}/annotationSpecSets/{annotation\_spec\_set\_id} + {project_id}/annotationSpecSets/{annotation_spec_set_id} instruction_message: Instruction message showed on labelers UI. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SegmentationConfig) - ), + }, ) _sym_db.RegisterMessage(SegmentationConfig) VideoClassificationConfig = _reflection.GeneratedProtocolMessageType( "VideoClassificationConfig", (_message.Message,), - dict( - AnnotationSpecSetConfig=_reflection.GeneratedProtocolMessageType( + { + "AnnotationSpecSetConfig": _reflection.GeneratedProtocolMessageType( "AnnotationSpecSetConfig", (_message.Message,), - dict( - DESCRIPTOR=_VIDEOCLASSIFICATIONCONFIG_ANNOTATIONSPECSETCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", - __doc__="""Annotation spec set with the setting of allowing multi labels or not. + { + "DESCRIPTOR": _VIDEOCLASSIFICATIONCONFIG_ANNOTATIONSPECSETCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", + "__doc__": """Annotation spec set with the setting of allowing multi labels or not. + Attributes: annotation_spec_set: Required. Annotation spec set resource name. allow_multi_label: - Optional. If allow\_multi\_label is true, contributors are - able to choose multiple labels from one annotation spec set. + Optional. If allow_multi_label is true, contributors are able + to choose multiple labels from one annotation spec set. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) - ), + }, ), - DESCRIPTOR=_VIDEOCLASSIFICATIONCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", - __doc__="""Config for video classification human labeling task. Currently two + "DESCRIPTOR": _VIDEOCLASSIFICATIONCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", + "__doc__": """Config for video classification human labeling task. Currently two types of video classification are supported: 1. Assign labels on the entire video. 2. Split the video into multiple video clips based on camera shot, and assign labels on each video clip. + Attributes: annotation_spec_set_configs: Required. The list of annotation spec set configs. Since @@ -1104,7 +1166,7 @@ Optional. Option to apply shot detection on the video. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - ), + }, ) _sym_db.RegisterMessage(VideoClassificationConfig) _sym_db.RegisterMessage(VideoClassificationConfig.AnnotationSpecSetConfig) @@ -1112,14 +1174,15 @@ ObjectDetectionConfig = _reflection.GeneratedProtocolMessageType( "ObjectDetectionConfig", (_message.Message,), - dict( - DESCRIPTOR=_OBJECTDETECTIONCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", - __doc__="""Config for video object detection human labeling task. Object + { + "DESCRIPTOR": _OBJECTDETECTIONCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", + "__doc__": """Config for video object detection human labeling task. Object detection will be conducted on the images extracted from the video, and those objects will be labeled with bounding boxes. User need to specify the number of images to be extracted per second as the extraction frame rate. + Attributes: annotation_spec_set: Required. Annotation spec set resource name. @@ -1128,33 +1191,35 @@ video. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - ), + }, ) _sym_db.RegisterMessage(ObjectDetectionConfig) ObjectTrackingConfig = _reflection.GeneratedProtocolMessageType( "ObjectTrackingConfig", (_message.Message,), - dict( - DESCRIPTOR=_OBJECTTRACKINGCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", - __doc__="""Config for video object tracking human labeling task. + { + "DESCRIPTOR": _OBJECTTRACKINGCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", + "__doc__": """Config for video object tracking human labeling task. + Attributes: annotation_spec_set: Required. Annotation spec set resource name. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - ), + }, ) _sym_db.RegisterMessage(ObjectTrackingConfig) EventConfig = _reflection.GeneratedProtocolMessageType( "EventConfig", (_message.Message,), - dict( - DESCRIPTOR=_EVENTCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", - __doc__="""Config for video event human labeling task. + { + "DESCRIPTOR": _EVENTCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", + "__doc__": """Config for video event human labeling task. + Attributes: annotation_spec_sets: Required. The list of annotation spec set resource name. @@ -1162,38 +1227,40 @@ from multiple AnnotationSpecSet at the same time. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EventConfig) - ), + }, ) _sym_db.RegisterMessage(EventConfig) TextClassificationConfig = _reflection.GeneratedProtocolMessageType( "TextClassificationConfig", (_message.Message,), - dict( - DESCRIPTOR=_TEXTCLASSIFICATIONCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", - __doc__="""Config for text classification human labeling task. + { + "DESCRIPTOR": _TEXTCLASSIFICATIONCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", + "__doc__": """Config for text classification human labeling task. + Attributes: allow_multi_label: - Optional. If allow\_multi\_label is true, contributors are - able to choose multiple labels for one text segment. + Optional. If allow_multi_label is true, contributors are able + to choose multiple labels for one text segment. annotation_spec_set: Required. Annotation spec set resource name. sentiment_config: Optional. Configs for sentiment selection. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextClassificationConfig) - ), + }, ) _sym_db.RegisterMessage(TextClassificationConfig) SentimentConfig = _reflection.GeneratedProtocolMessageType( "SentimentConfig", (_message.Message,), - dict( - DESCRIPTOR=_SENTIMENTCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", - __doc__="""Config for setting up sentiments. + { + "DESCRIPTOR": _SENTIMENTCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", + "__doc__": """Config for setting up sentiments. + Attributes: enable_label_sentiment_selection: If set to true, contributors will have the option to select @@ -1201,23 +1268,24 @@ or positive label. Default is false. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SentimentConfig) - ), + }, ) _sym_db.RegisterMessage(SentimentConfig) TextEntityExtractionConfig = _reflection.GeneratedProtocolMessageType( "TextEntityExtractionConfig", (_message.Message,), - dict( - DESCRIPTOR=_TEXTENTITYEXTRACTIONCONFIG, - __module__="google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", - __doc__="""Config for text entity extraction human labeling task. + { + "DESCRIPTOR": _TEXTENTITYEXTRACTIONCONFIG, + "__module__": "google.cloud.datalabeling_v1beta1.proto.human_annotation_config_pb2", + "__doc__": """Config for text entity extraction human labeling task. + Attributes: annotation_spec_set: Required. Annotation spec set resource name. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - ), + }, ) _sym_db.RegisterMessage(TextEntityExtractionConfig) diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/human_annotation_config_pb2_grpc.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/human_annotation_config_pb2_grpc.py index 07cb78fe03a9..8a9393943bdf 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/human_annotation_config_pb2_grpc.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/human_annotation_config_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/instruction_pb2.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/instruction_pb2.py index 600d80bbf685..15eb13dab566 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/instruction_pb2.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/instruction_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datalabeling_v1beta1/proto/instruction.proto - -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -27,12 +24,9 @@ name="google/cloud/datalabeling_v1beta1/proto/instruction.proto", package="google.cloud.datalabeling.v1beta1", syntax="proto3", - serialized_options=_b( - "\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling" - ), - serialized_pb=_b( - '\n9google/cloud/datalabeling_v1beta1/proto/instruction.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/datalabeling_v1beta1/proto/dataset.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xfd\x03\n\x0bInstruction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\tdata_type\x18\x06 \x01(\x0e\x32+.google.cloud.datalabeling.v1beta1.DataType\x12N\n\x0f\x63sv_instruction\x18\x07 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.CsvInstructionB\x02\x18\x01\x12J\n\x0fpdf_instruction\x18\t \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.PdfInstruction\x12\x1a\n\x12\x62locking_resources\x18\n \x03(\t:[\xea\x41X\n\'datalabeling.googleapis.com/Instruction\x12-projects/{project}/instructions/{instruction}"&\n\x0e\x43svInstruction\x12\x14\n\x0cgcs_file_uri\x18\x01 \x01(\t"&\n\x0ePdfInstruction\x12\x14\n\x0cgcs_file_uri\x18\x01 \x01(\tBx\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3' - ), + serialized_options=b"\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n9google/cloud/datalabeling_v1beta1/proto/instruction.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/datalabeling_v1beta1/proto/dataset.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xfd\x03\n\x0bInstruction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\tdata_type\x18\x06 \x01(\x0e\x32+.google.cloud.datalabeling.v1beta1.DataType\x12N\n\x0f\x63sv_instruction\x18\x07 \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.CsvInstructionB\x02\x18\x01\x12J\n\x0fpdf_instruction\x18\t \x01(\x0b\x32\x31.google.cloud.datalabeling.v1beta1.PdfInstruction\x12\x1a\n\x12\x62locking_resources\x18\n \x03(\t:[\xea\x41X\n\'datalabeling.googleapis.com/Instruction\x12-projects/{project}/instructions/{instruction}"&\n\x0e\x43svInstruction\x12\x14\n\x0cgcs_file_uri\x18\x01 \x01(\t"&\n\x0ePdfInstruction\x12\x14\n\x0cgcs_file_uri\x18\x01 \x01(\tBx\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, @@ -48,6 +42,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -58,7 +53,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -66,6 +61,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="display_name", @@ -76,7 +72,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -84,6 +80,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -94,7 +91,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -102,6 +99,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -120,6 +118,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_time", @@ -138,6 +137,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="data_type", @@ -156,6 +156,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="csv_instruction", @@ -172,8 +173,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\030\001"), + serialized_options=b"\030\001", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pdf_instruction", @@ -192,6 +194,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="blocking_resources", @@ -210,14 +213,13 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352AX\n'datalabeling.googleapis.com/Instruction\022-projects/{project}/instructions/{instruction}" - ), + serialized_options=b"\352AX\n'datalabeling.googleapis.com/Instruction\022-projects/{project}/instructions/{instruction}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -233,6 +235,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_file_uri", @@ -243,7 +246,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -251,7 +254,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -272,6 +276,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="gcs_file_uri", @@ -282,7 +287,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -290,7 +295,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -325,15 +331,16 @@ Instruction = _reflection.GeneratedProtocolMessageType( "Instruction", (_message.Message,), - dict( - DESCRIPTOR=_INSTRUCTION, - __module__="google.cloud.datalabeling_v1beta1.proto.instruction_pb2", - __doc__="""Instruction of how to perform the labeling task for human operators. + { + "DESCRIPTOR": _INSTRUCTION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.instruction_pb2", + "__doc__": """Instruction of how to perform the labeling task for human operators. Currently only PDF instruction is supported. + Attributes: name: Output only. Instruction resource name, format: - projects/{project\_id}/instructions/{instruction\_id} + projects/{project_id}/instructions/{instruction_id} display_name: Required. The display name of the instruction. Maximum of 64 characters. @@ -361,40 +368,42 @@ blocking changes to the instruction. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Instruction) - ), + }, ) _sym_db.RegisterMessage(Instruction) CsvInstruction = _reflection.GeneratedProtocolMessageType( "CsvInstruction", (_message.Message,), - dict( - DESCRIPTOR=_CSVINSTRUCTION, - __module__="google.cloud.datalabeling_v1beta1.proto.instruction_pb2", - __doc__="""Deprecated: this instruction format is not supported any more. + { + "DESCRIPTOR": _CSVINSTRUCTION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.instruction_pb2", + "__doc__": """Deprecated: this instruction format is not supported any more. Instruction from a CSV file. + Attributes: gcs_file_uri: CSV file for the instruction. Only gcs path is allowed. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CsvInstruction) - ), + }, ) _sym_db.RegisterMessage(CsvInstruction) PdfInstruction = _reflection.GeneratedProtocolMessageType( "PdfInstruction", (_message.Message,), - dict( - DESCRIPTOR=_PDFINSTRUCTION, - __module__="google.cloud.datalabeling_v1beta1.proto.instruction_pb2", - __doc__="""Instruction from a PDF file. + { + "DESCRIPTOR": _PDFINSTRUCTION, + "__module__": "google.cloud.datalabeling_v1beta1.proto.instruction_pb2", + "__doc__": """Instruction from a PDF file. + Attributes: gcs_file_uri: PDF file for the instruction. Only gcs path is allowed. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PdfInstruction) - ), + }, ) _sym_db.RegisterMessage(PdfInstruction) diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/instruction_pb2_grpc.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/instruction_pb2_grpc.py index 07cb78fe03a9..8a9393943bdf 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/instruction_pb2_grpc.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/instruction_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/operations_pb2.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/operations_pb2.py index ceb56f1382fb..038207c67aee 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/operations_pb2.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/operations_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/datalabeling_v1beta1/proto/operations.proto - -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -31,12 +28,9 @@ name="google/cloud/datalabeling_v1beta1/proto/operations.proto", package="google.cloud.datalabeling.v1beta1", syntax="proto3", - serialized_options=_b( - "\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling" - ), - serialized_pb=_b( - '\n8google/cloud/datalabeling_v1beta1/proto/operations.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/datalabeling_v1beta1/proto/dataset.proto\x1a\x45google/cloud/datalabeling_v1beta1/proto/human_annotation_config.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"Y\n\x1bImportDataOperationResponse\x12\x0f\n\x07\x64\x61taset\x18\x01 \x01(\t\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\x12\x14\n\x0cimport_count\x18\x03 \x01(\x05"\xe5\x01\n\x1b\x45xportDataOperationResponse\x12\x0f\n\x07\x64\x61taset\x18\x01 \x01(\t\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\x12\x14\n\x0c\x65xport_count\x18\x03 \x01(\x05\x12\x42\n\x0blabel_stats\x18\x04 \x01(\x0b\x32-.google.cloud.datalabeling.v1beta1.LabelStats\x12\x46\n\routput_config\x18\x05 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.OutputConfig"\x8d\x01\n\x1bImportDataOperationMetadata\x12\x0f\n\x07\x64\x61taset\x18\x01 \x01(\t\x12,\n\x10partial_failures\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x8d\x01\n\x1b\x45xportDataOperationMetadata\x12\x0f\n\x07\x64\x61taset\x18\x01 \x01(\t\x12,\n\x10partial_failures\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x8c\x0c\n\x16LabelOperationMetadata\x12t\n\x1cimage_classification_details\x18\x03 \x01(\x0b\x32L.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataH\x00\x12o\n\x1aimage_bounding_box_details\x18\x04 \x01(\x0b\x32I.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataH\x00\x12q\n\x1bimage_bounding_poly_details\x18\x0b \x01(\x0b\x32J.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataH\x00\x12\x80\x01\n#image_oriented_bounding_box_details\x18\x0e \x01(\x0b\x32Q.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataH\x00\x12h\n\x16image_polyline_details\x18\x0c \x01(\x0b\x32\x46.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataH\x00\x12p\n\x1aimage_segmentation_details\x18\x0f \x01(\x0b\x32J.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataH\x00\x12t\n\x1cvideo_classification_details\x18\x05 \x01(\x0b\x32L.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataH\x00\x12w\n\x1evideo_object_detection_details\x18\x06 \x01(\x0b\x32M.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataH\x00\x12u\n\x1dvideo_object_tracking_details\x18\x07 \x01(\x0b\x32L.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataH\x00\x12\x62\n\x13video_event_details\x18\x08 \x01(\x0b\x32\x43.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataH\x00\x12r\n\x1btext_classification_details\x18\t \x01(\x0b\x32K.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataH\x00\x12w\n\x1etext_entity_extraction_details\x18\r \x01(\x0b\x32M.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataH\x00\x12\x18\n\x10progress_percent\x18\x01 \x01(\x05\x12,\n\x10partial_failures\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\x12/\n\x0b\x63reate_time\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\t\n\x07\x64\x65tails"{\n)LabelImageClassificationOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"x\n&LabelImageBoundingBoxOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"\x80\x01\n.LabelImageOrientedBoundingBoxOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"y\n\'LabelImageBoundingPolyOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"u\n#LabelImagePolylineOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"y\n\'LabelImageSegmentationOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"{\n)LabelVideoClassificationOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"|\n*LabelVideoObjectDetectionOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"{\n)LabelVideoObjectTrackingOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"r\n LabelVideoEventOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"z\n(LabelTextClassificationOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"|\n*LabelTextEntityExtractionOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"\x8f\x01\n\x19\x43reateInstructionMetadata\x12\x13\n\x0binstruction\x18\x01 \x01(\t\x12,\n\x10partial_failures\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampBx\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3' - ), + serialized_options=b"\n%com.google.cloud.datalabeling.v1beta1P\001ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n8google/cloud/datalabeling_v1beta1/proto/operations.proto\x12!google.cloud.datalabeling.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/datalabeling_v1beta1/proto/dataset.proto\x1a\x45google/cloud/datalabeling_v1beta1/proto/human_annotation_config.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto"Y\n\x1bImportDataOperationResponse\x12\x0f\n\x07\x64\x61taset\x18\x01 \x01(\t\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\x12\x14\n\x0cimport_count\x18\x03 \x01(\x05"\xe5\x01\n\x1b\x45xportDataOperationResponse\x12\x0f\n\x07\x64\x61taset\x18\x01 \x01(\t\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\x12\x14\n\x0c\x65xport_count\x18\x03 \x01(\x05\x12\x42\n\x0blabel_stats\x18\x04 \x01(\x0b\x32-.google.cloud.datalabeling.v1beta1.LabelStats\x12\x46\n\routput_config\x18\x05 \x01(\x0b\x32/.google.cloud.datalabeling.v1beta1.OutputConfig"\x8d\x01\n\x1bImportDataOperationMetadata\x12\x0f\n\x07\x64\x61taset\x18\x01 \x01(\t\x12,\n\x10partial_failures\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x8d\x01\n\x1b\x45xportDataOperationMetadata\x12\x0f\n\x07\x64\x61taset\x18\x01 \x01(\t\x12,\n\x10partial_failures\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x8c\x0c\n\x16LabelOperationMetadata\x12t\n\x1cimage_classification_details\x18\x03 \x01(\x0b\x32L.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataH\x00\x12o\n\x1aimage_bounding_box_details\x18\x04 \x01(\x0b\x32I.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataH\x00\x12q\n\x1bimage_bounding_poly_details\x18\x0b \x01(\x0b\x32J.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataH\x00\x12\x80\x01\n#image_oriented_bounding_box_details\x18\x0e \x01(\x0b\x32Q.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataH\x00\x12h\n\x16image_polyline_details\x18\x0c \x01(\x0b\x32\x46.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataH\x00\x12p\n\x1aimage_segmentation_details\x18\x0f \x01(\x0b\x32J.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataH\x00\x12t\n\x1cvideo_classification_details\x18\x05 \x01(\x0b\x32L.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataH\x00\x12w\n\x1evideo_object_detection_details\x18\x06 \x01(\x0b\x32M.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataH\x00\x12u\n\x1dvideo_object_tracking_details\x18\x07 \x01(\x0b\x32L.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataH\x00\x12\x62\n\x13video_event_details\x18\x08 \x01(\x0b\x32\x43.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataH\x00\x12r\n\x1btext_classification_details\x18\t \x01(\x0b\x32K.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataH\x00\x12w\n\x1etext_entity_extraction_details\x18\r \x01(\x0b\x32M.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataH\x00\x12\x18\n\x10progress_percent\x18\x01 \x01(\x05\x12,\n\x10partial_failures\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\x12/\n\x0b\x63reate_time\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\t\n\x07\x64\x65tails"{\n)LabelImageClassificationOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"x\n&LabelImageBoundingBoxOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"\x80\x01\n.LabelImageOrientedBoundingBoxOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"y\n\'LabelImageBoundingPolyOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"u\n#LabelImagePolylineOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"y\n\'LabelImageSegmentationOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"{\n)LabelVideoClassificationOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"|\n*LabelVideoObjectDetectionOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"{\n)LabelVideoObjectTrackingOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"r\n LabelVideoEventOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"z\n(LabelTextClassificationOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"|\n*LabelTextEntityExtractionOperationMetadata\x12N\n\x0c\x62\x61sic_config\x18\x01 \x01(\x0b\x32\x38.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig"\x8f\x01\n\x19\x43reateInstructionMetadata\x12\x13\n\x0binstruction\x18\x01 \x01(\t\x12,\n\x10partial_failures\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampBx\n%com.google.cloud.datalabeling.v1beta1P\x01ZMgoogle.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabelingb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, @@ -54,6 +48,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="dataset", @@ -64,7 +59,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -72,6 +67,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="total_count", @@ -90,6 +86,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="import_count", @@ -108,6 +105,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -129,6 +127,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="dataset", @@ -139,7 +138,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -147,6 +146,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="total_count", @@ -165,6 +165,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="export_count", @@ -183,6 +184,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="label_stats", @@ -201,6 +203,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="output_config", @@ -219,6 +222,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -240,6 +244,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="dataset", @@ -250,7 +255,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -258,6 +263,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="partial_failures", @@ -276,6 +282,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -294,6 +301,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -315,6 +323,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="dataset", @@ -325,7 +334,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -333,6 +342,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="partial_failures", @@ -351,6 +361,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -369,6 +380,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -390,6 +402,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="image_classification_details", @@ -408,6 +421,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_bounding_box_details", @@ -426,6 +440,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_bounding_poly_details", @@ -444,6 +459,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_oriented_bounding_box_details", @@ -462,6 +478,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_polyline_details", @@ -480,6 +497,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_segmentation_details", @@ -498,6 +516,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="video_classification_details", @@ -516,6 +535,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="video_object_detection_details", @@ -534,6 +554,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="video_object_tracking_details", @@ -552,6 +573,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="video_event_details", @@ -570,6 +592,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text_classification_details", @@ -588,6 +611,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="text_entity_extraction_details", @@ -606,6 +630,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="progress_percent", @@ -624,6 +649,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="partial_failures", @@ -642,6 +668,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -660,6 +687,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -675,8 +703,9 @@ full_name="google.cloud.datalabeling.v1beta1.LabelOperationMetadata.details", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=948, serialized_end=2496, @@ -689,6 +718,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="basic_config", @@ -707,7 +737,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -728,6 +759,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="basic_config", @@ -746,7 +778,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -767,6 +800,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="basic_config", @@ -785,7 +819,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -806,6 +841,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="basic_config", @@ -824,7 +860,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -845,6 +882,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="basic_config", @@ -863,7 +901,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -884,6 +923,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="basic_config", @@ -902,7 +942,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -923,6 +964,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="basic_config", @@ -941,7 +983,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -962,6 +1005,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="basic_config", @@ -980,7 +1024,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -1001,6 +1046,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="basic_config", @@ -1019,7 +1065,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -1040,6 +1087,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="basic_config", @@ -1058,7 +1106,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -1079,6 +1128,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="basic_config", @@ -1097,7 +1147,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -1118,6 +1169,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="basic_config", @@ -1136,7 +1188,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -1157,6 +1210,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="instruction", @@ -1167,7 +1221,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1175,6 +1229,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="partial_failures", @@ -1193,6 +1248,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -1211,6 +1267,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1484,10 +1541,11 @@ ImportDataOperationResponse = _reflection.GeneratedProtocolMessageType( "ImportDataOperationResponse", (_message.Message,), - dict( - DESCRIPTOR=_IMPORTDATAOPERATIONRESPONSE, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Response used for ImportData longrunning operation. + { + "DESCRIPTOR": _IMPORTDATAOPERATIONRESPONSE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Response used for ImportData longrunning operation. + Attributes: dataset: Ouptut only. The name of imported dataset. @@ -1497,20 +1555,21 @@ Output only. Number of examples imported successfully. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) - ), + }, ) _sym_db.RegisterMessage(ImportDataOperationResponse) ExportDataOperationResponse = _reflection.GeneratedProtocolMessageType( "ExportDataOperationResponse", (_message.Message,), - dict( - DESCRIPTOR=_EXPORTDATAOPERATIONRESPONSE, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Response used for ExportDataset longrunning operation. + { + "DESCRIPTOR": _EXPORTDATAOPERATIONRESPONSE, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Response used for ExportDataset longrunning operation. + Attributes: dataset: - Ouptut only. The name of dataset. "projects/*/datasets/*" + Ouptut only. The name of dataset. “projects/\ */datasets/*” total_count: Output only. Total number of examples requested to export export_count: @@ -1519,69 +1578,72 @@ Output only. Statistic infos of labels in the exported dataset. output_config: - Output only. output\_config in the ExportData request. + Output only. output_config in the ExportData request. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) - ), + }, ) _sym_db.RegisterMessage(ExportDataOperationResponse) ImportDataOperationMetadata = _reflection.GeneratedProtocolMessageType( "ImportDataOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_IMPORTDATAOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Metadata of an ImportData operation. + { + "DESCRIPTOR": _IMPORTDATAOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Metadata of an ImportData operation. + Attributes: dataset: - Output only. The name of imported dataset. - "projects/*/datasets/*" + Output only. The name of imported dataset. “projects/\ + */datasets/*” partial_failures: Output only. Partial failures encountered. E.g. single files - that couldn't be read. Status details field will contain + that couldn’t be read. Status details field will contain standard GCP error details. create_time: Output only. Timestamp when import dataset request was created. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(ImportDataOperationMetadata) ExportDataOperationMetadata = _reflection.GeneratedProtocolMessageType( "ExportDataOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_EXPORTDATAOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Metadata of an ExportData operation. + { + "DESCRIPTOR": _EXPORTDATAOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Metadata of an ExportData operation. + Attributes: dataset: - Output only. The name of dataset to be exported. - "projects/*/datasets/*" + Output only. The name of dataset to be exported. “projects/\ + */datasets/*” partial_failures: Output only. Partial failures encountered. E.g. single files - that couldn't be read. Status details field will contain + that couldn’t be read. Status details field will contain standard GCP error details. create_time: Output only. Timestamp when export dataset request was created. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(ExportDataOperationMetadata) LabelOperationMetadata = _reflection.GeneratedProtocolMessageType( "LabelOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_LABELOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Metadata of a labeling operation, such as LabelImage or LabelVideo. + { + "DESCRIPTOR": _LABELOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Metadata of a labeling operation, such as LabelImage or LabelVideo. Next tag: 20 + Attributes: details: Ouptut only. Details of specific label operation. @@ -1613,228 +1675,241 @@ Output only. Progress of label operation. Range: [0, 100]. partial_failures: Output only. Partial failures encountered. E.g. single files - that couldn't be read. Status details field will contain + that couldn’t be read. Status details field will contain standard GCP error details. create_time: Output only. Timestamp when labeling request was created. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(LabelOperationMetadata) LabelImageClassificationOperationMetadata = _reflection.GeneratedProtocolMessageType( "LabelImageClassificationOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_LABELIMAGECLASSIFICATIONOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Metadata of a LabelImageClassification operation. + { + "DESCRIPTOR": _LABELIMAGECLASSIFICATIONOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Metadata of a LabelImageClassification operation. + Attributes: basic_config: Basic human annotation config used in labeling request. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(LabelImageClassificationOperationMetadata) LabelImageBoundingBoxOperationMetadata = _reflection.GeneratedProtocolMessageType( "LabelImageBoundingBoxOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_LABELIMAGEBOUNDINGBOXOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Details of a LabelImageBoundingBox operation metadata. + { + "DESCRIPTOR": _LABELIMAGEBOUNDINGBOXOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Details of a LabelImageBoundingBox operation metadata. + Attributes: basic_config: Basic human annotation config used in labeling request. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(LabelImageBoundingBoxOperationMetadata) LabelImageOrientedBoundingBoxOperationMetadata = _reflection.GeneratedProtocolMessageType( "LabelImageOrientedBoundingBoxOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_LABELIMAGEORIENTEDBOUNDINGBOXOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Details of a LabelImageOrientedBoundingBox operation metadata. + { + "DESCRIPTOR": _LABELIMAGEORIENTEDBOUNDINGBOXOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Details of a LabelImageOrientedBoundingBox operation metadata. + Attributes: basic_config: Basic human annotation config. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(LabelImageOrientedBoundingBoxOperationMetadata) LabelImageBoundingPolyOperationMetadata = _reflection.GeneratedProtocolMessageType( "LabelImageBoundingPolyOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_LABELIMAGEBOUNDINGPOLYOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Details of LabelImageBoundingPoly operation metadata. + { + "DESCRIPTOR": _LABELIMAGEBOUNDINGPOLYOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Details of LabelImageBoundingPoly operation metadata. + Attributes: basic_config: Basic human annotation config used in labeling request. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(LabelImageBoundingPolyOperationMetadata) LabelImagePolylineOperationMetadata = _reflection.GeneratedProtocolMessageType( "LabelImagePolylineOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_LABELIMAGEPOLYLINEOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Details of LabelImagePolyline operation metadata. + { + "DESCRIPTOR": _LABELIMAGEPOLYLINEOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Details of LabelImagePolyline operation metadata. + Attributes: basic_config: Basic human annotation config used in labeling request. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(LabelImagePolylineOperationMetadata) LabelImageSegmentationOperationMetadata = _reflection.GeneratedProtocolMessageType( "LabelImageSegmentationOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_LABELIMAGESEGMENTATIONOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Details of a LabelImageSegmentation operation metadata. + { + "DESCRIPTOR": _LABELIMAGESEGMENTATIONOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Details of a LabelImageSegmentation operation metadata. + Attributes: basic_config: Basic human annotation config. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(LabelImageSegmentationOperationMetadata) LabelVideoClassificationOperationMetadata = _reflection.GeneratedProtocolMessageType( "LabelVideoClassificationOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_LABELVIDEOCLASSIFICATIONOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Details of a LabelVideoClassification operation metadata. + { + "DESCRIPTOR": _LABELVIDEOCLASSIFICATIONOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Details of a LabelVideoClassification operation metadata. + Attributes: basic_config: Basic human annotation config used in labeling request. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(LabelVideoClassificationOperationMetadata) LabelVideoObjectDetectionOperationMetadata = _reflection.GeneratedProtocolMessageType( "LabelVideoObjectDetectionOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_LABELVIDEOOBJECTDETECTIONOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Details of a LabelVideoObjectDetection operation metadata. + { + "DESCRIPTOR": _LABELVIDEOOBJECTDETECTIONOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Details of a LabelVideoObjectDetection operation metadata. + Attributes: basic_config: Basic human annotation config used in labeling request. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(LabelVideoObjectDetectionOperationMetadata) LabelVideoObjectTrackingOperationMetadata = _reflection.GeneratedProtocolMessageType( "LabelVideoObjectTrackingOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_LABELVIDEOOBJECTTRACKINGOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Details of a LabelVideoObjectTracking operation metadata. + { + "DESCRIPTOR": _LABELVIDEOOBJECTTRACKINGOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Details of a LabelVideoObjectTracking operation metadata. + Attributes: basic_config: Basic human annotation config used in labeling request. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(LabelVideoObjectTrackingOperationMetadata) LabelVideoEventOperationMetadata = _reflection.GeneratedProtocolMessageType( "LabelVideoEventOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_LABELVIDEOEVENTOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Details of a LabelVideoEvent operation metadata. + { + "DESCRIPTOR": _LABELVIDEOEVENTOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Details of a LabelVideoEvent operation metadata. + Attributes: basic_config: Basic human annotation config used in labeling request. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(LabelVideoEventOperationMetadata) LabelTextClassificationOperationMetadata = _reflection.GeneratedProtocolMessageType( "LabelTextClassificationOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_LABELTEXTCLASSIFICATIONOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Details of a LabelTextClassification operation metadata. + { + "DESCRIPTOR": _LABELTEXTCLASSIFICATIONOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Details of a LabelTextClassification operation metadata. + Attributes: basic_config: Basic human annotation config used in labeling request. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(LabelTextClassificationOperationMetadata) LabelTextEntityExtractionOperationMetadata = _reflection.GeneratedProtocolMessageType( "LabelTextEntityExtractionOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_LABELTEXTENTITYEXTRACTIONOPERATIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Details of a LabelTextEntityExtraction operation metadata. + { + "DESCRIPTOR": _LABELTEXTENTITYEXTRACTIONOPERATIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Details of a LabelTextEntityExtraction operation metadata. + Attributes: basic_config: Basic human annotation config used in labeling request. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(LabelTextEntityExtractionOperationMetadata) CreateInstructionMetadata = _reflection.GeneratedProtocolMessageType( "CreateInstructionMetadata", (_message.Message,), - dict( - DESCRIPTOR=_CREATEINSTRUCTIONMETADATA, - __module__="google.cloud.datalabeling_v1beta1.proto.operations_pb2", - __doc__="""Metadata of a CreateInstruction operation. + { + "DESCRIPTOR": _CREATEINSTRUCTIONMETADATA, + "__module__": "google.cloud.datalabeling_v1beta1.proto.operations_pb2", + "__doc__": """Metadata of a CreateInstruction operation. + Attributes: instruction: The name of the created Instruction. - projects/{project\_id}/instructions/{instruction\_id} + projects/{project_id}/instructions/{instruction_id} partial_failures: - Partial failures encountered. E.g. single files that couldn't + Partial failures encountered. E.g. single files that couldn’t be read. Status details field will contain standard GCP error details. create_time: Timestamp when create instruction request was created. """, # @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) - ), + }, ) _sym_db.RegisterMessage(CreateInstructionMetadata) diff --git a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/operations_pb2_grpc.py b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/operations_pb2_grpc.py index 07cb78fe03a9..8a9393943bdf 100644 --- a/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/operations_pb2_grpc.py +++ b/packages/google-cloud-datalabeling/google/cloud/datalabeling_v1beta1/proto/operations_pb2_grpc.py @@ -1,2 +1,3 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/packages/google-cloud-datalabeling/noxfile.py b/packages/google-cloud-datalabeling/noxfile.py index 915f9a66e925..cd19801576c7 100644 --- a/packages/google-cloud-datalabeling/noxfile.py +++ b/packages/google-cloud-datalabeling/noxfile.py @@ -23,14 +23,15 @@ import nox -BLACK_VERSION = "black==19.3b0" +BLACK_VERSION = "black==19.10b0" BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] -if os.path.exists("samples"): - BLACK_PATHS.append("samples") +DEFAULT_PYTHON_VERSION = "3.8" +SYSTEM_TEST_PYTHON_VERSIONS = ["2.7", "3.8"] +UNIT_TEST_PYTHON_VERSIONS = ["2.7", "3.5", "3.6", "3.7", "3.8"] -@nox.session(python="3.7") +@nox.session(python=DEFAULT_PYTHON_VERSION) def lint(session): """Run linters. @@ -38,7 +39,9 @@ def lint(session): serious code quality issues. """ session.install("flake8", BLACK_VERSION) - session.run("black", "--check", *BLACK_PATHS) + session.run( + "black", "--check", *BLACK_PATHS, + ) session.run("flake8", "google", "tests") @@ -53,10 +56,12 @@ def blacken(session): check the state of the `gcp_ubuntu_config` we use for that Kokoro run. """ session.install(BLACK_VERSION) - session.run("black", *BLACK_PATHS) + session.run( + "black", *BLACK_PATHS, + ) -@nox.session(python="3.7") +@nox.session(python=DEFAULT_PYTHON_VERSION) def lint_setup_py(session): """Verify that setup.py is valid (including RST check).""" session.install("docutils", "pygments") @@ -84,13 +89,13 @@ def default(session): ) -@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8"]) +@nox.session(python=UNIT_TEST_PYTHON_VERSIONS) def unit(session): """Run the unit test suite.""" default(session) -@nox.session(python=["2.7", "3.7"]) +@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS) def system(session): """Run the system test suite.""" system_test_path = os.path.join("tests", "system.py") @@ -110,8 +115,9 @@ def system(session): # Install all test dependencies, then install this package into the # virtualenv's dist-packages. - session.install("mock", "pytest") - session.install("git+https://github.com/googleapis/python-test-utils") + session.install( + "mock", "pytest", "google-cloud-testutils", + ) session.install("-e", ".") # Run py.test against the system tests. @@ -121,7 +127,7 @@ def system(session): session.run("py.test", "--quiet", system_test_folder_path, *session.posargs) -@nox.session(python="3.7") +@nox.session(python=DEFAULT_PYTHON_VERSION) def cover(session): """Run the final coverage report. @@ -134,7 +140,7 @@ def cover(session): session.run("coverage", "erase") -@nox.session(python="3.7") +@nox.session(python=DEFAULT_PYTHON_VERSION) def docs(session): """Build the docs for this library.""" diff --git a/packages/google-cloud-datalabeling/scripts/decrypt-secrets.sh b/packages/google-cloud-datalabeling/scripts/decrypt-secrets.sh new file mode 100755 index 000000000000..ff599eb2af25 --- /dev/null +++ b/packages/google-cloud-datalabeling/scripts/decrypt-secrets.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Copyright 2015 Google Inc. All rights reserved. +# +# 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. + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +ROOT=$( dirname "$DIR" ) + +# Work from the project root. +cd $ROOT + +# Use SECRET_MANAGER_PROJECT if set, fallback to cloud-devrel-kokoro-resources. +PROJECT_ID="${SECRET_MANAGER_PROJECT:-cloud-devrel-kokoro-resources}" + +gcloud secrets versions access latest --secret="python-docs-samples-test-env" \ + > testing/test-env.sh +gcloud secrets versions access latest \ + --secret="python-docs-samples-service-account" \ + > testing/service-account.json +gcloud secrets versions access latest \ + --secret="python-docs-samples-client-secrets" \ + > testing/client-secrets.json \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/scripts/readme-gen/readme_gen.py b/packages/google-cloud-datalabeling/scripts/readme-gen/readme_gen.py new file mode 100644 index 000000000000..d309d6e97518 --- /dev/null +++ b/packages/google-cloud-datalabeling/scripts/readme-gen/readme_gen.py @@ -0,0 +1,66 @@ +#!/usr/bin/env python + +# Copyright 2016 Google Inc +# +# 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. + +"""Generates READMEs using configuration defined in yaml.""" + +import argparse +import io +import os +import subprocess + +import jinja2 +import yaml + + +jinja_env = jinja2.Environment( + trim_blocks=True, + loader=jinja2.FileSystemLoader( + os.path.abspath(os.path.join(os.path.dirname(__file__), 'templates')))) + +README_TMPL = jinja_env.get_template('README.tmpl.rst') + + +def get_help(file): + return subprocess.check_output(['python', file, '--help']).decode() + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument('source') + parser.add_argument('--destination', default='README.rst') + + args = parser.parse_args() + + source = os.path.abspath(args.source) + root = os.path.dirname(source) + destination = os.path.join(root, args.destination) + + jinja_env.globals['get_help'] = get_help + + with io.open(source, 'r') as f: + config = yaml.load(f) + + # This allows get_help to execute in the right directory. + os.chdir(root) + + output = README_TMPL.render(config) + + with io.open(destination, 'w') as f: + f.write(output) + + +if __name__ == '__main__': + main() diff --git a/packages/google-cloud-datalabeling/scripts/readme-gen/templates/README.tmpl.rst b/packages/google-cloud-datalabeling/scripts/readme-gen/templates/README.tmpl.rst new file mode 100644 index 000000000000..4fd239765b0a --- /dev/null +++ b/packages/google-cloud-datalabeling/scripts/readme-gen/templates/README.tmpl.rst @@ -0,0 +1,87 @@ +{# The following line is a lie. BUT! Once jinja2 is done with it, it will + become truth! #} +.. This file is automatically generated. Do not edit this file directly. + +{{product.name}} Python Samples +=============================================================================== + +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor={{folder}}/README.rst + + +This directory contains samples for {{product.name}}. {{product.description}} + +{{description}} + +.. _{{product.name}}: {{product.url}} + +{% if required_api_url %} +To run the sample, you need to enable the API at: {{required_api_url}} +{% endif %} + +{% if required_role %} +To run the sample, you need to have `{{required_role}}` role. +{% endif %} + +{{other_required_steps}} + +{% if setup %} +Setup +------------------------------------------------------------------------------- + +{% for section in setup %} + +{% include section + '.tmpl.rst' %} + +{% endfor %} +{% endif %} + +{% if samples %} +Samples +------------------------------------------------------------------------------- + +{% for sample in samples %} +{{sample.name}} ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +{% if not sample.hide_cloudshell_button %} +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor={{folder}}/{{sample.file}},{{folder}}/README.rst +{% endif %} + + +{{sample.description}} + +To run this sample: + +.. code-block:: bash + + $ python {{sample.file}} +{% if sample.show_help %} + + {{get_help(sample.file)|indent}} +{% endif %} + + +{% endfor %} +{% endif %} + +{% if cloud_client_library %} + +The client library +------------------------------------------------------------------------------- + +This sample uses the `Google Cloud Client Library for Python`_. +You can read the documentation for more details on API usage and use GitHub +to `browse the source`_ and `report issues`_. + +.. _Google Cloud Client Library for Python: + https://googlecloudplatform.github.io/google-cloud-python/ +.. _browse the source: + https://github.com/GoogleCloudPlatform/google-cloud-python +.. _report issues: + https://github.com/GoogleCloudPlatform/google-cloud-python/issues + +{% endif %} + +.. _Google Cloud SDK: https://cloud.google.com/sdk/ \ No newline at end of file diff --git a/packages/google-cloud-datalabeling/scripts/readme-gen/templates/auth.tmpl.rst b/packages/google-cloud-datalabeling/scripts/readme-gen/templates/auth.tmpl.rst new file mode 100644 index 000000000000..1446b94a5e3a --- /dev/null +++ b/packages/google-cloud-datalabeling/scripts/readme-gen/templates/auth.tmpl.rst @@ -0,0 +1,9 @@ +Authentication +++++++++++++++ + +This sample requires you to have authentication setup. Refer to the +`Authentication Getting Started Guide`_ for instructions on setting up +credentials for applications. + +.. _Authentication Getting Started Guide: + https://cloud.google.com/docs/authentication/getting-started diff --git a/packages/google-cloud-datalabeling/scripts/readme-gen/templates/auth_api_key.tmpl.rst b/packages/google-cloud-datalabeling/scripts/readme-gen/templates/auth_api_key.tmpl.rst new file mode 100644 index 000000000000..11957ce2714a --- /dev/null +++ b/packages/google-cloud-datalabeling/scripts/readme-gen/templates/auth_api_key.tmpl.rst @@ -0,0 +1,14 @@ +Authentication +++++++++++++++ + +Authentication for this service is done via an `API Key`_. To obtain an API +Key: + +1. Open the `Cloud Platform Console`_ +2. Make sure that billing is enabled for your project. +3. From the **Credentials** page, create a new **API Key** or use an existing + one for your project. + +.. _API Key: + https://developers.google.com/api-client-library/python/guide/aaa_apikeys +.. _Cloud Console: https://console.cloud.google.com/project?_ diff --git a/packages/google-cloud-datalabeling/scripts/readme-gen/templates/install_deps.tmpl.rst b/packages/google-cloud-datalabeling/scripts/readme-gen/templates/install_deps.tmpl.rst new file mode 100644 index 000000000000..a0406dba8c84 --- /dev/null +++ b/packages/google-cloud-datalabeling/scripts/readme-gen/templates/install_deps.tmpl.rst @@ -0,0 +1,29 @@ +Install Dependencies +++++++++++++++++++++ + +#. Clone python-docs-samples and change directory to the sample directory you want to use. + + .. code-block:: bash + + $ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git + +#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions. + + .. _Python Development Environment Setup Guide: + https://cloud.google.com/python/setup + +#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+. + + .. code-block:: bash + + $ virtualenv env + $ source env/bin/activate + +#. Install the dependencies needed to run the samples. + + .. code-block:: bash + + $ pip install -r requirements.txt + +.. _pip: https://pip.pypa.io/ +.. _virtualenv: https://virtualenv.pypa.io/ diff --git a/packages/google-cloud-datalabeling/scripts/readme-gen/templates/install_portaudio.tmpl.rst b/packages/google-cloud-datalabeling/scripts/readme-gen/templates/install_portaudio.tmpl.rst new file mode 100644 index 000000000000..5ea33d18c00c --- /dev/null +++ b/packages/google-cloud-datalabeling/scripts/readme-gen/templates/install_portaudio.tmpl.rst @@ -0,0 +1,35 @@ +Install PortAudio ++++++++++++++++++ + +Install `PortAudio`_. This is required by the `PyAudio`_ library to stream +audio from your computer's microphone. PyAudio depends on PortAudio for cross-platform compatibility, and is installed differently depending on the +platform. + +* For Mac OS X, you can use `Homebrew`_:: + + brew install portaudio + + **Note**: if you encounter an error when running `pip install` that indicates + it can't find `portaudio.h`, try running `pip install` with the following + flags:: + + pip install --global-option='build_ext' \ + --global-option='-I/usr/local/include' \ + --global-option='-L/usr/local/lib' \ + pyaudio + +* For Debian / Ubuntu Linux:: + + apt-get install portaudio19-dev python-all-dev + +* Windows may work without having to install PortAudio explicitly (it will get + installed with PyAudio). + +For more details, see the `PyAudio installation`_ page. + + +.. _PyAudio: https://people.csail.mit.edu/hubert/pyaudio/ +.. _PortAudio: http://www.portaudio.com/ +.. _PyAudio installation: + https://people.csail.mit.edu/hubert/pyaudio/#downloads +.. _Homebrew: http://brew.sh diff --git a/packages/google-cloud-datalabeling/synth.metadata b/packages/google-cloud-datalabeling/synth.metadata index 7717317f3e93..2e5f49130af5 100644 --- a/packages/google-cloud-datalabeling/synth.metadata +++ b/packages/google-cloud-datalabeling/synth.metadata @@ -1,32 +1,25 @@ { "sources": [ - { - "generator": { - "name": "artman", - "version": "2.0.0", - "dockerImage": "googleapis/artman@sha256:b3b47805231a305d0f40c4bf069df20f6a2635574e6d4259fac651d3f9f6e098" - } - }, { "git": { "name": ".", - "remote": "https://github.com/googleapis/python-datalabeling.git", - "sha": "acc4fceba0d9144ba539f66ed04df21238686b35" + "remote": "git@github.com:googleapis/python-datalabeling.git", + "sha": "62a52b2e2143640c62524a0a6970d10a4f2308a6" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "42ee97c1b93a0e3759bbba3013da309f670a90ab", - "internalRef": "307114445" + "sha": "d13e2da37268f7ed2808a7288d934274627cdefd", + "internalRef": "318386808" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f5e4c17dc78a966dbf29961dd01f9bbd63e20a04" + "sha": "652d446edabb0ea07de0ce542c6b37ab7dad3a19" } } ], @@ -37,8 +30,7 @@ "apiName": "datalabeling", "apiVersion": "v1beta1", "language": "python", - "generator": "gapic", - "config": "google/cloud/datalabeling/artman_datalabeling_v1beta1.yaml" + "generator": "bazel" } } ] diff --git a/packages/google-cloud-datalabeling/synth.py b/packages/google-cloud-datalabeling/synth.py index 232d1c72001c..0eef5a9204c9 100644 --- a/packages/google-cloud-datalabeling/synth.py +++ b/packages/google-cloud-datalabeling/synth.py @@ -50,13 +50,13 @@ ) s.replace( - "./**/gapic/**/*client.py", - r"operations_pb2.ImportDataOperationMetadata", - "proto_operations_pb2.ImportDataOperationMetadata", + "google/**/*client.py", + r"=operations_pb2", + "=proto_operations_pb2", ) s.replace( - "./tests/unit/gapic/**/test*_client*.py", + "tests/**/test*_client*.py", r"operations_pb2.Operation\(", "longrunning_operations_pb2.Operation(", ) @@ -64,11 +64,22 @@ # Fix docstrings with no summary line s.replace( "google/cloud/**/proto/*_pb2.py", - '''__doc__ = """Attributes:''', - '''__doc__ = """ + '''['"]__doc__['"]: """Attributes:''', + '''"__doc__": """ Attributes:''', ) +# Escape '_' at the end of the line in pb2 docstrings +s.replace( +"google/cloud/**/*_pb2.py", +"""\_$""", +"""\_""", +) + + +# TODO(busunkim): Use latest sphinx after microgenerator transition +s.replace("noxfile.py", """['"]sphinx['"]""", '"sphinx<3.0.0"') + # ---------------------------------------------------------------------------- # Add templated files # ---------------------------------------------------------------------------- diff --git a/packages/google-cloud-datalabeling/testing/.gitignore b/packages/google-cloud-datalabeling/testing/.gitignore new file mode 100644 index 000000000000..b05fbd630881 --- /dev/null +++ b/packages/google-cloud-datalabeling/testing/.gitignore @@ -0,0 +1,3 @@ +test-env.sh +service-account.json +client-secrets.json \ No newline at end of file