diff --git a/.flake8 b/.flake8 index 20fe9bda..ed931638 100644 --- a/.flake8 +++ b/.flake8 @@ -21,6 +21,8 @@ exclude = # Exclude generated code. **/proto/** **/gapic/** + **/services/** + **/types/** *_pb2.py # Standard linting exemptions. diff --git a/.gitignore b/.gitignore index 3fb06e09..b87e1ed5 100644 --- a/.gitignore +++ b/.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/.kokoro/publish-docs.sh b/.kokoro/publish-docs.sh index ac50b547..3cacc818 100755 --- a/.kokoro/publish-docs.sh +++ b/.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/.kokoro/release.sh b/.kokoro/release.sh index 10db5ce7..af8391be 100755 --- a/.kokoro/release.sh +++ b/.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/.kokoro/samples/lint/common.cfg b/.kokoro/samples/lint/common.cfg new file mode 100644 index 00000000..64e7f996 --- /dev/null +++ b/.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-talent/.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-talent/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/.kokoro/samples/lint/continuous.cfg b/.kokoro/samples/lint/continuous.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.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/.kokoro/samples/lint/periodic.cfg b/.kokoro/samples/lint/periodic.cfg new file mode 100644 index 00000000..50fec964 --- /dev/null +++ b/.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/.kokoro/samples/lint/presubmit.cfg b/.kokoro/samples/lint/presubmit.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.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/.kokoro/samples/python3.6/common.cfg b/.kokoro/samples/python3.6/common.cfg new file mode 100644 index 00000000..24c08609 --- /dev/null +++ b/.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-talent/.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-talent/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/.kokoro/samples/python3.6/continuous.cfg b/.kokoro/samples/python3.6/continuous.cfg new file mode 100644 index 00000000..7218af14 --- /dev/null +++ b/.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/.kokoro/samples/python3.6/periodic.cfg b/.kokoro/samples/python3.6/periodic.cfg new file mode 100644 index 00000000..50fec964 --- /dev/null +++ b/.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/.kokoro/samples/python3.6/presubmit.cfg b/.kokoro/samples/python3.6/presubmit.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.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/.kokoro/samples/python3.7/common.cfg b/.kokoro/samples/python3.7/common.cfg new file mode 100644 index 00000000..c3b001b0 --- /dev/null +++ b/.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-talent/.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-talent/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/.kokoro/samples/python3.7/continuous.cfg b/.kokoro/samples/python3.7/continuous.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.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/.kokoro/samples/python3.7/periodic.cfg b/.kokoro/samples/python3.7/periodic.cfg new file mode 100644 index 00000000..50fec964 --- /dev/null +++ b/.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/.kokoro/samples/python3.7/presubmit.cfg b/.kokoro/samples/python3.7/presubmit.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.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/.kokoro/samples/python3.8/common.cfg b/.kokoro/samples/python3.8/common.cfg new file mode 100644 index 00000000..ab18d8d2 --- /dev/null +++ b/.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-talent/.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-talent/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/.kokoro/samples/python3.8/continuous.cfg b/.kokoro/samples/python3.8/continuous.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.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/.kokoro/samples/python3.8/periodic.cfg b/.kokoro/samples/python3.8/periodic.cfg new file mode 100644 index 00000000..50fec964 --- /dev/null +++ b/.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/.kokoro/samples/python3.8/presubmit.cfg b/.kokoro/samples/python3.8/presubmit.cfg new file mode 100644 index 00000000..a1c8d975 --- /dev/null +++ b/.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/.kokoro/test-samples.sh b/.kokoro/test-samples.sh new file mode 100755 index 00000000..fd589498 --- /dev/null +++ b/.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-talent + +# 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/MANIFEST.in b/MANIFEST.in index 68855abc..e9e29d12 100644 --- a/MANIFEST.in +++ b/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/docs/conf.py b/docs/conf.py index 72e852a8..6c1527b2 100644 --- a/docs/conf.py +++ b/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/docs/index.rst b/docs/index.rst index 46d6f0fc..8bd49270 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,5 +1,7 @@ .. include:: README.rst +.. include:: multiprocessing.rst + Api Reference ------------- .. toctree:: diff --git a/docs/multiprocessing.rst b/docs/multiprocessing.rst new file mode 100644 index 00000000..1cb29d4c --- /dev/null +++ b/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/google/cloud/talent.py b/google/cloud/talent.py index eee7964a..431f7eb5 100644 --- a/google/cloud/talent.py +++ b/google/cloud/talent.py @@ -31,11 +31,11 @@ __all__ = ( "enums", "types", - "JobServiceClient", + "ApplicationServiceClient", "CompanyServiceClient", "CompletionClient", - "ApplicationServiceClient", - "TenantServiceClient", "EventServiceClient", + "JobServiceClient", "ProfileServiceClient", + "TenantServiceClient", ) diff --git a/google/cloud/talent_v4beta1/__init__.py b/google/cloud/talent_v4beta1/__init__.py index ec57ed0c..54a597f5 100644 --- a/google/cloud/talent_v4beta1/__init__.py +++ b/google/cloud/talent_v4beta1/__init__.py @@ -32,15 +32,15 @@ if sys.version_info[:2] == (2, 7): message = ( - "A future version of this library will drop support for Python 2.7." - "More details about Python 2 support for Google Cloud Client Libraries" + "A future version of this library will drop support for Python 2.7. " + "More details about Python 2 support for Google Cloud Client Libraries " "can be found at https://cloud.google.com/python/docs/python2-sunset/" ) warnings.warn(message, DeprecationWarning) -class JobServiceClient(job_service_client.JobServiceClient): - __doc__ = job_service_client.JobServiceClient.__doc__ +class ApplicationServiceClient(application_service_client.ApplicationServiceClient): + __doc__ = application_service_client.ApplicationServiceClient.__doc__ enums = enums @@ -54,34 +54,34 @@ class CompletionClient(completion_client.CompletionClient): enums = enums -class ApplicationServiceClient(application_service_client.ApplicationServiceClient): - __doc__ = application_service_client.ApplicationServiceClient.__doc__ +class EventServiceClient(event_service_client.EventServiceClient): + __doc__ = event_service_client.EventServiceClient.__doc__ enums = enums -class TenantServiceClient(tenant_service_client.TenantServiceClient): - __doc__ = tenant_service_client.TenantServiceClient.__doc__ +class JobServiceClient(job_service_client.JobServiceClient): + __doc__ = job_service_client.JobServiceClient.__doc__ enums = enums -class EventServiceClient(event_service_client.EventServiceClient): - __doc__ = event_service_client.EventServiceClient.__doc__ +class ProfileServiceClient(profile_service_client.ProfileServiceClient): + __doc__ = profile_service_client.ProfileServiceClient.__doc__ enums = enums -class ProfileServiceClient(profile_service_client.ProfileServiceClient): - __doc__ = profile_service_client.ProfileServiceClient.__doc__ +class TenantServiceClient(tenant_service_client.TenantServiceClient): + __doc__ = tenant_service_client.TenantServiceClient.__doc__ enums = enums __all__ = ( "enums", "types", - "JobServiceClient", + "ApplicationServiceClient", "CompanyServiceClient", "CompletionClient", - "ApplicationServiceClient", - "TenantServiceClient", "EventServiceClient", + "JobServiceClient", "ProfileServiceClient", + "TenantServiceClient", ) diff --git a/google/cloud/talent_v4beta1/gapic/application_service_client.py b/google/cloud/talent_v4beta1/gapic/application_service_client.py index 2dcb2fe1..459c1ff8 100644 --- a/google/cloud/talent_v4beta1/gapic/application_service_client.py +++ b/google/cloud/talent_v4beta1/gapic/application_service_client.py @@ -39,23 +39,11 @@ from google.cloud.talent_v4beta1.proto import application_pb2 from google.cloud.talent_v4beta1.proto import application_service_pb2 from google.cloud.talent_v4beta1.proto import application_service_pb2_grpc -from google.cloud.talent_v4beta1.proto import common_pb2 -from google.cloud.talent_v4beta1.proto import company_pb2 -from google.cloud.talent_v4beta1.proto import company_service_pb2 -from google.cloud.talent_v4beta1.proto import company_service_pb2_grpc -from google.cloud.talent_v4beta1.proto import completion_service_pb2 -from google.cloud.talent_v4beta1.proto import completion_service_pb2_grpc -from google.cloud.talent_v4beta1.proto import filters_pb2 -from google.cloud.talent_v4beta1.proto import histogram_pb2 -from google.cloud.talent_v4beta1.proto import job_pb2 -from google.cloud.talent_v4beta1.proto import job_service_pb2 -from google.cloud.talent_v4beta1.proto import job_service_pb2_grpc -from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent").version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent",).version class ApplicationServiceClient(object): @@ -116,7 +104,7 @@ def company_path(cls, project, tenant, company): def company_without_tenant_path(cls, project, company): """Return a fully-qualified company_without_tenant string.""" return google.api_core.path_template.expand( - "projects/{project}/companies/{company}", project=project, company=company + "projects/{project}/companies/{company}", project=project, company=company, ) @classmethod @@ -133,7 +121,7 @@ def job_path(cls, project, tenant, job): def job_without_tenant_path(cls, project, job): """Return a fully-qualified job_without_tenant string.""" return google.api_core.path_template.expand( - "projects/{project}/jobs/{job}", project=project, job=job + "projects/{project}/jobs/{job}", project=project, job=job, ) @classmethod @@ -233,12 +221,12 @@ def __init__( self.transport = transport else: self.transport = application_service_grpc_transport.ApplicationServiceGrpcTransport( - 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 @@ -249,7 +237,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. @@ -259,76 +247,6 @@ def __init__( self._inner_api_calls = {} # Service calls - def delete_application( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Deletes specified application. - - Example: - >>> from google.cloud import talent_v4beta1 - >>> - >>> client = talent_v4beta1.ApplicationServiceClient() - >>> - >>> name = client.application_path('[PROJECT]', '[TENANT]', '[PROFILE]', '[APPLICATION]') - >>> - >>> client.delete_application(name) - - Args: - name (str): Required. The resource name of the application to be deleted. - - The format is - "projects/{project\_id}/tenants/{tenant\_id}/profiles/{profile\_id}/applications/{application\_id}". - For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - 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. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_application" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_application" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_application, - default_retry=self._method_configs["DeleteApplication"].retry, - default_timeout=self._method_configs["DeleteApplication"].timeout, - client_info=self._client_info, - ) - - request = application_service_pb2.DeleteApplicationRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_application"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - def create_application( self, parent, @@ -353,12 +271,12 @@ def create_application( >>> response = client.create_application(parent, application) Args: - parent (str): Required. Resource name of the profile under which the application is - created. + parent (str): Required. Resource name of the profile under which the application + is created. The format is - "projects/{project\_id}/tenants/{tenant\_id}/profiles/{profile\_id}". - For example, "projects/foo/tenants/bar/profiles/baz". + "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For + example, "projects/foo/tenants/bar/profiles/baz". application (Union[dict, ~google.cloud.talent_v4beta1.types.Application]): Required. The application to be created. If a dict is provided, it must be of the same form as the protobuf @@ -394,7 +312,7 @@ def create_application( ) request = application_service_pb2.CreateApplicationRequest( - parent=parent, application=application + parent=parent, application=application, ) if metadata is None: metadata = [] @@ -436,7 +354,7 @@ def get_application( name (str): Required. The resource name of the application to be retrieved. The format is - "projects/{project\_id}/tenants/{tenant\_id}/profiles/{profile\_id}/applications/{application\_id}". + "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will @@ -468,7 +386,7 @@ def get_application( client_info=self._client_info, ) - request = application_service_pb2.GetApplicationRequest(name=name) + request = application_service_pb2.GetApplicationRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -553,7 +471,7 @@ def update_application( ) request = application_service_pb2.UpdateApplicationRequest( - application=application, update_mask=update_mask + application=application, update_mask=update_mask, ) if metadata is None: metadata = [] @@ -572,6 +490,76 @@ def update_application( request, retry=retry, timeout=timeout, metadata=metadata ) + def delete_application( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Deletes specified application. + + Example: + >>> from google.cloud import talent_v4beta1 + >>> + >>> client = talent_v4beta1.ApplicationServiceClient() + >>> + >>> name = client.application_path('[PROJECT]', '[TENANT]', '[PROFILE]', '[APPLICATION]') + >>> + >>> client.delete_application(name) + + Args: + name (str): Required. The resource name of the application to be deleted. + + The format is + "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". + For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". + 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. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_application" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_application" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_application, + default_retry=self._method_configs["DeleteApplication"].retry, + default_timeout=self._method_configs["DeleteApplication"].timeout, + client_info=self._client_info, + ) + + request = application_service_pb2.DeleteApplicationRequest(name=name,) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_application"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def list_applications( self, parent, @@ -605,12 +593,12 @@ def list_applications( ... pass Args: - parent (str): Required. Resource name of the profile under which the application is - created. + parent (str): Required. Resource name of the profile under which the application + is created. The format is - "projects/{project\_id}/tenants/{tenant\_id}/profiles/{profile\_id}", - for example, "projects/foo/tenants/bar/profiles/baz". + "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for + example, "projects/foo/tenants/bar/profiles/baz". 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 @@ -650,7 +638,7 @@ def list_applications( ) request = application_service_pb2.ListApplicationsRequest( - parent=parent, page_size=page_size + parent=parent, page_size=page_size, ) if metadata is None: metadata = [] diff --git a/google/cloud/talent_v4beta1/gapic/application_service_client_config.py b/google/cloud/talent_v4beta1/gapic/application_service_client_config.py index 25fa68ca..291a8858 100644 --- a/google/cloud/talent_v4beta1/gapic/application_service_client_config.py +++ b/google/cloud/talent_v4beta1/gapic/application_service_client_config.py @@ -2,45 +2,164 @@ "interfaces": { "google.cloud.talent.v4beta1.ApplicationService": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "retry_policy_1_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "no_retry_2_codes": [], + "retry_policy_6_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "no_retry_codes": [], + "no_retry_3_codes": [], + "retry_policy_3_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "retry_policy_2_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "retry_policy_4_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "no_retry_4_codes": [], + "no_retry_6_codes": [], + "no_retry_1_codes": [], + "retry_policy_5_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "no_retry_5_codes": [], }, "retry_params": { - "default": { + "no_retry_3_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, + }, + "retry_policy_6_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "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_5_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, + }, + "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, + }, + "no_retry_2_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, + }, + "no_retry_4_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, + }, + "no_retry_6_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, + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000, + }, + "retry_policy_3_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000, + }, + "retry_policy_2_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000, + }, + "retry_policy_4_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000, + }, + "retry_policy_5_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, + "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, + }, }, "methods": { - "DeleteApplication": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, "CreateApplication": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params", }, "GetApplication": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "UpdateApplication": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params", + }, + "DeleteApplication": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, "ListApplications": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params", }, }, } diff --git a/google/cloud/talent_v4beta1/gapic/company_service_client.py b/google/cloud/talent_v4beta1/gapic/company_service_client.py index dd02eae9..5a72226a 100644 --- a/google/cloud/talent_v4beta1/gapic/company_service_client.py +++ b/google/cloud/talent_v4beta1/gapic/company_service_client.py @@ -34,21 +34,17 @@ from google.cloud.talent_v4beta1.gapic import company_service_client_config from google.cloud.talent_v4beta1.gapic import enums from google.cloud.talent_v4beta1.gapic.transports import company_service_grpc_transport -from google.cloud.talent_v4beta1.proto import common_pb2 +from google.cloud.talent_v4beta1.proto import application_pb2 +from google.cloud.talent_v4beta1.proto import application_service_pb2 +from google.cloud.talent_v4beta1.proto import application_service_pb2_grpc from google.cloud.talent_v4beta1.proto import company_pb2 from google.cloud.talent_v4beta1.proto import company_service_pb2 from google.cloud.talent_v4beta1.proto import company_service_pb2_grpc -from google.cloud.talent_v4beta1.proto import filters_pb2 -from google.cloud.talent_v4beta1.proto import histogram_pb2 -from google.cloud.talent_v4beta1.proto import job_pb2 -from google.cloud.talent_v4beta1.proto import job_service_pb2 -from google.cloud.talent_v4beta1.proto import job_service_pb2_grpc -from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent").version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent",).version class CompanyServiceClient(object): @@ -95,21 +91,21 @@ def company_path(cls, project, tenant, company): def company_without_tenant_path(cls, project, company): """Return a fully-qualified company_without_tenant string.""" return google.api_core.path_template.expand( - "projects/{project}/companies/{company}", project=project, company=company + "projects/{project}/companies/{company}", project=project, company=company, ) @classmethod 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, ) @classmethod def tenant_path(cls, project, tenant): """Return a fully-qualified tenant string.""" return google.api_core.path_template.expand( - "projects/{project}/tenants/{tenant}", project=project, tenant=tenant + "projects/{project}/tenants/{tenant}", project=project, tenant=tenant, ) def __init__( @@ -199,12 +195,12 @@ def __init__( self.transport = transport else: self.transport = company_service_grpc_transport.CompanyServiceGrpcTransport( - 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 @@ -215,7 +211,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. @@ -225,80 +221,6 @@ def __init__( self._inner_api_calls = {} # Service calls - def delete_company( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Deletes specified company. - Prerequisite: The company has no jobs associated with it. - - Example: - >>> from google.cloud import talent_v4beta1 - >>> - >>> client = talent_v4beta1.CompanyServiceClient() - >>> - >>> name = client.company_path('[PROJECT]', '[TENANT]', '[COMPANY]') - >>> - >>> client.delete_company(name) - - Args: - name (str): Required. The resource name of the company to be deleted. - - The format is - "projects/{project\_id}/tenants/{tenant\_id}/companies/{company\_id}", - for example, "projects/foo/tenants/bar/companies/baz". - - If tenant id is unspecified, the default tenant is used, for example, - "projects/foo/companies/bar". - 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. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_company" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_company" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_company, - default_retry=self._method_configs["DeleteCompany"].retry, - default_timeout=self._method_configs["DeleteCompany"].timeout, - client_info=self._client_info, - ) - - request = company_service_pb2.DeleteCompanyRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_company"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - def create_company( self, parent, @@ -315,7 +237,7 @@ def create_company( >>> >>> client = talent_v4beta1.CompanyServiceClient() >>> - >>> parent = client.project_path('[PROJECT]') + >>> parent = client.tenant_path('[PROJECT]', '[TENANT]') >>> >>> # TODO: Initialize `company`: >>> company = {} @@ -326,9 +248,9 @@ def create_company( parent (str): Required. Resource name of the tenant under which the company is created. - The format is "projects/{project\_id}/tenants/{tenant\_id}", for - example, "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created, for example, "projects/foo". + The format is "projects/{project_id}/tenants/{tenant_id}", for example, + "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant + is created, for example, "projects/foo". company (Union[dict, ~google.cloud.talent_v4beta1.types.Company]): Required. The company to be created. If a dict is provided, it must be of the same form as the protobuf @@ -364,7 +286,7 @@ def create_company( ) request = company_service_pb2.CreateCompanyRequest( - parent=parent, company=company + parent=parent, company=company, ) if metadata is None: metadata = [] @@ -406,8 +328,8 @@ def get_company( name (str): Required. The resource name of the company to be retrieved. The format is - "projects/{project\_id}/tenants/{tenant\_id}/companies/{company\_id}", - for example, "projects/api-test-project/tenants/foo/companies/bar". + "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + example, "projects/api-test-project/tenants/foo/companies/bar". If tenant id is unspecified, the default tenant is used, for example, "projects/api-test-project/companies/bar". @@ -441,7 +363,7 @@ def get_company( client_info=self._client_info, ) - request = company_service_pb2.GetCompanyRequest(name=name) + request = company_service_pb2.GetCompanyRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -526,7 +448,7 @@ def update_company( ) request = company_service_pb2.UpdateCompanyRequest( - company=company, update_mask=update_mask + company=company, update_mask=update_mask, ) if metadata is None: metadata = [] @@ -545,6 +467,80 @@ def update_company( request, retry=retry, timeout=timeout, metadata=metadata ) + def delete_company( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Deletes specified company. + Prerequisite: The company has no jobs associated with it. + + Example: + >>> from google.cloud import talent_v4beta1 + >>> + >>> client = talent_v4beta1.CompanyServiceClient() + >>> + >>> name = client.company_path('[PROJECT]', '[TENANT]', '[COMPANY]') + >>> + >>> client.delete_company(name) + + Args: + name (str): Required. The resource name of the company to be deleted. + + The format is + "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + example, "projects/foo/tenants/bar/companies/baz". + + If tenant id is unspecified, the default tenant is used, for example, + "projects/foo/companies/bar". + 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. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_company" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_company" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_company, + default_retry=self._method_configs["DeleteCompany"].retry, + default_timeout=self._method_configs["DeleteCompany"].timeout, + client_info=self._client_info, + ) + + request = company_service_pb2.DeleteCompanyRequest(name=name,) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_company"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def list_companies( self, parent, @@ -562,7 +558,7 @@ def list_companies( >>> >>> client = talent_v4beta1.CompanyServiceClient() >>> - >>> parent = client.project_path('[PROJECT]') + >>> parent = client.tenant_path('[PROJECT]', '[TENANT]') >>> >>> # Iterate over all results >>> for element in client.list_companies(parent): @@ -582,8 +578,8 @@ def list_companies( parent (str): Required. Resource name of the tenant under which the company is created. - The format is "projects/{project\_id}/tenants/{tenant\_id}", for - example, "projects/foo/tenant/bar". + The format is "projects/{project_id}/tenants/{tenant_id}", for example, + "projects/foo/tenant/bar". If tenant id is unspecified, the default tenant will be used, for example, "projects/foo". @@ -632,7 +628,7 @@ def list_companies( ) request = company_service_pb2.ListCompaniesRequest( - parent=parent, page_size=page_size, require_open_jobs=require_open_jobs + parent=parent, page_size=page_size, require_open_jobs=require_open_jobs, ) if metadata is None: metadata = [] diff --git a/google/cloud/talent_v4beta1/gapic/company_service_client_config.py b/google/cloud/talent_v4beta1/gapic/company_service_client_config.py index ce435e16..6bcb987a 100644 --- a/google/cloud/talent_v4beta1/gapic/company_service_client_config.py +++ b/google/cloud/talent_v4beta1/gapic/company_service_client_config.py @@ -2,45 +2,64 @@ "interfaces": { "google.cloud.talent.v4beta1.CompanyService": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "no_retry_6_codes": [], + "no_retry_codes": [], + "retry_policy_5_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], }, "retry_params": { - "default": { + "retry_policy_5_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, + "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_6_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": { - "DeleteCompany": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, "CreateCompany": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_6_codes", + "retry_params_name": "no_retry_6_params", }, "GetCompany": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params", }, "UpdateCompany": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_6_codes", + "retry_params_name": "no_retry_6_params", + }, + "DeleteCompany": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params", }, "ListCompanies": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params", }, }, } diff --git a/google/cloud/talent_v4beta1/gapic/completion_client.py b/google/cloud/talent_v4beta1/gapic/completion_client.py index f8030dd3..fadb3253 100644 --- a/google/cloud/talent_v4beta1/gapic/completion_client.py +++ b/google/cloud/talent_v4beta1/gapic/completion_client.py @@ -32,23 +32,19 @@ from google.cloud.talent_v4beta1.gapic import completion_client_config from google.cloud.talent_v4beta1.gapic import enums from google.cloud.talent_v4beta1.gapic.transports import completion_grpc_transport -from google.cloud.talent_v4beta1.proto import common_pb2 +from google.cloud.talent_v4beta1.proto import application_pb2 +from google.cloud.talent_v4beta1.proto import application_service_pb2 +from google.cloud.talent_v4beta1.proto import application_service_pb2_grpc from google.cloud.talent_v4beta1.proto import company_pb2 from google.cloud.talent_v4beta1.proto import company_service_pb2 from google.cloud.talent_v4beta1.proto import company_service_pb2_grpc from google.cloud.talent_v4beta1.proto import completion_service_pb2 from google.cloud.talent_v4beta1.proto import completion_service_pb2_grpc -from google.cloud.talent_v4beta1.proto import filters_pb2 -from google.cloud.talent_v4beta1.proto import histogram_pb2 -from google.cloud.talent_v4beta1.proto import job_pb2 -from google.cloud.talent_v4beta1.proto import job_service_pb2 -from google.cloud.talent_v4beta1.proto import job_service_pb2_grpc -from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent").version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent",).version class CompletionClient(object): @@ -95,21 +91,21 @@ def company_path(cls, project, tenant, company): def company_without_tenant_path(cls, project, company): """Return a fully-qualified company_without_tenant string.""" return google.api_core.path_template.expand( - "projects/{project}/companies/{company}", project=project, company=company + "projects/{project}/companies/{company}", project=project, company=company, ) @classmethod 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, ) @classmethod def tenant_path(cls, project, tenant): """Return a fully-qualified tenant string.""" return google.api_core.path_template.expand( - "projects/{project}/tenants/{tenant}", project=project, tenant=tenant + "projects/{project}/tenants/{tenant}", project=project, tenant=tenant, ) def __init__( @@ -199,12 +195,12 @@ def __init__( self.transport = transport else: self.transport = completion_grpc_transport.CompletionGrpcTransport( - 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 @@ -215,7 +211,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. @@ -247,7 +243,7 @@ def complete_query( >>> >>> client = talent_v4beta1.CompletionClient() >>> - >>> parent = client.project_path('[PROJECT]') + >>> parent = client.tenant_path('[PROJECT]', '[TENANT]') >>> >>> # TODO: Initialize `query`: >>> query = '' @@ -258,10 +254,11 @@ def complete_query( >>> response = client.complete_query(parent, query, page_size) Args: - parent (str): Required. Resource name of tenant the completion is performed within. + parent (str): Required. Resource name of tenant the completion is performed + within. - The format is "projects/{project\_id}/tenants/{tenant\_id}", for - example, "projects/foo/tenant/bar". + The format is "projects/{project_id}/tenants/{tenant_id}", for example, + "projects/foo/tenant/bar". If tenant id is unspecified, the default tenant is used, for example, "projects/foo". @@ -271,20 +268,21 @@ def complete_query( page_size (int): Required. Completion result count. The maximum allowed page size is 10. - language_codes (list[str]): The list of languages of the query. This is the BCP-47 language code, - such as "en-US" or "sr-Latn". For more information, see `Tags for + language_codes (list[str]): The list of languages of the query. This is the BCP-47 language + code, such as "en-US" or "sr-Latn". For more information, see `Tags for Identifying Languages `__. The maximum number of allowed characters is 255. company (str): If provided, restricts completion to specified company. The format is - "projects/{project\_id}/tenants/{tenant\_id}/companies/{company\_id}", - for example, "projects/foo/tenants/bar/companies/baz". + "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + example, "projects/foo/tenants/bar/companies/baz". If tenant id is unspecified, the default tenant is used, for example, "projects/foo". - scope (~google.cloud.talent_v4beta1.types.CompletionScope): The scope of the completion. The defaults is ``CompletionScope.PUBLIC``. + scope (~google.cloud.talent_v4beta1.types.CompletionScope): The scope of the completion. The defaults is + ``CompletionScope.PUBLIC``. type_ (~google.cloud.talent_v4beta1.types.CompletionType): The completion topic. The default is ``CompletionType.COMBINED``. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will diff --git a/google/cloud/talent_v4beta1/gapic/completion_client_config.py b/google/cloud/talent_v4beta1/gapic/completion_client_config.py index fb888690..3ae252e0 100644 --- a/google/cloud/talent_v4beta1/gapic/completion_client_config.py +++ b/google/cloud/talent_v4beta1/gapic/completion_client_config.py @@ -2,25 +2,34 @@ "interfaces": { "google.cloud.talent.v4beta1.Completion": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "retry_policy_6_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "no_retry_codes": [], }, "retry_params": { - "default": { + "retry_policy_6_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, + "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, + }, }, "methods": { "CompleteQuery": { "timeout_millis": 30000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "retry_codes_name": "retry_policy_6_codes", + "retry_params_name": "retry_policy_6_params", } }, } diff --git a/google/cloud/talent_v4beta1/gapic/enums.py b/google/cloud/talent_v4beta1/gapic/enums.py index 2b850837..fb58db48 100644 --- a/google/cloud/talent_v4beta1/gapic/enums.py +++ b/google/cloud/talent_v4beta1/gapic/enums.py @@ -36,7 +36,7 @@ class AvailabilitySignalType(enum.IntEnum): ``APPLY_INDIRECT`` In the context of ``AvailabilityFilter``, the filter is applied on - ``Profile.availability_signals`` where ``type`` is JOB\_APPLICATION. + ``Profile.availability_signals`` where ``type`` is JOB_APPLICATION. RESUME_UPDATE (int): Resume update signal. In the context of ``Profile.availability_signals``, this signal is @@ -46,7 +46,7 @@ class AvailabilitySignalType(enum.IntEnum): ``SummarizedProfile.profiles``. In the context of ``AvailabilityFilter``, the filter is applied on - ``Profile.availability_signals`` where ``type`` is RESUME\_UPDATE. + ``Profile.availability_signals`` where ``type`` is RESUME_UPDATE. CANDIDATE_UPDATE (int): Candidate update signal. In the context of ``Profile.availability_signals``, this signal is @@ -56,7 +56,7 @@ class AvailabilitySignalType(enum.IntEnum): ``SummarizedProfile.profiles``. In the context of ``AvailabilityFilter``, the filter is applied on - ``Profile.availability_signals`` where ``type`` is CANDIDATE\_UPDATE. + ``Profile.availability_signals`` where ``type`` is CANDIDATE_UPDATE. CLIENT_SUBMISSION (int): Client submission signal. In the context of ``Profile.availability_signals``, this signal is @@ -67,7 +67,7 @@ class AvailabilitySignalType(enum.IntEnum): ``OFFER_ACCEPTED`` ``STARTED`` In the context of ``AvailabilityFilter``, the filter is applied on - ``Profile.availability_signals`` where ``type`` is CLIENT\_SUBMISSION. + ``Profile.availability_signals`` where ``type`` is CLIENT_SUBMISSION. """ AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED = 0 @@ -203,9 +203,9 @@ class EmploymentType(enum.IntEnum): typically less than 40 hours a week. CONTRACTOR (int): The job is offered as a contracted, as opposed to a salaried employee, position. - CONTRACT_TO_HIRE (int): The job is offered as a contracted position with the understanding that - it's converted into a full-time position at the end of the contract. - Jobs of this type are also returned by a search for + CONTRACT_TO_HIRE (int): The job is offered as a contracted position with the understanding + that it's converted into a full-time position at the end of the + contract. Jobs of this type are also returned by a search for ``EmploymentType.CONTRACTOR`` jobs. TEMPORARY (int): The job is offered as a temporary employment opportunity, usually a short-term engagement. @@ -398,8 +398,8 @@ class JobView(enum.IntEnum): JOB_VIEW_UNSPECIFIED (int): Default value. JOB_VIEW_ID_ONLY (int): A ID only view of job, with following attributes: ``Job.name``, ``Job.requisition_id``, ``Job.language_code``. - JOB_VIEW_MINIMAL (int): A minimal view of the job, with the following attributes: ``Job.name``, - ``Job.requisition_id``, ``Job.title``, ``Job.company``, + JOB_VIEW_MINIMAL (int): A minimal view of the job, with the following attributes: + ``Job.name``, ``Job.requisition_id``, ``Job.title``, ``Job.company``, ``Job.DerivedInfo.locations``, ``Job.language_code``. JOB_VIEW_SMALL (int): A small view of the job, with the following attributes in the search results: ``Job.name``, ``Job.requisition_id``, ``Job.title``, @@ -446,10 +446,10 @@ class PostingRegion(enum.IntEnum): eligible for searches in the specified region. Attributes: - POSTING_REGION_UNSPECIFIED (int): If the region is unspecified, the job is only returned if it matches the - ``LocationFilter``. - ADMINISTRATIVE_AREA (int): In addition to exact location matching, job posting is returned when the - ``LocationFilter`` in the search query is in the same administrative + POSTING_REGION_UNSPECIFIED (int): If the region is unspecified, the job is only returned if it matches + the ``LocationFilter``. + ADMINISTRATIVE_AREA (int): In addition to exact location matching, job posting is returned when + the ``LocationFilter`` in the search query is in the same administrative area as the returned job posting. For example, if a ``ADMINISTRATIVE_AREA`` job is posted in "CA, USA", it's returned if ``LocationFilter`` has "Mountain View". @@ -623,17 +623,17 @@ class FilterType(enum.IntEnum): Attributes: FILTER_TYPE_UNSPECIFIED (int): Filter type unspecified. Position holder, INVALID, should never be used. - UNIT_ONLY (int): Filter by ``base compensation entry's`` unit. A job is a match if and - only if the job contains a base CompensationEntry and the base + UNIT_ONLY (int): Filter by ``base compensation entry's`` unit. A job is a match if + and only if the job contains a base CompensationEntry and the base CompensationEntry's unit matches provided ``units``. Populate one or more ``units``. See ``CompensationInfo.CompensationEntry`` for definition of base compensation entry. - UNIT_AND_AMOUNT (int): Filter by ``base compensation entry's`` unit and amount / range. A job - is a match if and only if the job contains a base CompensationEntry, and - the base entry's unit matches provided ``CompensationUnit`` and amount - or range overlaps with provided ``CompensationRange``. + UNIT_AND_AMOUNT (int): Filter by ``base compensation entry's`` unit and amount / range. A + job is a match if and only if the job contains a base CompensationEntry, + and the base entry's unit matches provided ``CompensationUnit`` and + amount or range overlaps with provided ``CompensationRange``. See ``CompensationInfo.CompensationEntry`` for definition of base compensation entry. @@ -798,8 +798,8 @@ class DeviceType(enum.IntEnum): class EmployerFilter(object): class EmployerFilterMode(enum.IntEnum): """ - Enum indicating which set of ``Profile.employment_records`` to search - against. + Enum indicating which set of ``Profile.employment_records`` to + search against. Attributes: EMPLOYER_FILTER_MODE_UNSPECIFIED (int): Default value. @@ -827,10 +827,11 @@ class JobEventType(enum.IntEnum): had a job rendered in their view, such as in a list of search results in a compressed or clipped format. This event is typically associated with the viewing of a jobs list on a single page by a job seeker. - VIEW (int): The job seeker, or other entity interacting with the service, has viewed - the details of a job, including the full description. This event doesn't - apply to the viewing a snippet of a job appearing as a part of the job - search results. Viewing a snippet is associated with an ``impression``). + VIEW (int): The job seeker, or other entity interacting with the service, has + viewed the details of a job, including the full description. This event + doesn't apply to the viewing a snippet of a job appearing as a part of + the job search results. Viewing a snippet is associated with an + ``impression``). VIEW_REDIRECT (int): The job seeker or other entity interacting with the service performed an action to view a job and was redirected to a different website for job. @@ -838,10 +839,10 @@ class JobEventType(enum.IntEnum): began the process or demonstrated the intention of applying for a job. APPLICATION_FINISH (int): The job seeker or other entity interacting with the service submitted an application for a job. - APPLICATION_QUICK_SUBMISSION (int): The job seeker or other entity interacting with the service submitted an - application for a job with a single click without entering information. - If a job seeker performs this action, send only this event to the - service. Do not also send ``JobEventType.APPLICATION_START`` or + APPLICATION_QUICK_SUBMISSION (int): The job seeker or other entity interacting with the service + submitted an application for a job with a single click without entering + information. If a job seeker performs this action, send only this event + to the service. Do not also send ``JobEventType.APPLICATION_START`` or ``JobEventType.APPLICATION_FINISH`` events. APPLICATION_REDIRECT (int): The job seeker or other entity interacting with the service performed an action to apply to a job and was redirected to a different @@ -850,12 +851,12 @@ class JobEventType(enum.IntEnum): process or demonstrated the intention of applying for a job from the search results page without viewing the details of the job posting. If sending this event, JobEventType.VIEW event shouldn't be sent. - APPLICATION_REDIRECT_FROM_SEARCH (int): The job seeker, or other entity interacting with the service, performs - an action with a single click from the search results page to apply to a - job (without viewing the details of the job posting), and is redirected - to a different website to complete the application. If a candidate - performs this action, send only this event to the service. Do not also - send ``JobEventType.APPLICATION_START``, + APPLICATION_REDIRECT_FROM_SEARCH (int): The job seeker, or other entity interacting with the service, + performs an action with a single click from the search results page to + apply to a job (without viewing the details of the job posting), and is + redirected to a different website to complete the application. If a + candidate performs this action, send only this event to the service. Do + not also send ``JobEventType.APPLICATION_START``, ``JobEventType.APPLICATION_FINISH`` or ``JobEventType.VIEW`` events. APPLICATION_COMPANY_SUBMIT (int): This event should be used when a company submits an application on behalf of a job seeker. This event is intended for use by staffing @@ -968,7 +969,7 @@ class PhoneType(enum.IntEnum): associated with a particular person, and may be routed to either a MOBILE or LANDLINE number. The ``phone usage`` should be set to PERSONAL for these phone types. Some more information can be found here: - https://en.wikipedia.org/wiki/Personal\_Numbers + https://en.wikipedia.org/wiki/Personal_Numbers VOIP (int): Voice over IP numbers. This includes TSoIP (Telephony Service over IP). MOBILE_OR_LANDLINE (int): In some regions (e.g. the USA), it is impossible to distinguish between fixed-line and mobile numbers by looking at the phone number itself. @@ -993,15 +994,16 @@ class ProfileEventType(enum.IntEnum): Attributes: PROFILE_EVENT_TYPE_UNSPECIFIED (int): Default value. - IMPRESSION (int): Send this event when a ``ProfileEvent.profiles`` was sent as a part of a - result set for a CTS API call and was rendered in the end user's UI + IMPRESSION (int): Send this event when a ``ProfileEvent.profiles`` was sent as a part + of a result set for a CTS API call and was rendered in the end user's UI (that is, the ``ProfileEvent.recruiter``). - VIEW (int): The VIEW event records the action of a candidate's profile being viewed - by an end user. This is critical to tracking product metrics and should - be sent for every profile VIEW that happens in your system, whether the - event is associated with an API call (for example, a recruiter making a - request for a result set and clicking on a profile) or not (a recruiter - using the system to view profile details without making a request). + VIEW (int): The VIEW event records the action of a candidate's profile being + viewed by an end user. This is critical to tracking product metrics and + should be sent for every profile VIEW that happens in your system, + whether the event is associated with an API call (for example, a + recruiter making a request for a result set and clicking on a profile) + or not (a recruiter using the system to view profile details without + making a request). For a VIEW events associated with API calls, the ``ClientEvent.request_id`` should be populated. If the VIEW is not @@ -1069,7 +1071,7 @@ class SearchMode(enum.IntEnum): Attributes: SEARCH_MODE_UNSPECIFIED (int): The mode of the search method isn't specified. The default search - behavior is identical to JOB\_SEARCH search behavior. + behavior is identical to JOB_SEARCH search behavior. JOB_SEARCH (int): The job search matches against all jobs, and featured jobs (jobs with promotionValue > 0) are not specially handled. FEATURED_JOB_SEARCH (int): The job search matches only against featured jobs (jobs with a diff --git a/google/cloud/talent_v4beta1/gapic/event_service_client.py b/google/cloud/talent_v4beta1/gapic/event_service_client.py index e2b72b99..a0e95c4f 100644 --- a/google/cloud/talent_v4beta1/gapic/event_service_client.py +++ b/google/cloud/talent_v4beta1/gapic/event_service_client.py @@ -35,7 +35,6 @@ from google.cloud.talent_v4beta1.proto import application_pb2 from google.cloud.talent_v4beta1.proto import application_service_pb2 from google.cloud.talent_v4beta1.proto import application_service_pb2_grpc -from google.cloud.talent_v4beta1.proto import common_pb2 from google.cloud.talent_v4beta1.proto import company_pb2 from google.cloud.talent_v4beta1.proto import company_service_pb2 from google.cloud.talent_v4beta1.proto import company_service_pb2_grpc @@ -44,20 +43,11 @@ from google.cloud.talent_v4beta1.proto import event_pb2 from google.cloud.talent_v4beta1.proto import event_service_pb2 from google.cloud.talent_v4beta1.proto import event_service_pb2_grpc -from google.cloud.talent_v4beta1.proto import filters_pb2 -from google.cloud.talent_v4beta1.proto import histogram_pb2 -from google.cloud.talent_v4beta1.proto import job_pb2 -from google.cloud.talent_v4beta1.proto import job_service_pb2 -from google.cloud.talent_v4beta1.proto import job_service_pb2_grpc -from google.cloud.talent_v4beta1.proto import tenant_pb2 -from google.cloud.talent_v4beta1.proto import tenant_service_pb2 -from google.cloud.talent_v4beta1.proto import tenant_service_pb2_grpc -from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent").version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent",).version class EventServiceClient(object): @@ -94,14 +84,14 @@ def from_service_account_file(cls, filename, *args, **kwargs): 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, ) @classmethod def tenant_path(cls, project, tenant): """Return a fully-qualified tenant string.""" return google.api_core.path_template.expand( - "projects/{project}/tenants/{tenant}", project=project, tenant=tenant + "projects/{project}/tenants/{tenant}", project=project, tenant=tenant, ) def __init__( @@ -191,12 +181,12 @@ def __init__( self.transport = transport else: self.transport = event_service_grpc_transport.EventServiceGrpcTransport( - 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 @@ -207,7 +197,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. @@ -226,9 +216,9 @@ def create_client_event( metadata=None, ): """ - Report events issued when end user interacts with customer's application - that uses Cloud Talent Solution. You may inspect the created events in - `self service + Report events issued when end user interacts with customer's + application that uses Cloud Talent Solution. You may inspect the created + events in `self service tools `__. `Learn more `__ @@ -239,7 +229,7 @@ def create_client_event( >>> >>> client = talent_v4beta1.EventServiceClient() >>> - >>> parent = client.project_path('[PROJECT]') + >>> parent = client.tenant_path('[PROJECT]', '[TENANT]') >>> >>> # TODO: Initialize `client_event`: >>> client_event = {} @@ -247,11 +237,12 @@ def create_client_event( >>> response = client.create_client_event(parent, client_event) Args: - parent (str): Required. Resource name of the tenant under which the event is created. + parent (str): Required. Resource name of the tenant under which the event is + created. - The format is "projects/{project\_id}/tenants/{tenant\_id}", for - example, "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created, for example, "projects/foo". + The format is "projects/{project_id}/tenants/{tenant_id}", for example, + "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant + is created, for example, "projects/foo". client_event (Union[dict, ~google.cloud.talent_v4beta1.types.ClientEvent]): Required. Events issued when end user interacts with customer's application that uses Cloud Talent Solution. @@ -288,7 +279,7 @@ def create_client_event( ) request = event_service_pb2.CreateClientEventRequest( - parent=parent, client_event=client_event + parent=parent, client_event=client_event, ) if metadata is None: metadata = [] diff --git a/google/cloud/talent_v4beta1/gapic/event_service_client_config.py b/google/cloud/talent_v4beta1/gapic/event_service_client_config.py index 0e27fa36..4886b0cb 100644 --- a/google/cloud/talent_v4beta1/gapic/event_service_client_config.py +++ b/google/cloud/talent_v4beta1/gapic/event_service_client_config.py @@ -1,26 +1,32 @@ config = { "interfaces": { "google.cloud.talent.v4beta1.EventService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], - }, + "retry_codes": {"no_retry_codes": [], "no_retry_1_codes": []}, "retry_params": { - "default": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, + "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": 20000, - "total_timeout_millis": 600000, - } + "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": { "CreateClientEvent": { "timeout_millis": 30000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", } }, } diff --git a/google/cloud/talent_v4beta1/gapic/job_service_client.py b/google/cloud/talent_v4beta1/gapic/job_service_client.py index b9487ac4..0b2f3f08 100644 --- a/google/cloud/talent_v4beta1/gapic/job_service_client.py +++ b/google/cloud/talent_v4beta1/gapic/job_service_client.py @@ -36,7 +36,18 @@ from google.cloud.talent_v4beta1.gapic import enums from google.cloud.talent_v4beta1.gapic import job_service_client_config from google.cloud.talent_v4beta1.gapic.transports import job_service_grpc_transport +from google.cloud.talent_v4beta1.proto import application_pb2 +from google.cloud.talent_v4beta1.proto import application_service_pb2 +from google.cloud.talent_v4beta1.proto import application_service_pb2_grpc from google.cloud.talent_v4beta1.proto import common_pb2 +from google.cloud.talent_v4beta1.proto import company_pb2 +from google.cloud.talent_v4beta1.proto import company_service_pb2 +from google.cloud.talent_v4beta1.proto import company_service_pb2_grpc +from google.cloud.talent_v4beta1.proto import completion_service_pb2 +from google.cloud.talent_v4beta1.proto import completion_service_pb2_grpc +from google.cloud.talent_v4beta1.proto import event_pb2 +from google.cloud.talent_v4beta1.proto import event_service_pb2 +from google.cloud.talent_v4beta1.proto import event_service_pb2_grpc from google.cloud.talent_v4beta1.proto import filters_pb2 from google.cloud.talent_v4beta1.proto import histogram_pb2 from google.cloud.talent_v4beta1.proto import job_pb2 @@ -47,7 +58,7 @@ from google.protobuf import field_mask_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent").version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent",).version class JobServiceClient(object): @@ -94,7 +105,7 @@ def company_path(cls, project, tenant, company): def company_without_tenant_path(cls, project, company): """Return a fully-qualified company_without_tenant string.""" return google.api_core.path_template.expand( - "projects/{project}/companies/{company}", project=project, company=company + "projects/{project}/companies/{company}", project=project, company=company, ) @classmethod @@ -111,21 +122,21 @@ def job_path(cls, project, tenant, job): def job_without_tenant_path(cls, project, job): """Return a fully-qualified job_without_tenant string.""" return google.api_core.path_template.expand( - "projects/{project}/jobs/{job}", project=project, job=job + "projects/{project}/jobs/{job}", project=project, job=job, ) @classmethod 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, ) @classmethod def tenant_path(cls, project, tenant): """Return a fully-qualified tenant string.""" return google.api_core.path_template.expand( - "projects/{project}/tenants/{tenant}", project=project, tenant=tenant + "projects/{project}/tenants/{tenant}", project=project, tenant=tenant, ) def __init__( @@ -215,12 +226,12 @@ def __init__( self.transport = transport else: self.transport = job_service_grpc_transport.JobServiceGrpcTransport( - 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 @@ -231,7 +242,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. @@ -241,82 +252,6 @@ def __init__( self._inner_api_calls = {} # Service calls - def delete_job( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Deletes the specified job. - - Typically, the job becomes unsearchable within 10 seconds, but it may take - up to 5 minutes. - - Example: - >>> from google.cloud import talent_v4beta1 - >>> - >>> client = talent_v4beta1.JobServiceClient() - >>> - >>> name = client.job_path('[PROJECT]', '[TENANT]', '[JOB]') - >>> - >>> client.delete_job(name) - - Args: - name (str): Required. The resource name of the job to be deleted. - - The format is - "projects/{project\_id}/tenants/{tenant\_id}/jobs/{job\_id}". For - example, "projects/foo/tenants/bar/jobs/baz". - - If tenant id is unspecified, the default tenant is used. For example, - "projects/foo/jobs/bar". - 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. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_job" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_job" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_job, - default_retry=self._method_configs["DeleteJob"].retry, - default_timeout=self._method_configs["DeleteJob"].timeout, - client_info=self._client_info, - ) - - request = job_service_pb2.DeleteJobRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_job"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - def create_job( self, parent, @@ -336,7 +271,7 @@ def create_job( >>> >>> client = talent_v4beta1.JobServiceClient() >>> - >>> parent = client.project_path('[PROJECT]') + >>> parent = client.tenant_path('[PROJECT]', '[TENANT]') >>> >>> # TODO: Initialize `job`: >>> job = {} @@ -347,9 +282,9 @@ def create_job( parent (str): Required. The resource name of the tenant under which the job is created. - The format is "projects/{project\_id}/tenants/{tenant\_id}". For - example, "projects/foo/tenant/bar". If tenant id is unspecified a - default tenant is created. For example, "projects/foo". + The format is "projects/{project_id}/tenants/{tenant_id}". For example, + "projects/foo/tenant/bar". If tenant id is unspecified a default tenant + is created. For example, "projects/foo". job (Union[dict, ~google.cloud.talent_v4beta1.types.Job]): Required. The Job to be created. If a dict is provided, it must be of the same form as the protobuf @@ -384,7 +319,7 @@ def create_job( client_info=self._client_info, ) - request = job_service_pb2.CreateJobRequest(parent=parent, job=job) + request = job_service_pb2.CreateJobRequest(parent=parent, job=job,) if metadata is None: metadata = [] metadata = list(metadata) @@ -418,7 +353,7 @@ def batch_create_jobs( >>> >>> client = talent_v4beta1.JobServiceClient() >>> - >>> parent = client.project_path('[PROJECT]') + >>> parent = client.tenant_path('[PROJECT]', '[TENANT]') >>> >>> # TODO: Initialize `jobs`: >>> jobs = [] @@ -438,9 +373,9 @@ def batch_create_jobs( parent (str): Required. The resource name of the tenant under which the job is created. - The format is "projects/{project\_id}/tenants/{tenant\_id}". For - example, "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created. For example, "projects/foo". + The format is "projects/{project_id}/tenants/{tenant_id}". For example, + "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant + is created. For example, "projects/foo". jobs (list[Union[dict, ~google.cloud.talent_v4beta1.types.Job]]): Required. The jobs to be created. If a dict is provided, it must be of the same form as the protobuf @@ -475,7 +410,7 @@ def batch_create_jobs( client_info=self._client_info, ) - request = job_service_pb2.BatchCreateJobsRequest(parent=parent, jobs=jobs) + request = job_service_pb2.BatchCreateJobsRequest(parent=parent, jobs=jobs,) if metadata is None: metadata = [] metadata = list(metadata) @@ -522,9 +457,8 @@ def get_job( Args: name (str): Required. The resource name of the job to retrieve. - The format is - "projects/{project\_id}/tenants/{tenant\_id}/jobs/{job\_id}". For - example, "projects/foo/tenants/bar/jobs/baz". + The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". + For example, "projects/foo/tenants/bar/jobs/baz". If tenant id is unspecified, the default tenant is used. For example, "projects/foo/jobs/bar". @@ -558,7 +492,7 @@ def get_job( client_info=self._client_info, ) - request = job_service_pb2.GetJobRequest(name=name) + request = job_service_pb2.GetJobRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -645,7 +579,7 @@ def update_job( client_info=self._client_info, ) - request = job_service_pb2.UpdateJobRequest(job=job, update_mask=update_mask) + request = job_service_pb2.UpdateJobRequest(job=job, update_mask=update_mask,) if metadata is None: metadata = [] metadata = list(metadata) @@ -680,7 +614,7 @@ def batch_update_jobs( >>> >>> client = talent_v4beta1.JobServiceClient() >>> - >>> parent = client.project_path('[PROJECT]') + >>> parent = client.tenant_path('[PROJECT]', '[TENANT]') >>> >>> # TODO: Initialize `jobs`: >>> jobs = [] @@ -700,15 +634,15 @@ def batch_update_jobs( parent (str): Required. The resource name of the tenant under which the job is created. - The format is "projects/{project\_id}/tenants/{tenant\_id}". For - example, "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created. For example, "projects/foo". + The format is "projects/{project_id}/tenants/{tenant_id}". For example, + "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant + is created. For example, "projects/foo". jobs (list[Union[dict, ~google.cloud.talent_v4beta1.types.Job]]): Required. The jobs to be updated. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.talent_v4beta1.types.Job` - update_mask (Union[dict, ~google.cloud.talent_v4beta1.types.FieldMask]): Strongly recommended for the best service experience. Be aware that it - will also increase latency when checking the status of a batch + update_mask (Union[dict, ~google.cloud.talent_v4beta1.types.FieldMask]): Strongly recommended for the best service experience. Be aware that + it will also increase latency when checking the status of a batch operation. If ``update_mask`` is provided, only the specified fields in ``Job`` are @@ -754,7 +688,7 @@ def batch_update_jobs( ) request = job_service_pb2.BatchUpdateJobsRequest( - parent=parent, jobs=jobs, update_mask=update_mask + parent=parent, jobs=jobs, update_mask=update_mask, ) if metadata is None: metadata = [] @@ -779,6 +713,81 @@ def batch_update_jobs( metadata_type=common_pb2.BatchOperationMetadata, ) + def delete_job( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Deletes the specified job. + + Typically, the job becomes unsearchable within 10 seconds, but it may take + up to 5 minutes. + + Example: + >>> from google.cloud import talent_v4beta1 + >>> + >>> client = talent_v4beta1.JobServiceClient() + >>> + >>> name = client.job_path('[PROJECT]', '[TENANT]', '[JOB]') + >>> + >>> client.delete_job(name) + + Args: + name (str): Required. The resource name of the job to be deleted. + + The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". + For example, "projects/foo/tenants/bar/jobs/baz". + + If tenant id is unspecified, the default tenant is used. For example, + "projects/foo/jobs/bar". + 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. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_job" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_job" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_job, + default_retry=self._method_configs["DeleteJob"].retry, + default_timeout=self._method_configs["DeleteJob"].timeout, + client_info=self._client_info, + ) + + request = job_service_pb2.DeleteJobRequest(name=name,) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_job"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def batch_delete_jobs( self, parent, @@ -795,7 +804,7 @@ def batch_delete_jobs( >>> >>> client = talent_v4beta1.JobServiceClient() >>> - >>> parent = client.project_path('[PROJECT]') + >>> parent = client.tenant_path('[PROJECT]', '[TENANT]') >>> >>> # TODO: Initialize `filter_`: >>> filter_ = '' @@ -806,9 +815,9 @@ def batch_delete_jobs( parent (str): Required. The resource name of the tenant under which the job is created. - The format is "projects/{project\_id}/tenants/{tenant\_id}". For - example, "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created. For example, "projects/foo". + The format is "projects/{project_id}/tenants/{tenant_id}". For example, + "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant + is created. For example, "projects/foo". filter_ (str): Required. The filter string specifies the jobs to be deleted. Supported operator: =, AND @@ -847,7 +856,7 @@ def batch_delete_jobs( client_info=self._client_info, ) - request = job_service_pb2.BatchDeleteJobsRequest(parent=parent, filter=filter_) + request = job_service_pb2.BatchDeleteJobsRequest(parent=parent, filter=filter_,) if metadata is None: metadata = [] metadata = list(metadata) @@ -883,7 +892,7 @@ def list_jobs( >>> >>> client = talent_v4beta1.JobServiceClient() >>> - >>> parent = client.project_path('[PROJECT]') + >>> parent = client.tenant_path('[PROJECT]', '[TENANT]') >>> >>> # TODO: Initialize `filter_`: >>> filter_ = '' @@ -906,9 +915,9 @@ def list_jobs( parent (str): Required. The resource name of the tenant under which the job is created. - The format is "projects/{project\_id}/tenants/{tenant\_id}". For - example, "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created. For example, "projects/foo". + The format is "projects/{project_id}/tenants/{tenant_id}". For example, + "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant + is created. For example, "projects/foo". filter_ (str): Required. The filter string specifies the jobs to be enumerated. Supported operator: =, AND @@ -968,7 +977,7 @@ def list_jobs( ) request = job_service_pb2.ListJobsRequest( - parent=parent, filter=filter_, page_size=page_size, job_view=job_view + parent=parent, filter=filter_, page_size=page_size, job_view=job_view, ) if metadata is None: metadata = [] @@ -1029,7 +1038,7 @@ def search_jobs( >>> >>> client = talent_v4beta1.JobServiceClient() >>> - >>> parent = client.project_path('[PROJECT]') + >>> parent = client.tenant_path('[PROJECT]', '[TENANT]') >>> >>> # TODO: Initialize `request_metadata`: >>> request_metadata = {} @@ -1051,12 +1060,13 @@ def search_jobs( Args: parent (str): Required. The resource name of the tenant to search within. - The format is "projects/{project\_id}/tenants/{tenant\_id}". For - example, "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created. For example, "projects/foo". - request_metadata (Union[dict, ~google.cloud.talent_v4beta1.types.RequestMetadata]): Required. The meta information collected about the job searcher, used to - improve the search quality of the service. The identifiers (such as - ``user_id``) are provided by users, and must be unique and consistent. + The format is "projects/{project_id}/tenants/{tenant_id}". For example, + "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant + is created. For example, "projects/foo". + request_metadata (Union[dict, ~google.cloud.talent_v4beta1.types.RequestMetadata]): Required. The meta information collected about the job searcher, + used to improve the search quality of the service. The identifiers (such + as ``user_id``) are provided by users, and must be unique and + consistent. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.talent_v4beta1.types.RequestMetadata` @@ -1103,8 +1113,8 @@ def search_jobs( Built-in constants: - - MIN (minimum number similar to java Double.MIN\_VALUE) - - MAX (maximum number similar to java Double.MAX\_VALUE) + - MIN (minimum number similar to java Double.MIN_VALUE) + - MAX (maximum number similar to java Double.MAX_VALUE) Built-in functions: @@ -1114,20 +1124,18 @@ def search_jobs( Job histogram facets: - - company\_display\_name: histogram by [Job.company\_display\_name\`. - - employment\_type: histogram by ``Job.employment_types``, for example, - "FULL\_TIME", "PART\_TIME". - - company\_size: histogram by ``CompanySize``, for example, "SMALL", + - company_display_name: histogram by [Job.company_display_name`. + - employment_type: histogram by ``Job.employment_types``, for example, + "FULL_TIME", "PART_TIME". + - company_size: histogram by ``CompanySize``, for example, "SMALL", "MEDIUM", "BIG". - - publish\_time\_in\_month: histogram by the - ``Job.posting_publish_time`` in months. Must specify list of numeric - buckets in spec. - - publish\_time\_in\_year: histogram by the - ``Job.posting_publish_time`` in years. Must specify list of numeric - buckets in spec. - - degree\_types: histogram by the ``Job.degree_types``, for example, + - publish_time_in_month: histogram by the ``Job.posting_publish_time`` + in months. Must specify list of numeric buckets in spec. + - publish_time_in_year: histogram by the ``Job.posting_publish_time`` + in years. Must specify list of numeric buckets in spec. + - degree_types: histogram by the ``Job.degree_types``, for example, "Bachelors", "Masters". - - job\_level: histogram by the ``Job.job_level``, for example, "Entry + - job_level: histogram by the ``Job.job_level``, for example, "Entry Level". - country: histogram by the country code of jobs, for example, "US", "FR". @@ -1137,9 +1145,9 @@ def search_jobs( level, for example, "CA", "IL". - city: histogram by a combination of the "city name, admin1 code". For example, "Mountain View, CA", "New York, NY". - - admin1\_country: histogram by a combination of the "admin1 code, + - admin1_country: histogram by a combination of the "admin1 code, country", for example, "CA, US", "IL, US". - - city\_coordinate: histogram by the city center's GPS coordinates + - city_coordinate: histogram by the city center's GPS coordinates (latitude and longitude), for example, 37.4038522,-122.0987765. Since the coordinates of a city center can change, customers may need to refresh them periodically. @@ -1148,23 +1156,23 @@ def search_jobs( - language: histogram by the language subtag of the ``Job.language_code``, for example, "en", "fr". - category: histogram by the ``JobCategory``, for example, - "COMPUTER\_AND\_IT", "HEALTHCARE". - - base\_compensation\_unit: histogram by the + "COMPUTER_AND_IT", "HEALTHCARE". + - base_compensation_unit: histogram by the ``CompensationInfo.CompensationUnit`` of base salary, for example, "WEEKLY", "MONTHLY". - - base\_compensation: histogram by the base salary. Must specify list - of numeric buckets to group results by. - - annualized\_base\_compensation: histogram by the base annualized + - base_compensation: histogram by the base salary. Must specify list of + numeric buckets to group results by. + - annualized_base_compensation: histogram by the base annualized salary. Must specify list of numeric buckets to group results by. - - annualized\_total\_compensation: histogram by the total annualized + - annualized_total_compensation: histogram by the total annualized salary. Must specify list of numeric buckets to group results by. - - string\_custom\_attribute: histogram by string + - string_custom_attribute: histogram by string ``Job.custom_attributes``. Values can be accessed via square bracket - notations like string\_custom\_attribute["key1"]. - - numeric\_custom\_attribute: histogram by numeric + notations like string_custom_attribute["key1"]. + - numeric_custom_attribute: histogram by numeric ``Job.custom_attributes``. Values can be accessed via square bracket - notations like numeric\_custom\_attribute["key1"]. Must specify list - of numeric buckets to group results by. + notations like numeric_custom_attribute["key1"]. Must specify list of + numeric buckets to group results by. Example expressions: @@ -1177,9 +1185,10 @@ def search_jobs( message :class:`~google.cloud.talent_v4beta1.types.HistogramQuery` job_view (~google.cloud.talent_v4beta1.types.JobView): The desired job attributes returned for jobs in the search response. Defaults to ``JobView.JOB_VIEW_SMALL`` if no value is specified. - offset (int): An integer that specifies the current offset (that is, starting result - location, amongst the jobs deemed by the API as relevant) in search - results. This field is only considered if ``page_token`` is unset. + offset (int): An integer that specifies the current offset (that is, starting + result location, amongst the jobs deemed by the API as relevant) in + search results. This field is only considered if ``page_token`` is + unset. The maximum allowed value is 5000. Otherwise an error is thrown. @@ -1242,9 +1251,9 @@ def search_jobs( will be ranked at the bottom. Distance is calculated with a precision of 11.3 meters (37.4 feet). Diversification strategy is still applied unless explicitly disabled in ``diversification_level``. - diversification_level (~google.cloud.talent_v4beta1.types.DiversificationLevel): Controls whether highly similar jobs are returned next to each other in - the search results. Jobs are identified as highly similar based on their - titles, job categories, and locations. Highly similar results are + diversification_level (~google.cloud.talent_v4beta1.types.DiversificationLevel): Controls whether highly similar jobs are returned next to each other + in the search results. Jobs are identified as highly similar based on + their titles, job categories, and locations. Highly similar results are clustered so that only one representative job of the cluster is displayed to the job seeker higher up in the results, with the other jobs being displayed lower down in the results. @@ -1387,7 +1396,7 @@ def search_jobs_for_alert( >>> >>> client = talent_v4beta1.JobServiceClient() >>> - >>> parent = client.project_path('[PROJECT]') + >>> parent = client.tenant_path('[PROJECT]', '[TENANT]') >>> >>> # TODO: Initialize `request_metadata`: >>> request_metadata = {} @@ -1409,12 +1418,13 @@ def search_jobs_for_alert( Args: parent (str): Required. The resource name of the tenant to search within. - The format is "projects/{project\_id}/tenants/{tenant\_id}". For - example, "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created. For example, "projects/foo". - request_metadata (Union[dict, ~google.cloud.talent_v4beta1.types.RequestMetadata]): Required. The meta information collected about the job searcher, used to - improve the search quality of the service. The identifiers (such as - ``user_id``) are provided by users, and must be unique and consistent. + The format is "projects/{project_id}/tenants/{tenant_id}". For example, + "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant + is created. For example, "projects/foo". + request_metadata (Union[dict, ~google.cloud.talent_v4beta1.types.RequestMetadata]): Required. The meta information collected about the job searcher, + used to improve the search quality of the service. The identifiers (such + as ``user_id``) are provided by users, and must be unique and + consistent. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.talent_v4beta1.types.RequestMetadata` @@ -1461,8 +1471,8 @@ def search_jobs_for_alert( Built-in constants: - - MIN (minimum number similar to java Double.MIN\_VALUE) - - MAX (maximum number similar to java Double.MAX\_VALUE) + - MIN (minimum number similar to java Double.MIN_VALUE) + - MAX (maximum number similar to java Double.MAX_VALUE) Built-in functions: @@ -1472,20 +1482,18 @@ def search_jobs_for_alert( Job histogram facets: - - company\_display\_name: histogram by [Job.company\_display\_name\`. - - employment\_type: histogram by ``Job.employment_types``, for example, - "FULL\_TIME", "PART\_TIME". - - company\_size: histogram by ``CompanySize``, for example, "SMALL", + - company_display_name: histogram by [Job.company_display_name`. + - employment_type: histogram by ``Job.employment_types``, for example, + "FULL_TIME", "PART_TIME". + - company_size: histogram by ``CompanySize``, for example, "SMALL", "MEDIUM", "BIG". - - publish\_time\_in\_month: histogram by the - ``Job.posting_publish_time`` in months. Must specify list of numeric - buckets in spec. - - publish\_time\_in\_year: histogram by the - ``Job.posting_publish_time`` in years. Must specify list of numeric - buckets in spec. - - degree\_types: histogram by the ``Job.degree_types``, for example, + - publish_time_in_month: histogram by the ``Job.posting_publish_time`` + in months. Must specify list of numeric buckets in spec. + - publish_time_in_year: histogram by the ``Job.posting_publish_time`` + in years. Must specify list of numeric buckets in spec. + - degree_types: histogram by the ``Job.degree_types``, for example, "Bachelors", "Masters". - - job\_level: histogram by the ``Job.job_level``, for example, "Entry + - job_level: histogram by the ``Job.job_level``, for example, "Entry Level". - country: histogram by the country code of jobs, for example, "US", "FR". @@ -1495,9 +1503,9 @@ def search_jobs_for_alert( level, for example, "CA", "IL". - city: histogram by a combination of the "city name, admin1 code". For example, "Mountain View, CA", "New York, NY". - - admin1\_country: histogram by a combination of the "admin1 code, + - admin1_country: histogram by a combination of the "admin1 code, country", for example, "CA, US", "IL, US". - - city\_coordinate: histogram by the city center's GPS coordinates + - city_coordinate: histogram by the city center's GPS coordinates (latitude and longitude), for example, 37.4038522,-122.0987765. Since the coordinates of a city center can change, customers may need to refresh them periodically. @@ -1506,23 +1514,23 @@ def search_jobs_for_alert( - language: histogram by the language subtag of the ``Job.language_code``, for example, "en", "fr". - category: histogram by the ``JobCategory``, for example, - "COMPUTER\_AND\_IT", "HEALTHCARE". - - base\_compensation\_unit: histogram by the + "COMPUTER_AND_IT", "HEALTHCARE". + - base_compensation_unit: histogram by the ``CompensationInfo.CompensationUnit`` of base salary, for example, "WEEKLY", "MONTHLY". - - base\_compensation: histogram by the base salary. Must specify list - of numeric buckets to group results by. - - annualized\_base\_compensation: histogram by the base annualized + - base_compensation: histogram by the base salary. Must specify list of + numeric buckets to group results by. + - annualized_base_compensation: histogram by the base annualized salary. Must specify list of numeric buckets to group results by. - - annualized\_total\_compensation: histogram by the total annualized + - annualized_total_compensation: histogram by the total annualized salary. Must specify list of numeric buckets to group results by. - - string\_custom\_attribute: histogram by string + - string_custom_attribute: histogram by string ``Job.custom_attributes``. Values can be accessed via square bracket - notations like string\_custom\_attribute["key1"]. - - numeric\_custom\_attribute: histogram by numeric + notations like string_custom_attribute["key1"]. + - numeric_custom_attribute: histogram by numeric ``Job.custom_attributes``. Values can be accessed via square bracket - notations like numeric\_custom\_attribute["key1"]. Must specify list - of numeric buckets to group results by. + notations like numeric_custom_attribute["key1"]. Must specify list of + numeric buckets to group results by. Example expressions: @@ -1535,9 +1543,10 @@ def search_jobs_for_alert( message :class:`~google.cloud.talent_v4beta1.types.HistogramQuery` job_view (~google.cloud.talent_v4beta1.types.JobView): The desired job attributes returned for jobs in the search response. Defaults to ``JobView.JOB_VIEW_SMALL`` if no value is specified. - offset (int): An integer that specifies the current offset (that is, starting result - location, amongst the jobs deemed by the API as relevant) in search - results. This field is only considered if ``page_token`` is unset. + offset (int): An integer that specifies the current offset (that is, starting + result location, amongst the jobs deemed by the API as relevant) in + search results. This field is only considered if ``page_token`` is + unset. The maximum allowed value is 5000. Otherwise an error is thrown. @@ -1600,9 +1609,9 @@ def search_jobs_for_alert( will be ranked at the bottom. Distance is calculated with a precision of 11.3 meters (37.4 feet). Diversification strategy is still applied unless explicitly disabled in ``diversification_level``. - diversification_level (~google.cloud.talent_v4beta1.types.DiversificationLevel): Controls whether highly similar jobs are returned next to each other in - the search results. Jobs are identified as highly similar based on their - titles, job categories, and locations. Highly similar results are + diversification_level (~google.cloud.talent_v4beta1.types.DiversificationLevel): Controls whether highly similar jobs are returned next to each other + in the search results. Jobs are identified as highly similar based on + their titles, job categories, and locations. Highly similar results are clustered so that only one representative job of the cluster is displayed to the job seeker higher up in the results, with the other jobs being displayed lower down in the results. diff --git a/google/cloud/talent_v4beta1/gapic/job_service_client_config.py b/google/cloud/talent_v4beta1/gapic/job_service_client_config.py index e282e860..27199eaa 100644 --- a/google/cloud/talent_v4beta1/gapic/job_service_client_config.py +++ b/google/cloud/talent_v4beta1/gapic/job_service_client_config.py @@ -2,70 +2,89 @@ "interfaces": { "google.cloud.talent.v4beta1.JobService": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "no_retry_codes": [], + "no_retry_3_codes": [], + "retry_policy_3_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], }, "retry_params": { - "default": { + "no_retry_3_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, + }, + "retry_policy_3_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, + "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, + }, }, "methods": { - "DeleteJob": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, "CreateJob": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params", }, "BatchCreateJobs": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params", }, "GetJob": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "UpdateJob": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params", }, "BatchUpdateJobs": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params", + }, + "DeleteJob": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "BatchDeleteJobs": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params", }, "ListJobs": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params", }, "SearchJobs": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params", }, "SearchJobsForAlert": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params", }, }, } diff --git a/google/cloud/talent_v4beta1/gapic/profile_service_client.py b/google/cloud/talent_v4beta1/gapic/profile_service_client.py index 6c759074..dab2ca91 100644 --- a/google/cloud/talent_v4beta1/gapic/profile_service_client.py +++ b/google/cloud/talent_v4beta1/gapic/profile_service_client.py @@ -54,15 +54,12 @@ from google.cloud.talent_v4beta1.proto import profile_pb2 from google.cloud.talent_v4beta1.proto import profile_service_pb2 from google.cloud.talent_v4beta1.proto import profile_service_pb2_grpc -from google.cloud.talent_v4beta1.proto import tenant_pb2 -from google.cloud.talent_v4beta1.proto import tenant_service_pb2 -from google.cloud.talent_v4beta1.proto import tenant_service_pb2_grpc from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent").version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent",).version class ProfileServiceClient(object): @@ -112,7 +109,7 @@ def profile_path(cls, project, tenant, profile): def tenant_path(cls, project, tenant): """Return a fully-qualified tenant string.""" return google.api_core.path_template.expand( - "projects/{project}/tenants/{tenant}", project=project, tenant=tenant + "projects/{project}/tenants/{tenant}", project=project, tenant=tenant, ) def __init__( @@ -202,12 +199,12 @@ def __init__( self.transport = transport else: self.transport = profile_service_grpc_transport.ProfileServiceGrpcTransport( - 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 @@ -218,7 +215,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. @@ -228,78 +225,6 @@ def __init__( self._inner_api_calls = {} # Service calls - def delete_profile( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Deletes the specified profile. - Prerequisite: The profile has no associated applications or assignments - associated. - - Example: - >>> from google.cloud import talent_v4beta1 - >>> - >>> client = talent_v4beta1.ProfileServiceClient() - >>> - >>> name = client.profile_path('[PROJECT]', '[TENANT]', '[PROFILE]') - >>> - >>> client.delete_profile(name) - - Args: - name (str): Required. Resource name of the profile to be deleted. - - The format is - "projects/{project\_id}/tenants/{tenant\_id}/profiles/{profile\_id}". - For example, "projects/foo/tenants/bar/profiles/baz". - 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. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_profile" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_profile" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_profile, - default_retry=self._method_configs["DeleteProfile"].retry, - default_timeout=self._method_configs["DeleteProfile"].timeout, - client_info=self._client_info, - ) - - request = profile_service_pb2.DeleteProfileRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_profile"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - def search_profiles( self, parent, @@ -353,8 +278,8 @@ def search_profiles( Args: parent (str): Required. The resource name of the tenant to search within. - The format is "projects/{project\_id}/tenants/{tenant\_id}". For - example, "projects/foo/tenants/bar". + The format is "projects/{project_id}/tenants/{tenant_id}". For example, + "projects/foo/tenants/bar". request_metadata (Union[dict, ~google.cloud.talent_v4beta1.types.RequestMetadata]): Required. The meta information collected about the profile search user. This is used to improve the search quality of the service. These values are provided by users, and must be precise and consistent. @@ -370,9 +295,9 @@ def search_profiles( resource, this parameter does not affect the return value. If page streaming is performed per-page, this determines the maximum number of resources in a page. - offset (int): An integer that specifies the current offset (that is, starting result) - in search results. This field is only considered if ``page_token`` is - unset. + offset (int): An integer that specifies the current offset (that is, starting + result) in search results. This field is only considered if + ``page_token`` is unset. The maximum allowed value is 5000. Otherwise an error is thrown. @@ -380,28 +305,28 @@ def search_profiles( search from the 11th profile. This can be used for pagination, for example pageSize = 10 and offset = 10 means to search from the second page. - disable_spell_check (bool): This flag controls the spell-check feature. If ``false``, the service - attempts to correct a misspelled query. + disable_spell_check (bool): This flag controls the spell-check feature. If ``false``, the + service attempts to correct a misspelled query. For example, "enginee" is corrected to "engineer". - order_by (str): The criteria that determines how search results are sorted. Defaults is - "relevance desc" if no value is specified. + order_by (str): The criteria that determines how search results are sorted. Defaults + is "relevance desc" if no value is specified. Supported options are: - "relevance desc": By descending relevance, as determined by the API algorithms. - - "update\_date desc": Sort by ``Profile.update_time`` in descending + - "update_date desc": Sort by ``Profile.update_time`` in descending order (recently updated profiles first). - - "create\_date desc": Sort by ``Profile.create_time`` in descending + - "create_date desc": Sort by ``Profile.create_time`` in descending order (recently created profiles first). - - "first\_name": Sort by ``PersonName.PersonStructuredName.given_name`` + - "first_name": Sort by ``PersonName.PersonStructuredName.given_name`` in ascending order. - - "first\_name desc": Sort by + - "first_name desc": Sort by ``PersonName.PersonStructuredName.given_name`` in descending order. - - "last\_name": Sort by ``PersonName.PersonStructuredName.family_name`` + - "last_name": Sort by ``PersonName.PersonStructuredName.family_name`` in ascending order. - - "last\_name desc": Sort by + - "last_name desc": Sort by ``PersonName.PersonStructuredName.family_name`` in ascending order. case_sensitive_sort (bool): When sort by field is based on alphabetical order, sort values case sensitively (based on ASCII) when the value is set to true. Default value @@ -411,7 +336,7 @@ def search_profiles( The expression syntax looks like a function definition with parameters. - Function syntax: function\_name(histogram\_facet[, list of buckets]) + Function syntax: function_name(histogram_facet[, list of buckets]) Data types: @@ -423,8 +348,8 @@ def search_profiles( Built-in constants: - - MIN (minimum number similar to java Double.MIN\_VALUE) - - MAX (maximum number similar to java Double.MAX\_VALUE) + - MIN (minimum number similar to java Double.MIN_VALUE) + - MAX (maximum number similar to java Double.MAX_VALUE) Built-in functions: @@ -442,52 +367,53 @@ def search_profiles( town, or the particular term a country uses to define the geographic structure below the admin1 level. Examples include city names such as "Mountain View" and "New York". - - extended\_locality: Extended locality is concatenated version of + - extended_locality: Extended locality is concatenated version of admin1 and locality with comma separator. For example, "Mountain View, CA" and "New York, NY". - - postal\_code: Postal code of profile which follows locale code. + - postal_code: Postal code of profile which follows locale code. - country: Country code (ISO-3166-1 alpha-2 code) of profile, such as US, JP, GB. - - job\_title: Normalized job titles specified in EmploymentHistory. - - company\_name: Normalized company name of profiles to match on. + - job_title: Normalized job titles specified in EmploymentHistory. + - company_name: Normalized company name of profiles to match on. - institution: The school name. For example, "MIT", "University of California, Berkeley" - degree: Highest education degree in ISCED code. Each value in degree covers a specific level of education, without any expansion to upper nor lower levels of education degree. - - experience\_in\_months: experience in months. 0 means 0 month to 1 + - experience_in_months: experience in months. 0 means 0 month to 1 month (exclusive). - - application\_date: The application date specifies application start + - application_date: The application date specifies application start dates. See [ApplicationDateFilter\` for more details. - - application\_outcome\_notes: The application outcome reason specifies + - application_outcome_notes: The application outcome reason specifies the reasons behind the outcome of the job application. See ``ApplicationOutcomeNotesFilter`` for more details. - - application\_job\_title: The application job title specifies the job + - application_job_title: The application job title specifies the job applied for in the application. See ``ApplicationJobFilter`` for more details. - - hirable\_status: Hirable status specifies the profile's hirable + - hirable_status: Hirable status specifies the profile's hirable status. - - string\_custom\_attribute: String custom attributes. Values can be + - string_custom_attribute: String custom attributes. Values can be accessed via square bracket notation like - string\_custom\_attribute["key1"]. - - numeric\_custom\_attribute: Numeric custom attributes. Values can be + string_custom_attribute["key1"]. + - numeric_custom_attribute: Numeric custom attributes. Values can be accessed via square bracket notation like - numeric\_custom\_attribute["key1"]. + numeric_custom_attribute["key1"]. Example expressions: - count(admin1) - - count(experience\_in\_months, [bucket(0, 12, "1 year"), bucket(12, - 36, "1-3 years"), bucket(36, MAX, "3+ years")]) - - count(string\_custom\_attribute["assigned\_recruiter"]) - - count(numeric\_custom\_attribute["favorite\_number"], [bucket(MIN, 0, + - count(experience_in_months, [bucket(0, 12, "1 year"), bucket(12, 36, + "1-3 years"), bucket(36, MAX, "3+ years")]) + - count(string_custom_attribute["assigned_recruiter"]) + - count(numeric_custom_attribute["favorite_number"], [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")]) If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.talent_v4beta1.types.HistogramQuery` - result_set_id (str): An id that uniquely identifies the result set of a ``SearchProfiles`` - call. The id should be retrieved from the ``SearchProfilesResponse`` - message returned from a previous invocation of ``SearchProfiles``. + result_set_id (str): An id that uniquely identifies the result set of a + ``SearchProfiles`` call. The id should be retrieved from the + ``SearchProfilesResponse`` message returned from a previous invocation + of ``SearchProfiles``. A result set is an ordered list of search results. @@ -628,8 +554,8 @@ def list_profiles( parent (str): Required. The resource name of the tenant under which the profile is created. - The format is "projects/{project\_id}/tenants/{tenant\_id}". For - example, "projects/foo/tenants/bar". + The format is "projects/{project_id}/tenants/{tenant_id}". For example, + "projects/foo/tenants/bar". filter_ (str): The filter string specifies the profiles to be enumerated. Supported operator: =, AND @@ -652,8 +578,8 @@ def list_profiles( resource, this parameter does not affect the return value. If page streaming is performed per-page, this determines the maximum number of resources in a page. - read_mask (Union[dict, ~google.cloud.talent_v4beta1.types.FieldMask]): A field mask to specify the profile fields to be listed in response. All - fields are listed if it is unset. + read_mask (Union[dict, ~google.cloud.talent_v4beta1.types.FieldMask]): A field mask to specify the profile fields to be listed in response. + All fields are listed if it is unset. Valid values are: @@ -695,7 +621,7 @@ def list_profiles( ) request = profile_service_pb2.ListProfilesRequest( - parent=parent, filter=filter_, page_size=page_size, read_mask=read_mask + parent=parent, filter=filter_, page_size=page_size, read_mask=read_mask, ) if metadata is None: metadata = [] @@ -751,8 +677,8 @@ def create_profile( Args: parent (str): Required. The name of the tenant this profile belongs to. - The format is "projects/{project\_id}/tenants/{tenant\_id}". For - example, "projects/foo/tenants/bar". + The format is "projects/{project_id}/tenants/{tenant_id}". For example, + "projects/foo/tenants/bar". profile (Union[dict, ~google.cloud.talent_v4beta1.types.Profile]): Required. The profile to be created. If a dict is provided, it must be of the same form as the protobuf @@ -788,7 +714,7 @@ def create_profile( ) request = profile_service_pb2.CreateProfileRequest( - parent=parent, profile=profile + parent=parent, profile=profile, ) if metadata is None: metadata = [] @@ -830,8 +756,8 @@ def get_profile( name (str): Required. Resource name of the profile to get. The format is - "projects/{project\_id}/tenants/{tenant\_id}/profiles/{profile\_id}". - For example, "projects/foo/tenants/bar/profiles/baz". + "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For + example, "projects/foo/tenants/bar/profiles/baz". 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. @@ -862,7 +788,7 @@ def get_profile( client_info=self._client_info, ) - request = profile_service_pb2.GetProfileRequest(name=name) + request = profile_service_pb2.GetProfileRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -943,7 +869,7 @@ def update_profile( ) request = profile_service_pb2.UpdateProfileRequest( - profile=profile, update_mask=update_mask + profile=profile, update_mask=update_mask, ) if metadata is None: metadata = [] @@ -961,3 +887,75 @@ def update_profile( return self._inner_api_calls["update_profile"]( request, retry=retry, timeout=timeout, metadata=metadata ) + + def delete_profile( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Deletes the specified profile. + Prerequisite: The profile has no associated applications or assignments + associated. + + Example: + >>> from google.cloud import talent_v4beta1 + >>> + >>> client = talent_v4beta1.ProfileServiceClient() + >>> + >>> name = client.profile_path('[PROJECT]', '[TENANT]', '[PROFILE]') + >>> + >>> client.delete_profile(name) + + Args: + name (str): Required. Resource name of the profile to be deleted. + + The format is + "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For + example, "projects/foo/tenants/bar/profiles/baz". + 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. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_profile" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_profile" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_profile, + default_retry=self._method_configs["DeleteProfile"].retry, + default_timeout=self._method_configs["DeleteProfile"].timeout, + client_info=self._client_info, + ) + + request = profile_service_pb2.DeleteProfileRequest(name=name,) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_profile"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) diff --git a/google/cloud/talent_v4beta1/gapic/profile_service_client_config.py b/google/cloud/talent_v4beta1/gapic/profile_service_client_config.py index af533653..67cbd7c1 100644 --- a/google/cloud/talent_v4beta1/gapic/profile_service_client_config.py +++ b/google/cloud/talent_v4beta1/gapic/profile_service_client_config.py @@ -2,50 +2,69 @@ "interfaces": { "google.cloud.talent.v4beta1.ProfileService": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "retry_policy_4_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "no_retry_2_codes": [], + "no_retry_codes": [], }, "retry_params": { - "default": { + "retry_policy_4_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, + "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_2_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": { - "DeleteProfile": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, "SearchProfiles": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params", }, "ListProfiles": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params", }, "CreateProfile": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params", }, "GetProfile": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params", }, "UpdateProfile": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params", + }, + "DeleteProfile": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params", }, }, } diff --git a/google/cloud/talent_v4beta1/gapic/tenant_service_client.py b/google/cloud/talent_v4beta1/gapic/tenant_service_client.py index 2e2e02eb..57bf8378 100644 --- a/google/cloud/talent_v4beta1/gapic/tenant_service_client.py +++ b/google/cloud/talent_v4beta1/gapic/tenant_service_client.py @@ -43,11 +43,17 @@ from google.cloud.talent_v4beta1.proto import company_service_pb2_grpc from google.cloud.talent_v4beta1.proto import completion_service_pb2 from google.cloud.talent_v4beta1.proto import completion_service_pb2_grpc +from google.cloud.talent_v4beta1.proto import event_pb2 +from google.cloud.talent_v4beta1.proto import event_service_pb2 +from google.cloud.talent_v4beta1.proto import event_service_pb2_grpc from google.cloud.talent_v4beta1.proto import filters_pb2 from google.cloud.talent_v4beta1.proto import histogram_pb2 from google.cloud.talent_v4beta1.proto import job_pb2 from google.cloud.talent_v4beta1.proto import job_service_pb2 from google.cloud.talent_v4beta1.proto import job_service_pb2_grpc +from google.cloud.talent_v4beta1.proto import profile_pb2 +from google.cloud.talent_v4beta1.proto import profile_service_pb2 +from google.cloud.talent_v4beta1.proto import profile_service_pb2_grpc from google.cloud.talent_v4beta1.proto import tenant_pb2 from google.cloud.talent_v4beta1.proto import tenant_service_pb2 from google.cloud.talent_v4beta1.proto import tenant_service_pb2_grpc @@ -56,7 +62,7 @@ from google.protobuf import field_mask_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent").version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-talent",).version class TenantServiceClient(object): @@ -93,14 +99,14 @@ def from_service_account_file(cls, filename, *args, **kwargs): 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, ) @classmethod def tenant_path(cls, project, tenant): """Return a fully-qualified tenant string.""" return google.api_core.path_template.expand( - "projects/{project}/tenants/{tenant}", project=project, tenant=tenant + "projects/{project}/tenants/{tenant}", project=project, tenant=tenant, ) def __init__( @@ -190,12 +196,12 @@ def __init__( self.transport = transport else: self.transport = tenant_service_grpc_transport.TenantServiceGrpcTransport( - 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 @@ -206,7 +212,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. @@ -216,75 +222,6 @@ def __init__( self._inner_api_calls = {} # Service calls - def delete_tenant( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Deletes specified tenant. - - Example: - >>> from google.cloud import talent_v4beta1 - >>> - >>> client = talent_v4beta1.TenantServiceClient() - >>> - >>> name = client.tenant_path('[PROJECT]', '[TENANT]') - >>> - >>> client.delete_tenant(name) - - Args: - name (str): Required. The resource name of the tenant to be deleted. - - The format is "projects/{project\_id}/tenants/{tenant\_id}", for - example, "projects/foo/tenants/bar". - 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. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if "delete_tenant" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_tenant" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_tenant, - default_retry=self._method_configs["DeleteTenant"].retry, - default_timeout=self._method_configs["DeleteTenant"].timeout, - client_info=self._client_info, - ) - - request = tenant_service_pb2.DeleteTenantRequest(name=name) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_tenant"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - def create_tenant( self, parent, @@ -312,7 +249,7 @@ def create_tenant( parent (str): Required. Resource name of the project under which the tenant is created. - The format is "projects/{project\_id}", for example, "projects/foo". + The format is "projects/{project_id}", for example, "projects/foo". tenant (Union[dict, ~google.cloud.talent_v4beta1.types.Tenant]): Required. The tenant to be created. If a dict is provided, it must be of the same form as the protobuf @@ -347,7 +284,7 @@ def create_tenant( client_info=self._client_info, ) - request = tenant_service_pb2.CreateTenantRequest(parent=parent, tenant=tenant) + request = tenant_service_pb2.CreateTenantRequest(parent=parent, tenant=tenant,) if metadata is None: metadata = [] metadata = list(metadata) @@ -387,8 +324,8 @@ def get_tenant( Args: name (str): Required. The resource name of the tenant to be retrieved. - The format is "projects/{project\_id}/tenants/{tenant\_id}", for - example, "projects/foo/tenants/bar". + The format is "projects/{project_id}/tenants/{tenant_id}", for example, + "projects/foo/tenants/bar". 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. @@ -419,7 +356,7 @@ def get_tenant( client_info=self._client_info, ) - request = tenant_service_pb2.GetTenantRequest(name=name) + request = tenant_service_pb2.GetTenantRequest(name=name,) if metadata is None: metadata = [] metadata = list(metadata) @@ -504,7 +441,7 @@ def update_tenant( ) request = tenant_service_pb2.UpdateTenantRequest( - tenant=tenant, update_mask=update_mask + tenant=tenant, update_mask=update_mask, ) if metadata is None: metadata = [] @@ -523,6 +460,75 @@ def update_tenant( request, retry=retry, timeout=timeout, metadata=metadata ) + def delete_tenant( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Deletes specified tenant. + + Example: + >>> from google.cloud import talent_v4beta1 + >>> + >>> client = talent_v4beta1.TenantServiceClient() + >>> + >>> name = client.tenant_path('[PROJECT]', '[TENANT]') + >>> + >>> client.delete_tenant(name) + + Args: + name (str): Required. The resource name of the tenant to be deleted. + + The format is "projects/{project_id}/tenants/{tenant_id}", for example, + "projects/foo/tenants/bar". + 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. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "delete_tenant" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_tenant" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_tenant, + default_retry=self._method_configs["DeleteTenant"].retry, + default_timeout=self._method_configs["DeleteTenant"].timeout, + client_info=self._client_info, + ) + + request = tenant_service_pb2.DeleteTenantRequest(name=name,) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_tenant"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def list_tenants( self, parent, @@ -559,7 +565,7 @@ def list_tenants( parent (str): Required. Resource name of the project under which the tenant is created. - The format is "projects/{project\_id}", for example, "projects/foo". + The format is "projects/{project_id}", for example, "projects/foo". 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 @@ -599,7 +605,7 @@ def list_tenants( ) request = tenant_service_pb2.ListTenantsRequest( - parent=parent, page_size=page_size + parent=parent, page_size=page_size, ) if metadata is None: metadata = [] diff --git a/google/cloud/talent_v4beta1/gapic/tenant_service_client_config.py b/google/cloud/talent_v4beta1/gapic/tenant_service_client_config.py index af87b931..d5eaaabe 100644 --- a/google/cloud/talent_v4beta1/gapic/tenant_service_client_config.py +++ b/google/cloud/talent_v4beta1/gapic/tenant_service_client_config.py @@ -2,45 +2,164 @@ "interfaces": { "google.cloud.talent.v4beta1.TenantService": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "retry_policy_1_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "no_retry_2_codes": [], + "retry_policy_6_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "no_retry_codes": [], + "no_retry_3_codes": [], + "retry_policy_3_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "retry_policy_2_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "retry_policy_4_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "no_retry_4_codes": [], + "no_retry_6_codes": [], + "no_retry_1_codes": [], + "retry_policy_5_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "no_retry_5_codes": [], }, "retry_params": { - "default": { + "no_retry_3_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, + }, + "retry_policy_6_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "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_5_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, + }, + "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, + }, + "no_retry_2_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, + }, + "no_retry_4_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, + }, + "no_retry_6_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, + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000, + }, + "retry_policy_3_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000, + }, + "retry_policy_2_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000, + }, + "retry_policy_4_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000, + }, + "retry_policy_5_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, + "initial_rpc_timeout_millis": 30000, "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 300000, - } + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000, + }, }, "methods": { - "DeleteTenant": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, "CreateTenant": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params", }, "GetTenant": { - "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", }, "UpdateTenant": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "timeout_millis": 30000, + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params", + }, + "DeleteTenant": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "ListTenants": { - "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/google/cloud/talent_v4beta1/gapic/transports/application_service_grpc_transport.py b/google/cloud/talent_v4beta1/gapic/transports/application_service_grpc_transport.py index 3307e3df..f288ddc1 100644 --- a/google/cloud/talent_v4beta1/gapic/transports/application_service_grpc_transport.py +++ b/google/cloud/talent_v4beta1/gapic/transports/application_service_grpc_transport.py @@ -56,7 +56,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. @@ -77,7 +77,7 @@ def __init__( self._stubs = { "application_service_stub": application_service_pb2_grpc.ApplicationServiceStub( channel - ) + ), } @classmethod @@ -112,19 +112,6 @@ def channel(self): """ return self._channel - @property - def delete_application(self): - """Return the gRPC stub for :meth:`ApplicationServiceClient.delete_application`. - - Deletes specified application. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["application_service_stub"].DeleteApplication - @property def create_application(self): """Return the gRPC stub for :meth:`ApplicationServiceClient.create_application`. @@ -164,6 +151,19 @@ def update_application(self): """ return self._stubs["application_service_stub"].UpdateApplication + @property + def delete_application(self): + """Return the gRPC stub for :meth:`ApplicationServiceClient.delete_application`. + + Deletes specified application. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["application_service_stub"].DeleteApplication + @property def list_applications(self): """Return the gRPC stub for :meth:`ApplicationServiceClient.list_applications`. diff --git a/google/cloud/talent_v4beta1/gapic/transports/company_service_grpc_transport.py b/google/cloud/talent_v4beta1/gapic/transports/company_service_grpc_transport.py index c2405145..86f3898f 100644 --- a/google/cloud/talent_v4beta1/gapic/transports/company_service_grpc_transport.py +++ b/google/cloud/talent_v4beta1/gapic/transports/company_service_grpc_transport.py @@ -56,7 +56,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,9 @@ def __init__( # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - "company_service_stub": company_service_pb2_grpc.CompanyServiceStub(channel) + "company_service_stub": company_service_pb2_grpc.CompanyServiceStub( + channel + ), } @classmethod @@ -110,20 +112,6 @@ def channel(self): """ return self._channel - @property - def delete_company(self): - """Return the gRPC stub for :meth:`CompanyServiceClient.delete_company`. - - Deletes specified company. - Prerequisite: The company has no jobs associated with it. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["company_service_stub"].DeleteCompany - @property def create_company(self): """Return the gRPC stub for :meth:`CompanyServiceClient.create_company`. @@ -163,6 +151,20 @@ def update_company(self): """ return self._stubs["company_service_stub"].UpdateCompany + @property + def delete_company(self): + """Return the gRPC stub for :meth:`CompanyServiceClient.delete_company`. + + Deletes specified company. + Prerequisite: The company has no jobs associated with it. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["company_service_stub"].DeleteCompany + @property def list_companies(self): """Return the gRPC stub for :meth:`CompanyServiceClient.list_companies`. diff --git a/google/cloud/talent_v4beta1/gapic/transports/completion_grpc_transport.py b/google/cloud/talent_v4beta1/gapic/transports/completion_grpc_transport.py index f4258a86..f73a61d8 100644 --- a/google/cloud/talent_v4beta1/gapic/transports/completion_grpc_transport.py +++ b/google/cloud/talent_v4beta1/gapic/transports/completion_grpc_transport.py @@ -56,7 +56,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__( # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - "completion_stub": completion_service_pb2_grpc.CompletionStub(channel) + "completion_stub": completion_service_pb2_grpc.CompletionStub(channel), } @classmethod diff --git a/google/cloud/talent_v4beta1/gapic/transports/event_service_grpc_transport.py b/google/cloud/talent_v4beta1/gapic/transports/event_service_grpc_transport.py index b1ee752a..8d9c2b88 100644 --- a/google/cloud/talent_v4beta1/gapic/transports/event_service_grpc_transport.py +++ b/google/cloud/talent_v4beta1/gapic/transports/event_service_grpc_transport.py @@ -56,7 +56,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__( # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - "event_service_stub": event_service_pb2_grpc.EventServiceStub(channel) + "event_service_stub": event_service_pb2_grpc.EventServiceStub(channel), } @classmethod @@ -114,9 +114,9 @@ def channel(self): def create_client_event(self): """Return the gRPC stub for :meth:`EventServiceClient.create_client_event`. - Report events issued when end user interacts with customer's application - that uses Cloud Talent Solution. You may inspect the created events in - `self service + Report events issued when end user interacts with customer's + application that uses Cloud Talent Solution. You may inspect the created + events in `self service tools `__. `Learn more `__ diff --git a/google/cloud/talent_v4beta1/gapic/transports/job_service_grpc_transport.py b/google/cloud/talent_v4beta1/gapic/transports/job_service_grpc_transport.py index bf39c464..5100175e 100644 --- a/google/cloud/talent_v4beta1/gapic/transports/job_service_grpc_transport.py +++ b/google/cloud/talent_v4beta1/gapic/transports/job_service_grpc_transport.py @@ -57,7 +57,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,9 @@ def __init__( # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. - self._stubs = {"job_service_stub": job_service_pb2_grpc.JobServiceStub(channel)} + self._stubs = { + "job_service_stub": job_service_pb2_grpc.JobServiceStub(channel), + } # Because this API includes a method that returns a # long-running operation (proto: google.longrunning.Operation), @@ -116,22 +118,6 @@ def channel(self): """ return self._channel - @property - def delete_job(self): - """Return the gRPC stub for :meth:`JobServiceClient.delete_job`. - - Deletes the specified job. - - Typically, the job becomes unsearchable within 10 seconds, but it may take - up to 5 minutes. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["job_service_stub"].DeleteJob - @property def create_job(self): """Return the gRPC stub for :meth:`JobServiceClient.create_job`. @@ -204,6 +190,22 @@ def batch_update_jobs(self): """ return self._stubs["job_service_stub"].BatchUpdateJobs + @property + def delete_job(self): + """Return the gRPC stub for :meth:`JobServiceClient.delete_job`. + + Deletes the specified job. + + Typically, the job becomes unsearchable within 10 seconds, but it may take + up to 5 minutes. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["job_service_stub"].DeleteJob + @property def batch_delete_jobs(self): """Return the gRPC stub for :meth:`JobServiceClient.batch_delete_jobs`. diff --git a/google/cloud/talent_v4beta1/gapic/transports/profile_service_grpc_transport.py b/google/cloud/talent_v4beta1/gapic/transports/profile_service_grpc_transport.py index d0942ec7..636334d9 100644 --- a/google/cloud/talent_v4beta1/gapic/transports/profile_service_grpc_transport.py +++ b/google/cloud/talent_v4beta1/gapic/transports/profile_service_grpc_transport.py @@ -56,7 +56,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,9 @@ def __init__( # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - "profile_service_stub": profile_service_pb2_grpc.ProfileServiceStub(channel) + "profile_service_stub": profile_service_pb2_grpc.ProfileServiceStub( + channel + ), } @classmethod @@ -110,21 +112,6 @@ def channel(self): """ return self._channel - @property - def delete_profile(self): - """Return the gRPC stub for :meth:`ProfileServiceClient.delete_profile`. - - Deletes the specified profile. - Prerequisite: The profile has no associated applications or assignments - associated. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["profile_service_stub"].DeleteProfile - @property def search_profiles(self): """Return the gRPC stub for :meth:`ProfileServiceClient.search_profiles`. @@ -195,3 +182,18 @@ def update_profile(self): deserialized response object. """ return self._stubs["profile_service_stub"].UpdateProfile + + @property + def delete_profile(self): + """Return the gRPC stub for :meth:`ProfileServiceClient.delete_profile`. + + Deletes the specified profile. + Prerequisite: The profile has no associated applications or assignments + associated. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["profile_service_stub"].DeleteProfile diff --git a/google/cloud/talent_v4beta1/gapic/transports/tenant_service_grpc_transport.py b/google/cloud/talent_v4beta1/gapic/transports/tenant_service_grpc_transport.py index a614bf29..1158072b 100644 --- a/google/cloud/talent_v4beta1/gapic/transports/tenant_service_grpc_transport.py +++ b/google/cloud/talent_v4beta1/gapic/transports/tenant_service_grpc_transport.py @@ -56,7 +56,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__( # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { - "tenant_service_stub": tenant_service_pb2_grpc.TenantServiceStub(channel) + "tenant_service_stub": tenant_service_pb2_grpc.TenantServiceStub(channel), } @classmethod @@ -110,19 +110,6 @@ def channel(self): """ return self._channel - @property - def delete_tenant(self): - """Return the gRPC stub for :meth:`TenantServiceClient.delete_tenant`. - - Deletes specified tenant. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["tenant_service_stub"].DeleteTenant - @property def create_tenant(self): """Return the gRPC stub for :meth:`TenantServiceClient.create_tenant`. @@ -162,6 +149,19 @@ def update_tenant(self): """ return self._stubs["tenant_service_stub"].UpdateTenant + @property + def delete_tenant(self): + """Return the gRPC stub for :meth:`TenantServiceClient.delete_tenant`. + + Deletes specified tenant. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["tenant_service_stub"].DeleteTenant + @property def list_tenants(self): """Return the gRPC stub for :meth:`TenantServiceClient.list_tenants`. diff --git a/google/cloud/talent_v4beta1/proto/application_pb2.py b/google/cloud/talent_v4beta1/proto/application_pb2.py index 25c303d9..ae4d5d29 100644 --- a/google/cloud/talent_v4beta1/proto/application_pb2.py +++ b/google/cloud/talent_v4beta1/proto/application_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/application.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/talent_v4beta1/proto/application.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\030ApplicationResourceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n3google/cloud/talent_v4beta1/proto/application.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x16google/type/date.proto"\x9c\t\n\x0b\x41pplication\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x65xternal_id\x18\x1f \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07profile\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12,\n\x03job\x18\x04 \x01(\tB\x1f\xfa\x41\x19\n\x17jobs.googleapis.com/Job\xe0\x41\x02\x12\x31\n\x07\x63ompany\x18\x05 \x01(\tB \xfa\x41\x1d\n\x1bjobs.googleapis.com/Company\x12+\n\x10\x61pplication_date\x18\x07 \x01(\x0b\x32\x11.google.type.Date\x12M\n\x05stage\x18\x0b \x01(\x0e\x32\x39.google.cloud.talent.v4beta1.Application.ApplicationStageB\x03\xe0\x41\x02\x12H\n\x05state\x18\r \x01(\x0e\x32\x39.google.cloud.talent.v4beta1.Application.ApplicationState\x12:\n\ninterviews\x18\x10 \x03(\x0b\x32&.google.cloud.talent.v4beta1.Interview\x12,\n\x08referral\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x34\n\x0b\x63reate_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12/\n\x0bupdate_time\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\routcome_notes\x18\x15 \x01(\t\x12\x35\n\x07outcome\x18\x16 \x01(\x0e\x32$.google.cloud.talent.v4beta1.Outcome\x12\x31\n\x08is_match\x18\x1c \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12\x1e\n\x11job_title_snippet\x18\x1d \x01(\tB\x03\xe0\x41\x03"\x90\x01\n\x10\x41pplicationState\x12!\n\x1d\x41PPLICATION_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\x16\n\x12\x43\x41NDIDATE_WITHDREW\x10\x02\x12\x15\n\x11\x45MPLOYER_WITHDREW\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x12\n\n\x06\x43LOSED\x10\x05"\xa9\x01\n\x10\x41pplicationStage\x12!\n\x1d\x41PPLICATION_STAGE_UNSPECIFIED\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\n\n\x06SCREEN\x10\x02\x12\x19\n\x15HIRING_MANAGER_REVIEW\x10\x03\x12\r\n\tINTERVIEW\x10\x04\x12\x12\n\x0eOFFER_EXTENDED\x10\x05\x12\x12\n\x0eOFFER_ACCEPTED\x10\x06\x12\x0b\n\x07STARTED\x10\x07:w\xea\x41t\n\x1fjobs.googleapis.com/Application\x12Qprojects/{project}/tenants/{tenant}/profiles/{profile}/applications/{application}B\x86\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x18\x41pplicationResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\030ApplicationResourceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n3google/cloud/talent_v4beta1/proto/application.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x16google/type/date.proto"\x9c\t\n\x0b\x41pplication\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x65xternal_id\x18\x1f \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07profile\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12,\n\x03job\x18\x04 \x01(\tB\x1f\xfa\x41\x19\n\x17jobs.googleapis.com/Job\xe0\x41\x02\x12\x31\n\x07\x63ompany\x18\x05 \x01(\tB \xfa\x41\x1d\n\x1bjobs.googleapis.com/Company\x12+\n\x10\x61pplication_date\x18\x07 \x01(\x0b\x32\x11.google.type.Date\x12M\n\x05stage\x18\x0b \x01(\x0e\x32\x39.google.cloud.talent.v4beta1.Application.ApplicationStageB\x03\xe0\x41\x02\x12H\n\x05state\x18\r \x01(\x0e\x32\x39.google.cloud.talent.v4beta1.Application.ApplicationState\x12:\n\ninterviews\x18\x10 \x03(\x0b\x32&.google.cloud.talent.v4beta1.Interview\x12,\n\x08referral\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x34\n\x0b\x63reate_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12/\n\x0bupdate_time\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\routcome_notes\x18\x15 \x01(\t\x12\x35\n\x07outcome\x18\x16 \x01(\x0e\x32$.google.cloud.talent.v4beta1.Outcome\x12\x31\n\x08is_match\x18\x1c \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12\x1e\n\x11job_title_snippet\x18\x1d \x01(\tB\x03\xe0\x41\x03"\x90\x01\n\x10\x41pplicationState\x12!\n\x1d\x41PPLICATION_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\x16\n\x12\x43\x41NDIDATE_WITHDREW\x10\x02\x12\x15\n\x11\x45MPLOYER_WITHDREW\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x12\n\n\x06\x43LOSED\x10\x05"\xa9\x01\n\x10\x41pplicationStage\x12!\n\x1d\x41PPLICATION_STAGE_UNSPECIFIED\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\n\n\x06SCREEN\x10\x02\x12\x19\n\x15HIRING_MANAGER_REVIEW\x10\x03\x12\r\n\tINTERVIEW\x10\x04\x12\x12\n\x0eOFFER_EXTENDED\x10\x05\x12\x12\n\x0eOFFER_ACCEPTED\x10\x06\x12\x0b\n\x07STARTED\x10\x07:w\xea\x41t\n\x1fjobs.googleapis.com/Application\x12Qprojects/{project}/tenants/{tenant}/profiles/{profile}/applications/{application}B\x86\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x18\x41pplicationResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, @@ -53,6 +47,7 @@ full_name="google.cloud.talent.v4beta1.Application.ApplicationState", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="APPLICATION_STATE_UNSPECIFIED", @@ -60,9 +55,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IN_PROGRESS", index=1, number=1, serialized_options=None, type=None + name="IN_PROGRESS", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CANDIDATE_WITHDREW", @@ -70,6 +71,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="EMPLOYER_WITHDREW", @@ -77,12 +79,23 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="COMPLETED", index=4, number=4, serialized_options=None, type=None + name="COMPLETED", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CLOSED", index=5, number=5, serialized_options=None, type=None + name="CLOSED", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -97,6 +110,7 @@ full_name="google.cloud.talent.v4beta1.Application.ApplicationStage", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="APPLICATION_STAGE_UNSPECIFIED", @@ -104,12 +118,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NEW", index=1, number=1, serialized_options=None, type=None + name="NEW", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SCREEN", index=2, number=2, serialized_options=None, type=None + name="SCREEN", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="HIRING_MANAGER_REVIEW", @@ -117,18 +142,39 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INTERVIEW", index=4, number=4, serialized_options=None, type=None + name="INTERVIEW", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="OFFER_EXTENDED", index=5, number=5, serialized_options=None, type=None + name="OFFER_EXTENDED", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="OFFER_ACCEPTED", index=6, number=6, serialized_options=None, type=None + name="OFFER_ACCEPTED", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="STARTED", index=7, number=7, serialized_options=None, type=None + name="STARTED", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -145,6 +191,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -155,7 +202,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, @@ -163,6 +210,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="external_id", @@ -173,14 +221,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="profile", @@ -191,14 +240,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\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job", @@ -209,14 +259,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("\372A\031\n\027jobs.googleapis.com/Job\340A\002"), + serialized_options=b"\372A\031\n\027jobs.googleapis.com/Job\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="company", @@ -227,14 +278,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("\372A\035\n\033jobs.googleapis.com/Company"), + serialized_options=b"\372A\035\n\033jobs.googleapis.com/Company", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="application_date", @@ -253,6 +305,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="stage", @@ -269,8 +322,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="state", @@ -289,6 +343,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="interviews", @@ -307,6 +362,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="referral", @@ -325,6 +381,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -341,8 +398,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_time", @@ -361,6 +419,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="outcome_notes", @@ -371,7 +430,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, @@ -379,6 +438,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="outcome", @@ -397,6 +457,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="is_match", @@ -413,8 +474,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_title_snippet", @@ -425,22 +487,21 @@ 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\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_APPLICATION_APPLICATIONSTATE, _APPLICATION_APPLICATIONSTAGE], - serialized_options=_b( - "\352At\n\037jobs.googleapis.com/Application\022Qprojects/{project}/tenants/{tenant}/profiles/{profile}/applications/{application}" - ), + enum_types=[_APPLICATION_APPLICATIONSTATE, _APPLICATION_APPLICATIONSTAGE,], + serialized_options=b"\352At\n\037jobs.googleapis.com/Application\022Qprojects/{project}/tenants/{tenant}/profiles/{profile}/applications/{application}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -482,36 +543,37 @@ Application = _reflection.GeneratedProtocolMessageType( "Application", (_message.Message,), - dict( - DESCRIPTOR=_APPLICATION, - __module__="google.cloud.talent_v4beta1.proto.application_pb2", - __doc__="""Resource that represents a job application record of a candidate. + { + "DESCRIPTOR": _APPLICATION, + "__module__": "google.cloud.talent_v4beta1.proto.application_pb2", + "__doc__": """Resource that represents a job application record of a candidate. + Attributes: name: Required during application update. Resource name assigned to - an application by the API. The format is "projects/{project\_ - id}/tenants/{tenant\_id}/profiles/{profile\_id}/applications/{ - application\_id}". For example, - "projects/foo/tenants/bar/profiles/baz/applications/qux". + an application by the API. The format is “projects/{project_i + d}/tenants/{tenant_id}/profiles/{profile_id}/applications/{app + lication_id}”. For example, + “projects/foo/tenants/bar/profiles/baz/applications/qux”. external_id: Required. Client side application identifier, used to uniquely identify the application. The maximum number of allowed characters is 255. profile: Output only. Resource name of the candidate of this - application. The format is "projects/{project\_id}/tenants/{t - enant\_id}/profiles/{profile\_id}". For example, - "projects/foo/tenants/bar/profiles/baz". + application. The format is “projects/{project_id}/tenants/{te + nant_id}/profiles/{profile_id}”. For example, + “projects/foo/tenants/bar/profiles/baz”. job: Required. Resource name of the job which the candidate applied for. The format is - "projects/{project\_id}/tenants/{tenant\_id}/jobs/{job\_id}". - For example, "projects/foo/tenants/bar/jobs/baz". + “projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}”. For + example, “projects/foo/tenants/bar/jobs/baz”. company: Resource name of the company which the candidate applied for. - The format is "projects/{project\_id}/tenants/{tenant\_id}/com - panies/{company\_id}". For example, - "projects/foo/tenants/bar/companies/baz". + The format is “projects/{project_id}/tenants/{tenant_id}/compa + nies/{company_id}”. For example, + “projects/foo/tenants/bar/companies/baz”. application_date: The application date. stage: @@ -544,11 +606,11 @@ in profile search response. job_title_snippet: Output only. Job title snippet shows how the job title is - related to a search query. It's empty if the job title isn't + related to a search query. It’s empty if the job title isn’t related to the search query. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Application) - ), + }, ) _sym_db.RegisterMessage(Application) diff --git a/google/cloud/talent_v4beta1/proto/application_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/application_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/talent_v4beta1/proto/application_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/application_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/google/cloud/talent_v4beta1/proto/application_service_pb2.py b/google/cloud/talent_v4beta1/proto/application_service_pb2.py index 36d255ac..b06ef577 100644 --- a/google/cloud/talent_v4beta1/proto/application_service_pb2.py +++ b/google/cloud/talent_v4beta1/proto/application_service_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/application_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 @@ -33,12 +30,9 @@ name="google/cloud/talent_v4beta1/proto/application_service.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\027ApplicationServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n;google/cloud/talent_v4beta1/proto/application_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/talent_v4beta1/proto/application.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x93\x01\n\x18\x43reateApplicationRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Profile\x12\x42\n\x0b\x61pplication\x18\x02 \x01(\x0b\x32(.google.cloud.talent.v4beta1.ApplicationB\x03\xe0\x41\x02"N\n\x15GetApplicationRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fjobs.googleapis.com/Application"\x8f\x01\n\x18UpdateApplicationRequest\x12\x42\n\x0b\x61pplication\x18\x01 \x01(\x0b\x32(.google.cloud.talent.v4beta1.ApplicationB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"Q\n\x18\x44\x65leteApplicationRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fjobs.googleapis.com/Application"u\n\x17ListApplicationsRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Profile\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05"\xb4\x01\n\x18ListApplicationsResponse\x12>\n\x0c\x61pplications\x18\x01 \x03(\x0b\x32(.google.cloud.talent.v4beta1.Application\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata2\xfc\x08\n\x12\x41pplicationService\x12\xd4\x01\n\x11\x43reateApplication\x12\x35.google.cloud.talent.v4beta1.CreateApplicationRequest\x1a(.google.cloud.talent.v4beta1.Application"^\x82\xd3\xe4\x93\x02\x43">/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications:\x01*\xda\x41\x12parent,application\x12\xbd\x01\n\x0eGetApplication\x12\x32.google.cloud.talent.v4beta1.GetApplicationRequest\x1a(.google.cloud.talent.v4beta1.Application"M\x82\xd3\xe4\x93\x02@\x12>/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}\xda\x41\x04name\x12\xd9\x01\n\x11UpdateApplication\x12\x35.google.cloud.talent.v4beta1.UpdateApplicationRequest\x1a(.google.cloud.talent.v4beta1.Application"c\x82\xd3\xe4\x93\x02O2J/v4beta1/{application.name=projects/*/tenants/*/profiles/*/applications/*}:\x01*\xda\x41\x0b\x61pplication\x12\xb1\x01\n\x11\x44\x65leteApplication\x12\x35.google.cloud.talent.v4beta1.DeleteApplicationRequest\x1a\x16.google.protobuf.Empty"M\x82\xd3\xe4\x93\x02@*>/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}\xda\x41\x04name\x12\xd0\x01\n\x10ListApplications\x12\x34.google.cloud.talent.v4beta1.ListApplicationsRequest\x1a\x35.google.cloud.talent.v4beta1.ListApplicationsResponse"O\x82\xd3\xe4\x93\x02@\x12>/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications\xda\x41\x06parent\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB\x85\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x17\x41pplicationServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\027ApplicationServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n;google/cloud/talent_v4beta1/proto/application_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/talent_v4beta1/proto/application.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x93\x01\n\x18\x43reateApplicationRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Profile\x12\x42\n\x0b\x61pplication\x18\x02 \x01(\x0b\x32(.google.cloud.talent.v4beta1.ApplicationB\x03\xe0\x41\x02"N\n\x15GetApplicationRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fjobs.googleapis.com/Application"\x8f\x01\n\x18UpdateApplicationRequest\x12\x42\n\x0b\x61pplication\x18\x01 \x01(\x0b\x32(.google.cloud.talent.v4beta1.ApplicationB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"Q\n\x18\x44\x65leteApplicationRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fjobs.googleapis.com/Application"u\n\x17ListApplicationsRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Profile\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05"\xb4\x01\n\x18ListApplicationsResponse\x12>\n\x0c\x61pplications\x18\x01 \x03(\x0b\x32(.google.cloud.talent.v4beta1.Application\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata2\xfc\x08\n\x12\x41pplicationService\x12\xd4\x01\n\x11\x43reateApplication\x12\x35.google.cloud.talent.v4beta1.CreateApplicationRequest\x1a(.google.cloud.talent.v4beta1.Application"^\x82\xd3\xe4\x93\x02\x43">/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications:\x01*\xda\x41\x12parent,application\x12\xbd\x01\n\x0eGetApplication\x12\x32.google.cloud.talent.v4beta1.GetApplicationRequest\x1a(.google.cloud.talent.v4beta1.Application"M\x82\xd3\xe4\x93\x02@\x12>/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}\xda\x41\x04name\x12\xd9\x01\n\x11UpdateApplication\x12\x35.google.cloud.talent.v4beta1.UpdateApplicationRequest\x1a(.google.cloud.talent.v4beta1.Application"c\x82\xd3\xe4\x93\x02O2J/v4beta1/{application.name=projects/*/tenants/*/profiles/*/applications/*}:\x01*\xda\x41\x0b\x61pplication\x12\xb1\x01\n\x11\x44\x65leteApplication\x12\x35.google.cloud.talent.v4beta1.DeleteApplicationRequest\x1a\x16.google.protobuf.Empty"M\x82\xd3\xe4\x93\x02@*>/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}\xda\x41\x04name\x12\xd0\x01\n\x10ListApplications\x12\x34.google.cloud.talent.v4beta1.ListApplicationsRequest\x1a\x35.google.cloud.talent.v4beta1.ListApplicationsResponse"O\x82\xd3\xe4\x93\x02@\x12>/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications\xda\x41\x06parent\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB\x85\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x17\x41pplicationServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -58,6 +52,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -68,16 +63,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\035\n\033jobs.googleapis.com/Profile" - ), + serialized_options=b"\340A\002\372A\035\n\033jobs.googleapis.com/Profile", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="application", @@ -94,8 +88,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=[], @@ -117,6 +112,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -127,17 +123,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\037jobs.googleapis.com/Application" - ), + serialized_options=b"\340A\002\372A!\n\037jobs.googleapis.com/Application", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -158,6 +153,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="application", @@ -174,8 +170,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", @@ -194,6 +191,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -215,6 +213,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -225,17 +224,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\037jobs.googleapis.com/Application" - ), + serialized_options=b"\340A\002\372A!\n\037jobs.googleapis.com/Application", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -256,6 +254,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -266,16 +265,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\035\n\033jobs.googleapis.com/Profile" - ), + serialized_options=b"\340A\002\372A\035\n\033jobs.googleapis.com/Profile", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -286,7 +284,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, @@ -294,6 +292,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -312,6 +311,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -333,6 +333,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="applications", @@ -351,6 +352,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -361,7 +363,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, @@ -369,6 +371,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="metadata", @@ -387,6 +390,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -435,104 +439,108 @@ CreateApplicationRequest = _reflection.GeneratedProtocolMessageType( "CreateApplicationRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEAPPLICATIONREQUEST, - __module__="google.cloud.talent_v4beta1.proto.application_service_pb2", - __doc__="""The Request of the CreateApplication method. + { + "DESCRIPTOR": _CREATEAPPLICATIONREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.application_service_pb2", + "__doc__": """The Request of the CreateApplication method. + Attributes: parent: Required. Resource name of the profile under which the - application is created. The format is "projects/{project\_id} - /tenants/{tenant\_id}/profiles/{profile\_id}". For example, - "projects/foo/tenants/bar/profiles/baz". + application is created. The format is “projects/{project_id}/ + tenants/{tenant_id}/profiles/{profile_id}”. For example, + “projects/foo/tenants/bar/profiles/baz”. application: Required. The application to be created. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateApplicationRequest) - ), + }, ) _sym_db.RegisterMessage(CreateApplicationRequest) GetApplicationRequest = _reflection.GeneratedProtocolMessageType( "GetApplicationRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETAPPLICATIONREQUEST, - __module__="google.cloud.talent_v4beta1.proto.application_service_pb2", - __doc__="""Request for getting a application by name. + { + "DESCRIPTOR": _GETAPPLICATIONREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.application_service_pb2", + "__doc__": """Request for getting a application by name. + Attributes: name: Required. The resource name of the application to be - retrieved. The format is "projects/{project\_id}/tenants/{ten - ant\_id}/profiles/{profile\_id}/applications/{application\_id} - ". For example, - "projects/foo/tenants/bar/profiles/baz/applications/qux". + retrieved. The format is “projects/{project_id}/tenants/{tena + nt_id}/profiles/{profile_id}/applications/{application_id}”. + For example, + “projects/foo/tenants/bar/profiles/baz/applications/qux”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetApplicationRequest) - ), + }, ) _sym_db.RegisterMessage(GetApplicationRequest) UpdateApplicationRequest = _reflection.GeneratedProtocolMessageType( "UpdateApplicationRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEAPPLICATIONREQUEST, - __module__="google.cloud.talent_v4beta1.proto.application_service_pb2", - __doc__="""Request for updating a specified application. + { + "DESCRIPTOR": _UPDATEAPPLICATIONREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.application_service_pb2", + "__doc__": """Request for updating a specified application. + Attributes: application: Required. The application resource to replace the current resource in the system. update_mask: Strongly recommended for the best service experience. If [upd - ate\_mask][google.cloud.talent.v4beta1.UpdateApplicationReques - t.update\_mask] is provided, only the specified fields in [app - lication][google.cloud.talent.v4beta1.UpdateApplicationRequest - .application] are updated. Otherwise all the fields are - updated. A field mask to specify the application fields to be - updated. Only top level fields of + ate_mask][google.cloud.talent.v4beta1.UpdateApplicationRequest + .update_mask] is provided, only the specified fields in [appli + cation][google.cloud.talent.v4beta1.UpdateApplicationRequest.a + pplication] are updated. Otherwise all the fields are updated. + A field mask to specify the application fields to be updated. + Only top level fields of [Application][google.cloud.talent.v4beta1.Application] are supported. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateApplicationRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateApplicationRequest) DeleteApplicationRequest = _reflection.GeneratedProtocolMessageType( "DeleteApplicationRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEAPPLICATIONREQUEST, - __module__="google.cloud.talent_v4beta1.proto.application_service_pb2", - __doc__="""Request to delete a application. + { + "DESCRIPTOR": _DELETEAPPLICATIONREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.application_service_pb2", + "__doc__": """Request to delete a application. + Attributes: name: Required. The resource name of the application to be deleted. - The format is "projects/{project\_id}/tenants/{tenant\_id}/pro - files/{profile\_id}/applications/{application\_id}". For - example, - "projects/foo/tenants/bar/profiles/baz/applications/qux". + The format is “projects/{project_id}/tenants/{tenant_id}/profi + les/{profile_id}/applications/{application_id}”. For example, + “projects/foo/tenants/bar/profiles/baz/applications/qux”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteApplicationRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteApplicationRequest) ListApplicationsRequest = _reflection.GeneratedProtocolMessageType( "ListApplicationsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTAPPLICATIONSREQUEST, - __module__="google.cloud.talent_v4beta1.proto.application_service_pb2", - __doc__="""List applications for which the client has ACL visibility. + { + "DESCRIPTOR": _LISTAPPLICATIONSREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.application_service_pb2", + "__doc__": """List applications for which the client has ACL visibility. + Attributes: parent: Required. Resource name of the profile under which the - application is created. The format is "projects/{project\_id} - /tenants/{tenant\_id}/profiles/{profile\_id}", for example, - "projects/foo/tenants/bar/profiles/baz". + application is created. The format is “projects/{project_id}/ + tenants/{tenant_id}/profiles/{profile_id}”, for example, + “projects/foo/tenants/bar/profiles/baz”. page_token: The starting indicator from which to return results. page_size: @@ -540,17 +548,18 @@ 100. Default is 100 if a non-positive number is provided. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListApplicationsRequest) - ), + }, ) _sym_db.RegisterMessage(ListApplicationsRequest) ListApplicationsResponse = _reflection.GeneratedProtocolMessageType( "ListApplicationsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTAPPLICATIONSRESPONSE, - __module__="google.cloud.talent_v4beta1.proto.application_service_pb2", - __doc__="""The List applications response object. + { + "DESCRIPTOR": _LISTAPPLICATIONSRESPONSE, + "__module__": "google.cloud.talent_v4beta1.proto.application_service_pb2", + "__doc__": """The List applications response object. + Attributes: applications: Applications for the current client. @@ -561,7 +570,7 @@ request tracking id. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListApplicationsResponse) - ), + }, ) _sym_db.RegisterMessage(ListApplicationsResponse) @@ -579,9 +588,8 @@ full_name="google.cloud.talent.v4beta1.ApplicationService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs" - ), + serialized_options=b"\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs", + create_key=_descriptor._internal_create_key, serialized_start=1133, serialized_end=2281, methods=[ @@ -592,9 +600,8 @@ containing_service=None, input_type=_CREATEAPPLICATIONREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_application__pb2._APPLICATION, - serialized_options=_b( - '\202\323\344\223\002C">/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications:\001*\332A\022parent,application' - ), + serialized_options=b'\202\323\344\223\002C">/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications:\001*\332A\022parent,application', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetApplication", @@ -603,9 +610,8 @@ containing_service=None, input_type=_GETAPPLICATIONREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_application__pb2._APPLICATION, - serialized_options=_b( - "\202\323\344\223\002@\022>/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002@\022>/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateApplication", @@ -614,9 +620,8 @@ containing_service=None, input_type=_UPDATEAPPLICATIONREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_application__pb2._APPLICATION, - serialized_options=_b( - "\202\323\344\223\002O2J/v4beta1/{application.name=projects/*/tenants/*/profiles/*/applications/*}:\001*\332A\013application" - ), + serialized_options=b"\202\323\344\223\002O2J/v4beta1/{application.name=projects/*/tenants/*/profiles/*/applications/*}:\001*\332A\013application", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteApplication", @@ -625,9 +630,8 @@ containing_service=None, input_type=_DELETEAPPLICATIONREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002@*>/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002@*>/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListApplications", @@ -636,9 +640,8 @@ containing_service=None, input_type=_LISTAPPLICATIONSREQUEST, output_type=_LISTAPPLICATIONSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002@\022>/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002@\022>/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications\332A\006parent", + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/talent_v4beta1/proto/application_service_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/application_service_pb2_grpc.py index 7243e942..c1eb0953 100644 --- a/google/cloud/talent_v4beta1/proto/application_service_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/application_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.talent_v4beta1.proto import ( @@ -12,15 +13,15 @@ class ApplicationServiceStub(object): """A service that handles application management, including CRUD and - enumeration. - """ + enumeration. + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.CreateApplication = channel.unary_unary( "/google.cloud.talent.v4beta1.ApplicationService/CreateApplication", request_serializer=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_application__service__pb2.CreateApplicationRequest.SerializeToString, @@ -50,40 +51,40 @@ def __init__(self, channel): class ApplicationServiceServicer(object): """A service that handles application management, including CRUD and - enumeration. - """ + enumeration. + """ def CreateApplication(self, request, context): """Creates a new application entity. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetApplication(self, request, context): """Retrieves specified application. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def UpdateApplication(self, request, context): """Updates specified application. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def DeleteApplication(self, request, context): """Deletes specified application. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListApplications(self, request, context): """Lists all applications associated with the profile. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -121,3 +122,145 @@ def add_ApplicationServiceServicer_to_server(servicer, server): "google.cloud.talent.v4beta1.ApplicationService", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class ApplicationService(object): + """A service that handles application management, including CRUD and + enumeration. + """ + + @staticmethod + def CreateApplication( + 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.talent.v4beta1.ApplicationService/CreateApplication", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_application__service__pb2.CreateApplicationRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_application__pb2.Application.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetApplication( + 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.talent.v4beta1.ApplicationService/GetApplication", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_application__service__pb2.GetApplicationRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_application__pb2.Application.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateApplication( + 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.talent.v4beta1.ApplicationService/UpdateApplication", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_application__service__pb2.UpdateApplicationRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_application__pb2.Application.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteApplication( + 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.talent.v4beta1.ApplicationService/DeleteApplication", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_application__service__pb2.DeleteApplicationRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListApplications( + 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.talent.v4beta1.ApplicationService/ListApplications", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_application__service__pb2.ListApplicationsRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_application__service__pb2.ListApplicationsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/talent_v4beta1/proto/batch_pb2.py b/google/cloud/talent_v4beta1/proto/batch_pb2.py index 8570369d..51ac00de 100644 --- a/google/cloud/talent_v4beta1/proto/batch_pb2.py +++ b/google/cloud/talent_v4beta1/proto/batch_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/batch.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 @@ -22,13 +19,10 @@ name="google/cloud/talent_v4beta1/proto/batch.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\nBatchProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - "\n-google/cloud/talent_v4beta1/proto/batch.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.protoBx\n\x1f\x63om.google.cloud.talent.v4beta1B\nBatchProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3" - ), - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\nBatchProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b"\n-google/cloud/talent_v4beta1/proto/batch.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.protoBx\n\x1f\x63om.google.cloud.talent.v4beta1B\nBatchProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3", + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,], ) diff --git a/google/cloud/talent_v4beta1/proto/batch_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/batch_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/talent_v4beta1/proto/batch_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/batch_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/google/cloud/talent_v4beta1/proto/common_pb2.py b/google/cloud/talent_v4beta1/proto/common_pb2.py index 8fe8fdb0..dfed8020 100644 --- a/google/cloud/talent_v4beta1/proto/common_pb2.py +++ b/google/cloud/talent_v4beta1/proto/common_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/common.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 @@ -31,12 +28,9 @@ name="google/cloud/talent_v4beta1/proto/common.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\013CommonProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n.google/cloud/talent_v4beta1/proto/common.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x16google/type/date.proto\x1a\x18google/type/latlng.proto\x1a\x17google/type/money.proto\x1a google/type/postal_address.proto\x1a\x1bgoogle/type/timeofday.proto\x1a\x1cgoogle/api/annotations.proto"n\n\x0eTimestampRange\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb7\x03\n\x08Location\x12I\n\rlocation_type\x18\x01 \x01(\x0e\x32\x32.google.cloud.talent.v4beta1.Location.LocationType\x12\x32\n\x0epostal_address\x18\x02 \x01(\x0b\x32\x1a.google.type.PostalAddress\x12$\n\x07lat_lng\x18\x03 \x01(\x0b\x32\x13.google.type.LatLng\x12\x14\n\x0cradius_miles\x18\x04 \x01(\x01"\xef\x01\n\x0cLocationType\x12\x1d\n\x19LOCATION_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43OUNTRY\x10\x01\x12\x17\n\x13\x41\x44MINISTRATIVE_AREA\x10\x02\x12\x1b\n\x17SUB_ADMINISTRATIVE_AREA\x10\x03\x12\x0c\n\x08LOCALITY\x10\x04\x12\x0f\n\x0bPOSTAL_CODE\x10\x05\x12\x10\n\x0cSUB_LOCALITY\x10\x06\x12\x12\n\x0eSUB_LOCALITY_1\x10\x07\x12\x12\n\x0eSUB_LOCALITY_2\x10\x08\x12\x10\n\x0cNEIGHBORHOOD\x10\t\x12\x12\n\x0eSTREET_ADDRESS\x10\n"\x9f\x01\n\x0fRequestMetadata\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x12\n\nsession_id\x18\x02 \x01(\t\x12\x0f\n\x07user_id\x18\x03 \x01(\t\x12\x19\n\x11\x61llow_missing_ids\x18\x04 \x01(\x08\x12<\n\x0b\x64\x65vice_info\x18\x05 \x01(\x0b\x32\'.google.cloud.talent.v4beta1.DeviceInfo"&\n\x10ResponseMetadata\x12\x12\n\nrequest_id\x18\x01 \x01(\t"\xcf\x01\n\nDeviceInfo\x12G\n\x0b\x64\x65vice_type\x18\x01 \x01(\x0e\x32\x32.google.cloud.talent.v4beta1.DeviceInfo.DeviceType\x12\n\n\x02id\x18\x02 \x01(\t"l\n\nDeviceType\x12\x1b\n\x17\x44\x45VICE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03WEB\x10\x01\x12\x0e\n\nMOBILE_WEB\x10\x02\x12\x0b\n\x07\x41NDROID\x10\x03\x12\x07\n\x03IOS\x10\x04\x12\x07\n\x03\x42OT\x10\x05\x12\t\n\x05OTHER\x10\x06"Q\n\x0f\x43ustomAttribute\x12\x15\n\rstring_values\x18\x01 \x03(\t\x12\x13\n\x0blong_values\x18\x02 \x03(\x03\x12\x12\n\nfilterable\x18\x03 \x01(\x08"W\n\x12SpellingCorrection\x12\x11\n\tcorrected\x18\x01 \x01(\x08\x12\x16\n\x0e\x63orrected_text\x18\x02 \x01(\t\x12\x16\n\x0e\x63orrected_html\x18\x03 \x01(\t"\xa6\t\n\x10\x43ompensationInfo\x12P\n\x07\x65ntries\x18\x01 \x03(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry\x12p\n"annualized_base_compensation_range\x18\x02 \x01(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeB\x03\xe0\x41\x03\x12q\n#annualized_total_compensation_range\x18\x03 \x01(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeB\x03\xe0\x41\x03\x1a\x92\x03\n\x11\x43ompensationEntry\x12L\n\x04type\x18\x01 \x01(\x0e\x32>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType\x12L\n\x04unit\x18\x02 \x01(\x0e\x32>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit\x12$\n\x06\x61mount\x18\x03 \x01(\x0b\x32\x12.google.type.MoneyH\x00\x12P\n\x05range\x18\x04 \x01(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeH\x00\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12=\n\x17\x65xpected_units_per_year\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.DoubleValueB\x15\n\x13\x63ompensation_amount\x1ao\n\x11\x43ompensationRange\x12,\n\x10max_compensation\x18\x02 \x01(\x0b\x32\x12.google.type.Money\x12,\n\x10min_compensation\x18\x01 \x01(\x0b\x32\x12.google.type.Money"\xb5\x01\n\x10\x43ompensationType\x12!\n\x1d\x43OMPENSATION_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42\x41SE\x10\x01\x12\t\n\x05\x42ONUS\x10\x02\x12\x11\n\rSIGNING_BONUS\x10\x03\x12\n\n\x06\x45QUITY\x10\x04\x12\x12\n\x0ePROFIT_SHARING\x10\x05\x12\x0f\n\x0b\x43OMMISSIONS\x10\x06\x12\x08\n\x04TIPS\x10\x07\x12\x1b\n\x17OTHER_COMPENSATION_TYPE\x10\x08"\x9c\x01\n\x10\x43ompensationUnit\x12!\n\x1d\x43OMPENSATION_UNIT_UNSPECIFIED\x10\x00\x12\n\n\x06HOURLY\x10\x01\x12\t\n\x05\x44\x41ILY\x10\x02\x12\n\n\x06WEEKLY\x10\x03\x12\x0b\n\x07MONTHLY\x10\x04\x12\n\n\x06YEARLY\x10\x05\x12\x0c\n\x08ONE_TIME\x10\x06\x12\x1b\n\x17OTHER_COMPENSATION_UNIT\x10\x07"\x9e\x01\n\rCertification\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\'\n\x0c\x61\x63quire_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date\x12&\n\x0b\x65xpire_date\x18\x03 \x01(\x0b\x32\x11.google.type.Date\x12\x11\n\tauthority\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t"\xbd\x01\n\x05Skill\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12)\n\x0elast_used_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date\x12\x41\n\x05level\x18\x03 \x01(\x0e\x32\x32.google.cloud.talent.v4beta1.SkillProficiencyLevel\x12\x0f\n\x07\x63ontext\x18\x04 \x01(\t\x12\x1f\n\x12skill_name_snippet\x18\x05 \x01(\tB\x03\xe0\x41\x03"|\n\tInterview\x12\x33\n\x06rating\x18\x06 \x01(\x0b\x32#.google.cloud.talent.v4beta1.Rating\x12:\n\x07outcome\x18\x07 \x01(\x0e\x32$.google.cloud.talent.v4beta1.OutcomeB\x03\xe0\x41\x02"E\n\x06Rating\x12\x0f\n\x07overall\x18\x01 \x01(\x01\x12\x0b\n\x03min\x18\x02 \x01(\x01\x12\x0b\n\x03max\x18\x03 \x01(\x01\x12\x10\n\x08interval\x18\x04 \x01(\x01"\xcc\x03\n\x16\x42\x61tchOperationMetadata\x12H\n\x05state\x18\x01 \x01(\x0e\x32\x39.google.cloud.talent.v4beta1.BatchOperationMetadata.State\x12\x19\n\x11state_description\x18\x02 \x01(\t\x12\x15\n\rsuccess_count\x18\x03 \x01(\x05\x12\x15\n\rfailure_count\x18\x04 \x01(\x05\x12\x13\n\x0btotal_count\x18\x05 \x01(\x05\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"z\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x0e\n\nPROCESSING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0e\n\nCANCELLING\x10\x05\x12\r\n\tCANCELLED\x10\x06*y\n\x0b\x43ompanySize\x12\x1c\n\x18\x43OMPANY_SIZE_UNSPECIFIED\x10\x00\x12\x08\n\x04MINI\x10\x01\x12\t\n\x05SMALL\x10\x02\x12\x0b\n\x07SMEDIUM\x10\x03\x12\n\n\x06MEDIUM\x10\x04\x12\x07\n\x03\x42IG\x10\x05\x12\n\n\x06\x42IGGER\x10\x06\x12\t\n\x05GIANT\x10\x07*\xe2\x01\n\nJobBenefit\x12\x1b\n\x17JOB_BENEFIT_UNSPECIFIED\x10\x00\x12\x0e\n\nCHILD_CARE\x10\x01\x12\n\n\x06\x44\x45NTAL\x10\x02\x12\x14\n\x10\x44OMESTIC_PARTNER\x10\x03\x12\x12\n\x0e\x46LEXIBLE_HOURS\x10\x04\x12\x0b\n\x07MEDICAL\x10\x05\x12\x12\n\x0eLIFE_INSURANCE\x10\x06\x12\x12\n\x0ePARENTAL_LEAVE\x10\x07\x12\x13\n\x0fRETIREMENT_PLAN\x10\x08\x12\r\n\tSICK_DAYS\x10\t\x12\x0c\n\x08VACATION\x10\n\x12\n\n\x06VISION\x10\x0b*\x8e\x02\n\nDegreeType\x12\x1b\n\x17\x44\x45GREE_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11PRIMARY_EDUCATION\x10\x01\x12\x1d\n\x19LOWER_SECONDARY_EDUCATION\x10\x02\x12\x1d\n\x19UPPER_SECONDARY_EDUCATION\x10\x03\x12\x1c\n\x18\x41\x44ULT_REMEDIAL_EDUCATION\x10\x04\x12\x1c\n\x18\x41SSOCIATES_OR_EQUIVALENT\x10\x05\x12\x1b\n\x17\x42\x41\x43HELORS_OR_EQUIVALENT\x10\x06\x12\x19\n\x15MASTERS_OR_EQUIVALENT\x10\x07\x12\x1a\n\x16\x44OCTORAL_OR_EQUIVALENT\x10\x08*\xdc\x01\n\x0e\x45mploymentType\x12\x1f\n\x1b\x45MPLOYMENT_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tFULL_TIME\x10\x01\x12\r\n\tPART_TIME\x10\x02\x12\x0e\n\nCONTRACTOR\x10\x03\x12\x14\n\x10\x43ONTRACT_TO_HIRE\x10\x04\x12\r\n\tTEMPORARY\x10\x05\x12\n\n\x06INTERN\x10\x06\x12\r\n\tVOLUNTEER\x10\x07\x12\x0c\n\x08PER_DIEM\x10\x08\x12\x12\n\x0e\x46LY_IN_FLY_OUT\x10\t\x12\x19\n\x15OTHER_EMPLOYMENT_TYPE\x10\n*q\n\x08JobLevel\x12\x19\n\x15JOB_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x45NTRY_LEVEL\x10\x01\x12\x0f\n\x0b\x45XPERIENCED\x10\x02\x12\x0b\n\x07MANAGER\x10\x03\x12\x0c\n\x08\x44IRECTOR\x10\x04\x12\r\n\tEXECUTIVE\x10\x05*\xba\x06\n\x0bJobCategory\x12\x1c\n\x18JOB_CATEGORY_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x41\x43\x43OUNTING_AND_FINANCE\x10\x01\x12\x1d\n\x19\x41\x44MINISTRATIVE_AND_OFFICE\x10\x02\x12\x1d\n\x19\x41\x44VERTISING_AND_MARKETING\x10\x03\x12\x0f\n\x0b\x41NIMAL_CARE\x10\x04\x12\x1a\n\x16\x41RT_FASHION_AND_DESIGN\x10\x05\x12\x17\n\x13\x42USINESS_OPERATIONS\x10\x06\x12\x1b\n\x17\x43LEANING_AND_FACILITIES\x10\x07\x12\x13\n\x0f\x43OMPUTER_AND_IT\x10\x08\x12\x10\n\x0c\x43ONSTRUCTION\x10\t\x12\x14\n\x10\x43USTOMER_SERVICE\x10\n\x12\r\n\tEDUCATION\x10\x0b\x12\x1c\n\x18\x45NTERTAINMENT_AND_TRAVEL\x10\x0c\x12\x18\n\x14\x46\x41RMING_AND_OUTDOORS\x10\r\x12\x0e\n\nHEALTHCARE\x10\x0e\x12\x13\n\x0fHUMAN_RESOURCES\x10\x0f\x12\'\n#INSTALLATION_MAINTENANCE_AND_REPAIR\x10\x10\x12\t\n\x05LEGAL\x10\x11\x12\x0e\n\nMANAGEMENT\x10\x12\x12\x1f\n\x1bMANUFACTURING_AND_WAREHOUSE\x10\x13\x12$\n MEDIA_COMMUNICATIONS_AND_WRITING\x10\x14\x12\x16\n\x12OIL_GAS_AND_MINING\x10\x15\x12\x1e\n\x1aPERSONAL_CARE_AND_SERVICES\x10\x16\x12\x17\n\x13PROTECTIVE_SERVICES\x10\x17\x12\x0f\n\x0bREAL_ESTATE\x10\x18\x12\x1e\n\x1aRESTAURANT_AND_HOSPITALITY\x10\x19\x12\x14\n\x10SALES_AND_RETAIL\x10\x1a\x12\x1b\n\x17SCIENCE_AND_ENGINEERING\x10\x1b\x12"\n\x1eSOCIAL_SERVICES_AND_NON_PROFIT\x10\x1c\x12!\n\x1dSPORTS_FITNESS_AND_RECREATION\x10\x1d\x12 \n\x1cTRANSPORTATION_AND_LOGISTICS\x10\x1e*e\n\rPostingRegion\x12\x1e\n\x1aPOSTING_REGION_UNSPECIFIED\x10\x00\x12\x17\n\x13\x41\x44MINISTRATIVE_AREA\x10\x01\x12\n\n\x06NATION\x10\x02\x12\x0f\n\x0bTELECOMMUTE\x10\x03*n\n\nVisibility\x12\x1a\n\x16VISIBILITY_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x41\x43\x43OUNT_ONLY\x10\x01\x12\x16\n\x12SHARED_WITH_GOOGLE\x10\x02\x12\x16\n\x12SHARED_WITH_PUBLIC\x10\x03\x1a\x02\x18\x01*Z\n\x10\x43ontactInfoUsage\x12"\n\x1e\x43ONTACT_INFO_USAGE_UNSPECIFIED\x10\x00\x12\x0c\n\x08PERSONAL\x10\x01\x12\x08\n\x04WORK\x10\x02\x12\n\n\x06SCHOOL\x10\x03*q\n\x10HtmlSanitization\x12!\n\x1dHTML_SANITIZATION_UNSPECIFIED\x10\x00\x12\x1e\n\x1aHTML_SANITIZATION_DISABLED\x10\x01\x12\x1a\n\x16SIMPLE_FORMATTING_ONLY\x10\x02*c\n\rCommuteMethod\x12\x1e\n\x1a\x43OMMUTE_METHOD_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44RIVING\x10\x01\x12\x0b\n\x07TRANSIT\x10\x02\x12\x0b\n\x07WALKING\x10\x03\x12\x0b\n\x07\x43YCLING\x10\x04*\xa2\x01\n\x15SkillProficiencyLevel\x12\'\n#SKILL_PROFICIENCY_LEVEL_UNSPECIFIED\x10\x00\x12\r\n\tUNSKILLED\x10\x06\x12\x19\n\x15\x46UNDAMENTAL_AWARENESS\x10\x01\x12\n\n\x06NOVICE\x10\x02\x12\x10\n\x0cINTERMEDIATE\x10\x03\x12\x0c\n\x08\x41\x44VANCED\x10\x04\x12\n\n\x06\x45XPERT\x10\x05*f\n\x07Outcome\x12\x17\n\x13OUTCOME_UNSPECIFIED\x10\x00\x12\x0c\n\x08POSITIVE\x10\x01\x12\x0b\n\x07NEUTRAL\x10\x02\x12\x0c\n\x08NEGATIVE\x10\x03\x12\x19\n\x15OUTCOME_NOT_AVAILABLE\x10\x04*\x97\x01\n\x16\x41vailabilitySignalType\x12(\n$AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fJOB_APPLICATION\x10\x01\x12\x11\n\rRESUME_UPDATE\x10\x02\x12\x14\n\x10\x43\x41NDIDATE_UPDATE\x10\x03\x12\x15\n\x11\x43LIENT_SUBMISSION\x10\x04\x42y\n\x1f\x63om.google.cloud.talent.v4beta1B\x0b\x43ommonProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\013CommonProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n.google/cloud/talent_v4beta1/proto/common.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x16google/type/date.proto\x1a\x18google/type/latlng.proto\x1a\x17google/type/money.proto\x1a google/type/postal_address.proto\x1a\x1bgoogle/type/timeofday.proto\x1a\x1cgoogle/api/annotations.proto"n\n\x0eTimestampRange\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb7\x03\n\x08Location\x12I\n\rlocation_type\x18\x01 \x01(\x0e\x32\x32.google.cloud.talent.v4beta1.Location.LocationType\x12\x32\n\x0epostal_address\x18\x02 \x01(\x0b\x32\x1a.google.type.PostalAddress\x12$\n\x07lat_lng\x18\x03 \x01(\x0b\x32\x13.google.type.LatLng\x12\x14\n\x0cradius_miles\x18\x04 \x01(\x01"\xef\x01\n\x0cLocationType\x12\x1d\n\x19LOCATION_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43OUNTRY\x10\x01\x12\x17\n\x13\x41\x44MINISTRATIVE_AREA\x10\x02\x12\x1b\n\x17SUB_ADMINISTRATIVE_AREA\x10\x03\x12\x0c\n\x08LOCALITY\x10\x04\x12\x0f\n\x0bPOSTAL_CODE\x10\x05\x12\x10\n\x0cSUB_LOCALITY\x10\x06\x12\x12\n\x0eSUB_LOCALITY_1\x10\x07\x12\x12\n\x0eSUB_LOCALITY_2\x10\x08\x12\x10\n\x0cNEIGHBORHOOD\x10\t\x12\x12\n\x0eSTREET_ADDRESS\x10\n"\x9f\x01\n\x0fRequestMetadata\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x12\n\nsession_id\x18\x02 \x01(\t\x12\x0f\n\x07user_id\x18\x03 \x01(\t\x12\x19\n\x11\x61llow_missing_ids\x18\x04 \x01(\x08\x12<\n\x0b\x64\x65vice_info\x18\x05 \x01(\x0b\x32\'.google.cloud.talent.v4beta1.DeviceInfo"&\n\x10ResponseMetadata\x12\x12\n\nrequest_id\x18\x01 \x01(\t"\xcf\x01\n\nDeviceInfo\x12G\n\x0b\x64\x65vice_type\x18\x01 \x01(\x0e\x32\x32.google.cloud.talent.v4beta1.DeviceInfo.DeviceType\x12\n\n\x02id\x18\x02 \x01(\t"l\n\nDeviceType\x12\x1b\n\x17\x44\x45VICE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03WEB\x10\x01\x12\x0e\n\nMOBILE_WEB\x10\x02\x12\x0b\n\x07\x41NDROID\x10\x03\x12\x07\n\x03IOS\x10\x04\x12\x07\n\x03\x42OT\x10\x05\x12\t\n\x05OTHER\x10\x06"Q\n\x0f\x43ustomAttribute\x12\x15\n\rstring_values\x18\x01 \x03(\t\x12\x13\n\x0blong_values\x18\x02 \x03(\x03\x12\x12\n\nfilterable\x18\x03 \x01(\x08"W\n\x12SpellingCorrection\x12\x11\n\tcorrected\x18\x01 \x01(\x08\x12\x16\n\x0e\x63orrected_text\x18\x02 \x01(\t\x12\x16\n\x0e\x63orrected_html\x18\x03 \x01(\t"\xa6\t\n\x10\x43ompensationInfo\x12P\n\x07\x65ntries\x18\x01 \x03(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry\x12p\n"annualized_base_compensation_range\x18\x02 \x01(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeB\x03\xe0\x41\x03\x12q\n#annualized_total_compensation_range\x18\x03 \x01(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeB\x03\xe0\x41\x03\x1a\x92\x03\n\x11\x43ompensationEntry\x12L\n\x04type\x18\x01 \x01(\x0e\x32>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType\x12L\n\x04unit\x18\x02 \x01(\x0e\x32>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit\x12$\n\x06\x61mount\x18\x03 \x01(\x0b\x32\x12.google.type.MoneyH\x00\x12P\n\x05range\x18\x04 \x01(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeH\x00\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12=\n\x17\x65xpected_units_per_year\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.DoubleValueB\x15\n\x13\x63ompensation_amount\x1ao\n\x11\x43ompensationRange\x12,\n\x10max_compensation\x18\x02 \x01(\x0b\x32\x12.google.type.Money\x12,\n\x10min_compensation\x18\x01 \x01(\x0b\x32\x12.google.type.Money"\xb5\x01\n\x10\x43ompensationType\x12!\n\x1d\x43OMPENSATION_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42\x41SE\x10\x01\x12\t\n\x05\x42ONUS\x10\x02\x12\x11\n\rSIGNING_BONUS\x10\x03\x12\n\n\x06\x45QUITY\x10\x04\x12\x12\n\x0ePROFIT_SHARING\x10\x05\x12\x0f\n\x0b\x43OMMISSIONS\x10\x06\x12\x08\n\x04TIPS\x10\x07\x12\x1b\n\x17OTHER_COMPENSATION_TYPE\x10\x08"\x9c\x01\n\x10\x43ompensationUnit\x12!\n\x1d\x43OMPENSATION_UNIT_UNSPECIFIED\x10\x00\x12\n\n\x06HOURLY\x10\x01\x12\t\n\x05\x44\x41ILY\x10\x02\x12\n\n\x06WEEKLY\x10\x03\x12\x0b\n\x07MONTHLY\x10\x04\x12\n\n\x06YEARLY\x10\x05\x12\x0c\n\x08ONE_TIME\x10\x06\x12\x1b\n\x17OTHER_COMPENSATION_UNIT\x10\x07"\x9e\x01\n\rCertification\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\'\n\x0c\x61\x63quire_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date\x12&\n\x0b\x65xpire_date\x18\x03 \x01(\x0b\x32\x11.google.type.Date\x12\x11\n\tauthority\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t"\xbd\x01\n\x05Skill\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12)\n\x0elast_used_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date\x12\x41\n\x05level\x18\x03 \x01(\x0e\x32\x32.google.cloud.talent.v4beta1.SkillProficiencyLevel\x12\x0f\n\x07\x63ontext\x18\x04 \x01(\t\x12\x1f\n\x12skill_name_snippet\x18\x05 \x01(\tB\x03\xe0\x41\x03"|\n\tInterview\x12\x33\n\x06rating\x18\x06 \x01(\x0b\x32#.google.cloud.talent.v4beta1.Rating\x12:\n\x07outcome\x18\x07 \x01(\x0e\x32$.google.cloud.talent.v4beta1.OutcomeB\x03\xe0\x41\x02"E\n\x06Rating\x12\x0f\n\x07overall\x18\x01 \x01(\x01\x12\x0b\n\x03min\x18\x02 \x01(\x01\x12\x0b\n\x03max\x18\x03 \x01(\x01\x12\x10\n\x08interval\x18\x04 \x01(\x01"\xcc\x03\n\x16\x42\x61tchOperationMetadata\x12H\n\x05state\x18\x01 \x01(\x0e\x32\x39.google.cloud.talent.v4beta1.BatchOperationMetadata.State\x12\x19\n\x11state_description\x18\x02 \x01(\t\x12\x15\n\rsuccess_count\x18\x03 \x01(\x05\x12\x15\n\rfailure_count\x18\x04 \x01(\x05\x12\x13\n\x0btotal_count\x18\x05 \x01(\x05\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"z\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x0e\n\nPROCESSING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0e\n\nCANCELLING\x10\x05\x12\r\n\tCANCELLED\x10\x06*y\n\x0b\x43ompanySize\x12\x1c\n\x18\x43OMPANY_SIZE_UNSPECIFIED\x10\x00\x12\x08\n\x04MINI\x10\x01\x12\t\n\x05SMALL\x10\x02\x12\x0b\n\x07SMEDIUM\x10\x03\x12\n\n\x06MEDIUM\x10\x04\x12\x07\n\x03\x42IG\x10\x05\x12\n\n\x06\x42IGGER\x10\x06\x12\t\n\x05GIANT\x10\x07*\xe2\x01\n\nJobBenefit\x12\x1b\n\x17JOB_BENEFIT_UNSPECIFIED\x10\x00\x12\x0e\n\nCHILD_CARE\x10\x01\x12\n\n\x06\x44\x45NTAL\x10\x02\x12\x14\n\x10\x44OMESTIC_PARTNER\x10\x03\x12\x12\n\x0e\x46LEXIBLE_HOURS\x10\x04\x12\x0b\n\x07MEDICAL\x10\x05\x12\x12\n\x0eLIFE_INSURANCE\x10\x06\x12\x12\n\x0ePARENTAL_LEAVE\x10\x07\x12\x13\n\x0fRETIREMENT_PLAN\x10\x08\x12\r\n\tSICK_DAYS\x10\t\x12\x0c\n\x08VACATION\x10\n\x12\n\n\x06VISION\x10\x0b*\x8e\x02\n\nDegreeType\x12\x1b\n\x17\x44\x45GREE_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11PRIMARY_EDUCATION\x10\x01\x12\x1d\n\x19LOWER_SECONDARY_EDUCATION\x10\x02\x12\x1d\n\x19UPPER_SECONDARY_EDUCATION\x10\x03\x12\x1c\n\x18\x41\x44ULT_REMEDIAL_EDUCATION\x10\x04\x12\x1c\n\x18\x41SSOCIATES_OR_EQUIVALENT\x10\x05\x12\x1b\n\x17\x42\x41\x43HELORS_OR_EQUIVALENT\x10\x06\x12\x19\n\x15MASTERS_OR_EQUIVALENT\x10\x07\x12\x1a\n\x16\x44OCTORAL_OR_EQUIVALENT\x10\x08*\xdc\x01\n\x0e\x45mploymentType\x12\x1f\n\x1b\x45MPLOYMENT_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tFULL_TIME\x10\x01\x12\r\n\tPART_TIME\x10\x02\x12\x0e\n\nCONTRACTOR\x10\x03\x12\x14\n\x10\x43ONTRACT_TO_HIRE\x10\x04\x12\r\n\tTEMPORARY\x10\x05\x12\n\n\x06INTERN\x10\x06\x12\r\n\tVOLUNTEER\x10\x07\x12\x0c\n\x08PER_DIEM\x10\x08\x12\x12\n\x0e\x46LY_IN_FLY_OUT\x10\t\x12\x19\n\x15OTHER_EMPLOYMENT_TYPE\x10\n*q\n\x08JobLevel\x12\x19\n\x15JOB_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x45NTRY_LEVEL\x10\x01\x12\x0f\n\x0b\x45XPERIENCED\x10\x02\x12\x0b\n\x07MANAGER\x10\x03\x12\x0c\n\x08\x44IRECTOR\x10\x04\x12\r\n\tEXECUTIVE\x10\x05*\xba\x06\n\x0bJobCategory\x12\x1c\n\x18JOB_CATEGORY_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x41\x43\x43OUNTING_AND_FINANCE\x10\x01\x12\x1d\n\x19\x41\x44MINISTRATIVE_AND_OFFICE\x10\x02\x12\x1d\n\x19\x41\x44VERTISING_AND_MARKETING\x10\x03\x12\x0f\n\x0b\x41NIMAL_CARE\x10\x04\x12\x1a\n\x16\x41RT_FASHION_AND_DESIGN\x10\x05\x12\x17\n\x13\x42USINESS_OPERATIONS\x10\x06\x12\x1b\n\x17\x43LEANING_AND_FACILITIES\x10\x07\x12\x13\n\x0f\x43OMPUTER_AND_IT\x10\x08\x12\x10\n\x0c\x43ONSTRUCTION\x10\t\x12\x14\n\x10\x43USTOMER_SERVICE\x10\n\x12\r\n\tEDUCATION\x10\x0b\x12\x1c\n\x18\x45NTERTAINMENT_AND_TRAVEL\x10\x0c\x12\x18\n\x14\x46\x41RMING_AND_OUTDOORS\x10\r\x12\x0e\n\nHEALTHCARE\x10\x0e\x12\x13\n\x0fHUMAN_RESOURCES\x10\x0f\x12\'\n#INSTALLATION_MAINTENANCE_AND_REPAIR\x10\x10\x12\t\n\x05LEGAL\x10\x11\x12\x0e\n\nMANAGEMENT\x10\x12\x12\x1f\n\x1bMANUFACTURING_AND_WAREHOUSE\x10\x13\x12$\n MEDIA_COMMUNICATIONS_AND_WRITING\x10\x14\x12\x16\n\x12OIL_GAS_AND_MINING\x10\x15\x12\x1e\n\x1aPERSONAL_CARE_AND_SERVICES\x10\x16\x12\x17\n\x13PROTECTIVE_SERVICES\x10\x17\x12\x0f\n\x0bREAL_ESTATE\x10\x18\x12\x1e\n\x1aRESTAURANT_AND_HOSPITALITY\x10\x19\x12\x14\n\x10SALES_AND_RETAIL\x10\x1a\x12\x1b\n\x17SCIENCE_AND_ENGINEERING\x10\x1b\x12"\n\x1eSOCIAL_SERVICES_AND_NON_PROFIT\x10\x1c\x12!\n\x1dSPORTS_FITNESS_AND_RECREATION\x10\x1d\x12 \n\x1cTRANSPORTATION_AND_LOGISTICS\x10\x1e*e\n\rPostingRegion\x12\x1e\n\x1aPOSTING_REGION_UNSPECIFIED\x10\x00\x12\x17\n\x13\x41\x44MINISTRATIVE_AREA\x10\x01\x12\n\n\x06NATION\x10\x02\x12\x0f\n\x0bTELECOMMUTE\x10\x03*n\n\nVisibility\x12\x1a\n\x16VISIBILITY_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x41\x43\x43OUNT_ONLY\x10\x01\x12\x16\n\x12SHARED_WITH_GOOGLE\x10\x02\x12\x16\n\x12SHARED_WITH_PUBLIC\x10\x03\x1a\x02\x18\x01*Z\n\x10\x43ontactInfoUsage\x12"\n\x1e\x43ONTACT_INFO_USAGE_UNSPECIFIED\x10\x00\x12\x0c\n\x08PERSONAL\x10\x01\x12\x08\n\x04WORK\x10\x02\x12\n\n\x06SCHOOL\x10\x03*q\n\x10HtmlSanitization\x12!\n\x1dHTML_SANITIZATION_UNSPECIFIED\x10\x00\x12\x1e\n\x1aHTML_SANITIZATION_DISABLED\x10\x01\x12\x1a\n\x16SIMPLE_FORMATTING_ONLY\x10\x02*c\n\rCommuteMethod\x12\x1e\n\x1a\x43OMMUTE_METHOD_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44RIVING\x10\x01\x12\x0b\n\x07TRANSIT\x10\x02\x12\x0b\n\x07WALKING\x10\x03\x12\x0b\n\x07\x43YCLING\x10\x04*\xa2\x01\n\x15SkillProficiencyLevel\x12\'\n#SKILL_PROFICIENCY_LEVEL_UNSPECIFIED\x10\x00\x12\r\n\tUNSKILLED\x10\x06\x12\x19\n\x15\x46UNDAMENTAL_AWARENESS\x10\x01\x12\n\n\x06NOVICE\x10\x02\x12\x10\n\x0cINTERMEDIATE\x10\x03\x12\x0c\n\x08\x41\x44VANCED\x10\x04\x12\n\n\x06\x45XPERT\x10\x05*f\n\x07Outcome\x12\x17\n\x13OUTCOME_UNSPECIFIED\x10\x00\x12\x0c\n\x08POSITIVE\x10\x01\x12\x0b\n\x07NEUTRAL\x10\x02\x12\x0c\n\x08NEGATIVE\x10\x03\x12\x19\n\x15OUTCOME_NOT_AVAILABLE\x10\x04*\x97\x01\n\x16\x41vailabilitySignalType\x12(\n$AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fJOB_APPLICATION\x10\x01\x12\x11\n\rRESUME_UPDATE\x10\x02\x12\x14\n\x10\x43\x41NDIDATE_UPDATE\x10\x03\x12\x15\n\x11\x43LIENT_SUBMISSION\x10\x04\x42y\n\x1f\x63om.google.cloud.talent.v4beta1B\x0b\x43ommonProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, @@ -55,6 +49,7 @@ full_name="google.cloud.talent.v4beta1.CompanySize", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="COMPANY_SIZE_UNSPECIFIED", @@ -62,27 +57,63 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MINI", index=1, number=1, serialized_options=None, type=None + name="MINI", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SMALL", index=2, number=2, serialized_options=None, type=None + name="SMALL", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SMEDIUM", index=3, number=3, serialized_options=None, type=None + name="SMEDIUM", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MEDIUM", index=4, number=4, serialized_options=None, type=None + name="MEDIUM", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BIG", index=5, number=5, serialized_options=None, type=None + name="BIG", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BIGGER", index=6, number=6, serialized_options=None, type=None + name="BIGGER", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GIANT", index=7, number=7, serialized_options=None, type=None + name="GIANT", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -98,6 +129,7 @@ full_name="google.cloud.talent.v4beta1.JobBenefit", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="JOB_BENEFIT_UNSPECIFIED", @@ -105,12 +137,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CHILD_CARE", index=1, number=1, serialized_options=None, type=None + name="CHILD_CARE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DENTAL", index=2, number=2, serialized_options=None, type=None + name="DENTAL", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="DOMESTIC_PARTNER", @@ -118,18 +161,39 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FLEXIBLE_HOURS", index=4, number=4, serialized_options=None, type=None + name="FLEXIBLE_HOURS", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MEDICAL", index=5, number=5, serialized_options=None, type=None + name="MEDICAL", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LIFE_INSURANCE", index=6, number=6, serialized_options=None, type=None + name="LIFE_INSURANCE", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PARENTAL_LEAVE", index=7, number=7, serialized_options=None, type=None + name="PARENTAL_LEAVE", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RETIREMENT_PLAN", @@ -137,15 +201,31 @@ number=8, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SICK_DAYS", index=9, number=9, serialized_options=None, type=None + name="SICK_DAYS", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VACATION", index=10, number=10, serialized_options=None, type=None + name="VACATION", + index=10, + number=10, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VISION", index=11, number=11, serialized_options=None, type=None + name="VISION", + index=11, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -161,6 +241,7 @@ full_name="google.cloud.talent.v4beta1.DegreeType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="DEGREE_TYPE_UNSPECIFIED", @@ -168,6 +249,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="PRIMARY_EDUCATION", @@ -175,6 +257,7 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="LOWER_SECONDARY_EDUCATION", @@ -182,6 +265,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="UPPER_SECONDARY_EDUCATION", @@ -189,6 +273,7 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ADULT_REMEDIAL_EDUCATION", @@ -196,6 +281,7 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ASSOCIATES_OR_EQUIVALENT", @@ -203,6 +289,7 @@ number=5, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="BACHELORS_OR_EQUIVALENT", @@ -210,6 +297,7 @@ number=6, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="MASTERS_OR_EQUIVALENT", @@ -217,6 +305,7 @@ number=7, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="DOCTORAL_OR_EQUIVALENT", @@ -224,6 +313,7 @@ number=8, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -239,6 +329,7 @@ full_name="google.cloud.talent.v4beta1.EmploymentType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="EMPLOYMENT_TYPE_UNSPECIFIED", @@ -246,15 +337,31 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FULL_TIME", index=1, number=1, serialized_options=None, type=None + name="FULL_TIME", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PART_TIME", index=2, number=2, serialized_options=None, type=None + name="PART_TIME", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CONTRACTOR", index=3, number=3, serialized_options=None, type=None + name="CONTRACTOR", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CONTRACT_TO_HIRE", @@ -262,21 +369,47 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TEMPORARY", index=5, number=5, serialized_options=None, type=None + name="TEMPORARY", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INTERN", index=6, number=6, serialized_options=None, type=None + name="INTERN", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VOLUNTEER", index=7, number=7, serialized_options=None, type=None + name="VOLUNTEER", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PER_DIEM", index=8, number=8, serialized_options=None, type=None + name="PER_DIEM", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FLY_IN_FLY_OUT", index=9, number=9, serialized_options=None, type=None + name="FLY_IN_FLY_OUT", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="OTHER_EMPLOYMENT_TYPE", @@ -284,6 +417,7 @@ number=10, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -299,6 +433,7 @@ full_name="google.cloud.talent.v4beta1.JobLevel", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="JOB_LEVEL_UNSPECIFIED", @@ -306,21 +441,47 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ENTRY_LEVEL", index=1, number=1, serialized_options=None, type=None + name="ENTRY_LEVEL", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EXPERIENCED", index=2, number=2, serialized_options=None, type=None + name="EXPERIENCED", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MANAGER", index=3, number=3, serialized_options=None, type=None + name="MANAGER", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DIRECTOR", index=4, number=4, serialized_options=None, type=None + name="DIRECTOR", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EXECUTIVE", index=5, number=5, serialized_options=None, type=None + name="EXECUTIVE", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -336,6 +497,7 @@ full_name="google.cloud.talent.v4beta1.JobCategory", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="JOB_CATEGORY_UNSPECIFIED", @@ -343,6 +505,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ACCOUNTING_AND_FINANCE", @@ -350,6 +513,7 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ADMINISTRATIVE_AND_OFFICE", @@ -357,6 +521,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ADVERTISING_AND_MARKETING", @@ -364,9 +529,15 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ANIMAL_CARE", index=4, number=4, serialized_options=None, type=None + name="ANIMAL_CARE", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ART_FASHION_AND_DESIGN", @@ -374,6 +545,7 @@ number=5, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="BUSINESS_OPERATIONS", @@ -381,6 +553,7 @@ number=6, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CLEANING_AND_FACILITIES", @@ -388,6 +561,7 @@ number=7, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="COMPUTER_AND_IT", @@ -395,9 +569,15 @@ number=8, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CONSTRUCTION", index=9, number=9, serialized_options=None, type=None + name="CONSTRUCTION", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CUSTOMER_SERVICE", @@ -405,9 +585,15 @@ number=10, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EDUCATION", index=11, number=11, serialized_options=None, type=None + name="EDUCATION", + index=11, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ENTERTAINMENT_AND_TRAVEL", @@ -415,6 +601,7 @@ number=12, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="FARMING_AND_OUTDOORS", @@ -422,9 +609,15 @@ number=13, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="HEALTHCARE", index=14, number=14, serialized_options=None, type=None + name="HEALTHCARE", + index=14, + number=14, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="HUMAN_RESOURCES", @@ -432,6 +625,7 @@ number=15, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="INSTALLATION_MAINTENANCE_AND_REPAIR", @@ -439,12 +633,23 @@ number=16, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LEGAL", index=17, number=17, serialized_options=None, type=None + name="LEGAL", + index=17, + number=17, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MANAGEMENT", index=18, number=18, serialized_options=None, type=None + name="MANAGEMENT", + index=18, + number=18, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="MANUFACTURING_AND_WAREHOUSE", @@ -452,6 +657,7 @@ number=19, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="MEDIA_COMMUNICATIONS_AND_WRITING", @@ -459,6 +665,7 @@ number=20, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="OIL_GAS_AND_MINING", @@ -466,6 +673,7 @@ number=21, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="PERSONAL_CARE_AND_SERVICES", @@ -473,6 +681,7 @@ number=22, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="PROTECTIVE_SERVICES", @@ -480,9 +689,15 @@ number=23, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="REAL_ESTATE", index=24, number=24, serialized_options=None, type=None + name="REAL_ESTATE", + index=24, + number=24, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="RESTAURANT_AND_HOSPITALITY", @@ -490,6 +705,7 @@ number=25, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="SALES_AND_RETAIL", @@ -497,6 +713,7 @@ number=26, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="SCIENCE_AND_ENGINEERING", @@ -504,6 +721,7 @@ number=27, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="SOCIAL_SERVICES_AND_NON_PROFIT", @@ -511,6 +729,7 @@ number=28, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="SPORTS_FITNESS_AND_RECREATION", @@ -518,6 +737,7 @@ number=29, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="TRANSPORTATION_AND_LOGISTICS", @@ -525,6 +745,7 @@ number=30, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -540,6 +761,7 @@ full_name="google.cloud.talent.v4beta1.PostingRegion", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="POSTING_REGION_UNSPECIFIED", @@ -547,6 +769,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ADMINISTRATIVE_AREA", @@ -554,12 +777,23 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NATION", index=2, number=2, serialized_options=None, type=None + name="NATION", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TELECOMMUTE", index=3, number=3, serialized_options=None, type=None + name="TELECOMMUTE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -575,6 +809,7 @@ full_name="google.cloud.talent.v4beta1.Visibility", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="VISIBILITY_UNSPECIFIED", @@ -582,9 +817,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ACCOUNT_ONLY", index=1, number=1, serialized_options=None, type=None + name="ACCOUNT_ONLY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="SHARED_WITH_GOOGLE", @@ -592,6 +833,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="SHARED_WITH_PUBLIC", @@ -599,10 +841,11 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, - serialized_options=_b("\030\001"), + serialized_options=b"\030\001", serialized_start=5584, serialized_end=5694, ) @@ -614,6 +857,7 @@ full_name="google.cloud.talent.v4beta1.ContactInfoUsage", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="CONTACT_INFO_USAGE_UNSPECIFIED", @@ -621,15 +865,31 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PERSONAL", index=1, number=1, serialized_options=None, type=None + name="PERSONAL", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="WORK", index=2, number=2, serialized_options=None, type=None + name="WORK", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SCHOOL", index=3, number=3, serialized_options=None, type=None + name="SCHOOL", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -645,6 +905,7 @@ full_name="google.cloud.talent.v4beta1.HtmlSanitization", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="HTML_SANITIZATION_UNSPECIFIED", @@ -652,6 +913,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="HTML_SANITIZATION_DISABLED", @@ -659,6 +921,7 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="SIMPLE_FORMATTING_ONLY", @@ -666,6 +929,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -681,6 +945,7 @@ full_name="google.cloud.talent.v4beta1.CommuteMethod", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="COMMUTE_METHOD_UNSPECIFIED", @@ -688,18 +953,39 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DRIVING", index=1, number=1, serialized_options=None, type=None + name="DRIVING", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TRANSIT", index=2, number=2, serialized_options=None, type=None + name="TRANSIT", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="WALKING", index=3, number=3, serialized_options=None, type=None + name="WALKING", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CYCLING", index=4, number=4, serialized_options=None, type=None + name="CYCLING", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -715,6 +1001,7 @@ full_name="google.cloud.talent.v4beta1.SkillProficiencyLevel", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="SKILL_PROFICIENCY_LEVEL_UNSPECIFIED", @@ -722,9 +1009,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UNSKILLED", index=1, number=6, serialized_options=None, type=None + name="UNSKILLED", + index=1, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="FUNDAMENTAL_AWARENESS", @@ -732,18 +1025,39 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOVICE", index=3, number=2, serialized_options=None, type=None + name="NOVICE", + index=3, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INTERMEDIATE", index=4, number=3, serialized_options=None, type=None + name="INTERMEDIATE", + index=4, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ADVANCED", index=5, number=4, serialized_options=None, type=None + name="ADVANCED", + index=5, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EXPERT", index=6, number=5, serialized_options=None, type=None + name="EXPERT", + index=6, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -759,6 +1073,7 @@ full_name="google.cloud.talent.v4beta1.Outcome", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="OUTCOME_UNSPECIFIED", @@ -766,15 +1081,31 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POSITIVE", index=1, number=1, serialized_options=None, type=None + name="POSITIVE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NEUTRAL", index=2, number=2, serialized_options=None, type=None + name="NEUTRAL", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NEGATIVE", index=3, number=3, serialized_options=None, type=None + name="NEGATIVE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="OUTCOME_NOT_AVAILABLE", @@ -782,6 +1113,7 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -797,6 +1129,7 @@ full_name="google.cloud.talent.v4beta1.AvailabilitySignalType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED", @@ -804,6 +1137,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="JOB_APPLICATION", @@ -811,9 +1145,15 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RESUME_UPDATE", index=2, number=2, serialized_options=None, type=None + name="RESUME_UPDATE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CANDIDATE_UPDATE", @@ -821,6 +1161,7 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CLIENT_SUBMISSION", @@ -828,6 +1169,7 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -959,6 +1301,7 @@ full_name="google.cloud.talent.v4beta1.Location.LocationType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="LOCATION_TYPE_UNSPECIFIED", @@ -966,9 +1309,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="COUNTRY", index=1, number=1, serialized_options=None, type=None + name="COUNTRY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ADMINISTRATIVE_AREA", @@ -976,6 +1325,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="SUB_ADMINISTRATIVE_AREA", @@ -983,24 +1333,55 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOCALITY", index=4, number=4, serialized_options=None, type=None + name="LOCALITY", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="POSTAL_CODE", index=5, number=5, serialized_options=None, type=None + name="POSTAL_CODE", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SUB_LOCALITY", index=6, number=6, serialized_options=None, type=None + name="SUB_LOCALITY", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SUB_LOCALITY_1", index=7, number=7, serialized_options=None, type=None + name="SUB_LOCALITY_1", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SUB_LOCALITY_2", index=8, number=8, serialized_options=None, type=None + name="SUB_LOCALITY_2", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NEIGHBORHOOD", index=9, number=9, serialized_options=None, type=None + name="NEIGHBORHOOD", + index=9, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="STREET_ADDRESS", @@ -1008,6 +1389,7 @@ number=10, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -1022,6 +1404,7 @@ full_name="google.cloud.talent.v4beta1.DeviceInfo.DeviceType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="DEVICE_TYPE_UNSPECIFIED", @@ -1029,24 +1412,55 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="WEB", index=1, number=1, serialized_options=None, type=None + name="WEB", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOBILE_WEB", index=2, number=2, serialized_options=None, type=None + name="MOBILE_WEB", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ANDROID", index=3, number=3, serialized_options=None, type=None + name="ANDROID", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IOS", index=4, number=4, serialized_options=None, type=None + name="IOS", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BOT", index=5, number=5, serialized_options=None, type=None + name="BOT", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="OTHER", index=6, number=6, serialized_options=None, type=None + name="OTHER", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -1061,6 +1475,7 @@ full_name="google.cloud.talent.v4beta1.CompensationInfo.CompensationType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="COMPENSATION_TYPE_UNSPECIFIED", @@ -1068,27 +1483,63 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BASE", index=1, number=1, serialized_options=None, type=None + name="BASE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BONUS", index=2, number=2, serialized_options=None, type=None + name="BONUS", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SIGNING_BONUS", index=3, number=3, serialized_options=None, type=None + name="SIGNING_BONUS", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EQUITY", index=4, number=4, serialized_options=None, type=None + name="EQUITY", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PROFIT_SHARING", index=5, number=5, serialized_options=None, type=None + name="PROFIT_SHARING", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="COMMISSIONS", index=6, number=6, serialized_options=None, type=None + name="COMMISSIONS", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TIPS", index=7, number=7, serialized_options=None, type=None + name="TIPS", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="OTHER_COMPENSATION_TYPE", @@ -1096,6 +1547,7 @@ number=8, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -1110,6 +1562,7 @@ full_name="google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="COMPENSATION_UNIT_UNSPECIFIED", @@ -1117,24 +1570,55 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="HOURLY", index=1, number=1, serialized_options=None, type=None + name="HOURLY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DAILY", index=2, number=2, serialized_options=None, type=None + name="DAILY", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="WEEKLY", index=3, number=3, serialized_options=None, type=None + name="WEEKLY", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MONTHLY", index=4, number=4, serialized_options=None, type=None + name="MONTHLY", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="YEARLY", index=5, number=5, serialized_options=None, type=None + name="YEARLY", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ONE_TIME", index=6, number=6, serialized_options=None, type=None + name="ONE_TIME", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="OTHER_COMPENSATION_UNIT", @@ -1142,6 +1626,7 @@ number=7, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -1156,6 +1641,7 @@ full_name="google.cloud.talent.v4beta1.BatchOperationMetadata.State", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="STATE_UNSPECIFIED", @@ -1163,24 +1649,55 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INITIALIZING", index=1, number=1, serialized_options=None, type=None + name="INITIALIZING", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PROCESSING", index=2, number=2, serialized_options=None, type=None + name="PROCESSING", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SUCCEEDED", index=3, number=3, serialized_options=None, type=None + name="SUCCEEDED", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FAILED", index=4, number=4, serialized_options=None, type=None + name="FAILED", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CANCELLING", index=5, number=5, serialized_options=None, type=None + name="CANCELLING", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CANCELLED", index=6, number=6, serialized_options=None, type=None + name="CANCELLED", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -1197,6 +1714,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="start_time", @@ -1215,6 +1733,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_time", @@ -1233,6 +1752,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1254,6 +1774,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="location_type", @@ -1272,6 +1793,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="postal_address", @@ -1290,6 +1812,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="lat_lng", @@ -1308,6 +1831,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="radius_miles", @@ -1326,11 +1850,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_LOCATION_LOCATIONTYPE], + enum_types=[_LOCATION_LOCATIONTYPE,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1347,6 +1872,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="domain", @@ -1357,7 +1883,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, @@ -1365,6 +1891,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="session_id", @@ -1375,7 +1902,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, @@ -1383,6 +1910,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="user_id", @@ -1393,7 +1921,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, @@ -1401,6 +1929,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="allow_missing_ids", @@ -1419,6 +1948,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="device_info", @@ -1437,6 +1967,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1458,6 +1989,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="request_id", @@ -1468,7 +2000,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, @@ -1476,7 +2008,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -1497,6 +2030,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="device_type", @@ -1515,6 +2049,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="id", @@ -1525,7 +2060,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, @@ -1533,11 +2068,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_DEVICEINFO_DEVICETYPE], + enum_types=[_DEVICEINFO_DEVICETYPE,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1554,6 +2090,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="string_values", @@ -1572,6 +2109,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="long_values", @@ -1590,6 +2128,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filterable", @@ -1608,6 +2147,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1629,6 +2169,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="corrected", @@ -1647,6 +2188,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="corrected_text", @@ -1657,7 +2199,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, @@ -1665,6 +2207,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="corrected_html", @@ -1675,7 +2218,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, @@ -1683,6 +2226,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1704,6 +2248,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -1722,6 +2267,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="unit", @@ -1740,6 +2286,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="amount", @@ -1758,6 +2305,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="range", @@ -1776,6 +2324,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -1786,7 +2335,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, @@ -1794,6 +2343,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="expected_units_per_year", @@ -1812,6 +2362,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1827,8 +2378,9 @@ full_name="google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.compensation_amount", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=1816, serialized_end=2218, @@ -1840,6 +2392,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="max_compensation", @@ -1858,6 +2411,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="min_compensation", @@ -1876,6 +2430,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1896,6 +2451,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="entries", @@ -1914,6 +2470,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annualized_base_compensation_range", @@ -1930,8 +2487,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="annualized_total_compensation_range", @@ -1948,8 +2506,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1957,7 +2516,10 @@ _COMPENSATIONINFO_COMPENSATIONENTRY, _COMPENSATIONINFO_COMPENSATIONRANGE, ], - enum_types=[_COMPENSATIONINFO_COMPENSATIONTYPE, _COMPENSATIONINFO_COMPENSATIONUNIT], + enum_types=[ + _COMPENSATIONINFO_COMPENSATIONTYPE, + _COMPENSATIONINFO_COMPENSATIONUNIT, + ], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1974,6 +2536,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="display_name", @@ -1984,7 +2547,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, @@ -1992,6 +2555,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="acquire_date", @@ -2010,6 +2574,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="expire_date", @@ -2028,6 +2593,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="authority", @@ -2038,7 +2604,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, @@ -2046,6 +2612,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -2056,7 +2623,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, @@ -2064,6 +2631,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2085,6 +2653,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="display_name", @@ -2095,7 +2664,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, @@ -2103,6 +2672,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="last_used_date", @@ -2121,6 +2691,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="level", @@ -2139,6 +2710,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="context", @@ -2149,7 +2721,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, @@ -2157,6 +2729,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="skill_name_snippet", @@ -2167,14 +2740,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\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2196,6 +2770,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="rating", @@ -2214,6 +2789,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="outcome", @@ -2230,8 +2806,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=[], @@ -2253,6 +2830,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="overall", @@ -2271,6 +2849,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="min", @@ -2289,6 +2868,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="max", @@ -2307,6 +2887,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="interval", @@ -2325,6 +2906,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2346,6 +2928,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="state", @@ -2364,6 +2947,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="state_description", @@ -2374,7 +2958,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, @@ -2382,6 +2966,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="success_count", @@ -2400,6 +2985,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="failure_count", @@ -2418,6 +3004,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="total_count", @@ -2436,6 +3023,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -2454,6 +3042,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_time", @@ -2472,6 +3061,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_time", @@ -2490,11 +3080,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_BATCHOPERATIONMETADATA_STATE], + enum_types=[_BATCHOPERATIONMETADATA_STATE,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -2628,10 +3219,11 @@ TimestampRange = _reflection.GeneratedProtocolMessageType( "TimestampRange", (_message.Message,), - dict( - DESCRIPTOR=_TIMESTAMPRANGE, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""Message representing a period of time between two timestamps. + { + "DESCRIPTOR": _TIMESTAMPRANGE, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """Message representing a period of time between two timestamps. + Attributes: start_time: Begin of the period (inclusive). @@ -2639,26 +3231,27 @@ End of the period (exclusive). """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.TimestampRange) - ), + }, ) _sym_db.RegisterMessage(TimestampRange) Location = _reflection.GeneratedProtocolMessageType( "Location", (_message.Message,), - dict( - DESCRIPTOR=_LOCATION, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""A resource that represents a location with full geographic + { + "DESCRIPTOR": _LOCATION, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """A resource that represents a location with full geographic information. + Attributes: location_type: The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress]. For - example, "Downtown, Atlanta, GA, USA" has a type of [LocationT + example, “Downtown, Atlanta, GA, USA” has a type of [LocationT ype.NEIGHBORHOOD][google.cloud.talent.v4beta1.Location.Locatio - nType.NEIGHBORHOOD], and "Kansas City, KS, USA" has a type of + nType.NEIGHBORHOOD], and “Kansas City, KS, USA” has a type of [LocationType.LOCALITY][google.cloud.talent.v4beta1.Location.L ocationType.LOCALITY]. postal_address: @@ -2674,49 +3267,50 @@ specified radius centered from [google.type.LatLng][google.type.LatLng] covers the area associated with the job location. For example, currently, - "Mountain View, CA, USA" has a radius of 6.17 miles. + “Mountain View, CA, USA” has a radius of 6.17 miles. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Location) - ), + }, ) _sym_db.RegisterMessage(Location) RequestMetadata = _reflection.GeneratedProtocolMessageType( "RequestMetadata", (_message.Message,), - dict( - DESCRIPTOR=_REQUESTMETADATA, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""Meta information related to the job searcher or entity conducting the + { + "DESCRIPTOR": _REQUESTMETADATA, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """Meta information related to the job searcher or entity conducting the job search. This information is used to improve the performance of the service. + Attributes: domain: - Required if [allow\_missing\_ids][google.cloud.talent.v4beta1. - RequestMetadata.allow\_missing\_ids] is unset or ``false``. - The client-defined scope or source of the service call, which + Required if [allow_missing_ids][google.cloud.talent.v4beta1.Re + questMetadata.allow_missing_ids] is unset or ``false``. The + client-defined scope or source of the service call, which typically is the domain on which the service has been implemented and is currently being run. For example, if the service is being run by client Foo, Inc., on job board www.foo.com and career site www.bar.com, then this field is - set to "foo.com" for use on the job board, and "bar.com" for + set to “foo.com” for use on the job board, and “bar.com” for use on the career site. Note that any improvements to the model for a particular tenant site rely on this field being set correctly to a unique domain. The maximum number of allowed characters is 255. session_id: - Required if [allow\_missing\_ids][google.cloud.talent.v4beta1. - RequestMetadata.allow\_missing\_ids] is unset or ``false``. A + Required if [allow_missing_ids][google.cloud.talent.v4beta1.Re + questMetadata.allow_missing_ids] is unset or ``false``. A unique session identification string. A session is defined as - the duration of an end user's interaction with the service + the duration of an end user’s interaction with the service over a certain period. Obfuscate this field for privacy concerns before providing it to the service. Note that any improvements to the model for a particular tenant site rely on this field being set correctly to a unique session ID. The maximum number of allowed characters is 255. user_id: - Required if [allow\_missing\_ids][google.cloud.talent.v4beta1. - RequestMetadata.allow\_missing\_ids] is unset or ``false``. A + Required if [allow_missing_ids][google.cloud.talent.v4beta1.Re + questMetadata.allow_missing_ids] is unset or ``false``. A unique user identification string, as determined by the client. To have the strongest positive impact on search quality make sure the client-level is unique. Obfuscate this @@ -2727,50 +3321,54 @@ allow_missing_ids: Only set when any of [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], - [session\_id][google.cloud.talent.v4beta1.RequestMetadata.sess - ion\_id] and [user\_id][google.cloud.talent.v4beta1.RequestMet - adata.user\_id] isn't available for some reason. It is highly - recommended not to set this field and provide accurate + [session_id][google.cloud.talent.v4beta1.RequestMetadata.sessi + on_id] and + [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] + isn’t available for some reason. It is highly recommended not + to set this field and provide accurate [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], - [session\_id][google.cloud.talent.v4beta1.RequestMetadata.sess - ion\_id] and [user\_id][google.cloud.talent.v4beta1.RequestMet - adata.user\_id] for the best service experience. + [session_id][google.cloud.talent.v4beta1.RequestMetadata.sessi + on_id] and + [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] + for the best service experience. device_info: The type of device used by the job seeker at the time of the call to the service. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.RequestMetadata) - ), + }, ) _sym_db.RegisterMessage(RequestMetadata) ResponseMetadata = _reflection.GeneratedProtocolMessageType( "ResponseMetadata", (_message.Message,), - dict( - DESCRIPTOR=_RESPONSEMETADATA, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""Additional information returned to client, such as debugging + { + "DESCRIPTOR": _RESPONSEMETADATA, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """Additional information returned to client, such as debugging information. + Attributes: request_id: A unique id associated with this call. This id is logged for tracking purposes. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ResponseMetadata) - ), + }, ) _sym_db.RegisterMessage(ResponseMetadata) DeviceInfo = _reflection.GeneratedProtocolMessageType( "DeviceInfo", (_message.Message,), - dict( - DESCRIPTOR=_DEVICEINFO, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""Device information collected from the job seeker, candidate, or other + { + "DESCRIPTOR": _DEVICEINFO, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """Device information collected from the job seeker, candidate, or other entity conducting the job search. Providing this information improves the quality of the search results across devices. + Attributes: device_type: Type of the device. @@ -2779,54 +3377,56 @@ distinguishes the device from other devices. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeviceInfo) - ), + }, ) _sym_db.RegisterMessage(DeviceInfo) CustomAttribute = _reflection.GeneratedProtocolMessageType( "CustomAttribute", (_message.Message,), - dict( - DESCRIPTOR=_CUSTOMATTRIBUTE, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""Custom attribute values that are either filterable or non-filterable. + { + "DESCRIPTOR": _CUSTOMATTRIBUTE, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """Custom attribute values that are either filterable or non-filterable. + Attributes: string_values: - Exactly one of [string\_values][google.cloud.talent.v4beta1.Cu - stomAttribute.string\_values] or [long\_values][google.cloud.t - alent.v4beta1.CustomAttribute.long\_values] must be specified. + Exactly one of [string_values][google.cloud.talent.v4beta1.Cus + tomAttribute.string_values] or [long_values][google.cloud.tale + nt.v4beta1.CustomAttribute.long_values] must be specified. This field is used to perform a string match (``CASE_SENSITIVE_MATCH`` or ``CASE_INSENSITIVE_MATCH``) search. For filterable ``string_value``\ s, a maximum total number of 200 values is allowed, with each ``string_value`` has a byte size of no more than 500B. For unfilterable ``string_values``, the maximum total byte size of unfilterable - ``string_values`` is 50KB. Empty string isn't allowed. + ``string_values`` is 50KB. Empty string isn’t allowed. long_values: - Exactly one of [string\_values][google.cloud.talent.v4beta1.Cu - stomAttribute.string\_values] or [long\_values][google.cloud.t - alent.v4beta1.CustomAttribute.long\_values] must be specified. + Exactly one of [string_values][google.cloud.talent.v4beta1.Cus + tomAttribute.string_values] or [long_values][google.cloud.tale + nt.v4beta1.CustomAttribute.long_values] must be specified. This field is used to perform number range search. (``EQ``, ``GT``, ``GE``, ``LE``, ``LT``) over filterable - ``long_value``. Currently at most 1 [long\_values][google.clo - ud.talent.v4beta1.CustomAttribute.long\_values] is supported. + ``long_value``. Currently at most 1 [long_values][google.clou + d.talent.v4beta1.CustomAttribute.long_values] is supported. filterable: If the ``filterable`` flag is true, custom field values are searchable. If false, values are not searchable. Default is false. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CustomAttribute) - ), + }, ) _sym_db.RegisterMessage(CustomAttribute) SpellingCorrection = _reflection.GeneratedProtocolMessageType( "SpellingCorrection", (_message.Message,), - dict( - DESCRIPTOR=_SPELLINGCORRECTION, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""Spell check result. + { + "DESCRIPTOR": _SPELLINGCORRECTION, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """Spell check result. + Attributes: corrected: Indicates if the query was corrected by the spell checker. @@ -2834,50 +3434,49 @@ Correction output consisting of the corrected keyword string. corrected_html: Corrected output with html tags to highlight the corrected - words. Corrected words are called out with the "..." html - tags. For example, the user input query is "software - enginear", where the second word, "enginear," is incorrect. It - should be "engineer". When spelling correction is enabled, - this value is "software engineer". + words. Corrected words are called out with the “…” html tags. + For example, the user input query is “software enginear”, + where the second word, “enginear,” is incorrect. It should be + “engineer”. When spelling correction is enabled, this value is + “software engineer”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SpellingCorrection) - ), + }, ) _sym_db.RegisterMessage(SpellingCorrection) CompensationInfo = _reflection.GeneratedProtocolMessageType( "CompensationInfo", (_message.Message,), - dict( - CompensationEntry=_reflection.GeneratedProtocolMessageType( + { + "CompensationEntry": _reflection.GeneratedProtocolMessageType( "CompensationEntry", (_message.Message,), - dict( - DESCRIPTOR=_COMPENSATIONINFO_COMPENSATIONENTRY, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""A compensation entry that represents one component of compensation, + { + "DESCRIPTOR": _COMPENSATIONINFO_COMPENSATIONENTRY, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """A compensation entry that represents one component of compensation, such as base pay, bonus, or other compensation type. Annualization: One compensation entry can be annualized if - it contains valid [amoun t][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amou nt] or [range][google.cloud.talent.v4beta1.CompensationInfo.Compensati - onEntry.range]. - and its [expected\_units\_per\_year][google.cloud.ta - lent.v4beta1.CompensationInfo.CompensationEntry.expected\_units\_per\_ - year] is set or can be derived. Its annualized range is determined as - ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEnt - ry.amount] or [range][google.cloud.talent.v4beta1.CompensationInfo.Com - pensationEntry.range]) times [expected\_units\_per\_year][google.cloud - .talent.v4beta1.CompensationInfo.CompensationEntry.expected\_units\_pe - r\_year]. + onEntry.range]. - and its [expected_units_per_year][google.cloud.talen + t.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year] + is set or can be derived. Its annualized range is determined as ([amou + nt][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amo + unt] or [range][google.cloud.talent.v4beta1.CompensationInfo.Compensat + ionEntry.range]) times [expected_units_per_year][google.cloud.talent.v + 4beta1.CompensationInfo.CompensationEntry.expected_units_per_year]. + Attributes: type: - Compensation type. Default is [CompensationType.COMPENSATION\ - _TYPE\_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationIn - fo.CompensationType.COMPENSATION\_TYPE\_UNSPECIFIED]. + Compensation type. Default is [CompensationType.COMPENSATION\_TYPE\_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo + .CompensationType.COMPENSATION_TYPE_UNSPECIFIED]. unit: Frequency of the specified amount. Default is [CompensationUn - it.COMPENSATION\_UNIT\_UNSPECIFIED][google.cloud.talent.v4beta - 1.CompensationInfo.CompensationUnit.COMPENSATION\_UNIT\_UNSPEC - IFIED]. + it.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1. + CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIE + D]. compensation_amount: Compensation amount. It could be a fixed amount or a floating range. @@ -2890,40 +3489,42 @@ terms or provide additional context to an estimated bonus. expected_units_per_year: Expected number of units paid each year. If not specified, - when [Job.employment\_types][google.cloud.talent.v4beta1.Job.e - mployment\_types] is FULLTIME, a default value is inferred - based on [unit][google.cloud.talent.v4beta1.CompensationInfo.C - ompensationEntry.unit]. Default values: - HOURLY: 2080 - - DAILY: 260 - WEEKLY: 52 - MONTHLY: 12 - ANNUAL: 1 + when [Job.employment_types][google.cloud.talent.v4beta1.Job.em + ployment_types] is FULLTIME, a default value is inferred based + on [unit][google.cloud.talent.v4beta1.CompensationInfo.Compens + ationEntry.unit]. Default values: - HOURLY: 2080 - DAILY: 260 + - WEEKLY: 52 - MONTHLY: 12 - ANNUAL: 1 """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) - ), + }, ), - CompensationRange=_reflection.GeneratedProtocolMessageType( + "CompensationRange": _reflection.GeneratedProtocolMessageType( "CompensationRange", (_message.Message,), - dict( - DESCRIPTOR=_COMPENSATIONINFO_COMPENSATIONRANGE, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""Compensation range. + { + "DESCRIPTOR": _COMPENSATIONINFO_COMPENSATIONRANGE, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """Compensation range. + Attributes: max_compensation: The maximum amount of compensation. If left empty, the value is set to a maximal compensation value and the currency code is set to match the [currency - code][google.type.Money.currency\_code] of min\_compensation. + code][google.type.Money.currency_code] of min_compensation. min_compensation: The minimum amount of compensation. If left empty, the value is set to zero and the currency code is set to match the - [currency code][google.type.Money.currency\_code] of - max\_compensation. + [currency code][google.type.Money.currency_code] of + max_compensation. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) - ), + }, ), - DESCRIPTOR=_COMPENSATIONINFO, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""Job compensation details. + "DESCRIPTOR": _COMPENSATIONINFO, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """Job compensation details. + Attributes: entries: Job compensation information. At most one entry can be of @@ -2932,25 +3533,25 @@ referred as **base compensation entry** for the job. annualized_base_compensation_range: Output only. Annualized base compensation range. Computed as - base compensation entry's [CompensationEntry.amount][google.cl + base compensation entry’s [CompensationEntry.amount][google.cl oud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] - times [CompensationEntry.expected\_units\_per\_year][google.cl - oud.talent.v4beta1.CompensationInfo.CompensationEntry.expected - \_units\_per\_year]. See [CompensationEntry][google.cloud.tal - ent.v4beta1.CompensationInfo.CompensationEntry] for - explanation on compensation annualization. + times [CompensationEntry.expected_units_per_year][google.cloud + .talent.v4beta1.CompensationInfo.CompensationEntry.expected_un + its_per_year]. See [CompensationEntry][google.cloud.talent.v4 + beta1.CompensationInfo.CompensationEntry] for explanation on + compensation annualization. annualized_total_compensation_range: Output only. Annualized total compensation range. Computed as - all compensation entries' [CompensationEntry.amount][google.cl + all compensation entries’ [CompensationEntry.amount][google.cl oud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] - times [CompensationEntry.expected\_units\_per\_year][google.cl - oud.talent.v4beta1.CompensationInfo.CompensationEntry.expected - \_units\_per\_year]. See [CompensationEntry][google.cloud.tal - ent.v4beta1.CompensationInfo.CompensationEntry] for - explanation on compensation annualization. + times [CompensationEntry.expected_units_per_year][google.cloud + .talent.v4beta1.CompensationInfo.CompensationEntry.expected_un + its_per_year]. See [CompensationEntry][google.cloud.talent.v4 + beta1.CompensationInfo.CompensationEntry] for explanation on + compensation annualization. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo) - ), + }, ) _sym_db.RegisterMessage(CompensationInfo) _sym_db.RegisterMessage(CompensationInfo.CompensationEntry) @@ -2959,10 +3560,11 @@ Certification = _reflection.GeneratedProtocolMessageType( "Certification", (_message.Message,), - dict( - DESCRIPTOR=_CERTIFICATION, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""Resource that represents a license or certification. + { + "DESCRIPTOR": _CERTIFICATION, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """Resource that represents a license or certification. + Attributes: display_name: Name of license or certification. Number of characters @@ -2980,20 +3582,21 @@ allowed is 100,000. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Certification) - ), + }, ) _sym_db.RegisterMessage(Certification) Skill = _reflection.GeneratedProtocolMessageType( "Skill", (_message.Message,), - dict( - DESCRIPTOR=_SKILL, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""Resource that represents a skill of a candidate. + { + "DESCRIPTOR": _SKILL, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """Resource that represents a skill of a candidate. + Attributes: display_name: - Skill display name. For example, "Java", "Python". Number of + Skill display name. For example, “Java”, “Python”. Number of characters allowed is 100. last_used_date: The last time this skill was used. @@ -3004,24 +3607,25 @@ A paragraph describes context of this skill. Number of characters allowed is 100,000. skill_name_snippet: - Output only. Skill name snippet shows how the [display\_name][ - google.cloud.talent.v4beta1.Skill.display\_name] is related to - a search query. It's empty if the [display\_name][google.cloud - .talent.v4beta1.Skill.display\_name] isn't related to the - search query. + Output only. Skill name snippet shows how the + [display_name][google.cloud.talent.v4beta1.Skill.display_name] + is related to a search query. It’s empty if the + [display_name][google.cloud.talent.v4beta1.Skill.display_name] + isn’t related to the search query. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Skill) - ), + }, ) _sym_db.RegisterMessage(Skill) Interview = _reflection.GeneratedProtocolMessageType( "Interview", (_message.Message,), - dict( - DESCRIPTOR=_INTERVIEW, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""Details of an interview. + { + "DESCRIPTOR": _INTERVIEW, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """Details of an interview. + Attributes: rating: The rating on this interview. @@ -3030,17 +3634,18 @@ (positive, negative, nuetral). """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Interview) - ), + }, ) _sym_db.RegisterMessage(Interview) Rating = _reflection.GeneratedProtocolMessageType( "Rating", (_message.Message,), - dict( - DESCRIPTOR=_RATING, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""The details of the score received for an assessment or interview. + { + "DESCRIPTOR": _RATING, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """The details of the score received for an assessment or interview. + Attributes: overall: Overall score. @@ -3053,19 +3658,20 @@ min = 1 indicates that the score can be 1, 2, 3, 4, or 5) """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Rating) - ), + }, ) _sym_db.RegisterMessage(Rating) BatchOperationMetadata = _reflection.GeneratedProtocolMessageType( "BatchOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_BATCHOPERATIONMETADATA, - __module__="google.cloud.talent_v4beta1.proto.common_pb2", - __doc__="""Metadata used for long running operations returned by CTS batch APIs. - It's used to replace [google.longrunning.Operation.metadata][google.lo + { + "DESCRIPTOR": _BATCHOPERATIONMETADATA, + "__module__": "google.cloud.talent_v4beta1.proto.common_pb2", + "__doc__": """Metadata used for long running operations returned by CTS batch APIs. + It’s used to replace [google.longrunning.Operation.metadata][google.lo ngrunning.Operation.metadata]. + Attributes: state: The state of a long running operation. @@ -3081,8 +3687,8 @@ The time when the batch operation is created. update_time: The time when the batch operation status is updated. The - metadata and the [update\_time][google.cloud.talent.v4beta1.Ba - tchOperationMetadata.update\_time] is refreshed every minute + metadata and the [update_time][google.cloud.talent.v4beta1.Bat + chOperationMetadata.update_time] is refreshed every minute otherwise cached data is returned. end_time: The time when the batch operation is finished and [google.long @@ -3090,7 +3696,7 @@ set to ``true``. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.BatchOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(BatchOperationMetadata) diff --git a/google/cloud/talent_v4beta1/proto/common_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/common_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/talent_v4beta1/proto/common_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/common_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/google/cloud/talent_v4beta1/proto/company_pb2.py b/google/cloud/talent_v4beta1/proto/company_pb2.py index f4bb5b8f..c15977b7 100644 --- a/google/cloud/talent_v4beta1/proto/company_pb2.py +++ b/google/cloud/talent_v4beta1/proto/company_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/company.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/talent_v4beta1/proto/company.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\024CompanyResourceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n/google/cloud/talent_v4beta1/proto/company.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x1cgoogle/api/annotations.proto"\xfc\x04\n\x07\x43ompany\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x65xternal_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x04size\x18\x04 \x01(\x0e\x32(.google.cloud.talent.v4beta1.CompanySize\x12\x1c\n\x14headquarters_address\x18\x05 \x01(\t\x12\x15\n\rhiring_agency\x18\x06 \x01(\x08\x12\x10\n\x08\x65\x65o_text\x18\x07 \x01(\t\x12\x13\n\x0bwebsite_uri\x18\x08 \x01(\t\x12\x17\n\x0f\x63\x61reer_site_uri\x18\t \x01(\t\x12\x11\n\timage_uri\x18\n \x01(\t\x12\x30\n(keyword_searchable_job_custom_attributes\x18\x0b \x03(\t\x12K\n\x0c\x64\x65rived_info\x18\x0c \x01(\x0b\x32\x30.google.cloud.talent.v4beta1.Company.DerivedInfoB\x03\xe0\x41\x03\x12\x16\n\tsuspended\x18\r \x01(\x08\x42\x03\xe0\x41\x03\x1aS\n\x0b\x44\x65rivedInfo\x12\x44\n\x15headquarters_location\x18\x01 \x01(\x0b\x32%.google.cloud.talent.v4beta1.Location:\x81\x01\xea\x41~\n\x1bjobs.googleapis.com/Company\x12\x37projects/{project}/tenants/{tenant}/companies/{company}\x12&projects/{project}/companies/{company}B\x82\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x14\x43ompanyResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\024CompanyResourceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n/google/cloud/talent_v4beta1/proto/company.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x1cgoogle/api/annotations.proto"\xfc\x04\n\x07\x43ompany\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x65xternal_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x04size\x18\x04 \x01(\x0e\x32(.google.cloud.talent.v4beta1.CompanySize\x12\x1c\n\x14headquarters_address\x18\x05 \x01(\t\x12\x15\n\rhiring_agency\x18\x06 \x01(\x08\x12\x10\n\x08\x65\x65o_text\x18\x07 \x01(\t\x12\x13\n\x0bwebsite_uri\x18\x08 \x01(\t\x12\x17\n\x0f\x63\x61reer_site_uri\x18\t \x01(\t\x12\x11\n\timage_uri\x18\n \x01(\t\x12\x30\n(keyword_searchable_job_custom_attributes\x18\x0b \x03(\t\x12K\n\x0c\x64\x65rived_info\x18\x0c \x01(\x0b\x32\x30.google.cloud.talent.v4beta1.Company.DerivedInfoB\x03\xe0\x41\x03\x12\x16\n\tsuspended\x18\r \x01(\x08\x42\x03\xe0\x41\x03\x1aS\n\x0b\x44\x65rivedInfo\x12\x44\n\x15headquarters_location\x18\x01 \x01(\x0b\x32%.google.cloud.talent.v4beta1.Location:\x81\x01\xea\x41~\n\x1bjobs.googleapis.com/Company\x12\x37projects/{project}/tenants/{tenant}/companies/{company}\x12&projects/{project}/companies/{company}B\x82\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x14\x43ompanyResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_field__behavior__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="headquarters_location", @@ -66,7 +61,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -86,6 +82,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -96,7 +93,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, @@ -104,6 +101,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="display_name", @@ -114,14 +112,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="external_id", @@ -132,14 +131,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="size", @@ -158,6 +158,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="headquarters_address", @@ -168,7 +169,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, @@ -176,6 +177,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="hiring_agency", @@ -194,6 +196,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="eeo_text", @@ -204,7 +207,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, @@ -212,6 +215,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="website_uri", @@ -222,7 +226,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, @@ -230,6 +234,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="career_site_uri", @@ -240,7 +245,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, @@ -248,6 +253,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_uri", @@ -258,7 +264,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, @@ -266,6 +272,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="keyword_searchable_job_custom_attributes", @@ -284,6 +291,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="derived_info", @@ -300,8 +308,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="suspended", @@ -318,16 +327,15 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_COMPANY_DERIVEDINFO], + nested_types=[_COMPANY_DERIVEDINFO,], enum_types=[], - serialized_options=_b( - "\352A~\n\033jobs.googleapis.com/Company\0227projects/{project}/tenants/{tenant}/companies/{company}\022&projects/{project}/companies/{company}" - ), + serialized_options=b"\352A~\n\033jobs.googleapis.com/Company\0227projects/{project}/tenants/{tenant}/companies/{company}\022&projects/{project}/companies/{company}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -354,53 +362,55 @@ Company = _reflection.GeneratedProtocolMessageType( "Company", (_message.Message,), - dict( - DerivedInfo=_reflection.GeneratedProtocolMessageType( + { + "DerivedInfo": _reflection.GeneratedProtocolMessageType( "DerivedInfo", (_message.Message,), - dict( - DESCRIPTOR=_COMPANY_DERIVEDINFO, - __module__="google.cloud.talent_v4beta1.proto.company_pb2", - __doc__="""Derived details about the company. + { + "DESCRIPTOR": _COMPANY_DERIVEDINFO, + "__module__": "google.cloud.talent_v4beta1.proto.company_pb2", + "__doc__": """Derived details about the company. + Attributes: headquarters_location: A structured headquarters location of the company, resolved - from [Company.headquarters\_address][google.cloud.talent.v4bet - a1.Company.headquarters\_address] if provided. + from [Company.headquarters_address][google.cloud.talent.v4beta + 1.Company.headquarters_address] if provided. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Company.DerivedInfo) - ), + }, ), - DESCRIPTOR=_COMPANY, - __module__="google.cloud.talent_v4beta1.proto.company_pb2", - __doc__="""A Company resource represents a company in the service. A company is + "DESCRIPTOR": _COMPANY, + "__module__": "google.cloud.talent_v4beta1.proto.company_pb2", + "__doc__": """A Company resource represents a company in the service. A company is the entity that owns job postings, that is, the hiring entity responsible for employing applicants for the job position. + Attributes: name: Required during company update. The resource name for a company. This is generated by the service when a company is - created. The format is "projects/{project\_id}/tenants/{tenan - t\_id}/companies/{company\_id}", for example, - "projects/foo/tenants/bar/companies/baz". If tenant id is + created. The format is “projects/{project_id}/tenants/{tenant + _id}/companies/{company_id}”, for example, + “projects/foo/tenants/bar/companies/baz”. If tenant id is unspecified, the default tenant is used. For example, - "projects/foo/companies/bar". + “projects/foo/companies/bar”. display_name: Required. The display name of the company, for example, - "Google LLC". + “Google LLC”. external_id: Required. Client side company identifier, used to uniquely identify the company. The maximum number of allowed characters is 255. size: - The employer's company size. + The employer’s company size. headquarters_address: - The street address of the company's main headquarters, which + The street address of the company’s main headquarters, which may be different from the job location. The service attempts to geolocate the provided address, and populates a more specific location wherever possible in [DerivedInfo.headquarte - rs\_location][google.cloud.talent.v4beta1.Company.DerivedInfo. - headquarters\_location]. + rs_location][google.cloud.talent.v4beta1.Company.DerivedInfo.h + eadquarters_location]. hiring_agency: Set to true if it is the hiring agency that post jobs for other employers. Defaults to false if not provided. @@ -409,24 +419,24 @@ associated with all jobs, and typically to be displayed in all roles. The maximum number of allowed characters is 500. website_uri: - The URI representing the company's primary web site or home - page, for example, "https://www.google.com". The maximum + The URI representing the company’s primary web site or home + page, for example, “https://www.google.com”. The maximum number of allowed characters is 255. career_site_uri: - The URI to employer's career site or careers page on the - employer's web site, for example, - "https://careers.google.com". + The URI to employer’s career site or careers page on the + employer’s web site, for example, + “https://careers.google.com”. image_uri: - A URI that hosts the employer's company logo. + A URI that hosts the employer’s company logo. keyword_searchable_job_custom_attributes: - A list of keys of filterable [Job.custom\_attributes][google.c - loud.talent.v4beta1.Job.custom\_attributes], whose - corresponding ``string_values`` are used in keyword searches. - Jobs with ``string_values`` under these specified field keys - are returned if any of the values match the search keyword. - Custom field values with parenthesis, brackets and special - symbols are not searchable as-is, and those keyword queries - must be surrounded by quotes. + A list of keys of filterable [Job.custom_attributes][google.cl + oud.talent.v4beta1.Job.custom_attributes], whose corresponding + ``string_values`` are used in keyword searches. Jobs with + ``string_values`` under these specified field keys are + returned if any of the values match the search keyword. Custom + field values with parenthesis, brackets and special symbols + are not searchable as-is, and those keyword queries must be + surrounded by quotes. derived_info: Output only. Derived details about the company. suspended: @@ -435,7 +445,7 @@ content appears suspicious, abusive, or spammy. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Company) - ), + }, ) _sym_db.RegisterMessage(Company) _sym_db.RegisterMessage(Company.DerivedInfo) diff --git a/google/cloud/talent_v4beta1/proto/company_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/company_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/talent_v4beta1/proto/company_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/company_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/google/cloud/talent_v4beta1/proto/company_service_pb2.py b/google/cloud/talent_v4beta1/proto/company_service_pb2.py index 8a2f8b93..818b72ac 100644 --- a/google/cloud/talent_v4beta1/proto/company_service_pb2.py +++ b/google/cloud/talent_v4beta1/proto/company_service_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/company_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 @@ -33,12 +30,9 @@ name="google/cloud/talent_v4beta1/proto/company_service.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\023CompanyServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n7google/cloud/talent_v4beta1/proto/company_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a/google/cloud/talent_v4beta1/proto/company.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x87\x01\n\x14\x43reateCompanyRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Company\x12:\n\x07\x63ompany\x18\x02 \x01(\x0b\x32$.google.cloud.talent.v4beta1.CompanyB\x03\xe0\x41\x02"F\n\x11GetCompanyRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Company"\x83\x01\n\x14UpdateCompanyRequest\x12:\n\x07\x63ompany\x18\x01 \x01(\x0b\x32$.google.cloud.talent.v4beta1.CompanyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"I\n\x14\x44\x65leteCompanyRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Company"\x8d\x01\n\x14ListCompaniesRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Company\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x19\n\x11require_open_jobs\x18\x04 \x01(\x08"\xaa\x01\n\x15ListCompaniesResponse\x12\x37\n\tcompanies\x18\x01 \x03(\x0b\x32$.google.cloud.talent.v4beta1.Company\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata2\xd2\t\n\x0e\x43ompanyService\x12\xe3\x01\n\rCreateCompany\x12\x31.google.cloud.talent.v4beta1.CreateCompanyRequest\x1a$.google.cloud.talent.v4beta1.Company"y\x82\xd3\xe4\x93\x02\x62"0/v4beta1/{parent=projects/*/tenants/*}/companies:\x01*Z+"&/v4beta1/{parent=projects/*}/companies:\x01*\xda\x41\x0eparent,company\x12\xcd\x01\n\nGetCompany\x12..google.cloud.talent.v4beta1.GetCompanyRequest\x1a$.google.cloud.talent.v4beta1.Company"i\x82\xd3\xe4\x93\x02\\\x12\x30/v4beta1/{name=projects/*/tenants/*/companies/*}Z(\x12&/v4beta1/{name=projects/*/companies/*}\xda\x41\x04name\x12\xed\x01\n\rUpdateCompany\x12\x31.google.cloud.talent.v4beta1.UpdateCompanyRequest\x1a$.google.cloud.talent.v4beta1.Company"\x82\x01\x82\xd3\xe4\x93\x02r28/v4beta1/{company.name=projects/*/tenants/*/companies/*}:\x01*Z32./v4beta1/{company.name=projects/*/companies/*}:\x01*\xda\x41\x07\x63ompany\x12\xc5\x01\n\rDeleteCompany\x12\x31.google.cloud.talent.v4beta1.DeleteCompanyRequest\x1a\x16.google.protobuf.Empty"i\x82\xd3\xe4\x93\x02\\*0/v4beta1/{name=projects/*/tenants/*/companies/*}Z(*&/v4beta1/{name=projects/*/companies/*}\xda\x41\x04name\x12\xe3\x01\n\rListCompanies\x12\x31.google.cloud.talent.v4beta1.ListCompaniesRequest\x1a\x32.google.cloud.talent.v4beta1.ListCompaniesResponse"k\x82\xd3\xe4\x93\x02\\\x12\x30/v4beta1/{parent=projects/*/tenants/*}/companiesZ(\x12&/v4beta1/{parent=projects/*}/companies\xda\x41\x06parent\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB\x81\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x13\x43ompanyServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\023CompanyServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n7google/cloud/talent_v4beta1/proto/company_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a/google/cloud/talent_v4beta1/proto/company.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x87\x01\n\x14\x43reateCompanyRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Company\x12:\n\x07\x63ompany\x18\x02 \x01(\x0b\x32$.google.cloud.talent.v4beta1.CompanyB\x03\xe0\x41\x02"F\n\x11GetCompanyRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Company"\x83\x01\n\x14UpdateCompanyRequest\x12:\n\x07\x63ompany\x18\x01 \x01(\x0b\x32$.google.cloud.talent.v4beta1.CompanyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"I\n\x14\x44\x65leteCompanyRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Company"\x8d\x01\n\x14ListCompaniesRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Company\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x19\n\x11require_open_jobs\x18\x04 \x01(\x08"\xaa\x01\n\x15ListCompaniesResponse\x12\x37\n\tcompanies\x18\x01 \x03(\x0b\x32$.google.cloud.talent.v4beta1.Company\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata2\xd2\t\n\x0e\x43ompanyService\x12\xe3\x01\n\rCreateCompany\x12\x31.google.cloud.talent.v4beta1.CreateCompanyRequest\x1a$.google.cloud.talent.v4beta1.Company"y\x82\xd3\xe4\x93\x02\x62"0/v4beta1/{parent=projects/*/tenants/*}/companies:\x01*Z+"&/v4beta1/{parent=projects/*}/companies:\x01*\xda\x41\x0eparent,company\x12\xcd\x01\n\nGetCompany\x12..google.cloud.talent.v4beta1.GetCompanyRequest\x1a$.google.cloud.talent.v4beta1.Company"i\x82\xd3\xe4\x93\x02\\\x12\x30/v4beta1/{name=projects/*/tenants/*/companies/*}Z(\x12&/v4beta1/{name=projects/*/companies/*}\xda\x41\x04name\x12\xed\x01\n\rUpdateCompany\x12\x31.google.cloud.talent.v4beta1.UpdateCompanyRequest\x1a$.google.cloud.talent.v4beta1.Company"\x82\x01\x82\xd3\xe4\x93\x02r28/v4beta1/{company.name=projects/*/tenants/*/companies/*}:\x01*Z32./v4beta1/{company.name=projects/*/companies/*}:\x01*\xda\x41\x07\x63ompany\x12\xc5\x01\n\rDeleteCompany\x12\x31.google.cloud.talent.v4beta1.DeleteCompanyRequest\x1a\x16.google.protobuf.Empty"i\x82\xd3\xe4\x93\x02\\*0/v4beta1/{name=projects/*/tenants/*/companies/*}Z(*&/v4beta1/{name=projects/*/companies/*}\xda\x41\x04name\x12\xe3\x01\n\rListCompanies\x12\x31.google.cloud.talent.v4beta1.ListCompaniesRequest\x1a\x32.google.cloud.talent.v4beta1.ListCompaniesResponse"k\x82\xd3\xe4\x93\x02\\\x12\x30/v4beta1/{parent=projects/*/tenants/*}/companiesZ(\x12&/v4beta1/{parent=projects/*}/companies\xda\x41\x06parent\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB\x81\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x13\x43ompanyServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -58,6 +52,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -68,16 +63,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\035\022\033jobs.googleapis.com/Company" - ), + serialized_options=b"\340A\002\372A\035\022\033jobs.googleapis.com/Company", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="company", @@ -94,8 +88,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=[], @@ -117,6 +112,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -127,17 +123,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\035\n\033jobs.googleapis.com/Company" - ), + serialized_options=b"\340A\002\372A\035\n\033jobs.googleapis.com/Company", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -158,6 +153,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="company", @@ -174,8 +170,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", @@ -194,6 +191,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -215,6 +213,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -225,17 +224,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\035\n\033jobs.googleapis.com/Company" - ), + serialized_options=b"\340A\002\372A\035\n\033jobs.googleapis.com/Company", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -256,6 +254,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -266,16 +265,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\035\022\033jobs.googleapis.com/Company" - ), + serialized_options=b"\340A\002\372A\035\022\033jobs.googleapis.com/Company", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -286,7 +284,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, @@ -294,6 +292,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -312,6 +311,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="require_open_jobs", @@ -330,6 +330,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -351,6 +352,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="companies", @@ -369,6 +371,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -379,7 +382,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, @@ -387,6 +390,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="metadata", @@ -405,6 +409,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -453,107 +458,112 @@ CreateCompanyRequest = _reflection.GeneratedProtocolMessageType( "CreateCompanyRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATECOMPANYREQUEST, - __module__="google.cloud.talent_v4beta1.proto.company_service_pb2", - __doc__="""The Request of the CreateCompany method. + { + "DESCRIPTOR": _CREATECOMPANYREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.company_service_pb2", + "__doc__": """The Request of the CreateCompany method. + Attributes: parent: Required. Resource name of the tenant under which the company is created. The format is - "projects/{project\_id}/tenants/{tenant\_id}", for example, - "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created, for example, "projects/foo". + “projects/{project_id}/tenants/{tenant_id}”, for example, + “projects/foo/tenant/bar”. If tenant id is unspecified, a + default tenant is created, for example, “projects/foo”. company: Required. The company to be created. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateCompanyRequest) - ), + }, ) _sym_db.RegisterMessage(CreateCompanyRequest) GetCompanyRequest = _reflection.GeneratedProtocolMessageType( "GetCompanyRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETCOMPANYREQUEST, - __module__="google.cloud.talent_v4beta1.proto.company_service_pb2", - __doc__="""Request for getting a company by name. + { + "DESCRIPTOR": _GETCOMPANYREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.company_service_pb2", + "__doc__": """Request for getting a company by name. + Attributes: name: Required. The resource name of the company to be retrieved. - The format is "projects/{project\_id}/tenants/{tenant\_id}/com - panies/{company\_id}", for example, "projects/api-test- - project/tenants/foo/companies/bar". If tenant id is + The format is “projects/{project_id}/tenants/{tenant_id}/compa + nies/{company_id}”, for example, “projects/api-test- + project/tenants/foo/companies/bar”. If tenant id is unspecified, the default tenant is used, for example, - "projects/api-test-project/companies/bar". + “projects/api-test-project/companies/bar”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetCompanyRequest) - ), + }, ) _sym_db.RegisterMessage(GetCompanyRequest) UpdateCompanyRequest = _reflection.GeneratedProtocolMessageType( "UpdateCompanyRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATECOMPANYREQUEST, - __module__="google.cloud.talent_v4beta1.proto.company_service_pb2", - __doc__="""Request for updating a specified company. + { + "DESCRIPTOR": _UPDATECOMPANYREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.company_service_pb2", + "__doc__": """Request for updating a specified company. + Attributes: company: Required. The company resource to replace the current resource in the system. update_mask: Strongly recommended for the best service experience. If [upd - ate\_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.up - date\_mask] is provided, only the specified fields in [company - ][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] - are updated. Otherwise all the fields are updated. A field - mask to specify the company fields to be updated. Only top - level fields of [Company][google.cloud.talent.v4beta1.Company] - are supported. + ate_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.upd + ate_mask] is provided, only the specified fields in [company][ + google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are + updated. Otherwise all the fields are updated. A field mask + to specify the company fields to be updated. Only top level + fields of [Company][google.cloud.talent.v4beta1.Company] are + supported. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateCompanyRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateCompanyRequest) DeleteCompanyRequest = _reflection.GeneratedProtocolMessageType( "DeleteCompanyRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETECOMPANYREQUEST, - __module__="google.cloud.talent_v4beta1.proto.company_service_pb2", - __doc__="""Request to delete a company. + { + "DESCRIPTOR": _DELETECOMPANYREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.company_service_pb2", + "__doc__": """Request to delete a company. + Attributes: name: Required. The resource name of the company to be deleted. The - format is "projects/{project\_id}/tenants/{tenant\_id}/compani - es/{company\_id}", for example, - "projects/foo/tenants/bar/companies/baz". If tenant id is + format is “projects/{project_id}/tenants/{tenant_id}/companies + /{company_id}”, for example, + “projects/foo/tenants/bar/companies/baz”. If tenant id is unspecified, the default tenant is used, for example, - "projects/foo/companies/bar". + “projects/foo/companies/bar”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteCompanyRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteCompanyRequest) ListCompaniesRequest = _reflection.GeneratedProtocolMessageType( "ListCompaniesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTCOMPANIESREQUEST, - __module__="google.cloud.talent_v4beta1.proto.company_service_pb2", - __doc__="""List companies for which the client has ACL visibility. + { + "DESCRIPTOR": _LISTCOMPANIESREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.company_service_pb2", + "__doc__": """List companies for which the client has ACL visibility. + Attributes: parent: Required. Resource name of the tenant under which the company is created. The format is - "projects/{project\_id}/tenants/{tenant\_id}", for example, - "projects/foo/tenant/bar". If tenant id is unspecified, the - default tenant will be used, for example, "projects/foo". + “projects/{project_id}/tenants/{tenant_id}”, for example, + “projects/foo/tenant/bar”. If tenant id is unspecified, the + default tenant will be used, for example, “projects/foo”. page_token: The starting indicator from which to return results. page_size: @@ -561,23 +571,24 @@ Default is 100 if a non-positive number is provided. require_open_jobs: Set to true if the companies requested must have open jobs. - Defaults to false. If true, at most [page\_size][google.cloud - .talent.v4beta1.ListCompaniesRequest.page\_size] of companies + Defaults to false. If true, at most [page_size][google.cloud. + talent.v4beta1.ListCompaniesRequest.page_size] of companies are fetched, among which only those with open jobs are returned. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListCompaniesRequest) - ), + }, ) _sym_db.RegisterMessage(ListCompaniesRequest) ListCompaniesResponse = _reflection.GeneratedProtocolMessageType( "ListCompaniesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTCOMPANIESRESPONSE, - __module__="google.cloud.talent_v4beta1.proto.company_service_pb2", - __doc__="""The List companies response object. + { + "DESCRIPTOR": _LISTCOMPANIESRESPONSE, + "__module__": "google.cloud.talent_v4beta1.proto.company_service_pb2", + "__doc__": """The List companies response object. + Attributes: companies: Companies for the current client. @@ -588,7 +599,7 @@ request tracking id. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListCompaniesResponse) - ), + }, ) _sym_db.RegisterMessage(ListCompaniesResponse) @@ -606,9 +617,8 @@ full_name="google.cloud.talent.v4beta1.CompanyService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs" - ), + serialized_options=b"\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs", + create_key=_descriptor._internal_create_key, serialized_start=1100, serialized_end=2334, methods=[ @@ -619,9 +629,8 @@ containing_service=None, input_type=_CREATECOMPANYREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_company__pb2._COMPANY, - serialized_options=_b( - '\202\323\344\223\002b"0/v4beta1/{parent=projects/*/tenants/*}/companies:\001*Z+"&/v4beta1/{parent=projects/*}/companies:\001*\332A\016parent,company' - ), + serialized_options=b'\202\323\344\223\002b"0/v4beta1/{parent=projects/*/tenants/*}/companies:\001*Z+"&/v4beta1/{parent=projects/*}/companies:\001*\332A\016parent,company', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetCompany", @@ -630,9 +639,8 @@ containing_service=None, input_type=_GETCOMPANYREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_company__pb2._COMPANY, - serialized_options=_b( - "\202\323\344\223\002\\\0220/v4beta1/{name=projects/*/tenants/*/companies/*}Z(\022&/v4beta1/{name=projects/*/companies/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002\\\0220/v4beta1/{name=projects/*/tenants/*/companies/*}Z(\022&/v4beta1/{name=projects/*/companies/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateCompany", @@ -641,9 +649,8 @@ containing_service=None, input_type=_UPDATECOMPANYREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_company__pb2._COMPANY, - serialized_options=_b( - "\202\323\344\223\002r28/v4beta1/{company.name=projects/*/tenants/*/companies/*}:\001*Z32./v4beta1/{company.name=projects/*/companies/*}:\001*\332A\007company" - ), + serialized_options=b"\202\323\344\223\002r28/v4beta1/{company.name=projects/*/tenants/*/companies/*}:\001*Z32./v4beta1/{company.name=projects/*/companies/*}:\001*\332A\007company", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteCompany", @@ -652,9 +659,8 @@ containing_service=None, input_type=_DELETECOMPANYREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002\\*0/v4beta1/{name=projects/*/tenants/*/companies/*}Z(*&/v4beta1/{name=projects/*/companies/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002\\*0/v4beta1/{name=projects/*/tenants/*/companies/*}Z(*&/v4beta1/{name=projects/*/companies/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListCompanies", @@ -663,9 +669,8 @@ containing_service=None, input_type=_LISTCOMPANIESREQUEST, output_type=_LISTCOMPANIESRESPONSE, - serialized_options=_b( - "\202\323\344\223\002\\\0220/v4beta1/{parent=projects/*/tenants/*}/companiesZ(\022&/v4beta1/{parent=projects/*}/companies\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002\\\0220/v4beta1/{parent=projects/*/tenants/*}/companiesZ(\022&/v4beta1/{parent=projects/*}/companies\332A\006parent", + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/talent_v4beta1/proto/company_service_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/company_service_pb2_grpc.py index eac13229..b733bff2 100644 --- a/google/cloud/talent_v4beta1/proto/company_service_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/company_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.talent_v4beta1.proto import ( @@ -12,14 +13,14 @@ class CompanyServiceStub(object): """A service that handles company management, including CRUD and enumeration. - """ + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.CreateCompany = channel.unary_unary( "/google.cloud.talent.v4beta1.CompanyService/CreateCompany", request_serializer=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_company__service__pb2.CreateCompanyRequest.SerializeToString, @@ -49,40 +50,40 @@ def __init__(self, channel): class CompanyServiceServicer(object): """A service that handles company management, including CRUD and enumeration. - """ + """ def CreateCompany(self, request, context): """Creates a new company entity. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetCompany(self, request, context): """Retrieves specified company. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def UpdateCompany(self, request, context): """Updates specified company. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def DeleteCompany(self, request, context): """Deletes specified company. - Prerequisite: The company has no jobs associated with it. - """ + Prerequisite: The company has no jobs associated with it. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListCompanies(self, request, context): """Lists all companies associated with the project. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -120,3 +121,144 @@ def add_CompanyServiceServicer_to_server(servicer, server): "google.cloud.talent.v4beta1.CompanyService", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class CompanyService(object): + """A service that handles company management, including CRUD and enumeration. + """ + + @staticmethod + def CreateCompany( + 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.talent.v4beta1.CompanyService/CreateCompany", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_company__service__pb2.CreateCompanyRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_company__pb2.Company.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetCompany( + 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.talent.v4beta1.CompanyService/GetCompany", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_company__service__pb2.GetCompanyRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_company__pb2.Company.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateCompany( + 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.talent.v4beta1.CompanyService/UpdateCompany", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_company__service__pb2.UpdateCompanyRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_company__pb2.Company.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteCompany( + 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.talent.v4beta1.CompanyService/DeleteCompany", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_company__service__pb2.DeleteCompanyRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListCompanies( + 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.talent.v4beta1.CompanyService/ListCompanies", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_company__service__pb2.ListCompaniesRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_company__service__pb2.ListCompaniesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/talent_v4beta1/proto/completion_service_pb2.py b/google/cloud/talent_v4beta1/proto/completion_service_pb2.py index 7d9d97e1..098a6643 100644 --- a/google/cloud/talent_v4beta1/proto/completion_service_pb2.py +++ b/google/cloud/talent_v4beta1/proto/completion_service_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/completion_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 @@ -28,12 +25,9 @@ name="google/cloud/talent_v4beta1/proto/completion_service.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\026CompletionServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n:google/cloud/talent_v4beta1/proto/completion_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x17google/api/client.proto"\x93\x04\n\x14\x43ompleteQueryRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Company\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\x0elanguage_codes\x18\x03 \x03(\t\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x02\x12\x31\n\x07\x63ompany\x18\x05 \x01(\tB \xfa\x41\x1d\n\x1bjobs.googleapis.com/Company\x12P\n\x05scope\x18\x06 \x01(\x0e\x32\x41.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope\x12N\n\x04type\x18\x07 \x01(\x0e\x32@.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType"K\n\x0f\x43ompletionScope\x12 \n\x1c\x43OMPLETION_SCOPE_UNSPECIFIED\x10\x00\x12\n\n\x06TENANT\x10\x01\x12\n\n\x06PUBLIC\x10\x02"`\n\x0e\x43ompletionType\x12\x1f\n\x1b\x43OMPLETION_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tJOB_TITLE\x10\x01\x12\x10\n\x0c\x43OMPANY_NAME\x10\x02\x12\x0c\n\x08\x43OMBINED\x10\x03"\xc5\x02\n\x15\x43ompleteQueryResponse\x12_\n\x12\x63ompletion_results\x18\x01 \x03(\x0b\x32\x43.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult\x12?\n\x08metadata\x18\x02 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata\x1a\x89\x01\n\x10\x43ompletionResult\x12\x12\n\nsuggestion\x18\x01 \x01(\t\x12N\n\x04type\x18\x02 \x01(\x0e\x32@.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType\x12\x11\n\timage_uri\x18\x03 \x01(\t2\xd5\x02\n\nCompletion\x12\xd8\x01\n\rCompleteQuery\x12\x31.google.cloud.talent.v4beta1.CompleteQueryRequest\x1a\x32.google.cloud.talent.v4beta1.CompleteQueryResponse"`\x82\xd3\xe4\x93\x02Z\x12//v4beta1/{parent=projects/*/tenants/*}:completeZ\'\x12%/v4beta1/{parent=projects/*}:complete\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB\x84\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x16\x43ompletionServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\026CompletionServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n:google/cloud/talent_v4beta1/proto/completion_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x17google/api/client.proto"\x93\x04\n\x14\x43ompleteQueryRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Company\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\x0elanguage_codes\x18\x03 \x03(\t\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x02\x12\x31\n\x07\x63ompany\x18\x05 \x01(\tB \xfa\x41\x1d\n\x1bjobs.googleapis.com/Company\x12P\n\x05scope\x18\x06 \x01(\x0e\x32\x41.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope\x12N\n\x04type\x18\x07 \x01(\x0e\x32@.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType"K\n\x0f\x43ompletionScope\x12 \n\x1c\x43OMPLETION_SCOPE_UNSPECIFIED\x10\x00\x12\n\n\x06TENANT\x10\x01\x12\n\n\x06PUBLIC\x10\x02"`\n\x0e\x43ompletionType\x12\x1f\n\x1b\x43OMPLETION_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tJOB_TITLE\x10\x01\x12\x10\n\x0c\x43OMPANY_NAME\x10\x02\x12\x0c\n\x08\x43OMBINED\x10\x03"\xc5\x02\n\x15\x43ompleteQueryResponse\x12_\n\x12\x63ompletion_results\x18\x01 \x03(\x0b\x32\x43.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult\x12?\n\x08metadata\x18\x02 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata\x1a\x89\x01\n\x10\x43ompletionResult\x12\x12\n\nsuggestion\x18\x01 \x01(\t\x12N\n\x04type\x18\x02 \x01(\x0e\x32@.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType\x12\x11\n\timage_uri\x18\x03 \x01(\t2\xd5\x02\n\nCompletion\x12\xd8\x01\n\rCompleteQuery\x12\x31.google.cloud.talent.v4beta1.CompleteQueryRequest\x1a\x32.google.cloud.talent.v4beta1.CompleteQueryResponse"`\x82\xd3\xe4\x93\x02Z\x12//v4beta1/{parent=projects/*/tenants/*}:completeZ\'\x12%/v4beta1/{parent=projects/*}:complete\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB\x84\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x16\x43ompletionServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, @@ -49,6 +43,7 @@ full_name="google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="COMPLETION_SCOPE_UNSPECIFIED", @@ -56,12 +51,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TENANT", index=1, number=1, serialized_options=None, type=None + name="TENANT", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PUBLIC", index=2, number=2, serialized_options=None, type=None + name="PUBLIC", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -76,6 +82,7 @@ full_name="google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="COMPLETION_TYPE_UNSPECIFIED", @@ -83,15 +90,31 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="JOB_TITLE", index=1, number=1, serialized_options=None, type=None + name="JOB_TITLE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="COMPANY_NAME", index=2, number=2, serialized_options=None, type=None + name="COMPANY_NAME", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="COMBINED", index=3, number=3, serialized_options=None, type=None + name="COMBINED", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -108,6 +131,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -118,16 +142,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\035\022\033jobs.googleapis.com/Company" - ), + serialized_options=b"\340A\002\372A\035\022\033jobs.googleapis.com/Company", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="query", @@ -138,14 +161,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="language_codes", @@ -164,6 +188,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -180,8 +205,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="company", @@ -192,14 +218,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("\372A\035\n\033jobs.googleapis.com/Company"), + serialized_options=b"\372A\035\n\033jobs.googleapis.com/Company", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="scope", @@ -218,6 +245,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="type", @@ -236,6 +264,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -260,6 +289,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="suggestion", @@ -270,7 +300,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, @@ -278,6 +308,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="type", @@ -296,6 +327,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image_uri", @@ -306,7 +338,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, @@ -314,6 +346,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -334,6 +367,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="completion_results", @@ -352,6 +386,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="metadata", @@ -370,10 +405,11 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_COMPLETEQUERYRESPONSE_COMPLETIONRESULT], + nested_types=[_COMPLETEQUERYRESPONSE_COMPLETIONRESULT,], enum_types=[], serialized_options=None, is_extendable=False, @@ -411,23 +447,24 @@ CompleteQueryRequest = _reflection.GeneratedProtocolMessageType( "CompleteQueryRequest", (_message.Message,), - dict( - DESCRIPTOR=_COMPLETEQUERYREQUEST, - __module__="google.cloud.talent_v4beta1.proto.completion_service_pb2", - __doc__="""Auto-complete parameters. + { + "DESCRIPTOR": _COMPLETEQUERYREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.completion_service_pb2", + "__doc__": """Auto-complete parameters. + Attributes: parent: Required. Resource name of tenant the completion is performed within. The format is - "projects/{project\_id}/tenants/{tenant\_id}", for example, - "projects/foo/tenant/bar". If tenant id is unspecified, the - default tenant is used, for example, "projects/foo". + “projects/{project_id}/tenants/{tenant_id}”, for example, + “projects/foo/tenant/bar”. If tenant id is unspecified, the + default tenant is used, for example, “projects/foo”. query: Required. The query used to generate suggestions. The maximum number of allowed characters is 255. language_codes: The list of languages of the query. This is the BCP-47 - language code, such as "en-US" or "sr-Latn". For more + language code, such as “en-US” or “sr-Latn”. For more information, see `Tags for Identifying Languages `__. The maximum number of allowed characters is 255. @@ -436,11 +473,11 @@ size is 10. company: If provided, restricts completion to specified company. The - format is "projects/{project\_id}/tenants/{tenant\_id}/compani - es/{company\_id}", for example, - "projects/foo/tenants/bar/companies/baz". If tenant id is + format is “projects/{project_id}/tenants/{tenant_id}/companies + /{company_id}”, for example, + “projects/foo/tenants/bar/companies/baz”. If tenant id is unspecified, the default tenant is used, for example, - "projects/foo". + “projects/foo”. scope: The scope of the completion. The defaults is [CompletionScope. PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.Compl @@ -451,37 +488,39 @@ pe.COMBINED]. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryRequest) - ), + }, ) _sym_db.RegisterMessage(CompleteQueryRequest) CompleteQueryResponse = _reflection.GeneratedProtocolMessageType( "CompleteQueryResponse", (_message.Message,), - dict( - CompletionResult=_reflection.GeneratedProtocolMessageType( + { + "CompletionResult": _reflection.GeneratedProtocolMessageType( "CompletionResult", (_message.Message,), - dict( - DESCRIPTOR=_COMPLETEQUERYRESPONSE_COMPLETIONRESULT, - __module__="google.cloud.talent_v4beta1.proto.completion_service_pb2", - __doc__="""Resource that represents completion results. + { + "DESCRIPTOR": _COMPLETEQUERYRESPONSE_COMPLETIONRESULT, + "__module__": "google.cloud.talent_v4beta1.proto.completion_service_pb2", + "__doc__": """Resource that represents completion results. + Attributes: suggestion: The suggestion for the query. type: The completion topic. image_uri: - The URI of the company image for [COMPANY\_NAME][google.cloud. - talent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY\_NA - ME]. + The URI of the company image for [COMPANY_NAME][google.cloud.t + alent.v4beta1.CompleteQueryRequest.CompletionType.COMPANY_NAME + ]. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult) - ), + }, ), - DESCRIPTOR=_COMPLETEQUERYRESPONSE, - __module__="google.cloud.talent_v4beta1.proto.completion_service_pb2", - __doc__="""Response of auto-complete query. + "DESCRIPTOR": _COMPLETEQUERYRESPONSE, + "__module__": "google.cloud.talent_v4beta1.proto.completion_service_pb2", + "__doc__": """Response of auto-complete query. + Attributes: completion_results: Results of the matching job/company candidates. @@ -490,7 +529,7 @@ request tracking id. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompleteQueryResponse) - ), + }, ) _sym_db.RegisterMessage(CompleteQueryResponse) _sym_db.RegisterMessage(CompleteQueryResponse.CompletionResult) @@ -507,9 +546,8 @@ full_name="google.cloud.talent.v4beta1.Completion", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs" - ), + serialized_options=b"\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs", + create_key=_descriptor._internal_create_key, serialized_start=1117, serialized_end=1458, methods=[ @@ -520,10 +558,9 @@ containing_service=None, input_type=_COMPLETEQUERYREQUEST, output_type=_COMPLETEQUERYRESPONSE, - serialized_options=_b( - "\202\323\344\223\002Z\022//v4beta1/{parent=projects/*/tenants/*}:completeZ'\022%/v4beta1/{parent=projects/*}:complete" - ), - ) + serialized_options=b"\202\323\344\223\002Z\022//v4beta1/{parent=projects/*/tenants/*}:completeZ'\022%/v4beta1/{parent=projects/*}:complete", + create_key=_descriptor._internal_create_key, + ), ], ) _sym_db.RegisterServiceDescriptor(_COMPLETION) diff --git a/google/cloud/talent_v4beta1/proto/completion_service_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/completion_service_pb2_grpc.py index 84cb66db..779c5b42 100644 --- a/google/cloud/talent_v4beta1/proto/completion_service_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/completion_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.talent_v4beta1.proto import ( @@ -8,14 +9,14 @@ class CompletionStub(object): """A service handles auto completion. - """ + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.CompleteQuery = channel.unary_unary( "/google.cloud.talent.v4beta1.Completion/CompleteQuery", request_serializer=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_completion__service__pb2.CompleteQueryRequest.SerializeToString, @@ -25,12 +26,12 @@ def __init__(self, channel): class CompletionServicer(object): """A service handles auto completion. - """ + """ def CompleteQuery(self, request, context): """Completes the specified prefix with keyword suggestions. - Intended for use by a job search auto-complete search box. - """ + Intended for use by a job search auto-complete search box. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -42,9 +43,42 @@ def add_CompletionServicer_to_server(servicer, server): servicer.CompleteQuery, request_deserializer=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_completion__service__pb2.CompleteQueryRequest.FromString, response_serializer=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_completion__service__pb2.CompleteQueryResponse.SerializeToString, - ) + ), } generic_handler = grpc.method_handlers_generic_handler( "google.cloud.talent.v4beta1.Completion", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class Completion(object): + """A service handles auto completion. + """ + + @staticmethod + def CompleteQuery( + 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.talent.v4beta1.Completion/CompleteQuery", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_completion__service__pb2.CompleteQueryRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_completion__service__pb2.CompleteQueryResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/talent_v4beta1/proto/event_pb2.py b/google/cloud/talent_v4beta1/proto/event_pb2.py index 8bdbe209..cb5c90c7 100644 --- a/google/cloud/talent_v4beta1/proto/event_pb2.py +++ b/google/cloud/talent_v4beta1/proto/event_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/event.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/talent_v4beta1/proto/event.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\nEventProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n-google/cloud/talent_v4beta1/proto/event.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/api/annotations.proto"\x8c\x02\n\x0b\x43lientEvent\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x15\n\x08\x65vent_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12:\n\tjob_event\x18\x05 \x01(\x0b\x32%.google.cloud.talent.v4beta1.JobEventH\x00\x12\x42\n\rprofile_event\x18\x06 \x01(\x0b\x32).google.cloud.talent.v4beta1.ProfileEventH\x00\x12\x13\n\x0b\x65vent_notes\x18\t \x01(\tB\x07\n\x05\x65vent"\xf6\x03\n\x08JobEvent\x12\x45\n\x04type\x18\x01 \x01(\x0e\x32\x32.google.cloud.talent.v4beta1.JobEvent.JobEventTypeB\x03\xe0\x41\x02\x12\x11\n\x04jobs\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x0f\n\x07profile\x18\x03 \x01(\t"\xfe\x02\n\x0cJobEventType\x12\x1e\n\x1aJOB_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nIMPRESSION\x10\x01\x12\x08\n\x04VIEW\x10\x02\x12\x11\n\rVIEW_REDIRECT\x10\x03\x12\x15\n\x11\x41PPLICATION_START\x10\x04\x12\x16\n\x12\x41PPLICATION_FINISH\x10\x05\x12 \n\x1c\x41PPLICATION_QUICK_SUBMISSION\x10\x06\x12\x18\n\x14\x41PPLICATION_REDIRECT\x10\x07\x12!\n\x1d\x41PPLICATION_START_FROM_SEARCH\x10\x08\x12$\n APPLICATION_REDIRECT_FROM_SEARCH\x10\t\x12\x1e\n\x1a\x41PPLICATION_COMPANY_SUBMIT\x10\n\x12\x0c\n\x08\x42OOKMARK\x10\x0b\x12\x10\n\x0cNOTIFICATION\x10\x0c\x12\t\n\x05HIRED\x10\r\x12\x0b\n\x07SENT_CV\x10\x0e\x12\x15\n\x11INTERVIEW_GRANTED\x10\x0f"\xe2\x01\n\x0cProfileEvent\x12M\n\x04type\x18\x01 \x01(\x0e\x32:.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventTypeB\x03\xe0\x41\x02\x12\x15\n\x08profiles\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x0c\n\x04jobs\x18\x06 \x03(\t"^\n\x10ProfileEventType\x12"\n\x1ePROFILE_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nIMPRESSION\x10\x01\x12\x08\n\x04VIEW\x10\x02\x12\x0c\n\x08\x42OOKMARK\x10\x03\x42x\n\x1f\x63om.google.cloud.talent.v4beta1B\nEventProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\nEventProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n-google/cloud/talent_v4beta1/proto/event.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/api/annotations.proto"\x8c\x02\n\x0b\x43lientEvent\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x15\n\x08\x65vent_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12:\n\tjob_event\x18\x05 \x01(\x0b\x32%.google.cloud.talent.v4beta1.JobEventH\x00\x12\x42\n\rprofile_event\x18\x06 \x01(\x0b\x32).google.cloud.talent.v4beta1.ProfileEventH\x00\x12\x13\n\x0b\x65vent_notes\x18\t \x01(\tB\x07\n\x05\x65vent"\xf6\x03\n\x08JobEvent\x12\x45\n\x04type\x18\x01 \x01(\x0e\x32\x32.google.cloud.talent.v4beta1.JobEvent.JobEventTypeB\x03\xe0\x41\x02\x12\x11\n\x04jobs\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x0f\n\x07profile\x18\x03 \x01(\t"\xfe\x02\n\x0cJobEventType\x12\x1e\n\x1aJOB_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nIMPRESSION\x10\x01\x12\x08\n\x04VIEW\x10\x02\x12\x11\n\rVIEW_REDIRECT\x10\x03\x12\x15\n\x11\x41PPLICATION_START\x10\x04\x12\x16\n\x12\x41PPLICATION_FINISH\x10\x05\x12 \n\x1c\x41PPLICATION_QUICK_SUBMISSION\x10\x06\x12\x18\n\x14\x41PPLICATION_REDIRECT\x10\x07\x12!\n\x1d\x41PPLICATION_START_FROM_SEARCH\x10\x08\x12$\n APPLICATION_REDIRECT_FROM_SEARCH\x10\t\x12\x1e\n\x1a\x41PPLICATION_COMPANY_SUBMIT\x10\n\x12\x0c\n\x08\x42OOKMARK\x10\x0b\x12\x10\n\x0cNOTIFICATION\x10\x0c\x12\t\n\x05HIRED\x10\r\x12\x0b\n\x07SENT_CV\x10\x0e\x12\x15\n\x11INTERVIEW_GRANTED\x10\x0f"\xe2\x01\n\x0cProfileEvent\x12M\n\x04type\x18\x01 \x01(\x0e\x32:.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventTypeB\x03\xe0\x41\x02\x12\x15\n\x08profiles\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x0c\n\x04jobs\x18\x06 \x03(\t"^\n\x10ProfileEventType\x12"\n\x1ePROFILE_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nIMPRESSION\x10\x01\x12\x08\n\x04VIEW\x10\x02\x12\x0c\n\x08\x42OOKMARK\x10\x03\x42x\n\x1f\x63om.google.cloud.talent.v4beta1B\nEventProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, @@ -43,6 +37,7 @@ full_name="google.cloud.talent.v4beta1.JobEvent.JobEventType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="JOB_EVENT_TYPE_UNSPECIFIED", @@ -50,15 +45,31 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IMPRESSION", index=1, number=1, serialized_options=None, type=None + name="IMPRESSION", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VIEW", index=2, number=2, serialized_options=None, type=None + name="VIEW", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VIEW_REDIRECT", index=3, number=3, serialized_options=None, type=None + name="VIEW_REDIRECT", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="APPLICATION_START", @@ -66,6 +77,7 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="APPLICATION_FINISH", @@ -73,6 +85,7 @@ number=5, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="APPLICATION_QUICK_SUBMISSION", @@ -80,6 +93,7 @@ number=6, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="APPLICATION_REDIRECT", @@ -87,6 +101,7 @@ number=7, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="APPLICATION_START_FROM_SEARCH", @@ -94,6 +109,7 @@ number=8, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="APPLICATION_REDIRECT_FROM_SEARCH", @@ -101,6 +117,7 @@ number=9, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="APPLICATION_COMPANY_SUBMIT", @@ -108,18 +125,39 @@ number=10, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BOOKMARK", index=11, number=11, serialized_options=None, type=None + name="BOOKMARK", + index=11, + number=11, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NOTIFICATION", index=12, number=12, serialized_options=None, type=None + name="NOTIFICATION", + index=12, + number=12, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="HIRED", index=13, number=13, serialized_options=None, type=None + name="HIRED", + index=13, + number=13, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SENT_CV", index=14, number=14, serialized_options=None, type=None + name="SENT_CV", + index=14, + number=14, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="INTERVIEW_GRANTED", @@ -127,6 +165,7 @@ number=15, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -141,6 +180,7 @@ full_name="google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="PROFILE_EVENT_TYPE_UNSPECIFIED", @@ -148,15 +188,31 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IMPRESSION", index=1, number=1, serialized_options=None, type=None + name="IMPRESSION", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VIEW", index=2, number=2, serialized_options=None, type=None + name="VIEW", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BOOKMARK", index=3, number=3, serialized_options=None, type=None + name="BOOKMARK", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -173,6 +229,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="request_id", @@ -183,7 +240,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 +248,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="event_id", @@ -201,14 +259,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="create_time", @@ -225,8 +284,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="job_event", @@ -245,6 +305,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="profile_event", @@ -263,6 +324,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="event_notes", @@ -273,7 +335,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, @@ -281,6 +343,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -296,8 +359,9 @@ full_name="google.cloud.talent.v4beta1.ClientEvent.event", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=175, serialized_end=443, @@ -310,6 +374,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -326,8 +391,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="jobs", @@ -344,8 +410,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="profile", @@ -356,7 +423,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, @@ -364,11 +431,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_JOBEVENT_JOBEVENTTYPE], + enum_types=[_JOBEVENT_JOBEVENTTYPE,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -385,6 +453,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -401,8 +470,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="profiles", @@ -419,8 +489,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="jobs", @@ -439,11 +510,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_PROFILEEVENT_PROFILEEVENTTYPE], + enum_types=[_PROFILEEVENT_PROFILEEVENTTYPE,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -482,21 +554,22 @@ ClientEvent = _reflection.GeneratedProtocolMessageType( "ClientEvent", (_message.Message,), - dict( - DESCRIPTOR=_CLIENTEVENT, - __module__="google.cloud.talent_v4beta1.proto.event_pb2", - __doc__="""An event issued when an end user interacts with the application that + { + "DESCRIPTOR": _CLIENTEVENT, + "__module__": "google.cloud.talent_v4beta1.proto.event_pb2", + "__doc__": """An event issued when an end user interacts with the application that implements Cloud Talent Solution. Providing this information improves the quality of results for the API clients, enabling the service to perform optimally. The number of events sent must be consistent with other calls, such as job searches, issued to the service by the client. + Attributes: request_id: Strongly recommended for the best service experience. A unique ID generated in the API responses. It can be found in [ - ResponseMetadata.request\_id][google.cloud.talent.v4beta1.Resp - onseMetadata.request\_id]. + ResponseMetadata.request_id][google.cloud.talent.v4beta1.Respo + nseMetadata.request_id]. event_id: Required. A unique identifier, generated by the client application. @@ -515,18 +588,19 @@ for example, feedback on why a profile was bookmarked. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ClientEvent) - ), + }, ) _sym_db.RegisterMessage(ClientEvent) JobEvent = _reflection.GeneratedProtocolMessageType( "JobEvent", (_message.Message,), - dict( - DESCRIPTOR=_JOBEVENT, - __module__="google.cloud.talent_v4beta1.proto.event_pb2", - __doc__="""An event issued when a job seeker interacts with the application that + { + "DESCRIPTOR": _JOBEVENT, + "__module__": "google.cloud.talent_v4beta1.proto.event_pb2", + "__doc__": """An event issued when a job seeker interacts with the application that implements Cloud Talent Solution. + Attributes: type: Required. The type of the event (see [JobEventType][google.clo @@ -541,45 +615,46 @@ [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this field contains the identifier of the viewed job. The format is - "projects/{project\_id}/tenants/{tenant\_id}/jobs/{job\_id}", - for example, "projects/foo/tenants/bar/jobs/baz". + “projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}”, for + example, “projects/foo/tenants/bar/jobs/baz”. profile: The [profile name][google.cloud.talent.v4beta1.Profile.name] - associated with this client event. The format is "projects/{p - roject\_id}/tenants/{tenant\_id}/profiles/{profile\_id}", for - example, "projects/foo/tenants/bar/profiles/baz". + associated with this client event. The format is “projects/{p + roject_id}/tenants/{tenant_id}/profiles/{profile_id}”, for + example, “projects/foo/tenants/bar/profiles/baz”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobEvent) - ), + }, ) _sym_db.RegisterMessage(JobEvent) ProfileEvent = _reflection.GeneratedProtocolMessageType( "ProfileEvent", (_message.Message,), - dict( - DESCRIPTOR=_PROFILEEVENT, - __module__="google.cloud.talent_v4beta1.proto.event_pb2", - __doc__="""An event issued when a profile searcher interacts with the application + { + "DESCRIPTOR": _PROFILEEVENT, + "__module__": "google.cloud.talent_v4beta1.proto.event_pb2", + "__doc__": """An event issued when a profile searcher interacts with the application that implements Cloud Talent Solution. + Attributes: type: Required. Type of event. profiles: Required. The [profile name(s)][google.cloud.talent.v4beta1.Profile.name] associated - with this client event. The format is "projects/{project\_id} - /tenants/{tenant\_id}/profiles/{profile\_id}", for example, - "projects/foo/tenants/bar/profiles/baz". + with this client event. The format is “projects/{project_id}/ + tenants/{tenant_id}/profiles/{profile_id}”, for example, + “projects/foo/tenants/bar/profiles/baz”. jobs: The [job name(s)][google.cloud.talent.v4beta1.Job.name] associated with this client event. Leave it empty if the event - isn't associated with a job. The format is - "projects/{project\_id}/tenants/{tenant\_id}/jobs/{job\_id}", - for example, "projects/foo/tenants/bar/jobs/baz". + isn’t associated with a job. The format is + “projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}”, for + example, “projects/foo/tenants/bar/jobs/baz”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ProfileEvent) - ), + }, ) _sym_db.RegisterMessage(ProfileEvent) diff --git a/google/cloud/talent_v4beta1/proto/event_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/event_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/talent_v4beta1/proto/event_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/event_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/google/cloud/talent_v4beta1/proto/event_service_pb2.py b/google/cloud/talent_v4beta1/proto/event_service_pb2.py index 673e2e33..b0c23b35 100644 --- a/google/cloud/talent_v4beta1/proto/event_service_pb2.py +++ b/google/cloud/talent_v4beta1/proto/event_service_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/event_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 @@ -28,12 +25,9 @@ name="google/cloud/talent_v4beta1/proto/event_service.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\021EventServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n5google/cloud/talent_v4beta1/proto/event_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/talent_v4beta1/proto/event.proto"\x94\x01\n\x18\x43reateClientEventRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Company\x12\x43\n\x0c\x63lient_event\x18\x02 \x01(\x0b\x32(.google.cloud.talent.v4beta1.ClientEventB\x03\xe0\x41\x02\x32\xfa\x02\n\x0c\x45ventService\x12\xfb\x01\n\x11\x43reateClientEvent\x12\x35.google.cloud.talent.v4beta1.CreateClientEventRequest\x1a(.google.cloud.talent.v4beta1.ClientEvent"\x84\x01\x82\xd3\xe4\x93\x02h"3/v4beta1/{parent=projects/*/tenants/*}/clientEvents:\x01*Z.")/v4beta1/{parent=projects/*}/clientEvents:\x01*\xda\x41\x13parent,client_event\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB\x7f\n\x1f\x63om.google.cloud.talent.v4beta1B\x11\x45ventServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\021EventServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n5google/cloud/talent_v4beta1/proto/event_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/talent_v4beta1/proto/event.proto"\x94\x01\n\x18\x43reateClientEventRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Company\x12\x43\n\x0c\x63lient_event\x18\x02 \x01(\x0b\x32(.google.cloud.talent.v4beta1.ClientEventB\x03\xe0\x41\x02\x32\xfa\x02\n\x0c\x45ventService\x12\xfb\x01\n\x11\x43reateClientEvent\x12\x35.google.cloud.talent.v4beta1.CreateClientEventRequest\x1a(.google.cloud.talent.v4beta1.ClientEvent"\x84\x01\x82\xd3\xe4\x93\x02h"3/v4beta1/{parent=projects/*/tenants/*}/clientEvents:\x01*Z.")/v4beta1/{parent=projects/*}/clientEvents:\x01*\xda\x41\x13parent,client_event\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB\x7f\n\x1f\x63om.google.cloud.talent.v4beta1B\x11\x45ventServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -50,6 +44,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -60,16 +55,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\035\022\033jobs.googleapis.com/Company" - ), + serialized_options=b"\340A\002\372A\035\022\033jobs.googleapis.com/Company", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="client_event", @@ -86,8 +80,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=[], @@ -113,23 +108,24 @@ CreateClientEventRequest = _reflection.GeneratedProtocolMessageType( "CreateClientEventRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATECLIENTEVENTREQUEST, - __module__="google.cloud.talent_v4beta1.proto.event_service_pb2", - __doc__="""The report event request. + { + "DESCRIPTOR": _CREATECLIENTEVENTREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.event_service_pb2", + "__doc__": """The report event request. + Attributes: parent: Required. Resource name of the tenant under which the event is created. The format is - "projects/{project\_id}/tenants/{tenant\_id}", for example, - "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created, for example, "projects/foo". + “projects/{project_id}/tenants/{tenant_id}”, for example, + “projects/foo/tenant/bar”. If tenant id is unspecified, a + default tenant is created, for example, “projects/foo”. client_event: Required. Events issued when end user interacts with - customer's application that uses Cloud Talent Solution. + customer’s application that uses Cloud Talent Solution. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateClientEventRequest) - ), + }, ) _sym_db.RegisterMessage(CreateClientEventRequest) @@ -143,9 +139,8 @@ full_name="google.cloud.talent.v4beta1.EventService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs" - ), + serialized_options=b"\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs", + create_key=_descriptor._internal_create_key, serialized_start=400, serialized_end=778, methods=[ @@ -156,10 +151,9 @@ containing_service=None, input_type=_CREATECLIENTEVENTREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_event__pb2._CLIENTEVENT, - serialized_options=_b( - '\202\323\344\223\002h"3/v4beta1/{parent=projects/*/tenants/*}/clientEvents:\001*Z.")/v4beta1/{parent=projects/*}/clientEvents:\001*\332A\023parent,client_event' - ), - ) + serialized_options=b'\202\323\344\223\002h"3/v4beta1/{parent=projects/*/tenants/*}/clientEvents:\001*Z.")/v4beta1/{parent=projects/*}/clientEvents:\001*\332A\023parent,client_event', + create_key=_descriptor._internal_create_key, + ), ], ) _sym_db.RegisterServiceDescriptor(_EVENTSERVICE) diff --git a/google/cloud/talent_v4beta1/proto/event_service_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/event_service_pb2_grpc.py index 542f4851..e3cb01c3 100644 --- a/google/cloud/talent_v4beta1/proto/event_service_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/event_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.talent_v4beta1.proto import ( @@ -11,14 +12,14 @@ class EventServiceStub(object): """A service handles client event report. - """ + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.CreateClientEvent = channel.unary_unary( "/google.cloud.talent.v4beta1.EventService/CreateClientEvent", request_serializer=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_event__service__pb2.CreateClientEventRequest.SerializeToString, @@ -28,17 +29,17 @@ def __init__(self, channel): class EventServiceServicer(object): """A service handles client event report. - """ + """ def CreateClientEvent(self, request, context): """Report events issued when end user interacts with customer's application - that uses Cloud Talent Solution. You may inspect the created events in - [self service - tools](https://console.cloud.google.com/talent-solution/overview). - [Learn - more](https://cloud.google.com/talent-solution/docs/management-tools) - about self service tools. - """ + that uses Cloud Talent Solution. You may inspect the created events in + [self service + tools](https://console.cloud.google.com/talent-solution/overview). + [Learn + more](https://cloud.google.com/talent-solution/docs/management-tools) + about self service tools. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -50,9 +51,42 @@ def add_EventServiceServicer_to_server(servicer, server): servicer.CreateClientEvent, request_deserializer=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_event__service__pb2.CreateClientEventRequest.FromString, response_serializer=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_event__pb2.ClientEvent.SerializeToString, - ) + ), } generic_handler = grpc.method_handlers_generic_handler( "google.cloud.talent.v4beta1.EventService", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class EventService(object): + """A service handles client event report. + """ + + @staticmethod + def CreateClientEvent( + 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.talent.v4beta1.EventService/CreateClientEvent", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_event__service__pb2.CreateClientEventRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_event__pb2.ClientEvent.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/talent_v4beta1/proto/filters.proto b/google/cloud/talent_v4beta1/proto/filters.proto index be457b43..a8cebd7e 100644 --- a/google/cloud/talent_v4beta1/proto/filters.proto +++ b/google/cloud/talent_v4beta1/proto/filters.proto @@ -446,7 +446,7 @@ message LocationFilter { // or territory. If this field is not set, application behavior is biased // toward the United States by default. // - // See https://cldr.unicode.org/ and + // See // https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html // for details. Example: "CH" for Switzerland. // Note that this filter is not applicable for Profile Search related queries. diff --git a/google/cloud/talent_v4beta1/proto/filters_pb2.py b/google/cloud/talent_v4beta1/proto/filters_pb2.py index 5fefcdc3..dd5d1fd2 100644 --- a/google/cloud/talent_v4beta1/proto/filters_pb2.py +++ b/google/cloud/talent_v4beta1/proto/filters_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/filters.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 @@ -33,12 +30,9 @@ name="google/cloud/talent_v4beta1/proto/filters.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\014FiltersProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n/google/cloud/talent_v4beta1/proto/filters.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x16google/type/date.proto\x1a\x18google/type/latlng.proto\x1a\x1bgoogle/type/timeofday.proto\x1a\x1cgoogle/api/annotations.proto"\x80\x05\n\x08JobQuery\x12\r\n\x05query\x18\x01 \x01(\t\x12\x1b\n\x13query_language_code\x18\x0e \x01(\t\x12\x11\n\tcompanies\x18\x02 \x03(\t\x12\x45\n\x10location_filters\x18\x03 \x03(\x0b\x32+.google.cloud.talent.v4beta1.LocationFilter\x12@\n\x0ejob_categories\x18\x04 \x03(\x0e\x32(.google.cloud.talent.v4beta1.JobCategory\x12\x42\n\x0e\x63ommute_filter\x18\x05 \x01(\x0b\x32*.google.cloud.talent.v4beta1.CommuteFilter\x12\x1d\n\x15\x63ompany_display_names\x18\x06 \x03(\t\x12L\n\x13\x63ompensation_filter\x18\x07 \x01(\x0b\x32/.google.cloud.talent.v4beta1.CompensationFilter\x12\x1f\n\x17\x63ustom_attribute_filter\x18\x08 \x01(\t\x12\x1b\n\x13\x64isable_spell_check\x18\t \x01(\x08\x12\x45\n\x10\x65mployment_types\x18\n \x03(\x0e\x32+.google.cloud.talent.v4beta1.EmploymentType\x12\x16\n\x0elanguage_codes\x18\x0b \x03(\t\x12G\n\x12publish_time_range\x18\x0c \x01(\x0b\x32+.google.cloud.talent.v4beta1.TimestampRange\x12\x15\n\rexcluded_jobs\x18\r \x03(\t"\xf5\x08\n\x0cProfileQuery\x12\r\n\x05query\x18\x01 \x01(\t\x12\x45\n\x10location_filters\x18\x02 \x03(\x0b\x32+.google.cloud.talent.v4beta1.LocationFilter\x12\x46\n\x11job_title_filters\x18\x03 \x03(\x0b\x32+.google.cloud.talent.v4beta1.JobTitleFilter\x12\x45\n\x10\x65mployer_filters\x18\x04 \x03(\x0b\x32+.google.cloud.talent.v4beta1.EmployerFilter\x12G\n\x11\x65\x64ucation_filters\x18\x05 \x03(\x0b\x32,.google.cloud.talent.v4beta1.EducationFilter\x12?\n\rskill_filters\x18\x06 \x03(\x0b\x32(.google.cloud.talent.v4beta1.SkillFilter\x12Q\n\x16work_experience_filter\x18\x07 \x03(\x0b\x32\x31.google.cloud.talent.v4beta1.WorkExperienceFilter\x12=\n\x0ctime_filters\x18\x08 \x03(\x0b\x32\'.google.cloud.talent.v4beta1.TimeFilter\x12\x32\n\x0ehirable_filter\x18\t \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12T\n\x18\x61pplication_date_filters\x18\n \x03(\x0b\x32\x32.google.cloud.talent.v4beta1.ApplicationDateFilter\x12\x65\n!application_outcome_notes_filters\x18\x0b \x03(\x0b\x32:.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter\x12R\n\x17\x61pplication_job_filters\x18\r \x03(\x0b\x32\x31.google.cloud.talent.v4beta1.ApplicationJobFilter\x12\x1f\n\x17\x63ustom_attribute_filter\x18\x0f \x01(\t\x12\x63\n\x1d\x63\x61ndidate_availability_filter\x18\x10 \x01(\x0b\x32\x38.google.cloud.talent.v4beta1.CandidateAvailabilityFilterB\x02\x18\x01\x12M\n\x14\x61vailability_filters\x18\x12 \x03(\x0b\x32/.google.cloud.talent.v4beta1.AvailabilityFilter\x12J\n\x13person_name_filters\x18\x11 \x03(\x0b\x32-.google.cloud.talent.v4beta1.PersonNameFilter"\xdf\x02\n\x0eLocationFilter\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12$\n\x07lat_lng\x18\x03 \x01(\x0b\x32\x13.google.type.LatLng\x12\x19\n\x11\x64istance_in_miles\x18\x04 \x01(\x01\x12\x61\n\x16telecommute_preference\x18\x05 \x01(\x0e\x32\x41.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference\x12\x0f\n\x07negated\x18\x06 \x01(\x08"r\n\x15TelecommutePreference\x12&\n"TELECOMMUTE_PREFERENCE_UNSPECIFIED\x10\x00\x12\x18\n\x14TELECOMMUTE_EXCLUDED\x10\x01\x12\x17\n\x13TELECOMMUTE_ALLOWED\x10\x02"\xca\x03\n\x12\x43ompensationFilter\x12M\n\x04type\x18\x01 \x01(\x0e\x32:.google.cloud.talent.v4beta1.CompensationFilter.FilterTypeB\x03\xe0\x41\x02\x12R\n\x05units\x18\x02 \x03(\x0e\x32>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnitB\x03\xe0\x41\x02\x12N\n\x05range\x18\x03 \x01(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange\x12\x38\n0include_jobs_with_unspecified_compensation_range\x18\x04 \x01(\x08"\x86\x01\n\nFilterType\x12\x1b\n\x17\x46ILTER_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tUNIT_ONLY\x10\x01\x12\x13\n\x0fUNIT_AND_AMOUNT\x10\x02\x12\x1a\n\x16\x41NNUALIZED_BASE_AMOUNT\x10\x03\x12\x1b\n\x17\x41NNUALIZED_TOTAL_AMOUNT\x10\x04"\xcb\x03\n\rCommuteFilter\x12G\n\x0e\x63ommute_method\x18\x01 \x01(\x0e\x32*.google.cloud.talent.v4beta1.CommuteMethodB\x03\xe0\x41\x02\x12\x33\n\x11start_coordinates\x18\x02 \x01(\x0b\x32\x13.google.type.LatLngB\x03\xe0\x41\x02\x12\x37\n\x0ftravel_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12!\n\x19\x61llow_imprecise_addresses\x18\x04 \x01(\x08\x12N\n\x0croad_traffic\x18\x05 \x01(\x0e\x32\x36.google.cloud.talent.v4beta1.CommuteFilter.RoadTrafficH\x00\x12\x30\n\x0e\x64\x65parture_time\x18\x06 \x01(\x0b\x32\x16.google.type.TimeOfDayH\x00"L\n\x0bRoadTraffic\x12\x1c\n\x18ROAD_TRAFFIC_UNSPECIFIED\x10\x00\x12\x10\n\x0cTRAFFIC_FREE\x10\x01\x12\r\n\tBUSY_HOUR\x10\x02\x42\x10\n\x0etraffic_option"9\n\x0eJobTitleFilter\x12\x16\n\tjob_title\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07negated\x18\x02 \x01(\x08"2\n\x0bSkillFilter\x12\x12\n\x05skill\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07negated\x18\x02 \x01(\x08"\xa6\x02\n\x0e\x45mployerFilter\x12\x15\n\x08\x65mployer\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\x04mode\x18\x02 \x01(\x0e\x32>.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode\x12\x0f\n\x07negated\x18\x03 \x01(\x08"\x9d\x01\n\x12\x45mployerFilterMode\x12$\n EMPLOYER_FILTER_MODE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x41LL_EMPLOYMENT_RECORDS\x10\x01\x12#\n\x1f\x43URRENT_EMPLOYMENT_RECORDS_ONLY\x10\x02\x12 \n\x1cPAST_EMPLOYMENT_RECORDS_ONLY\x10\x03"\x88\x01\n\x0f\x45\x64ucationFilter\x12\x0e\n\x06school\x18\x01 \x01(\t\x12\x16\n\x0e\x66ield_of_study\x18\x02 \x01(\t\x12<\n\x0b\x64\x65gree_type\x18\x03 \x01(\x0e\x32\'.google.cloud.talent.v4beta1.DegreeType\x12\x0f\n\x07negated\x18\x06 \x01(\x08"|\n\x14WorkExperienceFilter\x12\x31\n\x0emin_experience\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x31\n\x0emax_experience\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"c\n\x15\x41pplicationDateFilter\x12%\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.Date\x12#\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date"L\n\x1d\x41pplicationOutcomeNotesFilter\x12\x1a\n\routcome_notes\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07negated\x18\x02 \x01(\x08"V\n\x14\x41pplicationJobFilter\x12\x1a\n\x12job_requisition_id\x18\x02 \x01(\t\x12\x11\n\tjob_title\x18\x03 \x01(\t\x12\x0f\n\x07negated\x18\x04 \x01(\x08"\xfc\x01\n\nTimeFilter\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\ntime_field\x18\x03 \x01(\x0e\x32\x31.google.cloud.talent.v4beta1.TimeFilter.TimeField"I\n\tTimeField\x12\x1a\n\x16TIME_FIELD_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x43REATE_TIME\x10\x01\x12\x0f\n\x0bUPDATE_TIME\x10\x02"2\n\x1b\x43\x61ndidateAvailabilityFilter\x12\x0f\n\x07negated\x18\x01 \x01(\x08:\x02\x18\x01"\xb6\x01\n\x12\x41vailabilityFilter\x12M\n\x0bsignal_type\x18\x01 \x01(\x0e\x32\x33.google.cloud.talent.v4beta1.AvailabilitySignalTypeB\x03\xe0\x41\x02\x12?\n\x05range\x18\x02 \x01(\x0b\x32+.google.cloud.talent.v4beta1.TimestampRangeB\x03\xe0\x41\x02\x12\x10\n\x08required\x18\x03 \x01(\x08",\n\x10PersonNameFilter\x12\x18\n\x0bperson_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42z\n\x1f\x63om.google.cloud.talent.v4beta1B\x0c\x46iltersProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\014FiltersProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n/google/cloud/talent_v4beta1/proto/filters.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x16google/type/date.proto\x1a\x18google/type/latlng.proto\x1a\x1bgoogle/type/timeofday.proto\x1a\x1cgoogle/api/annotations.proto"\x80\x05\n\x08JobQuery\x12\r\n\x05query\x18\x01 \x01(\t\x12\x1b\n\x13query_language_code\x18\x0e \x01(\t\x12\x11\n\tcompanies\x18\x02 \x03(\t\x12\x45\n\x10location_filters\x18\x03 \x03(\x0b\x32+.google.cloud.talent.v4beta1.LocationFilter\x12@\n\x0ejob_categories\x18\x04 \x03(\x0e\x32(.google.cloud.talent.v4beta1.JobCategory\x12\x42\n\x0e\x63ommute_filter\x18\x05 \x01(\x0b\x32*.google.cloud.talent.v4beta1.CommuteFilter\x12\x1d\n\x15\x63ompany_display_names\x18\x06 \x03(\t\x12L\n\x13\x63ompensation_filter\x18\x07 \x01(\x0b\x32/.google.cloud.talent.v4beta1.CompensationFilter\x12\x1f\n\x17\x63ustom_attribute_filter\x18\x08 \x01(\t\x12\x1b\n\x13\x64isable_spell_check\x18\t \x01(\x08\x12\x45\n\x10\x65mployment_types\x18\n \x03(\x0e\x32+.google.cloud.talent.v4beta1.EmploymentType\x12\x16\n\x0elanguage_codes\x18\x0b \x03(\t\x12G\n\x12publish_time_range\x18\x0c \x01(\x0b\x32+.google.cloud.talent.v4beta1.TimestampRange\x12\x15\n\rexcluded_jobs\x18\r \x03(\t"\xf5\x08\n\x0cProfileQuery\x12\r\n\x05query\x18\x01 \x01(\t\x12\x45\n\x10location_filters\x18\x02 \x03(\x0b\x32+.google.cloud.talent.v4beta1.LocationFilter\x12\x46\n\x11job_title_filters\x18\x03 \x03(\x0b\x32+.google.cloud.talent.v4beta1.JobTitleFilter\x12\x45\n\x10\x65mployer_filters\x18\x04 \x03(\x0b\x32+.google.cloud.talent.v4beta1.EmployerFilter\x12G\n\x11\x65\x64ucation_filters\x18\x05 \x03(\x0b\x32,.google.cloud.talent.v4beta1.EducationFilter\x12?\n\rskill_filters\x18\x06 \x03(\x0b\x32(.google.cloud.talent.v4beta1.SkillFilter\x12Q\n\x16work_experience_filter\x18\x07 \x03(\x0b\x32\x31.google.cloud.talent.v4beta1.WorkExperienceFilter\x12=\n\x0ctime_filters\x18\x08 \x03(\x0b\x32\'.google.cloud.talent.v4beta1.TimeFilter\x12\x32\n\x0ehirable_filter\x18\t \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12T\n\x18\x61pplication_date_filters\x18\n \x03(\x0b\x32\x32.google.cloud.talent.v4beta1.ApplicationDateFilter\x12\x65\n!application_outcome_notes_filters\x18\x0b \x03(\x0b\x32:.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter\x12R\n\x17\x61pplication_job_filters\x18\r \x03(\x0b\x32\x31.google.cloud.talent.v4beta1.ApplicationJobFilter\x12\x1f\n\x17\x63ustom_attribute_filter\x18\x0f \x01(\t\x12\x63\n\x1d\x63\x61ndidate_availability_filter\x18\x10 \x01(\x0b\x32\x38.google.cloud.talent.v4beta1.CandidateAvailabilityFilterB\x02\x18\x01\x12M\n\x14\x61vailability_filters\x18\x12 \x03(\x0b\x32/.google.cloud.talent.v4beta1.AvailabilityFilter\x12J\n\x13person_name_filters\x18\x11 \x03(\x0b\x32-.google.cloud.talent.v4beta1.PersonNameFilter"\xdf\x02\n\x0eLocationFilter\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\t\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12$\n\x07lat_lng\x18\x03 \x01(\x0b\x32\x13.google.type.LatLng\x12\x19\n\x11\x64istance_in_miles\x18\x04 \x01(\x01\x12\x61\n\x16telecommute_preference\x18\x05 \x01(\x0e\x32\x41.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference\x12\x0f\n\x07negated\x18\x06 \x01(\x08"r\n\x15TelecommutePreference\x12&\n"TELECOMMUTE_PREFERENCE_UNSPECIFIED\x10\x00\x12\x18\n\x14TELECOMMUTE_EXCLUDED\x10\x01\x12\x17\n\x13TELECOMMUTE_ALLOWED\x10\x02"\xca\x03\n\x12\x43ompensationFilter\x12M\n\x04type\x18\x01 \x01(\x0e\x32:.google.cloud.talent.v4beta1.CompensationFilter.FilterTypeB\x03\xe0\x41\x02\x12R\n\x05units\x18\x02 \x03(\x0e\x32>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnitB\x03\xe0\x41\x02\x12N\n\x05range\x18\x03 \x01(\x0b\x32?.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange\x12\x38\n0include_jobs_with_unspecified_compensation_range\x18\x04 \x01(\x08"\x86\x01\n\nFilterType\x12\x1b\n\x17\x46ILTER_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tUNIT_ONLY\x10\x01\x12\x13\n\x0fUNIT_AND_AMOUNT\x10\x02\x12\x1a\n\x16\x41NNUALIZED_BASE_AMOUNT\x10\x03\x12\x1b\n\x17\x41NNUALIZED_TOTAL_AMOUNT\x10\x04"\xcb\x03\n\rCommuteFilter\x12G\n\x0e\x63ommute_method\x18\x01 \x01(\x0e\x32*.google.cloud.talent.v4beta1.CommuteMethodB\x03\xe0\x41\x02\x12\x33\n\x11start_coordinates\x18\x02 \x01(\x0b\x32\x13.google.type.LatLngB\x03\xe0\x41\x02\x12\x37\n\x0ftravel_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12!\n\x19\x61llow_imprecise_addresses\x18\x04 \x01(\x08\x12N\n\x0croad_traffic\x18\x05 \x01(\x0e\x32\x36.google.cloud.talent.v4beta1.CommuteFilter.RoadTrafficH\x00\x12\x30\n\x0e\x64\x65parture_time\x18\x06 \x01(\x0b\x32\x16.google.type.TimeOfDayH\x00"L\n\x0bRoadTraffic\x12\x1c\n\x18ROAD_TRAFFIC_UNSPECIFIED\x10\x00\x12\x10\n\x0cTRAFFIC_FREE\x10\x01\x12\r\n\tBUSY_HOUR\x10\x02\x42\x10\n\x0etraffic_option"9\n\x0eJobTitleFilter\x12\x16\n\tjob_title\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07negated\x18\x02 \x01(\x08"2\n\x0bSkillFilter\x12\x12\n\x05skill\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07negated\x18\x02 \x01(\x08"\xa6\x02\n\x0e\x45mployerFilter\x12\x15\n\x08\x65mployer\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\x04mode\x18\x02 \x01(\x0e\x32>.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode\x12\x0f\n\x07negated\x18\x03 \x01(\x08"\x9d\x01\n\x12\x45mployerFilterMode\x12$\n EMPLOYER_FILTER_MODE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x41LL_EMPLOYMENT_RECORDS\x10\x01\x12#\n\x1f\x43URRENT_EMPLOYMENT_RECORDS_ONLY\x10\x02\x12 \n\x1cPAST_EMPLOYMENT_RECORDS_ONLY\x10\x03"\x88\x01\n\x0f\x45\x64ucationFilter\x12\x0e\n\x06school\x18\x01 \x01(\t\x12\x16\n\x0e\x66ield_of_study\x18\x02 \x01(\t\x12<\n\x0b\x64\x65gree_type\x18\x03 \x01(\x0e\x32\'.google.cloud.talent.v4beta1.DegreeType\x12\x0f\n\x07negated\x18\x06 \x01(\x08"|\n\x14WorkExperienceFilter\x12\x31\n\x0emin_experience\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x31\n\x0emax_experience\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"c\n\x15\x41pplicationDateFilter\x12%\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.Date\x12#\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date"L\n\x1d\x41pplicationOutcomeNotesFilter\x12\x1a\n\routcome_notes\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07negated\x18\x02 \x01(\x08"V\n\x14\x41pplicationJobFilter\x12\x1a\n\x12job_requisition_id\x18\x02 \x01(\t\x12\x11\n\tjob_title\x18\x03 \x01(\t\x12\x0f\n\x07negated\x18\x04 \x01(\x08"\xfc\x01\n\nTimeFilter\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\ntime_field\x18\x03 \x01(\x0e\x32\x31.google.cloud.talent.v4beta1.TimeFilter.TimeField"I\n\tTimeField\x12\x1a\n\x16TIME_FIELD_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x43REATE_TIME\x10\x01\x12\x0f\n\x0bUPDATE_TIME\x10\x02"2\n\x1b\x43\x61ndidateAvailabilityFilter\x12\x0f\n\x07negated\x18\x01 \x01(\x08:\x02\x18\x01"\xb6\x01\n\x12\x41vailabilityFilter\x12M\n\x0bsignal_type\x18\x01 \x01(\x0e\x32\x33.google.cloud.talent.v4beta1.AvailabilitySignalTypeB\x03\xe0\x41\x02\x12?\n\x05range\x18\x02 \x01(\x0b\x32+.google.cloud.talent.v4beta1.TimestampRangeB\x03\xe0\x41\x02\x12\x10\n\x08required\x18\x03 \x01(\x08",\n\x10PersonNameFilter\x12\x18\n\x0bperson_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42z\n\x1f\x63om.google.cloud.talent.v4beta1B\x0c\x46iltersProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_common__pb2.DESCRIPTOR, @@ -59,6 +53,7 @@ full_name="google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="TELECOMMUTE_PREFERENCE_UNSPECIFIED", @@ -66,6 +61,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="TELECOMMUTE_EXCLUDED", @@ -73,6 +69,7 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="TELECOMMUTE_ALLOWED", @@ -80,6 +77,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -94,6 +92,7 @@ full_name="google.cloud.talent.v4beta1.CompensationFilter.FilterType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="FILTER_TYPE_UNSPECIFIED", @@ -101,9 +100,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UNIT_ONLY", index=1, number=1, serialized_options=None, type=None + name="UNIT_ONLY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="UNIT_AND_AMOUNT", @@ -111,6 +116,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ANNUALIZED_BASE_AMOUNT", @@ -118,6 +124,7 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ANNUALIZED_TOTAL_AMOUNT", @@ -125,6 +132,7 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -139,6 +147,7 @@ full_name="google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="ROAD_TRAFFIC_UNSPECIFIED", @@ -146,12 +155,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TRAFFIC_FREE", index=1, number=1, serialized_options=None, type=None + name="TRAFFIC_FREE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BUSY_HOUR", index=2, number=2, serialized_options=None, type=None + name="BUSY_HOUR", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -166,6 +186,7 @@ full_name="google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="EMPLOYER_FILTER_MODE_UNSPECIFIED", @@ -173,6 +194,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ALL_EMPLOYMENT_RECORDS", @@ -180,6 +202,7 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="CURRENT_EMPLOYMENT_RECORDS_ONLY", @@ -187,6 +210,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="PAST_EMPLOYMENT_RECORDS_ONLY", @@ -194,6 +218,7 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -208,6 +233,7 @@ full_name="google.cloud.talent.v4beta1.TimeFilter.TimeField", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="TIME_FIELD_UNSPECIFIED", @@ -215,12 +241,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CREATE_TIME", index=1, number=1, serialized_options=None, type=None + name="CREATE_TIME", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UPDATE_TIME", index=2, number=2, serialized_options=None, type=None + name="UPDATE_TIME", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -237,6 +274,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="query", @@ -247,7 +285,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, @@ -255,6 +293,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="query_language_code", @@ -265,7 +304,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, @@ -273,6 +312,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="companies", @@ -291,6 +331,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="location_filters", @@ -309,6 +350,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_categories", @@ -327,6 +369,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="commute_filter", @@ -345,6 +388,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="company_display_names", @@ -363,6 +407,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="compensation_filter", @@ -381,6 +426,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="custom_attribute_filter", @@ -391,7 +437,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, @@ -399,6 +445,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="disable_spell_check", @@ -417,6 +464,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="employment_types", @@ -435,6 +483,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_codes", @@ -453,6 +502,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="publish_time_range", @@ -471,6 +521,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="excluded_jobs", @@ -489,6 +540,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -510,6 +562,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="query", @@ -520,7 +573,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, @@ -528,6 +581,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="location_filters", @@ -546,6 +600,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_title_filters", @@ -564,6 +619,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="employer_filters", @@ -582,6 +638,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="education_filters", @@ -600,6 +657,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="skill_filters", @@ -618,6 +676,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="work_experience_filter", @@ -636,6 +695,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="time_filters", @@ -654,6 +714,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="hirable_filter", @@ -672,6 +733,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="application_date_filters", @@ -690,6 +752,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="application_outcome_notes_filters", @@ -708,6 +771,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="application_job_filters", @@ -726,6 +790,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="custom_attribute_filter", @@ -736,7 +801,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, @@ -744,6 +809,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="candidate_availability_filter", @@ -760,8 +826,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="availability_filters", @@ -780,6 +847,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="person_name_filters", @@ -798,6 +866,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -819,6 +888,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="address", @@ -829,7 +899,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, @@ -837,6 +907,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="region_code", @@ -847,7 +918,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 +926,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="lat_lng", @@ -873,6 +945,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="distance_in_miles", @@ -891,6 +964,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="telecommute_preference", @@ -909,6 +983,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="negated", @@ -927,11 +1002,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_LOCATIONFILTER_TELECOMMUTEPREFERENCE], + enum_types=[_LOCATIONFILTER_TELECOMMUTEPREFERENCE,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -948,6 +1024,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -964,8 +1041,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="units", @@ -982,8 +1060,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="range", @@ -1002,6 +1081,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="include_jobs_with_unspecified_compensation_range", @@ -1020,11 +1100,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_COMPENSATIONFILTER_FILTERTYPE], + enum_types=[_COMPENSATIONFILTER_FILTERTYPE,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1041,6 +1122,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="commute_method", @@ -1057,8 +1139,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="start_coordinates", @@ -1075,8 +1158,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="travel_duration", @@ -1093,8 +1177,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="allow_imprecise_addresses", @@ -1113,6 +1198,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="road_traffic", @@ -1131,6 +1217,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="departure_time", @@ -1149,11 +1236,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_COMMUTEFILTER_ROADTRAFFIC], + enum_types=[_COMMUTEFILTER_ROADTRAFFIC,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1164,8 +1252,9 @@ full_name="google.cloud.talent.v4beta1.CommuteFilter.traffic_option", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=3004, serialized_end=3463, @@ -1178,6 +1267,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="job_title", @@ -1188,14 +1278,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="negated", @@ -1214,6 +1305,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1235,6 +1327,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="skill", @@ -1245,14 +1338,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="negated", @@ -1271,6 +1365,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1292,6 +1387,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="employer", @@ -1302,14 +1398,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="mode", @@ -1328,6 +1425,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="negated", @@ -1346,11 +1444,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_EMPLOYERFILTER_EMPLOYERFILTERMODE], + enum_types=[_EMPLOYERFILTER_EMPLOYERFILTERMODE,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1367,6 +1466,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="school", @@ -1377,7 +1477,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, @@ -1385,6 +1485,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="field_of_study", @@ -1395,7 +1496,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, @@ -1403,6 +1504,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="degree_type", @@ -1421,6 +1523,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="negated", @@ -1439,6 +1542,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1460,6 +1564,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="min_experience", @@ -1478,6 +1583,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="max_experience", @@ -1496,6 +1602,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1517,6 +1624,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="start_date", @@ -1535,6 +1643,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_date", @@ -1553,6 +1662,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1574,6 +1684,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="outcome_notes", @@ -1584,14 +1695,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="negated", @@ -1610,6 +1722,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1631,6 +1744,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="job_requisition_id", @@ -1641,7 +1755,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, @@ -1649,6 +1763,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_title", @@ -1659,7 +1774,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, @@ -1667,6 +1782,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="negated", @@ -1685,6 +1801,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1706,6 +1823,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="start_time", @@ -1724,6 +1842,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_time", @@ -1742,6 +1861,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="time_field", @@ -1760,11 +1880,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_TIMEFILTER_TIMEFIELD], + enum_types=[_TIMEFILTER_TIMEFIELD,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1781,6 +1902,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="negated", @@ -1799,12 +1921,13 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b("\030\001"), + serialized_options=b"\030\001", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -1820,6 +1943,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="signal_type", @@ -1836,8 +1960,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="range", @@ -1854,8 +1979,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="required", @@ -1874,6 +2000,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1895,6 +2022,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="person_name", @@ -1905,15 +2033,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=[], @@ -2079,10 +2208,11 @@ JobQuery = _reflection.GeneratedProtocolMessageType( "JobQuery", (_message.Message,), - dict( - DESCRIPTOR=_JOBQUERY, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""The query required to perform a search query. + { + "DESCRIPTOR": _JOBQUERY, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """The query required to perform a search query. + Attributes: query: The query string that matches against the job title, @@ -2091,40 +2221,40 @@ query_language_code: The language code of [query][google.cloud.talent.v4beta1.JobQuery.query]. For - example, "en-US". This field helps to better interpret the - query. If a value isn't specified, the query language code is + example, “en-US”. This field helps to better interpret the + query. If a value isn’t specified, the query language code is automatically detected, which may not be accurate. Language - code should be in BCP-47 format, such as "en-US" or "sr-Latn". + code should be in BCP-47 format, such as “en-US” or “sr-Latn”. For more information, see `Tags for Identifying Languages `__. companies: This filter specifies the company entities to search against. - If a value isn't specified, jobs are searched for against all + If a value isn’t specified, jobs are searched for against all companies. If multiple values are specified, jobs are - searched against the companies specified. The format is "proj - ects/{project\_id}/tenants/{tenant\_id}/companies/{company\_id - }". For example, "projects/foo/tenants/bar/companies/baz". If + searched against the companies specified. The format is “proj + ects/{project_id}/tenants/{tenant_id}/companies/{company_id}”. + For example, “projects/foo/tenants/bar/companies/baz”. If tenant id is unspecified, the default tenant is used. For - example, "projects/foo/companies/bar". At most 20 company + example, “projects/foo/companies/bar”. At most 20 company filters are allowed. location_filters: The location filter specifies geo-regions containing the jobs to search against. See [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] - for more information. If a location value isn't specified, + for more information. If a location value isn’t specified, jobs fitting the other search criteria are retrieved - regardless of where they're located. If multiple values are + regardless of where they’re located. If multiple values are specified, jobs are retrieved from any of the specified locations. If different values are specified for the [Location - Filter.distance\_in\_miles][google.cloud.talent.v4beta1.Locati - onFilter.distance\_in\_miles] parameter, the maximum provided + Filter.distance_in_miles][google.cloud.talent.v4beta1.Location + Filter.distance_in_miles] parameter, the maximum provided distance is used for all locations. At most 5 location filters are allowed. job_categories: The category filter specifies the categories of jobs to search against. See [JobCategory][google.cloud.talent.v4beta1.JobCategory] for - more information. If a value isn't specified, jobs from any + more information. If a value isn’t specified, jobs from any category are searched against. If multiple values are specified, jobs from any of the specified categories are searched against. @@ -2133,59 +2263,59 @@ methods (for example, driving or public transit). Note: This only works when you specify a [CommuteMethod][google.cloud.talent.v4beta1.CommuteMethod]. In - this case, [location\_filters][google.cloud.talent.v4beta1.Job - Query.location\_filters] is ignored. Currently we don't - support sorting by commute time. + this case, [location_filters][google.cloud.talent.v4beta1.JobQ + uery.location_filters] is ignored. Currently we don’t support + sorting by commute time. company_display_names: - This filter specifies the exact company [Company.display\_name - ][google.cloud.talent.v4beta1.Company.display\_name] of the - jobs to search against. If a value isn't specified, jobs - within the search results are associated with any company. If + This filter specifies the exact company [Company.display_name] + [google.cloud.talent.v4beta1.Company.display_name] of the jobs + to search against. If a value isn’t specified, jobs within + the search results are associated with any company. If multiple values are specified, jobs within the search results may be associated with any of the specified companies. At most 20 company display name filters are allowed. compensation_filter: - This search filter is applied only to [Job.compensation\_info] - [google.cloud.talent.v4beta1.Job.compensation\_info]. For - example, if the filter is specified as "Hourly job with per- - hour compensation > $15", only jobs meeting these criteria are - searched. If a filter isn't defined, all open jobs are + This search filter is applied only to [Job.compensation_info][ + google.cloud.talent.v4beta1.Job.compensation_info]. For + example, if the filter is specified as “Hourly job with per- + hour compensation > $15”, only jobs meeting these criteria are + searched. If a filter isn’t defined, all open jobs are searched. custom_attribute_filter: This filter specifies a structured syntax to match against the - [Job.custom\_attributes][google.cloud.talent.v4beta1.Job.custo - m\_attributes] marked as ``filterable``. The syntax for this + [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom + _attributes] marked as ``filterable``. The syntax for this expression is a subset of SQL syntax. Supported operators are: ``=``, ``!=``, ``<``, ``<=``, ``>``, and ``>=`` where the left of the operator is a custom field key and the right of the operator is a number or a quoted string. You must escape - backslash (\\) and quote (") characters. Supported functions + backslash (\) and quote (") characters. Supported functions are ``LOWER([field_name])`` to perform a case insensitive match and ``EMPTY([field_name])`` to filter on the existence of a key. Boolean expressions (AND/OR/NOT) are supported up - to 3 levels of nesting (for example, "((A AND B AND C) OR NOT - D) AND E"), a maximum of 100 comparisons or functions are + to 3 levels of nesting (for example, “((A AND B AND C) OR NOT + D) AND E”), a maximum of 100 comparisons or functions are allowed in the expression. The expression must be < 6000 bytes in length. Sample Query: ``(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND driving_years > 10`` disable_spell_check: This flag controls the spell-check feature. If false, the service attempts to correct a misspelled query, for example, - "enginee" is corrected to "engineer". Defaults to false: a + “enginee” is corrected to “engineer”. Defaults to false: a spell check is performed. employment_types: The employment type filter specifies the employment type of - jobs to search against, such as [EmploymentType.FULL\_TIME][go - ogle.cloud.talent.v4beta1.EmploymentType.FULL\_TIME]. If a - value isn't specified, jobs in the search results includes any + jobs to search against, such as [EmploymentType.FULL_TIME][goo + gle.cloud.talent.v4beta1.EmploymentType.FULL_TIME]. If a + value isn’t specified, jobs in the search results includes any employment type. If multiple values are specified, jobs in the search results include any of the specified employment types. language_codes: This filter specifies the locale of jobs to search against, - for example, "en-US". If a value isn't specified, the search + for example, “en-US”. If a value isn’t specified, the search results can contain jobs in any locale. Language codes should - be in BCP-47 format, such as "en-US" or "sr-Latn". For more + be in BCP-47 format, such as “en-US” or “sr-Latn”. For more information, see `Tags for Identifying Languages `__. At most 10 language code filters are allowed. @@ -2197,48 +2327,49 @@ during search. At most 400 excluded job names are allowed. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobQuery) - ), + }, ) _sym_db.RegisterMessage(JobQuery) ProfileQuery = _reflection.GeneratedProtocolMessageType( "ProfileQuery", (_message.Message,), - dict( - DESCRIPTOR=_PROFILEQUERY, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Filters to apply when performing the search query. + { + "DESCRIPTOR": _PROFILEQUERY, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Filters to apply when performing the search query. + Attributes: query: Keywords to match any text fields of profiles. For example, - "software engineer in Palo Alto". + “software engineer in Palo Alto”. location_filters: The location filter specifies geo-regions containing the profiles to search against. One of [LocationFilter.address][g oogle.cloud.talent.v4beta1.LocationFilter.address] or [Locatio - nFilter.lat\_lng][google.cloud.talent.v4beta1.LocationFilter.l - at\_lng] must be provided or an error is thrown. If both [Loca - tionFilter.address][google.cloud.talent.v4beta1.LocationFilter - .address] and [LocationFilter.lat\_lng][google.cloud.talent.v4 - beta1.LocationFilter.lat\_lng] are provided, an error is - thrown. The following logic is used to determine which - locations in the profile to filter against: 1. All of the - profile's geocoded [Profile.addresses][google.cloud.talent. - v4beta1.Profile.addresses] where + nFilter.lat_lng][google.cloud.talent.v4beta1.LocationFilter.la + t_lng] must be provided or an error is thrown. If both [Locati + onFilter.address][google.cloud.talent.v4beta1.LocationFilter.a + ddress] and [LocationFilter.lat_lng][google.cloud.talent.v4bet + a1.LocationFilter.lat_lng] are provided, an error is thrown. + The following logic is used to determine which locations in + the profile to filter against: 1. All of the profile’s + geocoded [Profile.addresses][google.cloud.talent.v4beta1.Pr + ofile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is PERSONAL and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. 2. If the above set of locations is empty, all of - the profile's geocoded [Profile.addresses][google.cloud.tal + the profile’s geocoded [Profile.addresses][google.cloud.tal ent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is - CONTACT\_INFO\_USAGE\_UNSPECIFIED and + CONTACT_INFO_USAGE_UNSPECIFIED and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. 3. If the above set of locations is empty, all of - the profile's geocoded [Profile.addresses][google.cloud.tal + the profile’s geocoded [Profile.addresses][google.cloud.tal ent.v4beta1.Profile.addresses] where [Address.usage][google.cloud.talent.v4beta1.Address.usage] is - PERSONAL or CONTACT\_INFO\_USAGE\_UNSPECIFIED and + PERSONAL or CONTACT_INFO_USAGE_UNSPECIFIED and [Address.current][google.cloud.talent.v4beta1.Address.current] is not set. This means that any profiles without any [Prof ile.addresses][google.cloud.talent.v4beta1.Profile.addresses] @@ -2249,10 +2380,10 @@ WORK or SCHOOL or where [Address.current][google.cloud.talent.v4beta1.Address.current] is false are not considered for location filter. If a - location filter isn't specified, profiles fitting the other - search criteria are retrieved regardless of where they're + location filter isn’t specified, profiles fitting the other + search criteria are retrieved regardless of where they’re located. If [LocationFilter.negated][google.cloud.talent.v4be - ta1.LocationFilter.negated] is specified, the result doesn't + ta1.LocationFilter.negated] is specified, the result doesn’t contain profiles from that location. If [LocationFilter.addre ss][google.cloud.talent.v4beta1.LocationFilter.address] is provided, the [LocationType][google.cloud.talent.v4beta1.Locat @@ -2262,86 +2393,86 @@ loud.talent.v4beta1.LocationFilter.address] cannot be geocoded, the filter falls back to keyword search. If the detected [LocationType][google.cloud.talent.v4beta1.Location.L - ocationType] is [LocationType.SUB\_ADMINISTRATIVE\_AREA][googl - e.cloud.talent.v4beta1.Location.LocationType.SUB\_ADMINISTRATI - VE\_AREA], [LocationType.ADMINISTRATIVE\_AREA][google.cloud.ta - lent.v4beta1.Location.LocationType.ADMINISTRATIVE\_AREA], or [ - LocationType.COUNTRY][google.cloud.talent.v4beta1.Location.Loc - ationType.COUNTRY], the filter is performed against the - detected location name (using exact text matching). Otherwise, - the filter is performed against the detected center point and - a radius of detected location radius + [LocationFilter.distanc - e\_in\_miles][google.cloud.talent.v4beta1.LocationFilter.dista - nce\_in\_miles]. If [LocationFilter.address][google.cloud.tal - ent.v4beta1.LocationFilter.address] is provided, [LocationFilt - er.distance\_in\_miles][google.cloud.talent.v4beta1.LocationFi - lter.distance\_in\_miles] is the additional radius on top of - the radius of the location geocoded from [LocationFilter.addre - ss][google.cloud.talent.v4beta1.LocationFilter.address]. If [L - ocationFilter.lat\_lng][google.cloud.talent.v4beta1.LocationFi - lter.lat\_lng] is provided, [LocationFilter.distance\_in\_mile - s][google.cloud.talent.v4beta1.LocationFilter.distance\_in\_mi - les] is the only radius that is used. [LocationFilter.distanc - e\_in\_miles][google.cloud.talent.v4beta1.LocationFilter.dista - nce\_in\_miles] is 10 by default. Note that the value of [Loca - tionFilter.distance\_in\_miles][google.cloud.talent.v4beta1.Lo - cationFilter.distance\_in\_miles] is 0 if it is unset, so the - server does not differentiate [LocationFilter.distance\_in\_mi - les][google.cloud.talent.v4beta1.LocationFilter.distance\_in\_ - miles] that is explicitly set to 0 and [LocationFilter.distanc - e\_in\_miles][google.cloud.talent.v4beta1.LocationFilter.dista - nce\_in\_miles] that is not set. Which means that if [Location - Filter.distance\_in\_miles][google.cloud.talent.v4beta1.Locati - onFilter.distance\_in\_miles] is explicitly set to 0, the - server will use the default value of [LocationFilter.distance\ - _in\_miles][google.cloud.talent.v4beta1.LocationFilter.distanc - e\_in\_miles] which is 10. To work around this and effectively - set [LocationFilter.distance\_in\_miles][google.cloud.talent.v - 4beta1.LocationFilter.distance\_in\_miles] to 0, we recommend - setting [LocationFilter.distance\_in\_miles][google.cloud.tale - nt.v4beta1.LocationFilter.distance\_in\_miles] to a very small - decimal number (such as 0.00001). If [LocationFilter.distance - \_in\_miles][google.cloud.talent.v4beta1.LocationFilter.distan - ce\_in\_miles] is negative, an error is thrown. + ocationType] is [LocationType.SUB_ADMINISTRATIVE_AREA][google. + cloud.talent.v4beta1.Location.LocationType.SUB_ADMINISTRATIVE_AREA], + [LocationType.ADMINISTRATIVE_AREA][google.cloud.talent. + v4beta1.Location.LocationType.ADMINISTRATIVE_AREA], or [Locati + onType.COUNTRY][google.cloud.talent.v4beta1.Location.LocationT + ype.COUNTRY], the filter is performed against the detected + location name (using exact text matching). Otherwise, the + filter is performed against the detected center point and a + radius of detected location radius + [LocationFilter.distance\_ + in_miles][google.cloud.talent.v4beta1.LocationFilter.distance\_ + in_miles]. If [LocationFilter.address][google.cloud.talent.v4 + beta1.LocationFilter.address] is provided, [LocationFilter.dis + tance_in_miles][google.cloud.talent.v4beta1.LocationFilter.dis + tance_in_miles] is the additional radius on top of the radius + of the location geocoded from [LocationFilter.address][google. + cloud.talent.v4beta1.LocationFilter.address]. If [LocationFilt + er.lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng + ] is provided, [LocationFilter.distance_in_miles][google.cloud + .talent.v4beta1.LocationFilter.distance_in_miles] is the only + radius that is used. [LocationFilter.distance_in_miles][googl + e.cloud.talent.v4beta1.LocationFilter.distance_in_miles] is 10 + by default. Note that the value of [LocationFilter.distance_in + _miles][google.cloud.talent.v4beta1.LocationFilter.distance_in + _miles] is 0 if it is unset, so the server does not + differentiate [LocationFilter.distance_in_miles][google.cloud. + talent.v4beta1.LocationFilter.distance_in_miles] that is + explicitly set to 0 and [LocationFilter.distance_in_miles][goo + gle.cloud.talent.v4beta1.LocationFilter.distance_in_miles] + that is not set. Which means that if [LocationFilter.distance\_ + in_miles][google.cloud.talent.v4beta1.LocationFilter.distance\_ + in_miles] is explicitly set to 0, the server will use the + default value of [LocationFilter.distance_in_miles][google.clo + ud.talent.v4beta1.LocationFilter.distance_in_miles] which is + 10. To work around this and effectively set [LocationFilter.di + stance_in_miles][google.cloud.talent.v4beta1.LocationFilter.di + stance_in_miles] to 0, we recommend setting [LocationFilter.di + stance_in_miles][google.cloud.talent.v4beta1.LocationFilter.di + stance_in_miles] to a very small decimal number (such as + 0.00001). If [LocationFilter.distance_in_miles][google.cloud. + talent.v4beta1.LocationFilter.distance_in_miles] is negative, + an error is thrown. job_title_filters: Job title filter specifies job titles of profiles to match on. - If a job title isn't specified, profiles with any titles are + If a job title isn’t specified, profiles with any titles are retrieved. If multiple values are specified, profiles are retrieved with any of the specified job titles. If [JobTitleF ilter.negated][google.cloud.talent.v4beta1.JobTitleFilter.nega - ted] is specified, the result won't contain profiles with the + ted] is specified, the result won’t contain profiles with the job titles. For example, search for profiles with a job title - "Product Manager". + “Product Manager”. employer_filters: Employer filter specifies employers of profiles to match on. - If an employer filter isn't specified, profiles with any + If an employer filter isn’t specified, profiles with any employers are retrieved. If multiple employer filters are specified, profiles with any matching employers are retrieved. If [EmployerFilter.negated][google.cloud.talent.v4beta1.Employ - erFilter.negated] is specified, the result won't contain + erFilter.negated] is specified, the result won’t contain profiles that match the employers. For example, search for - profiles that have working experience at "Google LLC". + profiles that have working experience at “Google LLC”. education_filters: Education filter specifies education of profiles to match on. - If an education filter isn't specified, profiles with any + If an education filter isn’t specified, profiles with any education are retrieved. If multiple education filters are specified, profiles that match any education filters are retrieved. If [EducationFilter.negated][google.cloud.talent.v - 4beta1.EducationFilter.negated] is specified, the result won't + 4beta1.EducationFilter.negated] is specified, the result won’t contain profiles that match the educations. For example, search for profiles with a master degree. skill_filters: Skill filter specifies skill of profiles to match on. If a - skill filter isn't specified, profiles with any skills are + skill filter isn’t specified, profiles with any skills are retrieved. If multiple skill filters are specified, profiles that match any skill filters are retrieved. If [SkillFilter.n egated][google.cloud.talent.v4beta1.SkillFilter.negated] is - specified, the result won't contain profiles that match the - skills. For example, search for profiles that have "Java" and - "Python" in skill list. + specified, the result won’t contain profiles that match the + skills. For example, search for profiles that have “Java” and + “Python” in skill list. work_experience_filter: Work experience filter specifies the total working experience - of profiles to match on. If a work experience filter isn't + of profiles to match on. If a work experience filter isn’t specified, profiles with any professional experience are retrieved. If multiple work experience filters are specified, profiles that match any work experience filters are retrieved. @@ -2350,9 +2481,9 @@ time_filters: Time filter specifies the create/update timestamp of the profiles to match on. For example, search for profiles - created since "2018-1-1". + created since “2018-1-1”. hirable_filter: - The hirable filter specifies the profile's hirable status to + The hirable filter specifies the profile’s hirable status to match on. application_date_filters: The application date filters specify application date ranges @@ -2365,25 +2496,25 @@ application. custom_attribute_filter: This filter specifies a structured syntax to match against the - [Profile.custom\_attributes][google.cloud.talent.v4beta1.Profi - le.custom\_attributes] that are marked as ``filterable``. The + [Profile.custom_attributes][google.cloud.talent.v4beta1.Profil + e.custom_attributes] that are marked as ``filterable``. The syntax for this expression is a subset of Google SQL syntax. String custom attributes: supported operators are =, != where the left of the operator is a custom field key and the right of the operator is a string (surrounded by quotes) value. - Numeric custom attributes: Supported operators are '>', '<' or - '=' operators where the left of the operator is a custom field + Numeric custom attributes: Supported operators are ‘>’, ‘<’ or + ‘=’ operators where the left of the operator is a custom field key and the right of the operator is a numeric value. Supported functions are LOWER() to perform case insensitive match and EMPTY() to filter on the existence of a key. Boolean expressions (AND/OR/NOT) are supported up to 3 levels - of nesting (for example "((A AND B AND C) OR NOT D) AND E"), + of nesting (for example “((A AND B AND C) OR NOT D) AND E”), and there can be a maximum of 50 comparisons/functions in the expression. The expression must be < 2000 characters in - length. Sample Query: (key1 = "TEST" OR LOWER(key1)="test" OR + length. Sample Query: (key1 = “TEST” OR LOWER(key1)=“test” OR NOT EMPTY(key1)) candidate_availability_filter: - Deprecated. Use availability\_filters instead. The candidate + Deprecated. Use availability_filters instead. The candidate availability filter which filters based on availability signals. Signal 1: Number of days since most recent job application. See [Availability.JobApplicationAvailabilitySigna @@ -2396,103 +2527,106 @@ recruiter understand if a specific candidate is likely to be actively seeking new job opportunities based on an aggregated set of signals. Specifically, the intent is NOT to indicate - the candidate's potential qualification / interest / close + the candidate’s potential qualification / interest / close ability for a specific job. availability_filters: The availability filter which filters based on [Profile.availa - bility\_signals][google.cloud.talent.v4beta1.Profile.availabil - ity\_signals]. The availability filter helps a recruiter + bility_signals][google.cloud.talent.v4beta1.Profile.availabili + ty_signals]. The availability filter helps a recruiter understand if a specific candidate is likely to be actively seeking new job opportunities based on an aggregated set of signals. Specifically, the intent is NOT to indicate the - candidate's potential qualification / interest / close ability + candidate’s potential qualification / interest / close ability for a specific job. There can be at most one [AvailabilityFil ter][google.cloud.talent.v4beta1.AvailabilityFilter] per [sign - al\_type][google.cloud.talent.v4beta1.AvailabilityFilter.signa - l\_type]. If there are multiple [AvailabilityFilter][google.cl - oud.talent.v4beta1.AvailabilityFilter] for a [signal\_type][go - ogle.cloud.talent.v4beta1.AvailabilityFilter.signal\_type], an + al_type][google.cloud.talent.v4beta1.AvailabilityFilter.signal + _type]. If there are multiple [AvailabilityFilter][google.clou + d.talent.v4beta1.AvailabilityFilter] for a [signal_type][googl + e.cloud.talent.v4beta1.AvailabilityFilter.signal_type], an error is thrown. person_name_filters: Person name filter specifies person name of profiles to match on. If multiple person name filters are specified, profiles that match any person name filters are retrieved. For - example, search for profiles of candidates with name "John - Smith". + example, search for profiles of candidates with name “John + Smith”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ProfileQuery) - ), + }, ) _sym_db.RegisterMessage(ProfileQuery) LocationFilter = _reflection.GeneratedProtocolMessageType( "LocationFilter", (_message.Message,), - dict( - DESCRIPTOR=_LOCATIONFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Geographic region of the search. + { + "DESCRIPTOR": _LOCATIONFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Geographic region of the search. + Attributes: address: - The address name, such as "Mountain View" or "Bay Area". + The address name, such as “Mountain View” or “Bay Area”. region_code: CLDR region code of the country/region of the address. This is used to address ambiguity of the user-input location, for - example, "Liverpool" against "Liverpool, NY, US" or - "Liverpool, UK". Set this field to bias location resolution + example, “Liverpool” against “Liverpool, NY, US” or + “Liverpool, UK”. Set this field to bias location resolution toward a specific country or territory. If this field is not set, application behavior is biased toward the United States - by default. See https://cldr.unicode.org/ and https://www.uni - code.org/cldr/charts/30/supplemental/territory\_information.ht - ml for details. Example: "CH" for Switzerland. Note that this - filter is not applicable for Profile Search related queries. + by default. See https://www.unicode.org/cldr/charts/30/supple + mental/territory_information.html for details. Example: “CH” + for Switzerland. Note that this filter is not applicable for + Profile Search related queries. lat_lng: The latitude and longitude of the geographic center to search from. This field is ignored if ``address`` is provided. distance_in_miles: - The distance\_in\_miles is applied when the location being + The distance_in_miles is applied when the location being searched for is identified as a city or smaller. This field is ignored if the location being searched for is a state or larger. telecommute_preference: Allows the client to return jobs without a set location, specifically, telecommuting jobs (telecommuting is considered - by the service as a special location. [Job.posting\_region][go - ogle.cloud.talent.v4beta1.Job.posting\_region] indicates if a + by the service as a special location. [Job.posting_region][goo + gle.cloud.talent.v4beta1.Job.posting_region] indicates if a job permits telecommuting. If this field is set to [Telecommut - ePreference.TELECOMMUTE\_ALLOWED][google.cloud.talent.v4beta1. - LocationFilter.TelecommutePreference.TELECOMMUTE\_ALLOWED], + ePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.L + ocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED], telecommuting jobs are searched, and [address][google.cloud.talent.v4beta1.LocationFilter.address] - and [lat\_lng][google.cloud.talent.v4beta1.LocationFilter.lat\ - _lng] are ignored. If not set or set to [TelecommutePreference - .TELECOMMUTE\_EXCLUDED][google.cloud.talent.v4beta1.LocationFi - lter.TelecommutePreference.TELECOMMUTE\_EXCLUDED], telecommute - job are not searched. This filter can be used by itself to - search exclusively for telecommuting jobs, or it can be - combined with another location filter to search for a - combination of job locations, such as "Mountain View" or - "telecommuting" jobs. However, when used in combination with - other location filters, telecommuting jobs can be treated as - less relevant than other jobs in the search response. This - field is only used for job search requests. + and + [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] + are ignored. If not set or set to [TelecommutePreference.TELEC + OMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.Te + lecommutePreference.TELECOMMUTE_EXCLUDED], telecommute job are + not searched. This filter can be used by itself to search + exclusively for telecommuting jobs, or it can be combined with + another location filter to search for a combination of job + locations, such as “Mountain View” or “telecommuting” jobs. + However, when used in combination with other location filters, + telecommuting jobs can be treated as less relevant than other + jobs in the search response. This field is only used for job + search requests. negated: Whether to apply negation to the filter so profiles matching the filter are excluded. Currently only supported in profile search. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.LocationFilter) - ), + }, ) _sym_db.RegisterMessage(LocationFilter) CompensationFilter = _reflection.GeneratedProtocolMessageType( "CompensationFilter", (_message.Message,), - dict( - DESCRIPTOR=_COMPENSATIONFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Filter on job compensation type and amount. + { + "DESCRIPTOR": _COMPENSATIONFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Filter on job compensation type and amount. + Attributes: type: Required. Type of filter. @@ -2507,17 +2641,18 @@ fields are included. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationFilter) - ), + }, ) _sym_db.RegisterMessage(CompensationFilter) CommuteFilter = _reflection.GeneratedProtocolMessageType( "CommuteFilter", (_message.Message,), - dict( - DESCRIPTOR=_COMMUTEFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Parameters needed for commute search. + { + "DESCRIPTOR": _COMMUTEFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Parameters needed for commute search. + Attributes: commute_method: Required. The method of transportation to calculate the @@ -2532,7 +2667,7 @@ If ``true``, jobs without street level addresses may also be returned. For city level addresses, the city center is used. For state and coarser level addresses, text matching is used. - If this field is set to ``false`` or isn't specified, only + If this field is set to ``false`` or isn’t specified, only jobs that include street level addresses will be returned by commute search. traffic_option: @@ -2548,91 +2683,95 @@ hour level resolution. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CommuteFilter) - ), + }, ) _sym_db.RegisterMessage(CommuteFilter) JobTitleFilter = _reflection.GeneratedProtocolMessageType( "JobTitleFilter", (_message.Message,), - dict( - DESCRIPTOR=_JOBTITLEFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Job title of the search. + { + "DESCRIPTOR": _JOBTITLEFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Job title of the search. + Attributes: job_title: - Required. The job title. For example, "Software engineer", or - "Product manager". + Required. The job title. For example, “Software engineer”, or + “Product manager”. negated: Whether to apply negation to the filter so profiles matching the filter are excluded. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobTitleFilter) - ), + }, ) _sym_db.RegisterMessage(JobTitleFilter) SkillFilter = _reflection.GeneratedProtocolMessageType( "SkillFilter", (_message.Message,), - dict( - DESCRIPTOR=_SKILLFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Skill filter of the search. + { + "DESCRIPTOR": _SKILLFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Skill filter of the search. + Attributes: skill: - Required. The skill name. For example, "java", "j2ee", and so + Required. The skill name. For example, “java”, “j2ee”, and so on. negated: Whether to apply negation to the filter so profiles matching the filter are excluded. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SkillFilter) - ), + }, ) _sym_db.RegisterMessage(SkillFilter) EmployerFilter = _reflection.GeneratedProtocolMessageType( "EmployerFilter", (_message.Message,), - dict( - DESCRIPTOR=_EMPLOYERFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Employer filter of the search. + { + "DESCRIPTOR": _EMPLOYERFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Employer filter of the search. + Attributes: employer: - Required. The name of the employer, for example "Google", - "Alphabet". + Required. The name of the employer, for example “Google”, + “Alphabet”. mode: Define set of [EmploymentRecord][google.cloud.talent.v4beta1.E mploymentRecord]s to search against. Defaults to [EmployerFil - terMode.ALL\_EMPLOYMENT\_RECORDS][google.cloud.talent.v4beta1. - EmployerFilter.EmployerFilterMode.ALL\_EMPLOYMENT\_RECORDS]. + terMode.ALL_EMPLOYMENT_RECORDS][google.cloud.talent.v4beta1.Em + ployerFilter.EmployerFilterMode.ALL_EMPLOYMENT_RECORDS]. negated: Whether to apply negation to the filter so profiles matching the filter is excluded. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EmployerFilter) - ), + }, ) _sym_db.RegisterMessage(EmployerFilter) EducationFilter = _reflection.GeneratedProtocolMessageType( "EducationFilter", (_message.Message,), - dict( - DESCRIPTOR=_EDUCATIONFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Education filter of the search. + { + "DESCRIPTOR": _EDUCATIONFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Education filter of the search. + Attributes: school: - The school name. For example "MIT", "University of California, - Berkeley". + The school name. For example “MIT”, “University of California, + Berkeley”. field_of_study: The field of study. This is to search against value provided - in [Degree.fields\_of\_study][google.cloud.talent.v4beta1.Degr - ee.fields\_of\_study]. For example "Computer Science", - "Mathematics". + in [Degree.fields_of_study][google.cloud.talent.v4beta1.Degree + .fields_of_study]. For example “Computer Science”, + “Mathematics”. degree_type: Education degree in ISCED code. Each value in degree covers a specific level of education, without any expansion to upper @@ -2642,21 +2781,21 @@ the filter is excluded. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EducationFilter) - ), + }, ) _sym_db.RegisterMessage(EducationFilter) WorkExperienceFilter = _reflection.GeneratedProtocolMessageType( "WorkExperienceFilter", (_message.Message,), - dict( - DESCRIPTOR=_WORKEXPERIENCEFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Work experience filter. This filter is used to search for profiles - with working experience length between [min\_experience][google.cloud. - talent.v4beta1.WorkExperienceFilter.min\_experience] and [max\_experie - nce][google.cloud.talent.v4beta1.WorkExperienceFilter.max\_experience] - . + { + "DESCRIPTOR": _WORKEXPERIENCEFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Work experience filter. This filter is used to search for profiles + with working experience length between [min_experience][google.cloud.t + alent.v4beta1.WorkExperienceFilter.min_experience] and [max_experience + ][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience]. + Attributes: min_experience: The minimum duration of the work experience (inclusive). @@ -2664,70 +2803,73 @@ The maximum duration of the work experience (exclusive). """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.WorkExperienceFilter) - ), + }, ) _sym_db.RegisterMessage(WorkExperienceFilter) ApplicationDateFilter = _reflection.GeneratedProtocolMessageType( "ApplicationDateFilter", (_message.Message,), - dict( - DESCRIPTOR=_APPLICATIONDATEFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Application Date Range Filter. The API matches profiles with [Applica - tion.application\_date][google.cloud.talent.v4beta1.Application.applic - ation\_date] between start date and end date (both boundaries are - inclusive). The filter is ignored if both [start\_date][google.cloud.t - alent.v4beta1.ApplicationDateFilter.start\_date] and [end\_date][googl - e.cloud.talent.v4beta1.ApplicationDateFilter.end\_date] are missing. + { + "DESCRIPTOR": _APPLICATIONDATEFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Application Date Range Filter. The API matches profiles with [Applica + tion.application_date][google.cloud.talent.v4beta1.Application.applica + tion_date] between start date and end date (both boundaries are + inclusive). The filter is ignored if both [start_date][google.cloud.ta + lent.v4beta1.ApplicationDateFilter.start_date] and + [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date] + are missing. + Attributes: start_date: - Start date. If it's missing, The API matches profiles with + Start date. If it’s missing, The API matches profiles with application date not after the end date. end_date: - End date. If it's missing, The API matches profiles with + End date. If it’s missing, The API matches profiles with application date not before the start date. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationDateFilter) - ), + }, ) _sym_db.RegisterMessage(ApplicationDateFilter) ApplicationOutcomeNotesFilter = _reflection.GeneratedProtocolMessageType( "ApplicationOutcomeNotesFilter", (_message.Message,), - dict( - DESCRIPTOR=_APPLICATIONOUTCOMENOTESFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Outcome Notes Filter. + { + "DESCRIPTOR": _APPLICATIONOUTCOMENOTESFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Outcome Notes Filter. + Attributes: outcome_notes: Required. User entered or selected outcome reason. The API - does an exact match on the [Application.outcome\_notes][google - .cloud.talent.v4beta1.Application.outcome\_notes] in profiles. + does an exact match on the [Application.outcome_notes][google. + cloud.talent.v4beta1.Application.outcome_notes] in profiles. negated: If true, The API excludes all candidates with any [Application - .outcome\_notes][google.cloud.talent.v4beta1.Application.outco - me\_notes] matching the outcome reason specified in the - filter. + .outcome_notes][google.cloud.talent.v4beta1.Application.outcom + e_notes] matching the outcome reason specified in the filter. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) - ), + }, ) _sym_db.RegisterMessage(ApplicationOutcomeNotesFilter) ApplicationJobFilter = _reflection.GeneratedProtocolMessageType( "ApplicationJobFilter", (_message.Message,), - dict( - DESCRIPTOR=_APPLICATIONJOBFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Filter on the job information of Application. + { + "DESCRIPTOR": _APPLICATIONJOBFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Filter on the job information of Application. + Attributes: job_requisition_id: The job requisition id in the application. The API does an - exact match on the [Job.requisition\_id][google.cloud.talent.v - 4beta1.Job.requisition\_id] of + exact match on the [Job.requisition_id][google.cloud.talent.v4 + beta1.Job.requisition_id] of [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. job_title: @@ -2741,17 +2883,18 @@ matching the filters. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationJobFilter) - ), + }, ) _sym_db.RegisterMessage(ApplicationJobFilter) TimeFilter = _reflection.GeneratedProtocolMessageType( "TimeFilter", (_message.Message,), - dict( - DESCRIPTOR=_TIMEFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Filter on create timestamp or update timestamp of profiles. + { + "DESCRIPTOR": _TIMEFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Filter on create timestamp or update timestamp of profiles. + Attributes: start_time: Start timestamp, matching profiles with the start time. If @@ -2763,39 +2906,41 @@ timestamp after the start timestamp. time_field: Specifies which time field to filter profiles. Defaults to [T - imeField.CREATE\_TIME][google.cloud.talent.v4beta1.TimeFilter. - TimeField.CREATE\_TIME]. + imeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.T + imeField.CREATE_TIME]. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.TimeFilter) - ), + }, ) _sym_db.RegisterMessage(TimeFilter) CandidateAvailabilityFilter = _reflection.GeneratedProtocolMessageType( "CandidateAvailabilityFilter", (_message.Message,), - dict( - DESCRIPTOR=_CANDIDATEAVAILABILITYFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Deprecated. Use AvailabilityFilter instead. Filter on availability + { + "DESCRIPTOR": _CANDIDATEAVAILABILITYFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Deprecated. Use AvailabilityFilter instead. Filter on availability signals. + Attributes: negated: It is false by default. If true, API excludes all the potential available profiles. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CandidateAvailabilityFilter) - ), + }, ) _sym_db.RegisterMessage(CandidateAvailabilityFilter) AvailabilityFilter = _reflection.GeneratedProtocolMessageType( "AvailabilityFilter", (_message.Message,), - dict( - DESCRIPTOR=_AVAILABILITYFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Filter on availability signals. + { + "DESCRIPTOR": _AVAILABILITYFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Filter on availability signals. + Attributes: signal_type: Required. Type of signal to apply filter on. @@ -2806,33 +2951,33 @@ vailabilityFilter] are provided, the default behavior is to OR all filters, but if this field is set to true, this particular [AvailabilityFilter][google.cloud.talent.v4beta1.AvailabilityF - ilter] will be AND'ed against other [AvailabilityFilter][googl + ilter] will be AND’ed against other [AvailabilityFilter][googl e.cloud.talent.v4beta1.AvailabilityFilter]. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.AvailabilityFilter) - ), + }, ) _sym_db.RegisterMessage(AvailabilityFilter) PersonNameFilter = _reflection.GeneratedProtocolMessageType( "PersonNameFilter", (_message.Message,), - dict( - DESCRIPTOR=_PERSONNAMEFILTER, - __module__="google.cloud.talent_v4beta1.proto.filters_pb2", - __doc__="""Filter on person name. + { + "DESCRIPTOR": _PERSONNAMEFILTER, + "__module__": "google.cloud.talent_v4beta1.proto.filters_pb2", + "__doc__": """Filter on person name. + Attributes: person_name: - Required. The person name. For example, "John Smith". Can be - any combination of - [PersonName.structured\_name.given\_name][], - [PersonName.structured\_name.middle\_initial][], - [PersonName.structured\_name.family\_name][], and [PersonName. - formatted\_name][google.cloud.talent.v4beta1.PersonName.format - ted\_name]. + Required. The person name. For example, “John Smith”. Can be + any combination of [PersonName.structured_name.given_name][], + [PersonName.structured_name.middle_initial][], + [PersonName.structured_name.family_name][], and [PersonName.fo + rmatted_name][google.cloud.talent.v4beta1.PersonName.formatted + _name]. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonNameFilter) - ), + }, ) _sym_db.RegisterMessage(PersonNameFilter) diff --git a/google/cloud/talent_v4beta1/proto/filters_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/filters_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/talent_v4beta1/proto/filters_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/filters_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/google/cloud/talent_v4beta1/proto/histogram_pb2.py b/google/cloud/talent_v4beta1/proto/histogram_pb2.py index 493a2043..683a9684 100644 --- a/google/cloud/talent_v4beta1/proto/histogram_pb2.py +++ b/google/cloud/talent_v4beta1/proto/histogram_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/histogram.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 @@ -22,13 +19,10 @@ name="google/cloud/talent_v4beta1/proto/histogram.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\016HistogramProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n1google/cloud/talent_v4beta1/proto/histogram.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto")\n\x0eHistogramQuery\x12\x17\n\x0fhistogram_query\x18\x01 \x01(\t"\xb6\x01\n\x14HistogramQueryResult\x12\x17\n\x0fhistogram_query\x18\x01 \x01(\t\x12S\n\thistogram\x18\x02 \x03(\x0b\x32@.google.cloud.talent.v4beta1.HistogramQueryResult.HistogramEntry\x1a\x30\n\x0eHistogramEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x42|\n\x1f\x63om.google.cloud.talent.v4beta1B\x0eHistogramProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\016HistogramProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n1google/cloud/talent_v4beta1/proto/histogram.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto")\n\x0eHistogramQuery\x12\x17\n\x0fhistogram_query\x18\x01 \x01(\t"\xb6\x01\n\x14HistogramQueryResult\x12\x17\n\x0fhistogram_query\x18\x01 \x01(\t\x12S\n\thistogram\x18\x02 \x03(\x0b\x32@.google.cloud.talent.v4beta1.HistogramQueryResult.HistogramEntry\x1a\x30\n\x0eHistogramEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x42|\n\x1f\x63om.google.cloud.talent.v4beta1B\x0eHistogramProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,], ) @@ -38,6 +32,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="histogram_query", @@ -48,7 +43,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, @@ -56,7 +51,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -77,6 +73,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -87,7 +84,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, @@ -95,6 +92,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -113,12 +111,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=[], @@ -133,6 +132,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="histogram_query", @@ -143,7 +143,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, @@ -151,6 +151,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="histogram", @@ -169,10 +170,11 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_HISTOGRAMQUERYRESULT_HISTOGRAMENTRY], + nested_types=[_HISTOGRAMQUERYRESULT_HISTOGRAMENTRY,], enum_types=[], serialized_options=None, is_extendable=False, @@ -194,42 +196,44 @@ HistogramQuery = _reflection.GeneratedProtocolMessageType( "HistogramQuery", (_message.Message,), - dict( - DESCRIPTOR=_HISTOGRAMQUERY, - __module__="google.cloud.talent_v4beta1.proto.histogram_pb2", - __doc__="""The histogram request. + { + "DESCRIPTOR": _HISTOGRAMQUERY, + "__module__": "google.cloud.talent_v4beta1.proto.histogram_pb2", + "__doc__": """The histogram request. + Attributes: histogram_query: An expression specifies a histogram request against matching resources (for example, jobs, profiles) for searches. See [Se - archJobsRequest.histogram\_queries][google.cloud.talent.v4beta - 1.SearchJobsRequest.histogram\_queries] and [SearchProfilesReq - uest.histogram\_queries][google.cloud.talent.v4beta1.SearchPro - filesRequest.histogram\_queries] for details about syntax. + archJobsRequest.histogram_queries][google.cloud.talent.v4beta1 + .SearchJobsRequest.histogram_queries] and [SearchProfilesReque + st.histogram_queries][google.cloud.talent.v4beta1.SearchProfil + esRequest.histogram_queries] for details about syntax. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.HistogramQuery) - ), + }, ) _sym_db.RegisterMessage(HistogramQuery) HistogramQueryResult = _reflection.GeneratedProtocolMessageType( "HistogramQueryResult", (_message.Message,), - dict( - HistogramEntry=_reflection.GeneratedProtocolMessageType( + { + "HistogramEntry": _reflection.GeneratedProtocolMessageType( "HistogramEntry", (_message.Message,), - dict( - DESCRIPTOR=_HISTOGRAMQUERYRESULT_HISTOGRAMENTRY, - __module__="google.cloud.talent_v4beta1.proto.histogram_pb2" + { + "DESCRIPTOR": _HISTOGRAMQUERYRESULT_HISTOGRAMENTRY, + "__module__": "google.cloud.talent_v4beta1.proto.histogram_pb2" # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.HistogramQueryResult.HistogramEntry) - ), + }, ), - DESCRIPTOR=_HISTOGRAMQUERYRESULT, - __module__="google.cloud.talent_v4beta1.proto.histogram_pb2", - __doc__="""Histogram result that matches + "DESCRIPTOR": _HISTOGRAMQUERYRESULT, + "__module__": "google.cloud.talent_v4beta1.proto.histogram_pb2", + "__doc__": """Histogram result that matches [HistogramQuery][google.cloud.talent.v4beta1.HistogramQuery] specified in searches. + Attributes: histogram_query: Requested histogram expression. @@ -245,7 +249,7 @@ ``0-MAX``. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.HistogramQueryResult) - ), + }, ) _sym_db.RegisterMessage(HistogramQueryResult) _sym_db.RegisterMessage(HistogramQueryResult.HistogramEntry) diff --git a/google/cloud/talent_v4beta1/proto/histogram_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/histogram_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/talent_v4beta1/proto/histogram_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/histogram_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/google/cloud/talent_v4beta1/proto/job_pb2.py b/google/cloud/talent_v4beta1/proto/job_pb2.py index 111a08a8..eadc3266 100644 --- a/google/cloud/talent_v4beta1/proto/job_pb2.py +++ b/google/cloud/talent_v4beta1/proto/job_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/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 @@ -29,12 +26,9 @@ name="google/cloud/talent_v4beta1/proto/job.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\020JobResourceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - "\n+google/cloud/talent_v4beta1/proto/job.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a google/type/postal_address.proto\x1a\x1cgoogle/api/annotations.proto\"\xe0\x0f\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x07\x63ompany\x18\x02 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Company\x12\x1b\n\x0erequisition_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05title\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\taddresses\x18\x06 \x03(\t\x12J\n\x10\x61pplication_info\x18\x07 \x01(\x0b\x32\x30.google.cloud.talent.v4beta1.Job.ApplicationInfo\x12=\n\x0cjob_benefits\x18\x08 \x03(\x0e\x32'.google.cloud.talent.v4beta1.JobBenefit\x12H\n\x11\x63ompensation_info\x18\t \x01(\x0b\x32-.google.cloud.talent.v4beta1.CompensationInfo\x12Q\n\x11\x63ustom_attributes\x18\n \x03(\x0b\x32\x36.google.cloud.talent.v4beta1.Job.CustomAttributesEntry\x12=\n\x0c\x64\x65gree_types\x18\x0b \x03(\x0e\x32'.google.cloud.talent.v4beta1.DegreeType\x12\x12\n\ndepartment\x18\x0c \x01(\t\x12\x45\n\x10\x65mployment_types\x18\r \x03(\x0e\x32+.google.cloud.talent.v4beta1.EmploymentType\x12\x12\n\nincentives\x18\x0e \x01(\t\x12\x15\n\rlanguage_code\x18\x0f \x01(\t\x12\x38\n\tjob_level\x18\x10 \x01(\x0e\x32%.google.cloud.talent.v4beta1.JobLevel\x12\x17\n\x0fpromotion_value\x18\x11 \x01(\x05\x12\x16\n\x0equalifications\x18\x12 \x01(\t\x12\x18\n\x10responsibilities\x18\x13 \x01(\t\x12\x42\n\x0eposting_region\x18\x14 \x01(\x0e\x32*.google.cloud.talent.v4beta1.PostingRegion\x12?\n\nvisibility\x18\x15 \x01(\x0e\x32'.google.cloud.talent.v4beta1.VisibilityB\x02\x18\x01\x12\x32\n\x0ejob_start_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cjob_end_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14posting_publish_time\x18\x18 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x13posting_expire_time\x18\x19 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x13posting_create_time\x18\x1a \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x13posting_update_time\x18\x1b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12!\n\x14\x63ompany_display_name\x18\x1c \x01(\tB\x03\xe0\x41\x03\x12G\n\x0c\x64\x65rived_info\x18\x1d \x01(\x0b\x32,.google.cloud.talent.v4beta1.Job.DerivedInfoB\x03\xe0\x41\x03\x12N\n\x12processing_options\x18\x1e \x01(\x0b\x32\x32.google.cloud.talent.v4beta1.Job.ProcessingOptions\x1a\x44\n\x0f\x41pplicationInfo\x12\x0e\n\x06\x65mails\x18\x01 \x03(\t\x12\x13\n\x0binstruction\x18\x02 \x01(\t\x12\x0c\n\x04uris\x18\x03 \x03(\t\x1a\x89\x01\n\x0b\x44\x65rivedInfo\x12\x38\n\tlocations\x18\x01 \x03(\x0b\x32%.google.cloud.talent.v4beta1.Location\x12@\n\x0ejob_categories\x18\x03 \x03(\x0e\x32(.google.cloud.talent.v4beta1.JobCategory\x1a\x88\x01\n\x11ProcessingOptions\x12)\n!disable_street_address_resolution\x18\x01 \x01(\x08\x12H\n\x11html_sanitization\x18\x02 \x01(\x0e\x32-.google.cloud.talent.v4beta1.HtmlSanitization\x1a\x65\n\x15\x43ustomAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.cloud.talent.v4beta1.CustomAttribute:\x02\x38\x01:k\xea\x41h\n\x17jobs.googleapis.com/Job\x12.projects/{project}/tenants/{tenant}/jobs/{job}\x12\x1dprojects/{project}/jobs/{job}B~\n\x1f\x63om.google.cloud.talent.v4beta1B\x10JobResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3" - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\020JobResourceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b"\n+google/cloud/talent_v4beta1/proto/job.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a google/type/postal_address.proto\x1a\x1cgoogle/api/annotations.proto\"\xe0\x0f\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x07\x63ompany\x18\x02 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Company\x12\x1b\n\x0erequisition_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05title\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\taddresses\x18\x06 \x03(\t\x12J\n\x10\x61pplication_info\x18\x07 \x01(\x0b\x32\x30.google.cloud.talent.v4beta1.Job.ApplicationInfo\x12=\n\x0cjob_benefits\x18\x08 \x03(\x0e\x32'.google.cloud.talent.v4beta1.JobBenefit\x12H\n\x11\x63ompensation_info\x18\t \x01(\x0b\x32-.google.cloud.talent.v4beta1.CompensationInfo\x12Q\n\x11\x63ustom_attributes\x18\n \x03(\x0b\x32\x36.google.cloud.talent.v4beta1.Job.CustomAttributesEntry\x12=\n\x0c\x64\x65gree_types\x18\x0b \x03(\x0e\x32'.google.cloud.talent.v4beta1.DegreeType\x12\x12\n\ndepartment\x18\x0c \x01(\t\x12\x45\n\x10\x65mployment_types\x18\r \x03(\x0e\x32+.google.cloud.talent.v4beta1.EmploymentType\x12\x12\n\nincentives\x18\x0e \x01(\t\x12\x15\n\rlanguage_code\x18\x0f \x01(\t\x12\x38\n\tjob_level\x18\x10 \x01(\x0e\x32%.google.cloud.talent.v4beta1.JobLevel\x12\x17\n\x0fpromotion_value\x18\x11 \x01(\x05\x12\x16\n\x0equalifications\x18\x12 \x01(\t\x12\x18\n\x10responsibilities\x18\x13 \x01(\t\x12\x42\n\x0eposting_region\x18\x14 \x01(\x0e\x32*.google.cloud.talent.v4beta1.PostingRegion\x12?\n\nvisibility\x18\x15 \x01(\x0e\x32'.google.cloud.talent.v4beta1.VisibilityB\x02\x18\x01\x12\x32\n\x0ejob_start_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cjob_end_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14posting_publish_time\x18\x18 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x13posting_expire_time\x18\x19 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x13posting_create_time\x18\x1a \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x13posting_update_time\x18\x1b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12!\n\x14\x63ompany_display_name\x18\x1c \x01(\tB\x03\xe0\x41\x03\x12G\n\x0c\x64\x65rived_info\x18\x1d \x01(\x0b\x32,.google.cloud.talent.v4beta1.Job.DerivedInfoB\x03\xe0\x41\x03\x12N\n\x12processing_options\x18\x1e \x01(\x0b\x32\x32.google.cloud.talent.v4beta1.Job.ProcessingOptions\x1a\x44\n\x0f\x41pplicationInfo\x12\x0e\n\x06\x65mails\x18\x01 \x03(\t\x12\x13\n\x0binstruction\x18\x02 \x01(\t\x12\x0c\n\x04uris\x18\x03 \x03(\t\x1a\x89\x01\n\x0b\x44\x65rivedInfo\x12\x38\n\tlocations\x18\x01 \x03(\x0b\x32%.google.cloud.talent.v4beta1.Location\x12@\n\x0ejob_categories\x18\x03 \x03(\x0e\x32(.google.cloud.talent.v4beta1.JobCategory\x1a\x88\x01\n\x11ProcessingOptions\x12)\n!disable_street_address_resolution\x18\x01 \x01(\x08\x12H\n\x11html_sanitization\x18\x02 \x01(\x0e\x32-.google.cloud.talent.v4beta1.HtmlSanitization\x1a\x65\n\x15\x43ustomAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.cloud.talent.v4beta1.CustomAttribute:\x02\x38\x01:k\xea\x41h\n\x17jobs.googleapis.com/Job\x12.projects/{project}/tenants/{tenant}/jobs/{job}\x12\x1dprojects/{project}/jobs/{job}B~\n\x1f\x63om.google.cloud.talent.v4beta1B\x10JobResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3", dependencies=[ google_dot_api_dot_field__behavior__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="emails", @@ -70,6 +65,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="instruction", @@ -80,7 +76,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, @@ -88,6 +84,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="uris", @@ -106,6 +103,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -126,6 +124,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="locations", @@ -144,6 +143,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_categories", @@ -162,6 +162,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -182,6 +183,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="disable_street_address_resolution", @@ -200,6 +202,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="html_sanitization", @@ -218,6 +221,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -238,6 +242,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -248,7 +253,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, @@ -256,6 +261,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -274,12 +280,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=[], @@ -294,6 +301,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -304,7 +312,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, @@ -312,6 +320,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="company", @@ -322,16 +331,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\035\n\033jobs.googleapis.com/Company" - ), + serialized_options=b"\340A\002\372A\035\n\033jobs.googleapis.com/Company", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="requisition_id", @@ -342,14 +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"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="title", @@ -360,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\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -378,14 +388,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="addresses", @@ -404,6 +415,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="application_info", @@ -422,6 +434,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_benefits", @@ -440,6 +453,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="compensation_info", @@ -458,6 +472,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="custom_attributes", @@ -476,6 +491,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="degree_types", @@ -494,6 +510,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="department", @@ -504,7 +521,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, @@ -512,6 +529,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="employment_types", @@ -530,6 +548,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="incentives", @@ -540,7 +559,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, @@ -548,6 +567,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="language_code", @@ -558,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, @@ -566,6 +586,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_level", @@ -584,6 +605,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="promotion_value", @@ -602,6 +624,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="qualifications", @@ -612,7 +635,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, @@ -620,6 +643,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="responsibilities", @@ -630,7 +654,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, @@ -638,6 +662,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="posting_region", @@ -656,6 +681,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="visibility", @@ -672,8 +698,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="job_start_time", @@ -692,6 +719,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_end_time", @@ -710,6 +738,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="posting_publish_time", @@ -728,6 +757,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="posting_expire_time", @@ -746,6 +776,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="posting_create_time", @@ -762,8 +793,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="posting_update_time", @@ -780,8 +812,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="company_display_name", @@ -792,14 +825,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\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="derived_info", @@ -816,8 +850,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="processing_options", @@ -836,6 +871,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -846,9 +882,7 @@ _JOB_CUSTOMATTRIBUTESENTRY, ], enum_types=[], - serialized_options=_b( - "\352Ah\n\027jobs.googleapis.com/Job\022.projects/{project}/tenants/{tenant}/jobs/{job}\022\035projects/{project}/jobs/{job}" - ), + serialized_options=b"\352Ah\n\027jobs.googleapis.com/Job\022.projects/{project}/tenants/{tenant}/jobs/{job}\022\035projects/{project}/jobs/{job}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -936,22 +970,23 @@ Job = _reflection.GeneratedProtocolMessageType( "Job", (_message.Message,), - dict( - ApplicationInfo=_reflection.GeneratedProtocolMessageType( + { + "ApplicationInfo": _reflection.GeneratedProtocolMessageType( "ApplicationInfo", (_message.Message,), - dict( - DESCRIPTOR=_JOB_APPLICATIONINFO, - __module__="google.cloud.talent_v4beta1.proto.job_pb2", - __doc__="""Application related details of a job posting. + { + "DESCRIPTOR": _JOB_APPLICATIONINFO, + "__module__": "google.cloud.talent_v4beta1.proto.job_pb2", + "__doc__": """Application related details of a job posting. + Attributes: emails: Use this field to specify email address(es) to which resumes or applications can be sent. The maximum number of allowed characters for each entry is 255. instruction: - Use this field to provide instructions, such as "Mail your - application to ...", that a candidate can follow to apply for + Use this field to provide instructions, such as “Mail your + application to …”, that a candidate can follow to apply for the job. This field accepts and sanitizes HTML input, and also accepts bold, italic, ordered list, and unordered list markup tags. The maximum number of allowed characters is @@ -962,15 +997,16 @@ number of allowed characters for each entry is 2,000. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job.ApplicationInfo) - ), + }, ), - DerivedInfo=_reflection.GeneratedProtocolMessageType( + "DerivedInfo": _reflection.GeneratedProtocolMessageType( "DerivedInfo", (_message.Message,), - dict( - DESCRIPTOR=_JOB_DERIVEDINFO, - __module__="google.cloud.talent_v4beta1.proto.job_pb2", - __doc__="""Derived details about the job posting. + { + "DESCRIPTOR": _JOB_DERIVEDINFO, + "__module__": "google.cloud.talent_v4beta1.proto.job_pb2", + "__doc__": """Derived details about the job posting. + Attributes: locations: Structured locations of the job, resolved from @@ -985,15 +1021,16 @@ scription][google.cloud.talent.v4beta1.Job.description]. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job.DerivedInfo) - ), + }, ), - ProcessingOptions=_reflection.GeneratedProtocolMessageType( + "ProcessingOptions": _reflection.GeneratedProtocolMessageType( "ProcessingOptions", (_message.Message,), - dict( - DESCRIPTOR=_JOB_PROCESSINGOPTIONS, - __module__="google.cloud.talent_v4beta1.proto.job_pb2", - __doc__="""Options for job processing. + { + "DESCRIPTOR": _JOB_PROCESSINGOPTIONS, + "__module__": "google.cloud.talent_v4beta1.proto.job_pb2", + "__doc__": """Options for job processing. + Attributes: disable_street_address_resolution: If set to ``true``, the service does not attempt to resolve a @@ -1002,59 +1039,60 @@ Option for job HTML content sanitization. Applied fields are: - description - applicationInfo.instruction - incentives - qualifications - responsibilities HTML tags in these fields - may be stripped if sanitiazation isn't disabled. Defaults to - [HtmlSanitization.SIMPLE\_FORMATTING\_ONLY][google.cloud.talen - t.v4beta1.HtmlSanitization.SIMPLE\_FORMATTING\_ONLY]. + may be stripped if sanitiazation isn’t disabled. Defaults to + [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent. + v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY]. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job.ProcessingOptions) - ), + }, ), - CustomAttributesEntry=_reflection.GeneratedProtocolMessageType( + "CustomAttributesEntry": _reflection.GeneratedProtocolMessageType( "CustomAttributesEntry", (_message.Message,), - dict( - DESCRIPTOR=_JOB_CUSTOMATTRIBUTESENTRY, - __module__="google.cloud.talent_v4beta1.proto.job_pb2" + { + "DESCRIPTOR": _JOB_CUSTOMATTRIBUTESENTRY, + "__module__": "google.cloud.talent_v4beta1.proto.job_pb2" # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job.CustomAttributesEntry) - ), + }, ), - DESCRIPTOR=_JOB, - __module__="google.cloud.talent_v4beta1.proto.job_pb2", - __doc__="""A Job resource represents a job posting (also referred to as a "job - listing" or "job requisition"). A job belongs to a + "DESCRIPTOR": _JOB, + "__module__": "google.cloud.talent_v4beta1.proto.job_pb2", + "__doc__": """A Job resource represents a job posting (also referred to as a “job + listing” or “job requisition”). A job belongs to a [Company][google.cloud.talent.v4beta1.Company], which is the hiring entity responsible for the job. + Attributes: name: Required during job update. The resource name for the job. This is generated by the service when a job is created. The format is - "projects/{project\_id}/tenants/{tenant\_id}/jobs/{job\_id}". - For example, "projects/foo/tenants/bar/jobs/baz". If tenant - id is unspecified, the default tenant is used. For example, - "projects/foo/jobs/bar". Use of this field in job queries and - API calls is preferred over the use of [requisition\_id][googl - e.cloud.talent.v4beta1.Job.requisition\_id] since this value - is unique. + “projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}”. For + example, “projects/foo/tenants/bar/jobs/baz”. If tenant id is + unspecified, the default tenant is used. For example, + “projects/foo/jobs/bar”. Use of this field in job queries and + API calls is preferred over the use of [requisition_id][google + .cloud.talent.v4beta1.Job.requisition_id] since this value is + unique. company: Required. The resource name of the company listing the job. - The format is "projects/{project\_id}/tenants/{tenant\_id}/com - panies/{company\_id}". For example, - "projects/foo/tenants/bar/companies/baz". If tenant id is + The format is “projects/{project_id}/tenants/{tenant_id}/compa + nies/{company_id}”. For example, + “projects/foo/tenants/bar/companies/baz”. If tenant id is unspecified, the default tenant is used. For example, - "projects/foo/companies/bar". + “projects/foo/companies/bar”. requisition_id: Required. The requisition ID, also referred to as the posting ID, is assigned by the client to identify a job. This field is intended to be used by clients for client identification and - tracking of postings. A job isn't allowed to be created if + tracking of postings. A job isn’t allowed to be created if there is another job with the same - [company][google.cloud.talent.v4beta1.Job.name], [language\_co - de][google.cloud.talent.v4beta1.Job.language\_code] and [requi - sition\_id][google.cloud.talent.v4beta1.Job.requisition\_id]. - The maximum number of allowed characters is 255. + [company][google.cloud.talent.v4beta1.Job.name], + [language_code][google.cloud.talent.v4beta1.Job.language_code] + and [requisition_id][google.cloud.talent.v4beta1.Job.requisiti + on_id]. The maximum number of allowed characters is 255. title: - Required. The title of the job, such as "Software Engineer" + Required. The title of the job, such as “Software Engineer” The maximum number of allowed characters is 500. description: Required. The description of the job, which typically includes @@ -1075,31 +1113,31 @@ by commute time. At most 50 locations are allowed for best search performance. If a job has more locations, it is suggested to split it into multiple jobs with unique [requisit - ion\_id][google.cloud.talent.v4beta1.Job.requisition\_id]s - (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA-2', and so on.) as - multiple jobs with the same - [company][google.cloud.talent.v4beta1.Job.company], [language\ - _code][google.cloud.talent.v4beta1.Job.language\_code] and [re - quisition\_id][google.cloud.talent.v4beta1.Job.requisition\_id - ] are not allowed. If the original [requisition\_id][google.cl - oud.talent.v4beta1.Job.requisition\_id] must be preserved, a - custom field should be used for storage. It is also suggested - to group the locations that close to each other in the same - job for better search experience. The maximum number of - allowed characters is 500. + ion_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g. + ‘ReqA’ becomes ‘ReqA-1’, ‘ReqA-2’, and so on.) as multiple + jobs with the same + [company][google.cloud.talent.v4beta1.Job.company], + [language_code][google.cloud.talent.v4beta1.Job.language_code] + and [requisition_id][google.cloud.talent.v4beta1.Job.requisiti + on_id] are not allowed. If the original [requisition_id][googl + e.cloud.talent.v4beta1.Job.requisition_id] must be preserved, + a custom field should be used for storage. It is also + suggested to group the locations that close to each other in + the same job for better search experience. The maximum number + of allowed characters is 500. application_info: Job application information. job_benefits: The benefits included with the job. compensation_info: - Job compensation information (a.k.a. "pay rate") i.e., the + Job compensation information (a.k.a. “pay rate”) i.e., the compensation that will paid to the employee. custom_attributes: A map of fields to hold both filterable and non-filterable custom job attributes that are not covered by the provided structured fields. The keys of the map are strings up to 64 - bytes and must match the pattern: [a-zA-Z][a-zA-Z0-9\_]\*. For - example, key0LikeThis or KEY\_1\_LIKE\_THIS. At most 100 + bytes and must match the pattern: [a-zA-Z][a-zA-Z0-9\_]*. For + example, key0LikeThis or KEY_1_LIKE_THIS. At most 100 filterable and at most 100 unfilterable keys are supported. For filterable ``string_values``, across all keys at most 200 values are allowed, with each string no more than 255 @@ -1114,9 +1152,9 @@ 255. employment_types: The employment type(s) of a job, for example, [full - time][google.cloud.talent.v4beta1.EmploymentType.FULL\_TIME] - or [part - time][google.cloud.talent.v4beta1.EmploymentType.PART\_TIME]. + time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or + [part + time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME]. incentives: A description of bonus, commission, and other compensation incentives associated with the job not including salary or @@ -1124,25 +1162,25 @@ language_code: The language of the posting. This field is distinct from any requirements for fluency that are associated with the job. - Language codes must be in BCP-47 format, such as "en-US" or - "sr-Latn". For more information, see `Tags for Identifying + Language codes must be in BCP-47 format, such as “en-US” or + “sr-Latn”. For more information, see `Tags for Identifying Languages `__\ {: - class="external" target="\_blank" }. If this field is + class=“external” target="_blank" }. If this field is unspecified and [Job.description][google.cloud.talent.v4beta1.Job.description] is present, detected language code based on [Job.description][google.cloud.talent.v4beta1.Job.description] - is assigned, otherwise defaults to 'en\_US'. + is assigned, otherwise defaults to ‘en_US’. job_level: - The experience level associated with the job, such as "Entry - Level". + The experience level associated with the job, such as “Entry + Level”. promotion_value: A promotion value of the job, as determined by the client. The value determines the sort order of the jobs returned when searching for jobs using the featured jobs search call, with higher promotional values being returned first and ties being resolved by relevance sort. Only the jobs with a - promotionValue >0 are returned in a FEATURED\_JOB\_SEARCH. + promotionValue >0 are returned in a FEATURED_JOB_SEARCH. Default value is 0, and negative values are treated as 0. qualifications: A description of the qualifications required to perform the @@ -1166,17 +1204,17 @@ available. If this field is set, a [LocationFilter][google.cloud.talent.v4beta1.LocationFilter] in a search query within the job region finds this job posting - if an exact location match isn't specified. If this field is + if an exact location match isn’t specified. If this field is set to [PostingRegion.NATION][google.cloud.talent.v4beta1.Post - ingRegion.NATION] or [PostingRegion.ADMINISTRATIVE\_AREA][goog - le.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE\_AREA], + ingRegion.NATION] or [PostingRegion.ADMINISTRATIVE_AREA][googl + e.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA], setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to the same location level as this field is strongly recommended. visibility: Deprecated. The job is only visible to the owner. The - visibility of the job. Defaults to [Visibility.ACCOUNT\_ONLY] - [google.cloud.talent.v4beta1.Visibility.ACCOUNT\_ONLY] if not + visibility of the job. Defaults to [Visibility.ACCOUNT_ONLY][ + google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY] if not specified. job_start_time: The start timestamp of the job in UTC time zone. Typically @@ -1193,7 +1231,7 @@ Strongly recommended for the best service experience. The expiration timestamp of the job. After this timestamp, the job is marked as expired, and it no longer appears in search - results. The expired job can't be listed by the + results. The expired job can’t be listed by the [ListJobs][google.cloud.talent.v4beta1.JobService.ListJobs] API, but it can be retrieved with the [GetJob][google.cloud.talent.v4beta1.JobService.GetJob] API or @@ -1204,39 +1242,39 @@ API. An expired job can be updated and opened again by using a future expiration timestamp. Updating an expired job fails if there is another existing open job with same - [company][google.cloud.talent.v4beta1.Job.company], [language\ - _code][google.cloud.talent.v4beta1.Job.language\_code] and [re - quisition\_id][google.cloud.talent.v4beta1.Job.requisition\_id - ]. The expired jobs are retained in our system for 90 days. - However, the overall expired job count cannot exceed 3 times - the maximum number of open jobs over previous 7 days. If this - threshold is exceeded, expired jobs are cleaned out in order - of earliest expire time. Expired jobs are no longer accessible - after they are cleaned out. Invalid timestamps are ignored, - and treated as expire time not provided. If the timestamp is - before the instant request is made, the job is treated as - expired immediately on creation. This kind of job can not be - updated. And when creating a job with past timestamp, the [pos - ting\_publish\_time][google.cloud.talent.v4beta1.Job.posting\_ - publish\_time] must be set before [posting\_expire\_time][goog - le.cloud.talent.v4beta1.Job.posting\_expire\_time]. The - purpose of this feature is to allow other objects, such as + [company][google.cloud.talent.v4beta1.Job.company], + [language_code][google.cloud.talent.v4beta1.Job.language_code] + and [requisition_id][google.cloud.talent.v4beta1.Job.requisiti + on_id]. The expired jobs are retained in our system for 90 + days. However, the overall expired job count cannot exceed 3 + times the maximum number of open jobs over previous 7 days. If + this threshold is exceeded, expired jobs are cleaned out in + order of earliest expire time. Expired jobs are no longer + accessible after they are cleaned out. Invalid timestamps are + ignored, and treated as expire time not provided. If the + timestamp is before the instant request is made, the job is + treated as expired immediately on creation. This kind of job + can not be updated. And when creating a job with past + timestamp, the [posting_publish_time][google.cloud.talent.v4be + ta1.Job.posting_publish_time] must be set before [posting_expi + re_time][google.cloud.talent.v4beta1.Job.posting_expire_time]. + The purpose of this feature is to allow other objects, such as [Application][google.cloud.talent.v4beta1.Application], to - refer a job that didn't exist in the system prior to becoming + refer a job that didn’t exist in the system prior to becoming expired. If you want to modify a job that was expired on - creation, delete it and create a new one. If this value isn't + creation, delete it and create a new one. If this value isn’t provided at the time of job creation or is invalid, the job - posting expires after 30 days from the job's creation time. + posting expires after 30 days from the job’s creation time. For example, if the job was created on 2017/01/01 13:00AM UTC with an unspecified expiration date, the job expires after - 2017/01/31 13:00AM UTC. If this value isn't provided on job + 2017/01/31 13:00AM UTC. If this value isn’t provided on job update, it depends on the field masks set by [UpdateJobRequest - .update\_mask][google.cloud.talent.v4beta1.UpdateJobRequest.up - date\_mask]. If the field masks include [job\_end\_time][googl - e.cloud.talent.v4beta1.Job.job\_end\_time], or the masks are - empty meaning that every field is updated, the job posting - expires after 30 days from the job's last update time. - Otherwise the expiration date isn't updated. + .update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.upd + ate_mask]. If the field masks include + [job_end_time][google.cloud.talent.v4beta1.Job.job_end_time], + or the masks are empty meaning that every field is updated, + the job posting expires after 30 days from the job’s last + update time. Otherwise the expiration date isn’t updated. posting_create_time: Output only. The timestamp when this job posting was created. posting_update_time: @@ -1250,7 +1288,7 @@ Options for job processing. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Job) - ), + }, ) _sym_db.RegisterMessage(Job) _sym_db.RegisterMessage(Job.ApplicationInfo) diff --git a/google/cloud/talent_v4beta1/proto/job_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/job_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/talent_v4beta1/proto/job_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/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/google/cloud/talent_v4beta1/proto/job_service_pb2.py b/google/cloud/talent_v4beta1/proto/job_service_pb2.py index 0a88e2d7..c32ee451 100644 --- a/google/cloud/talent_v4beta1/proto/job_service_pb2.py +++ b/google/cloud/talent_v4beta1/proto/job_service_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/job_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.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -46,12 +43,9 @@ name="google/cloud/talent_v4beta1/proto/job_service.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\017JobServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n3google/cloud/talent_v4beta1/proto/job_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a/google/cloud/talent_v4beta1/proto/filters.proto\x1a\x31google/cloud/talent_v4beta1/proto/histogram.proto\x1a+google/cloud/talent_v4beta1/proto/job.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto"w\n\x10\x43reateJobRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x32\n\x03job\x18\x02 \x01(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02">\n\rGetJobRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17jobs.googleapis.com/Job"w\n\x10UpdateJobRequest\x12\x32\n\x03job\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"A\n\x10\x44\x65leteJobRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17jobs.googleapis.com/Job"^\n\x16\x42\x61tchDeleteJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02"\xb6\x01\n\x0fListJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x36\n\x08job_view\x18\x05 \x01(\x0e\x32$.google.cloud.talent.v4beta1.JobView"\x9c\x01\n\x10ListJobsResponse\x12.\n\x04jobs\x18\x01 \x03(\x0b\x32 .google.cloud.talent.v4beta1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata"\xd0\t\n\x11SearchJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12N\n\x0bsearch_mode\x18\x02 \x01(\x0e\x32\x39.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode\x12K\n\x10request_metadata\x18\x03 \x01(\x0b\x32,.google.cloud.talent.v4beta1.RequestMetadataB\x03\xe0\x41\x02\x12\x38\n\tjob_query\x18\x04 \x01(\x0b\x32%.google.cloud.talent.v4beta1.JobQuery\x12\x19\n\x11\x65nable_broadening\x18\x05 \x01(\x08\x12#\n\x1brequire_precise_result_size\x18\x06 \x01(\x08\x12\x46\n\x11histogram_queries\x18\x07 \x03(\x0b\x32+.google.cloud.talent.v4beta1.HistogramQuery\x12\x36\n\x08job_view\x18\x08 \x01(\x0e\x32$.google.cloud.talent.v4beta1.JobView\x12\x0e\n\x06offset\x18\t \x01(\x05\x12\x11\n\tpage_size\x18\n \x01(\x05\x12\x12\n\npage_token\x18\x0b \x01(\t\x12\x10\n\x08order_by\x18\x0c \x01(\t\x12\x62\n\x15\x64iversification_level\x18\r \x01(\x0e\x32\x43.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel\x12]\n\x13\x63ustom_ranking_info\x18\x0e \x01(\x0b\x32@.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo\x12\x1d\n\x15\x64isable_keyword_match\x18\x10 \x01(\x08\x1a\x9a\x02\n\x11\x43ustomRankingInfo\x12o\n\x10importance_level\x18\x01 \x01(\x0e\x32P.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevelB\x03\xe0\x41\x02\x12\x1f\n\x12ranking_expression\x18\x02 \x01(\tB\x03\xe0\x41\x02"s\n\x0fImportanceLevel\x12 \n\x1cIMPORTANCE_LEVEL_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\x08\n\x04MILD\x10\x03\x12\n\n\x06MEDIUM\x10\x04\x12\x08\n\x04HIGH\x10\x05\x12\x0b\n\x07\x45XTREME\x10\x06"R\n\nSearchMode\x12\x1b\n\x17SEARCH_MODE_UNSPECIFIED\x10\x00\x12\x0e\n\nJOB_SEARCH\x10\x01\x12\x17\n\x13\x46\x45\x41TURED_JOB_SEARCH\x10\x02"W\n\x14\x44iversificationLevel\x12%\n!DIVERSIFICATION_LEVEL_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\n\n\x06SIMPLE\x10\x02"\xd7\x06\n\x12SearchJobsResponse\x12R\n\rmatching_jobs\x18\x01 \x03(\x0b\x32;.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob\x12R\n\x17histogram_query_results\x18\x02 \x03(\x0b\x32\x31.google.cloud.talent.v4beta1.HistogramQueryResult\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x12?\n\x10location_filters\x18\x04 \x03(\x0b\x32%.google.cloud.talent.v4beta1.Location\x12\x1c\n\x14\x65stimated_total_size\x18\x05 \x01(\x05\x12\x12\n\ntotal_size\x18\x06 \x01(\x05\x12?\n\x08metadata\x18\x07 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata\x12"\n\x1a\x62roadened_query_jobs_count\x18\x08 \x01(\x05\x12I\n\x10spell_correction\x18\t \x01(\x0b\x32/.google.cloud.talent.v4beta1.SpellingCorrection\x1a\xdc\x01\n\x0bMatchingJob\x12-\n\x03job\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4beta1.Job\x12\x13\n\x0bjob_summary\x18\x02 \x01(\t\x12\x19\n\x11job_title_snippet\x18\x03 \x01(\t\x12\x1b\n\x13search_text_snippet\x18\x04 \x01(\t\x12Q\n\x0c\x63ommute_info\x18\x05 \x01(\x0b\x32;.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo\x1a~\n\x0b\x43ommuteInfo\x12;\n\x0cjob_location\x18\x01 \x01(\x0b\x32%.google.cloud.talent.v4beta1.Location\x12\x32\n\x0ftravel_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"~\n\x16\x42\x61tchCreateJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x33\n\x04jobs\x18\x02 \x03(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02"\xaf\x01\n\x16\x42\x61tchUpdateJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x33\n\x04jobs\x18\x02 \x03(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\xc4\x01\n\x12JobOperationResult\x12N\n\x0bjob_results\x18\x01 \x03(\x0b\x32\x39.google.cloud.talent.v4beta1.JobOperationResult.JobResult\x1a^\n\tJobResult\x12-\n\x03job\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4beta1.Job\x12"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status*v\n\x07JobView\x12\x18\n\x14JOB_VIEW_UNSPECIFIED\x10\x00\x12\x14\n\x10JOB_VIEW_ID_ONLY\x10\x01\x12\x14\n\x10JOB_VIEW_MINIMAL\x10\x02\x12\x12\n\x0eJOB_VIEW_SMALL\x10\x03\x12\x11\n\rJOB_VIEW_FULL\x10\x04\x32\xce\x12\n\nJobService\x12\xc9\x01\n\tCreateJob\x12-.google.cloud.talent.v4beta1.CreateJobRequest\x1a .google.cloud.talent.v4beta1.Job"k\x82\xd3\xe4\x93\x02X"+/v4beta1/{parent=projects/*/tenants/*}/jobs:\x01*Z&"!/v4beta1/{parent=projects/*}/jobs:\x01*\xda\x41\nparent,job\x12\x9b\x02\n\x0f\x42\x61tchCreateJobs\x12\x33.google.cloud.talent.v4beta1.BatchCreateJobsRequest\x1a\x1d.google.longrunning.Operation"\xb3\x01\x82\xd3\xe4\x93\x02p"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchCreate:\x01*Z2"-/v4beta1/{parent=projects/*}/jobs:batchCreate:\x01*\xda\x41\x0bparent,jobs\xca\x41,\n\x12JobOperationResult\x12\x16\x42\x61tchOperationMetadata\x12\xb7\x01\n\x06GetJob\x12*.google.cloud.talent.v4beta1.GetJobRequest\x1a .google.cloud.talent.v4beta1.Job"_\x82\xd3\xe4\x93\x02R\x12+/v4beta1/{name=projects/*/tenants/*/jobs/*}Z#\x12!/v4beta1/{name=projects/*/jobs/*}\xda\x41\x04name\x12\xca\x01\n\tUpdateJob\x12-.google.cloud.talent.v4beta1.UpdateJobRequest\x1a .google.cloud.talent.v4beta1.Job"l\x82\xd3\xe4\x93\x02`2//v4beta1/{job.name=projects/*/tenants/*/jobs/*}:\x01*Z*2%/v4beta1/{job.name=projects/*/jobs/*}:\x01*\xda\x41\x03job\x12\x9b\x02\n\x0f\x42\x61tchUpdateJobs\x12\x33.google.cloud.talent.v4beta1.BatchUpdateJobsRequest\x1a\x1d.google.longrunning.Operation"\xb3\x01\x82\xd3\xe4\x93\x02p"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchUpdate:\x01*Z2"-/v4beta1/{parent=projects/*}/jobs:batchUpdate:\x01*\xda\x41\x0bparent,jobs\xca\x41,\n\x12JobOperationResult\x12\x16\x42\x61tchOperationMetadata\x12\xb3\x01\n\tDeleteJob\x12-.google.cloud.talent.v4beta1.DeleteJobRequest\x1a\x16.google.protobuf.Empty"_\x82\xd3\xe4\x93\x02R*+/v4beta1/{name=projects/*/tenants/*/jobs/*}Z#*!/v4beta1/{name=projects/*/jobs/*}\xda\x41\x04name\x12\xe4\x01\n\x0f\x42\x61tchDeleteJobs\x12\x33.google.cloud.talent.v4beta1.BatchDeleteJobsRequest\x1a\x16.google.protobuf.Empty"\x83\x01\x82\xd3\xe4\x93\x02m"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchDelete:\x01*Z/"-/v4beta1/{parent=projects/*}/jobs:batchDelete\xda\x41\rparent,filter\x12\xd1\x01\n\x08ListJobs\x12,.google.cloud.talent.v4beta1.ListJobsRequest\x1a-.google.cloud.talent.v4beta1.ListJobsResponse"h\x82\xd3\xe4\x93\x02R\x12+/v4beta1/{parent=projects/*/tenants/*}/jobsZ#\x12!/v4beta1/{parent=projects/*}/jobs\xda\x41\rparent,filter\x12\xdb\x01\n\nSearchJobs\x12..google.cloud.talent.v4beta1.SearchJobsRequest\x1a/.google.cloud.talent.v4beta1.SearchJobsResponse"l\x82\xd3\xe4\x93\x02\x66"2/v4beta1/{parent=projects/*/tenants/*}/jobs:search:\x01*Z-"(/v4beta1/{parent=projects/*}/jobs:search:\x01*\x12\xf3\x01\n\x12SearchJobsForAlert\x12..google.cloud.talent.v4beta1.SearchJobsRequest\x1a/.google.cloud.talent.v4beta1.SearchJobsResponse"|\x82\xd3\xe4\x93\x02v":/v4beta1/{parent=projects/*/tenants/*}/jobs:searchForAlert:\x01*Z5"0/v4beta1/{parent=projects/*}/jobs:searchForAlert:\x01*\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB}\n\x1f\x63om.google.cloud.talent.v4beta1B\x0fJobServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\017JobServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n3google/cloud/talent_v4beta1/proto/job_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a/google/cloud/talent_v4beta1/proto/filters.proto\x1a\x31google/cloud/talent_v4beta1/proto/histogram.proto\x1a+google/cloud/talent_v4beta1/proto/job.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto"w\n\x10\x43reateJobRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x32\n\x03job\x18\x02 \x01(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02">\n\rGetJobRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17jobs.googleapis.com/Job"w\n\x10UpdateJobRequest\x12\x32\n\x03job\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"A\n\x10\x44\x65leteJobRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17jobs.googleapis.com/Job"^\n\x16\x42\x61tchDeleteJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02"\xb6\x01\n\x0fListJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x36\n\x08job_view\x18\x05 \x01(\x0e\x32$.google.cloud.talent.v4beta1.JobView"\x9c\x01\n\x10ListJobsResponse\x12.\n\x04jobs\x18\x01 \x03(\x0b\x32 .google.cloud.talent.v4beta1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata"\xd0\t\n\x11SearchJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12N\n\x0bsearch_mode\x18\x02 \x01(\x0e\x32\x39.google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode\x12K\n\x10request_metadata\x18\x03 \x01(\x0b\x32,.google.cloud.talent.v4beta1.RequestMetadataB\x03\xe0\x41\x02\x12\x38\n\tjob_query\x18\x04 \x01(\x0b\x32%.google.cloud.talent.v4beta1.JobQuery\x12\x19\n\x11\x65nable_broadening\x18\x05 \x01(\x08\x12#\n\x1brequire_precise_result_size\x18\x06 \x01(\x08\x12\x46\n\x11histogram_queries\x18\x07 \x03(\x0b\x32+.google.cloud.talent.v4beta1.HistogramQuery\x12\x36\n\x08job_view\x18\x08 \x01(\x0e\x32$.google.cloud.talent.v4beta1.JobView\x12\x0e\n\x06offset\x18\t \x01(\x05\x12\x11\n\tpage_size\x18\n \x01(\x05\x12\x12\n\npage_token\x18\x0b \x01(\t\x12\x10\n\x08order_by\x18\x0c \x01(\t\x12\x62\n\x15\x64iversification_level\x18\r \x01(\x0e\x32\x43.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel\x12]\n\x13\x63ustom_ranking_info\x18\x0e \x01(\x0b\x32@.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo\x12\x1d\n\x15\x64isable_keyword_match\x18\x10 \x01(\x08\x1a\x9a\x02\n\x11\x43ustomRankingInfo\x12o\n\x10importance_level\x18\x01 \x01(\x0e\x32P.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevelB\x03\xe0\x41\x02\x12\x1f\n\x12ranking_expression\x18\x02 \x01(\tB\x03\xe0\x41\x02"s\n\x0fImportanceLevel\x12 \n\x1cIMPORTANCE_LEVEL_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\x08\n\x04MILD\x10\x03\x12\n\n\x06MEDIUM\x10\x04\x12\x08\n\x04HIGH\x10\x05\x12\x0b\n\x07\x45XTREME\x10\x06"R\n\nSearchMode\x12\x1b\n\x17SEARCH_MODE_UNSPECIFIED\x10\x00\x12\x0e\n\nJOB_SEARCH\x10\x01\x12\x17\n\x13\x46\x45\x41TURED_JOB_SEARCH\x10\x02"W\n\x14\x44iversificationLevel\x12%\n!DIVERSIFICATION_LEVEL_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\n\n\x06SIMPLE\x10\x02"\xd7\x06\n\x12SearchJobsResponse\x12R\n\rmatching_jobs\x18\x01 \x03(\x0b\x32;.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob\x12R\n\x17histogram_query_results\x18\x02 \x03(\x0b\x32\x31.google.cloud.talent.v4beta1.HistogramQueryResult\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\x12?\n\x10location_filters\x18\x04 \x03(\x0b\x32%.google.cloud.talent.v4beta1.Location\x12\x1c\n\x14\x65stimated_total_size\x18\x05 \x01(\x05\x12\x12\n\ntotal_size\x18\x06 \x01(\x05\x12?\n\x08metadata\x18\x07 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata\x12"\n\x1a\x62roadened_query_jobs_count\x18\x08 \x01(\x05\x12I\n\x10spell_correction\x18\t \x01(\x0b\x32/.google.cloud.talent.v4beta1.SpellingCorrection\x1a\xdc\x01\n\x0bMatchingJob\x12-\n\x03job\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4beta1.Job\x12\x13\n\x0bjob_summary\x18\x02 \x01(\t\x12\x19\n\x11job_title_snippet\x18\x03 \x01(\t\x12\x1b\n\x13search_text_snippet\x18\x04 \x01(\t\x12Q\n\x0c\x63ommute_info\x18\x05 \x01(\x0b\x32;.google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo\x1a~\n\x0b\x43ommuteInfo\x12;\n\x0cjob_location\x18\x01 \x01(\x0b\x32%.google.cloud.talent.v4beta1.Location\x12\x32\n\x0ftravel_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"~\n\x16\x42\x61tchCreateJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x33\n\x04jobs\x18\x02 \x03(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02"\xaf\x01\n\x16\x42\x61tchUpdateJobsRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17jobs.googleapis.com/Job\x12\x33\n\x04jobs\x18\x02 \x03(\x0b\x32 .google.cloud.talent.v4beta1.JobB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\xc4\x01\n\x12JobOperationResult\x12N\n\x0bjob_results\x18\x01 \x03(\x0b\x32\x39.google.cloud.talent.v4beta1.JobOperationResult.JobResult\x1a^\n\tJobResult\x12-\n\x03job\x18\x01 \x01(\x0b\x32 .google.cloud.talent.v4beta1.Job\x12"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status*v\n\x07JobView\x12\x18\n\x14JOB_VIEW_UNSPECIFIED\x10\x00\x12\x14\n\x10JOB_VIEW_ID_ONLY\x10\x01\x12\x14\n\x10JOB_VIEW_MINIMAL\x10\x02\x12\x12\n\x0eJOB_VIEW_SMALL\x10\x03\x12\x11\n\rJOB_VIEW_FULL\x10\x04\x32\xce\x12\n\nJobService\x12\xc9\x01\n\tCreateJob\x12-.google.cloud.talent.v4beta1.CreateJobRequest\x1a .google.cloud.talent.v4beta1.Job"k\x82\xd3\xe4\x93\x02X"+/v4beta1/{parent=projects/*/tenants/*}/jobs:\x01*Z&"!/v4beta1/{parent=projects/*}/jobs:\x01*\xda\x41\nparent,job\x12\x9b\x02\n\x0f\x42\x61tchCreateJobs\x12\x33.google.cloud.talent.v4beta1.BatchCreateJobsRequest\x1a\x1d.google.longrunning.Operation"\xb3\x01\x82\xd3\xe4\x93\x02p"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchCreate:\x01*Z2"-/v4beta1/{parent=projects/*}/jobs:batchCreate:\x01*\xda\x41\x0bparent,jobs\xca\x41,\n\x12JobOperationResult\x12\x16\x42\x61tchOperationMetadata\x12\xb7\x01\n\x06GetJob\x12*.google.cloud.talent.v4beta1.GetJobRequest\x1a .google.cloud.talent.v4beta1.Job"_\x82\xd3\xe4\x93\x02R\x12+/v4beta1/{name=projects/*/tenants/*/jobs/*}Z#\x12!/v4beta1/{name=projects/*/jobs/*}\xda\x41\x04name\x12\xca\x01\n\tUpdateJob\x12-.google.cloud.talent.v4beta1.UpdateJobRequest\x1a .google.cloud.talent.v4beta1.Job"l\x82\xd3\xe4\x93\x02`2//v4beta1/{job.name=projects/*/tenants/*/jobs/*}:\x01*Z*2%/v4beta1/{job.name=projects/*/jobs/*}:\x01*\xda\x41\x03job\x12\x9b\x02\n\x0f\x42\x61tchUpdateJobs\x12\x33.google.cloud.talent.v4beta1.BatchUpdateJobsRequest\x1a\x1d.google.longrunning.Operation"\xb3\x01\x82\xd3\xe4\x93\x02p"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchUpdate:\x01*Z2"-/v4beta1/{parent=projects/*}/jobs:batchUpdate:\x01*\xda\x41\x0bparent,jobs\xca\x41,\n\x12JobOperationResult\x12\x16\x42\x61tchOperationMetadata\x12\xb3\x01\n\tDeleteJob\x12-.google.cloud.talent.v4beta1.DeleteJobRequest\x1a\x16.google.protobuf.Empty"_\x82\xd3\xe4\x93\x02R*+/v4beta1/{name=projects/*/tenants/*/jobs/*}Z#*!/v4beta1/{name=projects/*/jobs/*}\xda\x41\x04name\x12\xe4\x01\n\x0f\x42\x61tchDeleteJobs\x12\x33.google.cloud.talent.v4beta1.BatchDeleteJobsRequest\x1a\x16.google.protobuf.Empty"\x83\x01\x82\xd3\xe4\x93\x02m"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchDelete:\x01*Z/"-/v4beta1/{parent=projects/*}/jobs:batchDelete\xda\x41\rparent,filter\x12\xd1\x01\n\x08ListJobs\x12,.google.cloud.talent.v4beta1.ListJobsRequest\x1a-.google.cloud.talent.v4beta1.ListJobsResponse"h\x82\xd3\xe4\x93\x02R\x12+/v4beta1/{parent=projects/*/tenants/*}/jobsZ#\x12!/v4beta1/{parent=projects/*}/jobs\xda\x41\rparent,filter\x12\xdb\x01\n\nSearchJobs\x12..google.cloud.talent.v4beta1.SearchJobsRequest\x1a/.google.cloud.talent.v4beta1.SearchJobsResponse"l\x82\xd3\xe4\x93\x02\x66"2/v4beta1/{parent=projects/*/tenants/*}/jobs:search:\x01*Z-"(/v4beta1/{parent=projects/*}/jobs:search:\x01*\x12\xf3\x01\n\x12SearchJobsForAlert\x12..google.cloud.talent.v4beta1.SearchJobsRequest\x1a/.google.cloud.talent.v4beta1.SearchJobsResponse"|\x82\xd3\xe4\x93\x02v":/v4beta1/{parent=projects/*/tenants/*}/jobs:searchForAlert:\x01*Z5"0/v4beta1/{parent=projects/*}/jobs:searchForAlert:\x01*\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB}\n\x1f\x63om.google.cloud.talent.v4beta1B\x0fJobServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -75,6 +69,7 @@ full_name="google.cloud.talent.v4beta1.JobView", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="JOB_VIEW_UNSPECIFIED", @@ -82,6 +77,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="JOB_VIEW_ID_ONLY", @@ -89,6 +85,7 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="JOB_VIEW_MINIMAL", @@ -96,12 +93,23 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="JOB_VIEW_SMALL", index=3, number=3, serialized_options=None, type=None + name="JOB_VIEW_SMALL", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="JOB_VIEW_FULL", index=4, number=4, serialized_options=None, type=None + name="JOB_VIEW_FULL", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -124,6 +132,7 @@ full_name="google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="IMPORTANCE_LEVEL_UNSPECIFIED", @@ -131,24 +140,55 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NONE", index=1, number=1, serialized_options=None, type=None + name="NONE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOW", index=2, number=2, serialized_options=None, type=None + name="LOW", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MILD", index=3, number=3, serialized_options=None, type=None + name="MILD", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MEDIUM", index=4, number=4, serialized_options=None, type=None + name="MEDIUM", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="HIGH", index=5, number=5, serialized_options=None, type=None + name="HIGH", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="EXTREME", index=6, number=6, serialized_options=None, type=None + name="EXTREME", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -163,6 +203,7 @@ full_name="google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="SEARCH_MODE_UNSPECIFIED", @@ -170,9 +211,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="JOB_SEARCH", index=1, number=1, serialized_options=None, type=None + name="JOB_SEARCH", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="FEATURED_JOB_SEARCH", @@ -180,6 +227,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -194,6 +242,7 @@ full_name="google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="DIVERSIFICATION_LEVEL_UNSPECIFIED", @@ -201,12 +250,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DISABLED", index=1, number=1, serialized_options=None, type=None + name="DISABLED", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SIMPLE", index=2, number=2, serialized_options=None, type=None + name="SIMPLE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -223,6 +283,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -233,14 +294,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\031\022\027jobs.googleapis.com/Job"), + serialized_options=b"\340A\002\372A\031\022\027jobs.googleapis.com/Job", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job", @@ -257,8 +319,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=[], @@ -280,6 +343,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -290,15 +354,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\031\n\027jobs.googleapis.com/Job"), + serialized_options=b"\340A\002\372A\031\n\027jobs.googleapis.com/Job", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -319,6 +384,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="job", @@ -335,8 +401,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", @@ -355,6 +422,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -376,6 +444,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -386,15 +455,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\031\n\027jobs.googleapis.com/Job"), + serialized_options=b"\340A\002\372A\031\n\027jobs.googleapis.com/Job", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -415,6 +485,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -425,14 +496,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\031\022\027jobs.googleapis.com/Job"), + serialized_options=b"\340A\002\372A\031\022\027jobs.googleapis.com/Job", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -443,14 +515,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, ), ], extensions=[], @@ -472,6 +545,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -482,14 +556,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\031\022\027jobs.googleapis.com/Job"), + serialized_options=b"\340A\002\372A\031\022\027jobs.googleapis.com/Job", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -500,14 +575,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="page_token", @@ -518,7 +594,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, @@ -526,6 +602,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -544,6 +621,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_view", @@ -562,6 +640,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -583,6 +662,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="jobs", @@ -601,6 +681,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -611,7 +692,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, @@ -619,6 +700,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="metadata", @@ -637,6 +719,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -658,6 +741,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="importance_level", @@ -674,8 +758,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="ranking_expression", @@ -686,19 +771,20 @@ 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=[], - enum_types=[_SEARCHJOBSREQUEST_CUSTOMRANKINGINFO_IMPORTANCELEVEL], + enum_types=[_SEARCHJOBSREQUEST_CUSTOMRANKINGINFO_IMPORTANCELEVEL,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -714,6 +800,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -724,14 +811,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\031\022\027jobs.googleapis.com/Job"), + serialized_options=b"\340A\002\372A\031\022\027jobs.googleapis.com/Job", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="search_mode", @@ -750,6 +838,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="request_metadata", @@ -766,8 +855,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="job_query", @@ -786,6 +876,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="enable_broadening", @@ -804,6 +895,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="require_precise_result_size", @@ -822,6 +914,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="histogram_queries", @@ -840,6 +933,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_view", @@ -858,6 +952,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="offset", @@ -876,6 +971,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -894,6 +990,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -904,7 +1001,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, @@ -912,6 +1009,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="order_by", @@ -922,7 +1020,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, @@ -930,6 +1028,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="diversification_level", @@ -948,6 +1047,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="custom_ranking_info", @@ -966,6 +1066,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="disable_keyword_match", @@ -984,11 +1085,15 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_SEARCHJOBSREQUEST_CUSTOMRANKINGINFO], - enum_types=[_SEARCHJOBSREQUEST_SEARCHMODE, _SEARCHJOBSREQUEST_DIVERSIFICATIONLEVEL], + nested_types=[_SEARCHJOBSREQUEST_CUSTOMRANKINGINFO,], + enum_types=[ + _SEARCHJOBSREQUEST_SEARCHMODE, + _SEARCHJOBSREQUEST_DIVERSIFICATIONLEVEL, + ], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1005,6 +1110,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="job", @@ -1023,6 +1129,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_summary", @@ -1033,7 +1140,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, @@ -1041,6 +1148,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_title_snippet", @@ -1051,7 +1159,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, @@ -1059,6 +1167,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="search_text_snippet", @@ -1069,7 +1178,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, @@ -1077,6 +1186,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="commute_info", @@ -1095,6 +1205,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1115,6 +1226,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="job_location", @@ -1133,6 +1245,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="travel_duration", @@ -1151,6 +1264,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1171,6 +1285,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="matching_jobs", @@ -1189,6 +1304,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="histogram_query_results", @@ -1207,6 +1323,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -1217,7 +1334,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, @@ -1225,6 +1342,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="location_filters", @@ -1243,6 +1361,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="estimated_total_size", @@ -1261,6 +1380,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="total_size", @@ -1279,6 +1399,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="metadata", @@ -1297,6 +1418,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="broadened_query_jobs_count", @@ -1315,6 +1437,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="spell_correction", @@ -1333,10 +1456,11 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_SEARCHJOBSRESPONSE_MATCHINGJOB, _SEARCHJOBSRESPONSE_COMMUTEINFO], + nested_types=[_SEARCHJOBSRESPONSE_MATCHINGJOB, _SEARCHJOBSRESPONSE_COMMUTEINFO,], enum_types=[], serialized_options=None, is_extendable=False, @@ -1354,6 +1478,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1364,14 +1489,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\031\022\027jobs.googleapis.com/Job"), + serialized_options=b"\340A\002\372A\031\022\027jobs.googleapis.com/Job", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="jobs", @@ -1388,8 +1514,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=[], @@ -1411,6 +1538,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1421,14 +1549,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\031\022\027jobs.googleapis.com/Job"), + serialized_options=b"\340A\002\372A\031\022\027jobs.googleapis.com/Job", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="jobs", @@ -1445,8 +1574,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", @@ -1465,6 +1595,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1486,6 +1617,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="job", @@ -1504,6 +1636,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="status", @@ -1522,6 +1655,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1542,6 +1676,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="job_results", @@ -1560,10 +1695,11 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], - nested_types=[_JOBOPERATIONRESULT_JOBRESULT], + nested_types=[_JOBOPERATIONRESULT_JOBRESULT,], enum_types=[], serialized_options=None, is_extendable=False, @@ -1702,131 +1838,137 @@ CreateJobRequest = _reflection.GeneratedProtocolMessageType( "CreateJobRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEJOBREQUEST, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""Create job request. + { + "DESCRIPTOR": _CREATEJOBREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """Create job request. + Attributes: parent: Required. The resource name of the tenant under which the job is created. The format is - "projects/{project\_id}/tenants/{tenant\_id}". For example, - "projects/foo/tenant/bar". If tenant id is unspecified a - default tenant is created. For example, "projects/foo". + “projects/{project_id}/tenants/{tenant_id}”. For example, + “projects/foo/tenant/bar”. If tenant id is unspecified a + default tenant is created. For example, “projects/foo”. job: Required. The Job to be created. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateJobRequest) - ), + }, ) _sym_db.RegisterMessage(CreateJobRequest) GetJobRequest = _reflection.GeneratedProtocolMessageType( "GetJobRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETJOBREQUEST, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""Get job request. + { + "DESCRIPTOR": _GETJOBREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """Get job request. + Attributes: name: Required. The resource name of the job to retrieve. The format is - "projects/{project\_id}/tenants/{tenant\_id}/jobs/{job\_id}". - For example, "projects/foo/tenants/bar/jobs/baz". If tenant - id is unspecified, the default tenant is used. For example, - "projects/foo/jobs/bar". + “projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}”. For + example, “projects/foo/tenants/bar/jobs/baz”. If tenant id is + unspecified, the default tenant is used. For example, + “projects/foo/jobs/bar”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetJobRequest) - ), + }, ) _sym_db.RegisterMessage(GetJobRequest) UpdateJobRequest = _reflection.GeneratedProtocolMessageType( "UpdateJobRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEJOBREQUEST, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""Update job request. + { + "DESCRIPTOR": _UPDATEJOBREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """Update job request. + Attributes: job: Required. The Job to be updated. update_mask: Strongly recommended for the best service experience. If [upd - ate\_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update - \_mask] is provided, only the specified fields in + ate_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update\_ + mask] is provided, only the specified fields in [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated. Otherwise all the fields are updated. A field mask to restrict the fields that are updated. Only top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateJobRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateJobRequest) DeleteJobRequest = _reflection.GeneratedProtocolMessageType( "DeleteJobRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEJOBREQUEST, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""Delete job request. + { + "DESCRIPTOR": _DELETEJOBREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """Delete job request. + Attributes: name: Required. The resource name of the job to be deleted. The format is - "projects/{project\_id}/tenants/{tenant\_id}/jobs/{job\_id}". - For example, "projects/foo/tenants/bar/jobs/baz". If tenant - id is unspecified, the default tenant is used. For example, - "projects/foo/jobs/bar". + “projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}”. For + example, “projects/foo/tenants/bar/jobs/baz”. If tenant id is + unspecified, the default tenant is used. For example, + “projects/foo/jobs/bar”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteJobRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteJobRequest) BatchDeleteJobsRequest = _reflection.GeneratedProtocolMessageType( "BatchDeleteJobsRequest", (_message.Message,), - dict( - DESCRIPTOR=_BATCHDELETEJOBSREQUEST, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""Batch delete jobs request. + { + "DESCRIPTOR": _BATCHDELETEJOBSREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """Batch delete jobs request. + Attributes: parent: Required. The resource name of the tenant under which the job is created. The format is - "projects/{project\_id}/tenants/{tenant\_id}". For example, - "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created. For example, "projects/foo". + “projects/{project_id}/tenants/{tenant_id}”. For example, + “projects/foo/tenant/bar”. If tenant id is unspecified, a + default tenant is created. For example, “projects/foo”. filter: Required. The filter string specifies the jobs to be deleted. Supported operator: =, AND The fields eligible for filtering are: - ``companyName`` (Required) - ``requisitionId`` (Required) Sample Query: companyName = - "projects/foo/companies/bar" AND requisitionId = "req-1" + “projects/foo/companies/bar” AND requisitionId = “req-1” """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.BatchDeleteJobsRequest) - ), + }, ) _sym_db.RegisterMessage(BatchDeleteJobsRequest) ListJobsRequest = _reflection.GeneratedProtocolMessageType( "ListJobsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTJOBSREQUEST, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""List jobs request. + { + "DESCRIPTOR": _LISTJOBSREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """List jobs request. + Attributes: parent: Required. The resource name of the tenant under which the job is created. The format is - "projects/{project\_id}/tenants/{tenant\_id}". For example, - "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created. For example, "projects/foo". + “projects/{project_id}/tenants/{tenant_id}”. For example, + “projects/foo/tenant/bar”. If tenant id is unspecified, a + default tenant is created. For example, “projects/foo”. filter: Required. The filter string specifies the jobs to be enumerated. Supported operator: =, AND The fields eligible @@ -1834,39 +1976,37 @@ ``requisitionId`` - ``status`` Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified. Sample Query: - companyName = - "projects/foo/tenants/bar/companies/baz" - companyName = - "projects/foo/tenants/bar/companies/baz" AND requisitionId - = "req-1" - companyName = - "projects/foo/tenants/bar/companies/baz" AND status = - "EXPIRED" + “projects/foo/tenants/bar/companies/baz” - companyName = + “projects/foo/tenants/bar/companies/baz” AND requisitionId + = “req-1” - companyName = + “projects/foo/tenants/bar/companies/baz” AND status = + “EXPIRED” page_token: The starting point of a query result. page_size: The maximum number of jobs to be returned per page of results. - If [job\_view][google.cloud.talent.v4beta1.ListJobsRequest.job - \_view] is set to [JobView.JOB\_VIEW\_ID\_ONLY][google.cloud.t - alent.v4beta1.JobView.JOB\_VIEW\_ID\_ONLY], the maximum - allowed page size is 1000. Otherwise, the maximum allowed page - size is 100. Default is 100 if empty or a number < 1 is - specified. + If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set to [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent + .v4beta1.JobView.JOB_VIEW_ID_ONLY], the maximum allowed page + size is 1000. Otherwise, the maximum allowed page size is 100. + Default is 100 if empty or a number < 1 is specified. job_view: The desired job attributes returned for jobs in the search - response. Defaults to [JobView.JOB\_VIEW\_FULL][google.cloud.t - alent.v4beta1.JobView.JOB\_VIEW\_FULL] if no value is - specified. + response. Defaults to [JobView.JOB_VIEW_FULL][google.cloud.tal + ent.v4beta1.JobView.JOB_VIEW_FULL] if no value is specified. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListJobsRequest) - ), + }, ) _sym_db.RegisterMessage(ListJobsRequest) ListJobsResponse = _reflection.GeneratedProtocolMessageType( "ListJobsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTJOBSRESPONSE, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""List jobs response. + { + "DESCRIPTOR": _LISTJOBSRESPONSE, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """List jobs response. + Attributes: jobs: The Jobs for a given company. The maximum number of items @@ -1878,38 +2018,39 @@ request tracking id. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListJobsResponse) - ), + }, ) _sym_db.RegisterMessage(ListJobsResponse) SearchJobsRequest = _reflection.GeneratedProtocolMessageType( "SearchJobsRequest", (_message.Message,), - dict( - CustomRankingInfo=_reflection.GeneratedProtocolMessageType( + { + "CustomRankingInfo": _reflection.GeneratedProtocolMessageType( "CustomRankingInfo", (_message.Message,), - dict( - DESCRIPTOR=_SEARCHJOBSREQUEST_CUSTOMRANKINGINFO, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""Custom ranking information for + { + "DESCRIPTOR": _SEARCHJOBSREQUEST_CUSTOMRANKINGINFO, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """Custom ranking information for [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. + Attributes: importance_level: Required. Controls over how important the score of [CustomRank - ingInfo.ranking\_expression][google.cloud.talent.v4beta1.Searc - hJobsRequest.CustomRankingInfo.ranking\_expression] gets - applied to job's final ranking position. An error is thrown - if not specified. + ingInfo.ranking_expression][google.cloud.talent.v4beta1.Search + JobsRequest.CustomRankingInfo.ranking_expression] gets applied + to job’s final ranking position. An error is thrown if not + specified. ranking_expression: Required. Controls over how job documents get ranked on top of existing relevance score (determined by API algorithm). A combination of the ranking expression and relevance score is - used to determine job's final ranking position. The syntax + used to determine job’s final ranking position. The syntax for this expression is a subset of Google SQL syntax. Supported operators are: +, -, \*, /, where the left and right - side of the operator is either a numeric [Job.custom\_attribut - es][google.cloud.talent.v4beta1.Job.custom\_attributes] key, + side of the operator is either a numeric [Job.custom_attribute + s][google.cloud.talent.v4beta1.Job.custom_attributes] key, integer/double value or an expression that can be evaluated to a number. Parenthesis are supported to adjust calculation precedence. The expression must be < 100 characters in length. @@ -1921,22 +2062,22 @@ \* 0.25 - (freshness / 0.5) """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) - ), + }, ), - DESCRIPTOR=_SEARCHJOBSREQUEST, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""The Request body of the ``SearchJobs`` call. + "DESCRIPTOR": _SEARCHJOBSREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """The Request body of the ``SearchJobs`` call. + Attributes: parent: Required. The resource name of the tenant to search within. - The format is "projects/{project\_id}/tenants/{tenant\_id}". - For example, "projects/foo/tenant/bar". If tenant id is + The format is “projects/{project_id}/tenants/{tenant_id}”. For + example, “projects/foo/tenant/bar”. If tenant id is unspecified, a default tenant is created. For example, - "projects/foo". + “projects/foo”. search_mode: - Mode of a search. Defaults to [SearchMode.JOB\_SEARCH][google - .cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB\_SEARCH - ]. + Mode of a search. Defaults to [SearchMode.JOB_SEARCH][google. + cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH]. request_metadata: Required. The meta information collected about the job searcher, used to improve the search quality of the service. @@ -1966,95 +2107,91 @@ attribute value. \* ``count(numeric_histogram_facet, list of buckets)``: Count the number of matching entities within each bucket. Data types: - Histogram facet: facet names with - format [a-zA-Z][a-zA-Z0-9\_]+. - String: string like "any - string with backslash escape for quote(")." - Number: whole + format [a-zA-Z][a-zA-Z0-9\_]+. - String: string like “any + string with backslash escape for quote(").” - Number: whole number and floating point number like 10, -1 and -0.01. - List: list of elements with comma(,) separator surrounded by - square brackets, for example, [1, 2, 3] and ["one", "two", - "three"]. Built-in constants: - MIN (minimum number similar - to java Double.MIN\_VALUE) - MAX (maximum number similar to - java Double.MAX\_VALUE) Built-in functions: - bucket(start, + square brackets, for example, [1, 2, 3] and [“one”, “two”, + “three”]. Built-in constants: - MIN (minimum number similar + to java Double.MIN_VALUE) - MAX (maximum number similar to + java Double.MAX_VALUE) Built-in functions: - bucket(start, end[, label]): bucket built-in function creates a bucket with range of [start, end). Note that the end is exclusive, - for example, bucket(1, MAX, "positive number") or bucket(1, - 10). Job histogram facets: - company\_display\_name: - histogram by [Job.company\_display\_name][google.cloud.tale - nt.v4beta1.Job.company\_display\_name]. - employment\_type: - histogram by [Job.employment\_types][google.cloud.talent.v4 - beta1.Job.employment\_types], for example, "FULL\_TIME", - "PART\_TIME". - company\_size: histogram by + for example, bucket(1, MAX, “positive number”) or bucket(1, + 10). Job histogram facets: - company_display_name: + histogram by [Job.company_display_name][google.cloud.talent + .v4beta1.Job.company_display_name]. - employment_type: + histogram by [Job.employment_types][google.cloud.talent.v4b + eta1.Job.employment_types], for example, “FULL_TIME”, + “PART_TIME”. - company_size: histogram by [CompanySize][google.cloud.talent.v4beta1.CompanySize], for - example, "SMALL", "MEDIUM", "BIG". - - publish\_time\_in\_month: histogram by the [Job.posting\_pu - blish\_time][google.cloud.talent.v4beta1.Job.posting\_publish\ - _time] in months. Must specify list of numeric buckets in - spec. - publish\_time\_in\_year: histogram by the [Job.pos - ting\_publish\_time][google.cloud.talent.v4beta1.Job.posting\_ - publish\_time] in years. Must specify list of numeric - buckets in spec. - degree\_types: histogram by the [Job.de - gree\_types][google.cloud.talent.v4beta1.Job.degree\_types], - for example, "Bachelors", "Masters". - job\_level: histogram - by the - [Job.job\_level][google.cloud.talent.v4beta1.Job.job\_level], - for example, "Entry Level". - country: histogram by the - country code of jobs, for example, "US", "FR". - admin1: + example, “SMALL”, “MEDIUM”, “BIG”. - + publish_time_in_month: histogram by the [Job.posting_publis + h_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + in months. Must specify list of numeric buckets in spec. - + publish_time_in_year: histogram by the [Job.posting_publish + _time][google.cloud.talent.v4beta1.Job.posting_publish_time] + in years. Must specify list of numeric buckets in spec. - + degree_types: histogram by the [Job.degree_types][google.cl + oud.talent.v4beta1.Job.degree_types], for example, + “Bachelors”, “Masters”. - job_level: histogram by the + [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], + for example, “Entry Level”. - country: histogram by the + country code of jobs, for example, “US”, “FR”. - admin1: histogram by the admin1 code of jobs, which is a global placeholder referring to the state, province, or the particular term a country uses to define the geographic - structure below the country level, for example, "CA", "IL". - - city: histogram by a combination of the "city name, admin1 - code". For example, "Mountain View, CA", "New York, NY". - - admin1\_country: histogram by a combination of the "admin1 - code, country", for example, "CA, US", "IL, US". - - city\_coordinate: histogram by the city center's GPS + structure below the country level, for example, “CA”, “IL”. + - city: histogram by a combination of the “city name, admin1 + code”. For example, “Mountain View, CA”, “New York, NY”. - + admin1_country: histogram by a combination of the “admin1 + code, country”, for example, “CA, US”, “IL, US”. - + city_coordinate: histogram by the city center’s GPS coordinates (latitude and longitude), for example, 37.4038522,-122.0987765. Since the coordinates of a city center can change, customers may need to refresh them - periodically. - locale: histogram by the [Job.language\_co - de][google.cloud.talent.v4beta1.Job.language\_code], for - example, "en-US", "fr-FR". - language: histogram by the - language subtag of the [Job.language\_code][google.cloud.ta - lent.v4beta1.Job.language\_code], for example, "en", "fr". - - category: histogram by the + periodically. - locale: histogram by the [Job.language_cod + e][google.cloud.talent.v4beta1.Job.language_code], for + example, “en-US”, “fr-FR”. - language: histogram by the + language subtag of the [Job.language_code][google.cloud.tal + ent.v4beta1.Job.language_code], for example, “en”, “fr”. - + category: histogram by the [JobCategory][google.cloud.talent.v4beta1.JobCategory], for - example, "COMPUTER\_AND\_IT", "HEALTHCARE". - - base\_compensation\_unit: histogram by the [CompensationInf - o.CompensationUnit][google.cloud.talent.v4beta1.CompensationIn - fo.CompensationUnit] of base salary, for example, "WEEKLY", - "MONTHLY". - base\_compensation: histogram by the base - salary. Must specify list of numeric buckets to group - results by. - annualized\_base\_compensation: histogram by - the base annualized salary. Must specify list of numeric - buckets to group results by. - - annualized\_total\_compensation: histogram by the total + example, “COMPUTER_AND_IT”, “HEALTHCARE”. - + base_compensation_unit: histogram by the [CompensationInfo. + CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo + .CompensationUnit] of base salary, for example, “WEEKLY”, + “MONTHLY”. - base_compensation: histogram by the base salary. + Must specify list of numeric buckets to group results by. - + annualized_base_compensation: histogram by the base annualized + salary. Must specify list of numeric buckets to group results + by. - annualized_total_compensation: histogram by the total annualized salary. Must specify list of numeric buckets to - group results by. - string\_custom\_attribute: histogram by - string [Job.custom\_attributes][google.cloud.talent.v4beta1 - .Job.custom\_attributes]. Values can be accessed via square - bracket notations like string\_custom\_attribute["key1"]. - - numeric\_custom\_attribute: histogram by numeric [Job.custo - m\_attributes][google.cloud.talent.v4beta1.Job.custom\_attribu - tes]. Values can be accessed via square bracket notations - like numeric\_custom\_attribute["key1"]. Must specify list - of numeric buckets to group results by. Example - expressions: - ``count(admin1)`` - - ``count(base_compensation, [bucket(1000, 10000), bucket(10000, - 100000), bucket(100000, MAX)])`` - + group results by. - string_custom_attribute: histogram by + string [Job.custom_attributes][google.cloud.talent.v4beta1. + Job.custom_attributes]. Values can be accessed via square + bracket notations like string_custom_attribute[“key1”]. - + numeric_custom_attribute: histogram by numeric [Job.custom\_ + attributes][google.cloud.talent.v4beta1.Job.custom_attributes] + . Values can be accessed via square bracket notations like + numeric_custom_attribute[“key1”]. Must specify list of numeric + buckets to group results by. Example expressions: - + ``count(admin1)`` - ``count(base_compensation, [bucket(1000, + 10000), bucket(10000, 100000), bucket(100000, MAX)])`` - ``count(string_custom_attribute["some-string-custom- attribute"])`` - ``count(numeric_custom_attribute["some- - numeric-custom-attribute"], [bucket(MIN, 0, "negative"), + numeric-custom-attribute"], [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])`` job_view: The desired job attributes returned for jobs in the search - response. Defaults to [JobView.JOB\_VIEW\_SMALL][google.cloud. - talent.v4beta1.JobView.JOB\_VIEW\_SMALL] if no value is - specified. + response. Defaults to [JobView.JOB_VIEW_SMALL][google.cloud.ta + lent.v4beta1.JobView.JOB_VIEW_SMALL] if no value is specified. offset: An integer that specifies the current offset (that is, starting result location, amongst the jobs deemed by the API as relevant) in search results. This field is only considered - if [page\_token][google.cloud.talent.v4beta1.SearchJobsRequest - .page\_token] is unset. The maximum allowed value is 5000. + if [page_token][google.cloud.talent.v4beta1.SearchJobsRequest. + page_token] is unset. The maximum allowed value is 5000. Otherwise an error is thrown. For example, 0 means to return results starting from the first matching job, and 10 means to return from the 11th job. This can be used for pagination, @@ -2067,54 +2204,54 @@ 100. page_token: The token specifying the current offset within search results. - See [SearchJobsResponse.next\_page\_token][google.cloud.talent - .v4beta1.SearchJobsResponse.next\_page\_token] for an - explanation of how to obtain the next set of query results. + See [SearchJobsResponse.next_page_token][google.cloud.talent.v + 4beta1.SearchJobsResponse.next_page_token] for an explanation + of how to obtain the next set of query results. order_by: The criteria determining how search results are sorted. Default is ``"relevance desc"``. Supported options are: - ``"relevance desc"``: By relevance descending, as determined by the API algorithms. Relevance thresholding of query results is only available with this ordering. - - ``"posting_publish_time desc"``: By [Job.posting\_publish\_ - time][google.cloud.talent.v4beta1.Job.posting\_publish\_time] + ``"posting_publish_time desc"``: By [Job.posting_publish_ti + me][google.cloud.talent.v4beta1.Job.posting_publish_time] descending. - ``"posting_update_time desc"``: By [Job.post - ing\_update\_time][google.cloud.talent.v4beta1.Job.posting\_up - date\_time] descending. - ``"title"``: By + ing_update_time][google.cloud.talent.v4beta1.Job.posting_updat + e_time] descending. - ``"title"``: By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending. - ``"title desc"``: By [Job.title][google.cloud.talent.v4beta1.Job.title] descending. - - ``"annualized_base_compensation"``: By job's [Compensati - onInfo.annualized\_base\_compensation\_range][google.cloud.tal - ent.v4beta1.CompensationInfo.annualized\_base\_compensation\_r - ange] ascending. Jobs whose annualized base compensation is + - ``"annualized_base_compensation"``: By job’s [Compensati + onInfo.annualized_base_compensation_range][google.cloud.talent + .v4beta1.CompensationInfo.annualized_base_compensation_range] + ascending. Jobs whose annualized base compensation is unspecified are put at the end of search results. - - ``"annualized_base_compensation desc"``: By job's [Compensa - tionInfo.annualized\_base\_compensation\_range][google.cloud.t - alent.v4beta1.CompensationInfo.annualized\_base\_compensation\ - _range] descending. Jobs whose annualized base compensation - is unspecified are put at the end of search results. - - ``"annualized_total_compensation"``: By job's [Compensation - Info.annualized\_total\_compensation\_range][google.cloud.tale - nt.v4beta1.CompensationInfo.annualized\_total\_compensation\_r - ange] ascending. Jobs whose annualized base compensation is + ``"annualized_base_compensation desc"``: By job’s [Compensa + tionInfo.annualized_base_compensation_range][google.cloud.tale + nt.v4beta1.CompensationInfo.annualized_base_compensation_range + ] descending. Jobs whose annualized base compensation is + unspecified are put at the end of search results. - + ``"annualized_total_compensation"``: By job’s [Compensation + Info.annualized_total_compensation_range][google.cloud.talent. + v4beta1.CompensationInfo.annualized_total_compensation_range] + ascending. Jobs whose annualized base compensation is unspecified are put at the end of search results. - - ``"annualized_total_compensation desc"``: By job's [Compens - ationInfo.annualized\_total\_compensation\_range][google.cloud - .talent.v4beta1.CompensationInfo.annualized\_total\_compensati - on\_range] descending. Jobs whose annualized base - compensation is unspecified are put at the end of search - results. - ``"custom_ranking desc"``: By the relevance score - adjusted to the [SearchJobsRequest.CustomRankingInfo.rankin - g\_expression][google.cloud.talent.v4beta1.SearchJobsRequest.C - ustomRankingInfo.ranking\_expression] with weight factor - assigned by [SearchJobsRequest.CustomRankingInfo.importance - \_level][google.cloud.talent.v4beta1.SearchJobsRequest.CustomR - ankingInfo.importance\_level] in descending order. - - Location sorting: Use the special syntax to order jobs by - distance: ``"distance_from('Hawaii')"``: Order by distance - from Hawaii. ``"distance_from(19.89, 155.5)"``: Order by - distance from a coordinate. ``"distance_from('Hawaii'), + ``"annualized_total_compensation desc"``: By job’s [Compens + ationInfo.annualized_total_compensation_range][google.cloud.ta + lent.v4beta1.CompensationInfo.annualized_total_compensation_ra + nge] descending. Jobs whose annualized base compensation is + unspecified are put at the end of search results. - + ``"custom_ranking desc"``: By the relevance score adjusted to + the [SearchJobsRequest.CustomRankingInfo.ranking_expression + ][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingI + nfo.ranking_expression] with weight factor assigned by [ + SearchJobsRequest.CustomRankingInfo.importance_level][google.c + loud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.import + ance_level] in descending order. - Location sorting: Use + the special syntax to order jobs by distance: + ``"distance_from('Hawaii')"``: Order by distance from Hawaii. + ``"distance_from(19.89, 155.5)"``: Order by distance from a + coordinate. ``"distance_from('Hawaii'), distance_from('Puerto Rico')"``: Order by multiple locations. See details below. ``"distance_from('Hawaii'), distance_from(19.89, 155.5)"``: Order by multiple @@ -2123,12 +2260,12 @@ provided, a job that is close to any of the distance centers would have a high rank. When a job has multiple locations, the job location closest to one of the distance - centers will be used. Jobs that don't have locations will + centers will be used. Jobs that don’t have locations will be ranked at the bottom. Distance is calculated with a precision of 11.3 meters (37.4 feet). Diversification strategy is still applied unless explicitly disabled in - [diversification\_level][google.cloud.talent.v4beta1.SearchJob - sRequest.diversification\_level]. + [diversification_level][google.cloud.talent.v4beta1.SearchJobs + Request.diversification_level]. diversification_level: Controls whether highly similar jobs are returned next to each other in the search results. Jobs are identified as highly @@ -2146,28 +2283,28 @@ Controls whether to disable exact keyword match on [Job.title][google.cloud.talent.v4beta1.Job.title], [Job.descr iption][google.cloud.talent.v4beta1.Job.description], [Job.com - pany\_display\_name][google.cloud.talent.v4beta1.Job.company\_ - display\_name], + pany_display_name][google.cloud.talent.v4beta1.Job.company_dis + play_name], [Job.addresses][google.cloud.talent.v4beta1.Job.addresses], [J ob.qualifications][google.cloud.talent.v4beta1.Job.qualificati ons]. When disable keyword match is turned off, a keyword match returns jobs that do not match given category filters when there are matching keywords. For example, for the query - "program manager," a result is returned even if the job - posting has the title "software developer," which doesn't fall - into "program manager" ontology, but does have "program - manager" appearing in its description. For queries like - "cloud" that don't contain title or location specific - ontology, jobs with "cloud" keyword matches are returned - regardless of this flag's value. Use [Company.keyword\_search - able\_job\_custom\_attributes][google.cloud.talent.v4beta1.Com - pany.keyword\_searchable\_job\_custom\_attributes] if company- - specific globally matched custom field/attribute string values - are needed. Enabling keyword match improves recall of - subsequent search requests. Defaults to false. + “program manager,” a result is returned even if the job + posting has the title “software developer,” which doesn’t fall + into “program manager” ontology, but does have “program + manager” appearing in its description. For queries like + “cloud” that don’t contain title or location specific + ontology, jobs with “cloud” keyword matches are returned + regardless of this flag’s value. Use [Company.keyword_searcha + ble_job_custom_attributes][google.cloud.talent.v4beta1.Company + .keyword_searchable_job_custom_attributes] if company-specific + globally matched custom field/attribute string values are + needed. Enabling keyword match improves recall of subsequent + search requests. Defaults to false. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsRequest) - ), + }, ) _sym_db.RegisterMessage(SearchJobsRequest) _sym_db.RegisterMessage(SearchJobsRequest.CustomRankingInfo) @@ -2175,31 +2312,32 @@ SearchJobsResponse = _reflection.GeneratedProtocolMessageType( "SearchJobsResponse", (_message.Message,), - dict( - MatchingJob=_reflection.GeneratedProtocolMessageType( + { + "MatchingJob": _reflection.GeneratedProtocolMessageType( "MatchingJob", (_message.Message,), - dict( - DESCRIPTOR=_SEARCHJOBSRESPONSE_MATCHINGJOB, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""Job entry with metadata inside + { + "DESCRIPTOR": _SEARCHJOBSRESPONSE_MATCHINGJOB, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """Job entry with metadata inside [SearchJobsResponse][google.cloud.talent.v4beta1.SearchJobsResponse]. + Attributes: job: Job resource that matches the specified [SearchJobsRequest][go ogle.cloud.talent.v4beta1.SearchJobsRequest]. job_summary: - A summary of the job with core information that's displayed on + A summary of the job with core information that’s displayed on the search results listing page. job_title_snippet: Contains snippets of text from the [Job.title][google.cloud.talent.v4beta1.Job.title] field most - closely matching a search query's keywords, if available. The + closely matching a search query’s keywords, if available. The matching query keywords are enclosed in HTML bold tags. search_text_snippet: Contains snippets of text from the [Job.description][google.cloud.talent.v4beta1.Job.description] - and similar fields that most closely match a search query's + and similar fields that most closely match a search query’s keywords, if available. All HTML tags in the original fields are stripped when returned in this field, and matching query keywords are enclosed in HTML bold tags. @@ -2208,38 +2346,40 @@ [CommuteFilter][google.cloud.talent.v4beta1.CommuteFilter]. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob) - ), + }, ), - CommuteInfo=_reflection.GeneratedProtocolMessageType( + "CommuteInfo": _reflection.GeneratedProtocolMessageType( "CommuteInfo", (_message.Message,), - dict( - DESCRIPTOR=_SEARCHJOBSRESPONSE_COMMUTEINFO, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""Commute details related to this job. + { + "DESCRIPTOR": _SEARCHJOBSRESPONSE_COMMUTEINFO, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """Commute details related to this job. + Attributes: job_location: Location used as the destination in the commute calculation. travel_duration: The number of seconds required to travel to the job location from the query location. A duration of 0 seconds indicates - that the job isn't reachable within the requested duration, + that the job isn’t reachable within the requested duration, but was returned as part of an expanded query. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo) - ), + }, ), - DESCRIPTOR=_SEARCHJOBSRESPONSE, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""Response for SearchJob method. + "DESCRIPTOR": _SEARCHJOBSRESPONSE, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """Response for SearchJob method. + Attributes: matching_jobs: The Job entities that match the specified [SearchJobsRequest][ google.cloud.talent.v4beta1.SearchJobsRequest]. histogram_query_results: The histogram results that match with specified [SearchJobsReq - uest.histogram\_queries][google.cloud.talent.v4beta1.SearchJob - sRequest.histogram\_queries]. + uest.histogram_queries][google.cloud.talent.v4beta1.SearchJobs + Request.histogram_queries]. next_page_token: The token that specifies the starting position of the next page of results. This field is empty if there are no more @@ -2247,22 +2387,22 @@ location_filters: The location filters that the service applied to the specified query. If any filters are lat-lng based, the [Location.locatio - n\_type][google.cloud.talent.v4beta1.Location.location\_type] - is [Location.LocationType.LOCATION\_TYPE\_UNSPECIFIED][google. - cloud.talent.v4beta1.Location.LocationType.LOCATION\_TYPE\_UNS - PECIFIED]. + n_type][google.cloud.talent.v4beta1.Location.location_type] is + [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud + .talent.v4beta1.Location.LocationType.LOCATION_TYPE_UNSPECIFIE + D]. estimated_total_size: An estimation of the number of jobs that match the specified - query. This number isn't guaranteed to be accurate. For - accurate results, see [SearchJobsRequest.require\_precise\_res - ult\_size][google.cloud.talent.v4beta1.SearchJobsRequest.requi - re\_precise\_result\_size]. + query. This number isn’t guaranteed to be accurate. For + accurate results, see [SearchJobsRequest.require_precise_resul + t_size][google.cloud.talent.v4beta1.SearchJobsRequest.require\_ + precise_result_size]. total_size: The precise result count, which is available only if the - client set [SearchJobsRequest.require\_precise\_result\_size][ - google.cloud.talent.v4beta1.SearchJobsRequest.require\_precise - \_result\_size] to ``true``, or if the response is the last - page of results. Otherwise, the value is ``-1``. + client set [SearchJobsRequest.require_precise_result_size][goo + gle.cloud.talent.v4beta1.SearchJobsRequest.require_precise_res + ult_size] to ``true``, or if the response is the last page of + results. Otherwise, the value is ``-1``. metadata: Additional information for the API invocation, such as the request tracking id. @@ -2271,7 +2411,7 @@ results from the broadened query. This number indicates how many of the jobs returned in the jobs field are from the broadened query. These results are always at the end of the - jobs list. In particular, a value of 0, or if the field isn't + jobs list. In particular, a value of 0, or if the field isn’t set, all the jobs in the jobs list are from the original (without broadening) query. If this field is non-zero, subsequent requests with offset after this result set should @@ -2280,7 +2420,7 @@ The spell checking result, and correction. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchJobsResponse) - ), + }, ) _sym_db.RegisterMessage(SearchJobsResponse) _sym_db.RegisterMessage(SearchJobsResponse.MatchingJob) @@ -2289,52 +2429,54 @@ BatchCreateJobsRequest = _reflection.GeneratedProtocolMessageType( "BatchCreateJobsRequest", (_message.Message,), - dict( - DESCRIPTOR=_BATCHCREATEJOBSREQUEST, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""Request to create a batch of jobs. + { + "DESCRIPTOR": _BATCHCREATEJOBSREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """Request to create a batch of jobs. + Attributes: parent: Required. The resource name of the tenant under which the job is created. The format is - "projects/{project\_id}/tenants/{tenant\_id}". For example, - "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created. For example, "projects/foo". + “projects/{project_id}/tenants/{tenant_id}”. For example, + “projects/foo/tenant/bar”. If tenant id is unspecified, a + default tenant is created. For example, “projects/foo”. jobs: Required. The jobs to be created. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.BatchCreateJobsRequest) - ), + }, ) _sym_db.RegisterMessage(BatchCreateJobsRequest) BatchUpdateJobsRequest = _reflection.GeneratedProtocolMessageType( "BatchUpdateJobsRequest", (_message.Message,), - dict( - DESCRIPTOR=_BATCHUPDATEJOBSREQUEST, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""Request to update a batch of jobs. + { + "DESCRIPTOR": _BATCHUPDATEJOBSREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """Request to update a batch of jobs. + Attributes: parent: Required. The resource name of the tenant under which the job is created. The format is - "projects/{project\_id}/tenants/{tenant\_id}". For example, - "projects/foo/tenant/bar". If tenant id is unspecified, a - default tenant is created. For example, "projects/foo". + “projects/{project_id}/tenants/{tenant_id}”. For example, + “projects/foo/tenant/bar”. If tenant id is unspecified, a + default tenant is created. For example, “projects/foo”. jobs: Required. The jobs to be updated. update_mask: Strongly recommended for the best service experience. Be aware that it will also increase latency when checking the status of - a batch operation. If [update\_mask][google.cloud.talent.v4be - ta1.BatchUpdateJobsRequest.update\_mask] is provided, only the + a batch operation. If [update_mask][google.cloud.talent.v4bet + a1.BatchUpdateJobsRequest.update_mask] is provided, only the specified fields in [Job][google.cloud.talent.v4beta1.Job] are updated. Otherwise all the fields are updated. A field mask to restrict the fields that are updated. Only top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported. If [ - update\_mask][google.cloud.talent.v4beta1.BatchUpdateJobsReque - st.update\_mask] is provided, The + update_mask][google.cloud.talent.v4beta1.BatchUpdateJobsReques + t.update_mask] is provided, The [Job][google.cloud.talent.v4beta1.Job] inside [JobResult][goog le.cloud.talent.v4beta1.JobOperationResult.JobResult] will only contains fields that is updated, plus the Id of the Job. @@ -2342,46 +2484,48 @@ all fields, which can yield a very large response. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.BatchUpdateJobsRequest) - ), + }, ) _sym_db.RegisterMessage(BatchUpdateJobsRequest) JobOperationResult = _reflection.GeneratedProtocolMessageType( "JobOperationResult", (_message.Message,), - dict( - JobResult=_reflection.GeneratedProtocolMessageType( + { + "JobResult": _reflection.GeneratedProtocolMessageType( "JobResult", (_message.Message,), - dict( - DESCRIPTOR=_JOBOPERATIONRESULT_JOBRESULT, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""Mutation result of a job. + { + "DESCRIPTOR": _JOBOPERATIONRESULT_JOBRESULT, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """Mutation result of a job. + Attributes: job: Here [Job][google.cloud.talent.v4beta1.Job] only contains basic information including [name][google.cloud.talent.v4beta1.Job.name], - [company][google.cloud.talent.v4beta1.Job.company], [language\ - _code][google.cloud.talent.v4beta1.Job.language\_code] and [re - quisition\_id][google.cloud.talent.v4beta1.Job.requisition\_id - ], use getJob method to retrieve detailed information of the - created/updated job. + [company][google.cloud.talent.v4beta1.Job.company], + [language_code][google.cloud.talent.v4beta1.Job.language_code] + and [requisition_id][google.cloud.talent.v4beta1.Job.requisiti + on_id], use getJob method to retrieve detailed information of + the created/updated job. status: The status of the job processed. This field is populated if the processing of the [job][google.cloud.talent.v4beta1.JobOpe rationResult.JobResult.job] fails. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobOperationResult.JobResult) - ), + }, ), - DESCRIPTOR=_JOBOPERATIONRESULT, - __module__="google.cloud.talent_v4beta1.proto.job_service_pb2", - __doc__="""The result of [JobService.BatchCreateJobs][google.cloud.talent.v4beta1 + "DESCRIPTOR": _JOBOPERATIONRESULT, + "__module__": "google.cloud.talent_v4beta1.proto.job_service_pb2", + "__doc__": """The result of [JobService.BatchCreateJobs][google.cloud.talent.v4beta1 .JobService.BatchCreateJobs] or [JobService.BatchUpdateJobs][google.cl - oud.talent.v4beta1.JobService.BatchUpdateJobs] APIs. It's used to + oud.talent.v4beta1.JobService.BatchUpdateJobs] APIs. It’s used to replace [google.longrunning.Operation.response][google.longrunning.Ope ration.response] in case of success. + Attributes: job_results: List of job mutation results from a batch mutate operation. It @@ -2389,7 +2533,7 @@ CANCELLED. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobOperationResult) - ), + }, ) _sym_db.RegisterMessage(JobOperationResult) _sym_db.RegisterMessage(JobOperationResult.JobResult) @@ -2421,9 +2565,8 @@ full_name="google.cloud.talent.v4beta1.JobService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs" - ), + serialized_options=b"\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs", + create_key=_descriptor._internal_create_key, serialized_start=4108, serialized_end=6490, methods=[ @@ -2434,9 +2577,8 @@ containing_service=None, input_type=_CREATEJOBREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__pb2._JOB, - serialized_options=_b( - '\202\323\344\223\002X"+/v4beta1/{parent=projects/*/tenants/*}/jobs:\001*Z&"!/v4beta1/{parent=projects/*}/jobs:\001*\332A\nparent,job' - ), + serialized_options=b'\202\323\344\223\002X"+/v4beta1/{parent=projects/*/tenants/*}/jobs:\001*Z&"!/v4beta1/{parent=projects/*}/jobs:\001*\332A\nparent,job', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="BatchCreateJobs", @@ -2445,9 +2587,8 @@ containing_service=None, input_type=_BATCHCREATEJOBSREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002p"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchCreate:\001*Z2"-/v4beta1/{parent=projects/*}/jobs:batchCreate:\001*\332A\013parent,jobs\312A,\n\022JobOperationResult\022\026BatchOperationMetadata' - ), + serialized_options=b'\202\323\344\223\002p"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchCreate:\001*Z2"-/v4beta1/{parent=projects/*}/jobs:batchCreate:\001*\332A\013parent,jobs\312A,\n\022JobOperationResult\022\026BatchOperationMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetJob", @@ -2456,9 +2597,8 @@ containing_service=None, input_type=_GETJOBREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__pb2._JOB, - serialized_options=_b( - "\202\323\344\223\002R\022+/v4beta1/{name=projects/*/tenants/*/jobs/*}Z#\022!/v4beta1/{name=projects/*/jobs/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002R\022+/v4beta1/{name=projects/*/tenants/*/jobs/*}Z#\022!/v4beta1/{name=projects/*/jobs/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateJob", @@ -2467,9 +2607,8 @@ containing_service=None, input_type=_UPDATEJOBREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__pb2._JOB, - serialized_options=_b( - "\202\323\344\223\002`2//v4beta1/{job.name=projects/*/tenants/*/jobs/*}:\001*Z*2%/v4beta1/{job.name=projects/*/jobs/*}:\001*\332A\003job" - ), + serialized_options=b"\202\323\344\223\002`2//v4beta1/{job.name=projects/*/tenants/*/jobs/*}:\001*Z*2%/v4beta1/{job.name=projects/*/jobs/*}:\001*\332A\003job", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="BatchUpdateJobs", @@ -2478,9 +2617,8 @@ containing_service=None, input_type=_BATCHUPDATEJOBSREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002p"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchUpdate:\001*Z2"-/v4beta1/{parent=projects/*}/jobs:batchUpdate:\001*\332A\013parent,jobs\312A,\n\022JobOperationResult\022\026BatchOperationMetadata' - ), + serialized_options=b'\202\323\344\223\002p"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchUpdate:\001*Z2"-/v4beta1/{parent=projects/*}/jobs:batchUpdate:\001*\332A\013parent,jobs\312A,\n\022JobOperationResult\022\026BatchOperationMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteJob", @@ -2489,9 +2627,8 @@ containing_service=None, input_type=_DELETEJOBREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002R*+/v4beta1/{name=projects/*/tenants/*/jobs/*}Z#*!/v4beta1/{name=projects/*/jobs/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002R*+/v4beta1/{name=projects/*/tenants/*/jobs/*}Z#*!/v4beta1/{name=projects/*/jobs/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="BatchDeleteJobs", @@ -2500,9 +2637,8 @@ containing_service=None, input_type=_BATCHDELETEJOBSREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002m"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchDelete:\001*Z/"-/v4beta1/{parent=projects/*}/jobs:batchDelete\332A\rparent,filter' - ), + serialized_options=b'\202\323\344\223\002m"7/v4beta1/{parent=projects/*/tenants/*}/jobs:batchDelete:\001*Z/"-/v4beta1/{parent=projects/*}/jobs:batchDelete\332A\rparent,filter', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListJobs", @@ -2511,9 +2647,8 @@ containing_service=None, input_type=_LISTJOBSREQUEST, output_type=_LISTJOBSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002R\022+/v4beta1/{parent=projects/*/tenants/*}/jobsZ#\022!/v4beta1/{parent=projects/*}/jobs\332A\rparent,filter" - ), + serialized_options=b"\202\323\344\223\002R\022+/v4beta1/{parent=projects/*/tenants/*}/jobsZ#\022!/v4beta1/{parent=projects/*}/jobs\332A\rparent,filter", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="SearchJobs", @@ -2522,9 +2657,8 @@ containing_service=None, input_type=_SEARCHJOBSREQUEST, output_type=_SEARCHJOBSRESPONSE, - serialized_options=_b( - '\202\323\344\223\002f"2/v4beta1/{parent=projects/*/tenants/*}/jobs:search:\001*Z-"(/v4beta1/{parent=projects/*}/jobs:search:\001*' - ), + serialized_options=b'\202\323\344\223\002f"2/v4beta1/{parent=projects/*/tenants/*}/jobs:search:\001*Z-"(/v4beta1/{parent=projects/*}/jobs:search:\001*', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="SearchJobsForAlert", @@ -2533,9 +2667,8 @@ containing_service=None, input_type=_SEARCHJOBSREQUEST, output_type=_SEARCHJOBSRESPONSE, - serialized_options=_b( - '\202\323\344\223\002v":/v4beta1/{parent=projects/*/tenants/*}/jobs:searchForAlert:\001*Z5"0/v4beta1/{parent=projects/*}/jobs:searchForAlert:\001*' - ), + serialized_options=b'\202\323\344\223\002v":/v4beta1/{parent=projects/*/tenants/*}/jobs:searchForAlert:\001*Z5"0/v4beta1/{parent=projects/*}/jobs:searchForAlert:\001*', + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/talent_v4beta1/proto/job_service_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/job_service_pb2_grpc.py index ef7c5d03..0f653c3f 100644 --- a/google/cloud/talent_v4beta1/proto/job_service_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/job_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.talent_v4beta1.proto import ( @@ -15,14 +16,14 @@ class JobServiceStub(object): """A service handles job management, including job CRUD, enumeration and search. - """ + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.CreateJob = channel.unary_unary( "/google.cloud.talent.v4beta1.JobService/CreateJob", request_serializer=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.CreateJobRequest.SerializeToString, @@ -77,29 +78,29 @@ def __init__(self, channel): class JobServiceServicer(object): """A service handles job management, including job CRUD, enumeration and search. - """ + """ def CreateJob(self, request, context): """Creates a new job. - Typically, the job becomes searchable within 10 seconds, but it may take - up to 5 minutes. - """ + Typically, the job becomes searchable within 10 seconds, but it may take + up to 5 minutes. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def BatchCreateJobs(self, request, context): """Begins executing a batch create jobs operation. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetJob(self, request, context): """Retrieves the specified job, whose status is OPEN or recently EXPIRED - within the last 90 days. - """ + within the last 90 days. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -107,16 +108,16 @@ def GetJob(self, request, context): def UpdateJob(self, request, context): """Updates specified job. - Typically, updated contents become visible in search results within 10 - seconds, but it may take up to 5 minutes. - """ + Typically, updated contents become visible in search results within 10 + seconds, but it may take up to 5 minutes. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def BatchUpdateJobs(self, request, context): """Begins executing a batch update jobs operation. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -124,23 +125,23 @@ def BatchUpdateJobs(self, request, context): def DeleteJob(self, request, context): """Deletes the specified job. - Typically, the job becomes unsearchable within 10 seconds, but it may take - up to 5 minutes. - """ + Typically, the job becomes unsearchable within 10 seconds, but it may take + up to 5 minutes. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def BatchDeleteJobs(self, request, context): """Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListJobs(self, request, context): """Lists jobs by filter. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -148,10 +149,10 @@ def ListJobs(self, request, context): def SearchJobs(self, request, context): """Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. - This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs - present in the database, and only returns jobs that the caller has - permission to search against. - """ + This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + present in the database, and only returns jobs that the caller has + permission to search against. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -159,15 +160,15 @@ def SearchJobs(self, request, context): def SearchJobsForAlert(self, request, context): """Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. - This API call is intended for the use case of targeting passive job - seekers (for example, job seekers who have signed up to receive email - alerts about potential job opportunities), and has different algorithmic - adjustments that are targeted to passive job seekers. + This API call is intended for the use case of targeting passive job + seekers (for example, job seekers who have signed up to receive email + alerts about potential job opportunities), and has different algorithmic + adjustments that are targeted to passive job seekers. - This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs - present in the database, and only returns jobs the caller has - permission to search against. - """ + This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs + present in the database, and only returns jobs the caller has + permission to search against. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -230,3 +231,279 @@ def add_JobServiceServicer_to_server(servicer, server): "google.cloud.talent.v4beta1.JobService", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class JobService(object): + """A service handles job management, including job CRUD, enumeration and search. + """ + + @staticmethod + def CreateJob( + 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.talent.v4beta1.JobService/CreateJob", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.CreateJobRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__pb2.Job.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def BatchCreateJobs( + 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.talent.v4beta1.JobService/BatchCreateJobs", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.BatchCreateJobsRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetJob( + 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.talent.v4beta1.JobService/GetJob", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.GetJobRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__pb2.Job.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateJob( + 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.talent.v4beta1.JobService/UpdateJob", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.UpdateJobRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__pb2.Job.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def BatchUpdateJobs( + 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.talent.v4beta1.JobService/BatchUpdateJobs", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.BatchUpdateJobsRequest.SerializeToString, + google_dot_longrunning_dot_operations__pb2.Operation.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteJob( + 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.talent.v4beta1.JobService/DeleteJob", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.DeleteJobRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def BatchDeleteJobs( + 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.talent.v4beta1.JobService/BatchDeleteJobs", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.BatchDeleteJobsRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListJobs( + 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.talent.v4beta1.JobService/ListJobs", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.ListJobsRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.ListJobsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def SearchJobs( + 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.talent.v4beta1.JobService/SearchJobs", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.SearchJobsRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.SearchJobsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def SearchJobsForAlert( + 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.talent.v4beta1.JobService/SearchJobsForAlert", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.SearchJobsRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_job__service__pb2.SearchJobsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/talent_v4beta1/proto/profile_pb2.py b/google/cloud/talent_v4beta1/proto/profile_pb2.py index 91c3e47e..02ca65d3 100644 --- a/google/cloud/talent_v4beta1/proto/profile_pb2.py +++ b/google/cloud/talent_v4beta1/proto/profile_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/profile.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 @@ -32,12 +29,9 @@ name="google/cloud/talent_v4beta1/proto/profile.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\024ProfileResourceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n/google/cloud/talent_v4beta1/proto/profile.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x16google/type/date.proto\x1a google/type/postal_address.proto\x1a\x1cgoogle/api/annotations.proto"\xf6\r\n\x07Profile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x65xternal_id\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x0b\n\x03uri\x18\x04 \x01(\t\x12\x10\n\x08group_id\x18\x05 \x01(\t\x12.\n\nis_hirable\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x15\x63\x61ndidate_update_time\x18\x43 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12resume_update_time\x18\x44 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x06resume\x18\x35 \x01(\x0b\x32#.google.cloud.talent.v4beta1.Resume\x12=\n\x0cperson_names\x18\x0b \x03(\x0b\x32\'.google.cloud.talent.v4beta1.PersonName\x12\x37\n\taddresses\x18\x0c \x03(\x0b\x32$.google.cloud.talent.v4beta1.Address\x12;\n\x0f\x65mail_addresses\x18\r \x03(\x0b\x32".google.cloud.talent.v4beta1.Email\x12\x39\n\rphone_numbers\x18\x0e \x03(\x0b\x32".google.cloud.talent.v4beta1.Phone\x12?\n\rpersonal_uris\x18\x0f \x03(\x0b\x32(.google.cloud.talent.v4beta1.PersonalUri\x12S\n\x17\x61\x64\x64itional_contact_info\x18\x10 \x03(\x0b\x32\x32.google.cloud.talent.v4beta1.AdditionalContactInfo\x12I\n\x12\x65mployment_records\x18\x11 \x03(\x0b\x32-.google.cloud.talent.v4beta1.EmploymentRecord\x12G\n\x11\x65\x64ucation_records\x18\x12 \x03(\x0b\x32,.google.cloud.talent.v4beta1.EducationRecord\x12\x32\n\x06skills\x18\x13 \x03(\x0b\x32".google.cloud.talent.v4beta1.Skill\x12\x39\n\nactivities\x18\x14 \x03(\x0b\x32%.google.cloud.talent.v4beta1.Activity\x12>\n\x0cpublications\x18\x15 \x03(\x0b\x32(.google.cloud.talent.v4beta1.Publication\x12\x34\n\x07patents\x18\x16 \x03(\x0b\x32#.google.cloud.talent.v4beta1.Patent\x12\x42\n\x0e\x63\x65rtifications\x18\x17 \x03(\x0b\x32*.google.cloud.talent.v4beta1.Certification\x12\x19\n\x0c\x61pplications\x18/ \x03(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x61ssignments\x18\x30 \x03(\tB\x03\xe0\x41\x03\x12U\n\x11\x63ustom_attributes\x18\x1a \x03(\x0b\x32:.google.cloud.talent.v4beta1.Profile.CustomAttributesEntry\x12\x16\n\tprocessed\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03\x12\x1c\n\x0fkeyword_snippet\x18\x1c \x01(\tB\x03\xe0\x41\x03\x12R\n\x14\x61vailability_signals\x18\x46 \x03(\x0b\x32/.google.cloud.talent.v4beta1.AvailabilitySignalB\x03\xe0\x41\x03\x12\x45\n\x11\x64\x65rived_addresses\x18@ \x03(\x0b\x32%.google.cloud.talent.v4beta1.LocationB\x03\xe0\x41\x03\x1a\x65\n\x15\x43ustomAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.cloud.talent.v4beta1.CustomAttribute:\x02\x38\x01:X\xea\x41U\n\x1bjobs.googleapis.com/Profile\x12\x36projects/{project}/tenants/{tenant}/profiles/{profile}"\xc3\x01\n\x12\x41vailabilitySignal\x12\x41\n\x04type\x18\x01 \x01(\x0e\x32\x33.google.cloud.talent.v4beta1.AvailabilitySignalType\x12\x34\n\x10last_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10\x66ilter_satisfied\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue"\xb5\x01\n\x06Resume\x12\x19\n\x11structured_resume\x18\x01 \x01(\t\x12\x43\n\x0bresume_type\x18\x02 \x01(\x0e\x32..google.cloud.talent.v4beta1.Resume.ResumeType"K\n\nResumeType\x12\x1b\n\x17RESUME_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05HRXML\x10\x01\x12\x15\n\x11OTHER_RESUME_TYPE\x10\x02"\xbc\x02\n\nPersonName\x12\x18\n\x0e\x66ormatted_name\x18\x01 \x01(\tH\x00\x12W\n\x0fstructured_name\x18\x02 \x01(\x0b\x32<.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameH\x00\x12\x16\n\x0epreferred_name\x18\x03 \x01(\t\x1a\x93\x01\n\x14PersonStructuredName\x12\x12\n\ngiven_name\x18\x01 \x01(\t\x12\x16\n\x0epreferred_name\x18\x06 \x01(\t\x12\x16\n\x0emiddle_initial\x18\x02 \x01(\t\x12\x13\n\x0b\x66\x61mily_name\x18\x03 \x01(\t\x12\x10\n\x08suffixes\x18\x04 \x03(\t\x12\x10\n\x08prefixes\x18\x05 \x03(\tB\r\n\x0bperson_name"\xd9\x01\n\x07\x41\x64\x64ress\x12<\n\x05usage\x18\x01 \x01(\x0e\x32-.google.cloud.talent.v4beta1.ContactInfoUsage\x12\x1e\n\x14unstructured_address\x18\x02 \x01(\tH\x00\x12\x38\n\x12structured_address\x18\x03 \x01(\x0b\x32\x1a.google.type.PostalAddressH\x00\x12+\n\x07\x63urrent\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\t\n\x07\x61\x64\x64ress"\\\n\x05\x45mail\x12<\n\x05usage\x18\x01 \x01(\x0e\x32-.google.cloud.talent.v4beta1.ContactInfoUsage\x12\x15\n\remail_address\x18\x02 \x01(\t"\xcf\x02\n\x05Phone\x12<\n\x05usage\x18\x01 \x01(\x0e\x32-.google.cloud.talent.v4beta1.ContactInfoUsage\x12:\n\x04type\x18\x02 \x01(\x0e\x32,.google.cloud.talent.v4beta1.Phone.PhoneType\x12\x0e\n\x06number\x18\x03 \x01(\t\x12\x16\n\x0ewhen_available\x18\x04 \x01(\t"\xa3\x01\n\tPhoneType\x12\x1a\n\x16PHONE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08LANDLINE\x10\x01\x12\n\n\x06MOBILE\x10\x02\x12\x07\n\x03\x46\x41X\x10\x03\x12\t\n\x05PAGER\x10\x04\x12\x0e\n\nTTY_OR_TDD\x10\x05\x12\r\n\tVOICEMAIL\x10\x06\x12\x0b\n\x07VIRTUAL\x10\x07\x12\x08\n\x04VOIP\x10\x08\x12\x16\n\x12MOBILE_OR_LANDLINE\x10\t"\x1a\n\x0bPersonalUri\x12\x0b\n\x03uri\x18\x01 \x01(\t"w\n\x15\x41\x64\x64itionalContactInfo\x12<\n\x05usage\x18\x01 \x01(\x0e\x32-.google.cloud.talent.v4beta1.ContactInfoUsage\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x12\n\ncontact_id\x18\x03 \x01(\t"\xf2\x03\n\x10\x45mploymentRecord\x12%\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.Date\x12#\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date\x12\x15\n\remployer_name\x18\x03 \x01(\t\x12\x15\n\rdivision_name\x18\x04 \x01(\t\x12\x35\n\x07\x61\x64\x64ress\x18\x05 \x01(\x0b\x32$.google.cloud.talent.v4beta1.Address\x12\x11\n\tjob_title\x18\x06 \x01(\t\x12\x17\n\x0fjob_description\x18\x07 \x01(\t\x12\x31\n\ris_supervisor\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x34\n\x10is_self_employed\x18\t \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12.\n\nis_current\x18\n \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x1e\n\x11job_title_snippet\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12$\n\x17job_description_snippet\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12"\n\x15\x65mployer_name_snippet\x18\r \x01(\tB\x03\xe0\x41\x03"\xcc\x03\n\x0f\x45\x64ucationRecord\x12%\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.Date\x12#\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date\x12\x33\n\x18\x65xpected_graduation_date\x18\x03 \x01(\x0b\x32\x11.google.type.Date\x12\x13\n\x0bschool_name\x18\x04 \x01(\t\x12\x35\n\x07\x61\x64\x64ress\x18\x05 \x01(\x0b\x32$.google.cloud.talent.v4beta1.Address\x12\x1c\n\x12\x64\x65gree_description\x18\x06 \x01(\tH\x00\x12@\n\x11structured_degree\x18\x07 \x01(\x0b\x32#.google.cloud.talent.v4beta1.DegreeH\x00\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x12.\n\nis_current\x18\t \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12 \n\x13school_name_snippet\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x64\x65gree_snippet\x18\x0b \x01(\tB\x03\xe0\x41\x03\x42\x08\n\x06\x64\x65gree"t\n\x06\x44\x65gree\x12<\n\x0b\x64\x65gree_type\x18\x01 \x01(\x0e\x32\'.google.cloud.talent.v4beta1.DegreeType\x12\x13\n\x0b\x64\x65gree_name\x18\x02 \x01(\t\x12\x17\n\x0f\x66ields_of_study\x18\x03 \x03(\t"\xd2\x02\n\x08\x41\x63tivity\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0b\n\x03uri\x18\x03 \x01(\t\x12&\n\x0b\x63reate_date\x18\x04 \x01(\x0b\x32\x11.google.type.Date\x12&\n\x0bupdate_date\x18\x05 \x01(\x0b\x32\x11.google.type.Date\x12\x14\n\x0cteam_members\x18\x06 \x03(\t\x12\x37\n\x0bskills_used\x18\x07 \x03(\x0b\x32".google.cloud.talent.v4beta1.Skill\x12"\n\x15\x61\x63tivity_name_snippet\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12)\n\x1c\x61\x63tivity_description_snippet\x18\t \x01(\tB\x03\xe0\x41\x03\x12 \n\x13skills_used_snippet\x18\n \x03(\tB\x03\xe0\x41\x03"\xcb\x01\n\x0bPublication\x12\x0f\n\x07\x61uthors\x18\x01 \x03(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0f\n\x07journal\x18\x04 \x01(\t\x12\x0e\n\x06volume\x18\x05 \x01(\t\x12\x11\n\tpublisher\x18\x06 \x01(\t\x12+\n\x10publication_date\x18\x07 \x01(\x0b\x32\x11.google.type.Date\x12\x18\n\x10publication_type\x18\x08 \x01(\t\x12\x0c\n\x04isbn\x18\t \x01(\t"\xa9\x02\n\x06Patent\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x11\n\tinventors\x18\x02 \x03(\t\x12\x15\n\rpatent_status\x18\x03 \x01(\t\x12-\n\x12patent_status_date\x18\x04 \x01(\x0b\x32\x11.google.type.Date\x12-\n\x12patent_filing_date\x18\x05 \x01(\x0b\x32\x11.google.type.Date\x12\x15\n\rpatent_office\x18\x06 \x01(\t\x12\x15\n\rpatent_number\x18\x07 \x01(\t\x12\x1a\n\x12patent_description\x18\x08 \x01(\t\x12\x37\n\x0bskills_used\x18\t \x03(\x0b\x32".google.cloud.talent.v4beta1.SkillB\x82\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x14ProfileResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\024ProfileResourceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n/google/cloud/talent_v4beta1/proto/profile.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x16google/type/date.proto\x1a google/type/postal_address.proto\x1a\x1cgoogle/api/annotations.proto"\xf6\r\n\x07Profile\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x65xternal_id\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x0b\n\x03uri\x18\x04 \x01(\t\x12\x10\n\x08group_id\x18\x05 \x01(\t\x12.\n\nis_hirable\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x15\x63\x61ndidate_update_time\x18\x43 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12resume_update_time\x18\x44 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x06resume\x18\x35 \x01(\x0b\x32#.google.cloud.talent.v4beta1.Resume\x12=\n\x0cperson_names\x18\x0b \x03(\x0b\x32\'.google.cloud.talent.v4beta1.PersonName\x12\x37\n\taddresses\x18\x0c \x03(\x0b\x32$.google.cloud.talent.v4beta1.Address\x12;\n\x0f\x65mail_addresses\x18\r \x03(\x0b\x32".google.cloud.talent.v4beta1.Email\x12\x39\n\rphone_numbers\x18\x0e \x03(\x0b\x32".google.cloud.talent.v4beta1.Phone\x12?\n\rpersonal_uris\x18\x0f \x03(\x0b\x32(.google.cloud.talent.v4beta1.PersonalUri\x12S\n\x17\x61\x64\x64itional_contact_info\x18\x10 \x03(\x0b\x32\x32.google.cloud.talent.v4beta1.AdditionalContactInfo\x12I\n\x12\x65mployment_records\x18\x11 \x03(\x0b\x32-.google.cloud.talent.v4beta1.EmploymentRecord\x12G\n\x11\x65\x64ucation_records\x18\x12 \x03(\x0b\x32,.google.cloud.talent.v4beta1.EducationRecord\x12\x32\n\x06skills\x18\x13 \x03(\x0b\x32".google.cloud.talent.v4beta1.Skill\x12\x39\n\nactivities\x18\x14 \x03(\x0b\x32%.google.cloud.talent.v4beta1.Activity\x12>\n\x0cpublications\x18\x15 \x03(\x0b\x32(.google.cloud.talent.v4beta1.Publication\x12\x34\n\x07patents\x18\x16 \x03(\x0b\x32#.google.cloud.talent.v4beta1.Patent\x12\x42\n\x0e\x63\x65rtifications\x18\x17 \x03(\x0b\x32*.google.cloud.talent.v4beta1.Certification\x12\x19\n\x0c\x61pplications\x18/ \x03(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x61ssignments\x18\x30 \x03(\tB\x03\xe0\x41\x03\x12U\n\x11\x63ustom_attributes\x18\x1a \x03(\x0b\x32:.google.cloud.talent.v4beta1.Profile.CustomAttributesEntry\x12\x16\n\tprocessed\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03\x12\x1c\n\x0fkeyword_snippet\x18\x1c \x01(\tB\x03\xe0\x41\x03\x12R\n\x14\x61vailability_signals\x18\x46 \x03(\x0b\x32/.google.cloud.talent.v4beta1.AvailabilitySignalB\x03\xe0\x41\x03\x12\x45\n\x11\x64\x65rived_addresses\x18@ \x03(\x0b\x32%.google.cloud.talent.v4beta1.LocationB\x03\xe0\x41\x03\x1a\x65\n\x15\x43ustomAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.cloud.talent.v4beta1.CustomAttribute:\x02\x38\x01:X\xea\x41U\n\x1bjobs.googleapis.com/Profile\x12\x36projects/{project}/tenants/{tenant}/profiles/{profile}"\xc3\x01\n\x12\x41vailabilitySignal\x12\x41\n\x04type\x18\x01 \x01(\x0e\x32\x33.google.cloud.talent.v4beta1.AvailabilitySignalType\x12\x34\n\x10last_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10\x66ilter_satisfied\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue"\xb5\x01\n\x06Resume\x12\x19\n\x11structured_resume\x18\x01 \x01(\t\x12\x43\n\x0bresume_type\x18\x02 \x01(\x0e\x32..google.cloud.talent.v4beta1.Resume.ResumeType"K\n\nResumeType\x12\x1b\n\x17RESUME_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05HRXML\x10\x01\x12\x15\n\x11OTHER_RESUME_TYPE\x10\x02"\xbc\x02\n\nPersonName\x12\x18\n\x0e\x66ormatted_name\x18\x01 \x01(\tH\x00\x12W\n\x0fstructured_name\x18\x02 \x01(\x0b\x32<.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameH\x00\x12\x16\n\x0epreferred_name\x18\x03 \x01(\t\x1a\x93\x01\n\x14PersonStructuredName\x12\x12\n\ngiven_name\x18\x01 \x01(\t\x12\x16\n\x0epreferred_name\x18\x06 \x01(\t\x12\x16\n\x0emiddle_initial\x18\x02 \x01(\t\x12\x13\n\x0b\x66\x61mily_name\x18\x03 \x01(\t\x12\x10\n\x08suffixes\x18\x04 \x03(\t\x12\x10\n\x08prefixes\x18\x05 \x03(\tB\r\n\x0bperson_name"\xd9\x01\n\x07\x41\x64\x64ress\x12<\n\x05usage\x18\x01 \x01(\x0e\x32-.google.cloud.talent.v4beta1.ContactInfoUsage\x12\x1e\n\x14unstructured_address\x18\x02 \x01(\tH\x00\x12\x38\n\x12structured_address\x18\x03 \x01(\x0b\x32\x1a.google.type.PostalAddressH\x00\x12+\n\x07\x63urrent\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\t\n\x07\x61\x64\x64ress"\\\n\x05\x45mail\x12<\n\x05usage\x18\x01 \x01(\x0e\x32-.google.cloud.talent.v4beta1.ContactInfoUsage\x12\x15\n\remail_address\x18\x02 \x01(\t"\xcf\x02\n\x05Phone\x12<\n\x05usage\x18\x01 \x01(\x0e\x32-.google.cloud.talent.v4beta1.ContactInfoUsage\x12:\n\x04type\x18\x02 \x01(\x0e\x32,.google.cloud.talent.v4beta1.Phone.PhoneType\x12\x0e\n\x06number\x18\x03 \x01(\t\x12\x16\n\x0ewhen_available\x18\x04 \x01(\t"\xa3\x01\n\tPhoneType\x12\x1a\n\x16PHONE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08LANDLINE\x10\x01\x12\n\n\x06MOBILE\x10\x02\x12\x07\n\x03\x46\x41X\x10\x03\x12\t\n\x05PAGER\x10\x04\x12\x0e\n\nTTY_OR_TDD\x10\x05\x12\r\n\tVOICEMAIL\x10\x06\x12\x0b\n\x07VIRTUAL\x10\x07\x12\x08\n\x04VOIP\x10\x08\x12\x16\n\x12MOBILE_OR_LANDLINE\x10\t"\x1a\n\x0bPersonalUri\x12\x0b\n\x03uri\x18\x01 \x01(\t"w\n\x15\x41\x64\x64itionalContactInfo\x12<\n\x05usage\x18\x01 \x01(\x0e\x32-.google.cloud.talent.v4beta1.ContactInfoUsage\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x12\n\ncontact_id\x18\x03 \x01(\t"\xf2\x03\n\x10\x45mploymentRecord\x12%\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.Date\x12#\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date\x12\x15\n\remployer_name\x18\x03 \x01(\t\x12\x15\n\rdivision_name\x18\x04 \x01(\t\x12\x35\n\x07\x61\x64\x64ress\x18\x05 \x01(\x0b\x32$.google.cloud.talent.v4beta1.Address\x12\x11\n\tjob_title\x18\x06 \x01(\t\x12\x17\n\x0fjob_description\x18\x07 \x01(\t\x12\x31\n\ris_supervisor\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x34\n\x10is_self_employed\x18\t \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12.\n\nis_current\x18\n \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x1e\n\x11job_title_snippet\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12$\n\x17job_description_snippet\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12"\n\x15\x65mployer_name_snippet\x18\r \x01(\tB\x03\xe0\x41\x03"\xcc\x03\n\x0f\x45\x64ucationRecord\x12%\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.Date\x12#\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date\x12\x33\n\x18\x65xpected_graduation_date\x18\x03 \x01(\x0b\x32\x11.google.type.Date\x12\x13\n\x0bschool_name\x18\x04 \x01(\t\x12\x35\n\x07\x61\x64\x64ress\x18\x05 \x01(\x0b\x32$.google.cloud.talent.v4beta1.Address\x12\x1c\n\x12\x64\x65gree_description\x18\x06 \x01(\tH\x00\x12@\n\x11structured_degree\x18\x07 \x01(\x0b\x32#.google.cloud.talent.v4beta1.DegreeH\x00\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x12.\n\nis_current\x18\t \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12 \n\x13school_name_snippet\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x64\x65gree_snippet\x18\x0b \x01(\tB\x03\xe0\x41\x03\x42\x08\n\x06\x64\x65gree"t\n\x06\x44\x65gree\x12<\n\x0b\x64\x65gree_type\x18\x01 \x01(\x0e\x32\'.google.cloud.talent.v4beta1.DegreeType\x12\x13\n\x0b\x64\x65gree_name\x18\x02 \x01(\t\x12\x17\n\x0f\x66ields_of_study\x18\x03 \x03(\t"\xd2\x02\n\x08\x41\x63tivity\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0b\n\x03uri\x18\x03 \x01(\t\x12&\n\x0b\x63reate_date\x18\x04 \x01(\x0b\x32\x11.google.type.Date\x12&\n\x0bupdate_date\x18\x05 \x01(\x0b\x32\x11.google.type.Date\x12\x14\n\x0cteam_members\x18\x06 \x03(\t\x12\x37\n\x0bskills_used\x18\x07 \x03(\x0b\x32".google.cloud.talent.v4beta1.Skill\x12"\n\x15\x61\x63tivity_name_snippet\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12)\n\x1c\x61\x63tivity_description_snippet\x18\t \x01(\tB\x03\xe0\x41\x03\x12 \n\x13skills_used_snippet\x18\n \x03(\tB\x03\xe0\x41\x03"\xcb\x01\n\x0bPublication\x12\x0f\n\x07\x61uthors\x18\x01 \x03(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0f\n\x07journal\x18\x04 \x01(\t\x12\x0e\n\x06volume\x18\x05 \x01(\t\x12\x11\n\tpublisher\x18\x06 \x01(\t\x12+\n\x10publication_date\x18\x07 \x01(\x0b\x32\x11.google.type.Date\x12\x18\n\x10publication_type\x18\x08 \x01(\t\x12\x0c\n\x04isbn\x18\t \x01(\t"\xa9\x02\n\x06Patent\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x11\n\tinventors\x18\x02 \x03(\t\x12\x15\n\rpatent_status\x18\x03 \x01(\t\x12-\n\x12patent_status_date\x18\x04 \x01(\x0b\x32\x11.google.type.Date\x12-\n\x12patent_filing_date\x18\x05 \x01(\x0b\x32\x11.google.type.Date\x12\x15\n\rpatent_office\x18\x06 \x01(\t\x12\x15\n\rpatent_number\x18\x07 \x01(\t\x12\x1a\n\x12patent_description\x18\x08 \x01(\t\x12\x37\n\x0bskills_used\x18\t \x03(\x0b\x32".google.cloud.talent.v4beta1.SkillB\x82\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x14ProfileResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, @@ -57,6 +51,7 @@ full_name="google.cloud.talent.v4beta1.Resume.ResumeType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="RESUME_TYPE_UNSPECIFIED", @@ -64,9 +59,15 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="HRXML", index=1, number=1, serialized_options=None, type=None + name="HRXML", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="OTHER_RESUME_TYPE", @@ -74,6 +75,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -88,6 +90,7 @@ full_name="google.cloud.talent.v4beta1.Phone.PhoneType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="PHONE_TYPE_UNSPECIFIED", @@ -95,30 +98,71 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LANDLINE", index=1, number=1, serialized_options=None, type=None + name="LANDLINE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOBILE", index=2, number=2, serialized_options=None, type=None + name="MOBILE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FAX", index=3, number=3, serialized_options=None, type=None + name="FAX", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PAGER", index=4, number=4, serialized_options=None, type=None + name="PAGER", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TTY_OR_TDD", index=5, number=5, serialized_options=None, type=None + name="TTY_OR_TDD", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VOICEMAIL", index=6, number=6, serialized_options=None, type=None + name="VOICEMAIL", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VIRTUAL", index=7, number=7, serialized_options=None, type=None + name="VIRTUAL", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VOIP", index=8, number=8, serialized_options=None, type=None + name="VOIP", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="MOBILE_OR_LANDLINE", @@ -126,6 +170,7 @@ number=9, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -142,6 +187,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -152,7 +198,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, @@ -160,6 +206,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -178,12 +225,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=[], @@ -198,6 +246,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -208,7 +257,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, @@ -216,6 +265,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="external_id", @@ -226,7 +276,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, @@ -234,6 +284,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="source", @@ -244,7 +295,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, @@ -252,6 +303,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="uri", @@ -262,7 +314,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, @@ -270,6 +322,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="group_id", @@ -280,7 +333,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, @@ -288,6 +341,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="is_hirable", @@ -306,6 +360,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -324,6 +379,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_time", @@ -342,6 +398,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="candidate_update_time", @@ -360,6 +417,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="resume_update_time", @@ -378,6 +436,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="resume", @@ -396,6 +455,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="person_names", @@ -414,6 +474,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="addresses", @@ -432,6 +493,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="email_addresses", @@ -450,6 +512,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="phone_numbers", @@ -468,6 +531,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="personal_uris", @@ -486,6 +550,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="additional_contact_info", @@ -504,6 +569,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="employment_records", @@ -522,6 +588,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="education_records", @@ -540,6 +607,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="skills", @@ -558,6 +626,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="activities", @@ -576,6 +645,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="publications", @@ -594,6 +664,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="patents", @@ -612,6 +683,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="certifications", @@ -630,6 +702,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="applications", @@ -646,8 +719,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="assignments", @@ -664,8 +738,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="custom_attributes", @@ -684,6 +759,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="processed", @@ -700,8 +776,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="keyword_snippet", @@ -712,14 +789,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\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="availability_signals", @@ -736,8 +814,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="derived_addresses", @@ -754,16 +833,15 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_PROFILE_CUSTOMATTRIBUTESENTRY], + nested_types=[_PROFILE_CUSTOMATTRIBUTESENTRY,], enum_types=[], - serialized_options=_b( - "\352AU\n\033jobs.googleapis.com/Profile\0226projects/{project}/tenants/{tenant}/profiles/{profile}" - ), + serialized_options=b"\352AU\n\033jobs.googleapis.com/Profile\0226projects/{project}/tenants/{tenant}/profiles/{profile}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -779,6 +857,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -797,6 +876,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="last_update_time", @@ -815,6 +895,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter_satisfied", @@ -833,6 +914,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -854,6 +936,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="structured_resume", @@ -864,7 +947,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, @@ -872,6 +955,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="resume_type", @@ -890,11 +974,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_RESUME_RESUMETYPE], + enum_types=[_RESUME_RESUMETYPE,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -911,6 +996,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="given_name", @@ -921,7 +1007,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, @@ -929,6 +1015,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="preferred_name", @@ -939,7 +1026,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, @@ -947,6 +1034,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="middle_initial", @@ -957,7 +1045,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, @@ -965,6 +1053,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="family_name", @@ -975,7 +1064,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, @@ -983,6 +1072,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="suffixes", @@ -1001,6 +1091,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="prefixes", @@ -1019,6 +1110,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1039,6 +1131,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="formatted_name", @@ -1049,7 +1142,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, @@ -1057,6 +1150,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="structured_name", @@ -1075,6 +1169,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="preferred_name", @@ -1085,7 +1180,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, @@ -1093,10 +1188,11 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_PERSONNAME_PERSONSTRUCTUREDNAME], + nested_types=[_PERSONNAME_PERSONSTRUCTUREDNAME,], enum_types=[], serialized_options=None, is_extendable=False, @@ -1108,8 +1204,9 @@ full_name="google.cloud.talent.v4beta1.PersonName.person_name", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=2541, serialized_end=2857, @@ -1122,6 +1219,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="usage", @@ -1140,6 +1238,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="unstructured_address", @@ -1150,7 +1249,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, @@ -1158,6 +1257,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="structured_address", @@ -1176,6 +1276,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="current", @@ -1194,6 +1295,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1209,8 +1311,9 @@ full_name="google.cloud.talent.v4beta1.Address.address", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=2860, serialized_end=3077, @@ -1223,6 +1326,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="usage", @@ -1241,6 +1345,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="email_address", @@ -1251,7 +1356,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, @@ -1259,6 +1364,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1280,6 +1386,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="usage", @@ -1298,6 +1405,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="type", @@ -1316,6 +1424,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="number", @@ -1326,7 +1435,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, @@ -1334,6 +1443,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="when_available", @@ -1344,7 +1454,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, @@ -1352,11 +1462,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_PHONE_PHONETYPE], + enum_types=[_PHONE_PHONETYPE,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -1373,6 +1484,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="uri", @@ -1383,7 +1495,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, @@ -1391,7 +1503,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -1412,6 +1525,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="usage", @@ -1430,6 +1544,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="name", @@ -1440,7 +1555,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, @@ -1448,6 +1563,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="contact_id", @@ -1458,7 +1574,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, @@ -1466,6 +1582,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1487,6 +1604,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="start_date", @@ -1505,6 +1623,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_date", @@ -1523,6 +1642,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="employer_name", @@ -1533,7 +1653,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, @@ -1541,6 +1661,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="division_name", @@ -1551,7 +1672,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, @@ -1559,6 +1680,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", @@ -1577,6 +1699,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_title", @@ -1587,7 +1710,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, @@ -1595,6 +1718,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_description", @@ -1605,7 +1729,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, @@ -1613,6 +1737,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="is_supervisor", @@ -1631,6 +1756,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="is_self_employed", @@ -1649,6 +1775,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="is_current", @@ -1667,6 +1794,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_title_snippet", @@ -1677,14 +1805,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\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="job_description_snippet", @@ -1695,14 +1824,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\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="employer_name_snippet", @@ -1713,14 +1843,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\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1742,6 +1873,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="start_date", @@ -1760,6 +1892,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_date", @@ -1778,6 +1911,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="expected_graduation_date", @@ -1796,6 +1930,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="school_name", @@ -1806,7 +1941,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, @@ -1814,6 +1949,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", @@ -1832,6 +1968,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="degree_description", @@ -1842,7 +1979,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, @@ -1850,6 +1987,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="structured_degree", @@ -1868,6 +2006,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -1878,7 +2017,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, @@ -1886,6 +2025,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="is_current", @@ -1904,6 +2044,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="school_name_snippet", @@ -1914,14 +2055,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\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="degree_snippet", @@ -1932,14 +2074,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\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1955,8 +2098,9 @@ full_name="google.cloud.talent.v4beta1.EducationRecord.degree", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=4162, serialized_end=4622, @@ -1969,6 +2113,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="degree_type", @@ -1987,6 +2132,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="degree_name", @@ -1997,7 +2143,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, @@ -2005,6 +2151,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fields_of_study", @@ -2023,6 +2170,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2044,6 +2192,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="display_name", @@ -2054,7 +2203,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, @@ -2062,6 +2211,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -2072,7 +2222,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, @@ -2080,6 +2230,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="uri", @@ -2090,7 +2241,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, @@ -2098,6 +2249,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_date", @@ -2116,6 +2268,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_date", @@ -2134,6 +2287,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="team_members", @@ -2152,6 +2306,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="skills_used", @@ -2170,6 +2325,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="activity_name_snippet", @@ -2180,14 +2336,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\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="activity_description_snippet", @@ -2198,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\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="skills_used_snippet", @@ -2222,8 +2380,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2245,6 +2404,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="authors", @@ -2263,6 +2423,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="title", @@ -2273,7 +2434,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, @@ -2281,6 +2442,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -2291,7 +2453,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, @@ -2299,6 +2461,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="journal", @@ -2309,7 +2472,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, @@ -2317,6 +2480,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="volume", @@ -2327,7 +2491,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, @@ -2335,6 +2499,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="publisher", @@ -2345,7 +2510,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, @@ -2353,6 +2518,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="publication_date", @@ -2371,6 +2537,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="publication_type", @@ -2381,7 +2548,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, @@ -2389,6 +2556,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="isbn", @@ -2399,7 +2567,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, @@ -2407,6 +2575,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2428,6 +2597,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="display_name", @@ -2438,7 +2608,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, @@ -2446,6 +2616,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="inventors", @@ -2464,6 +2635,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="patent_status", @@ -2474,7 +2646,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, @@ -2482,6 +2654,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="patent_status_date", @@ -2500,6 +2673,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="patent_filing_date", @@ -2518,6 +2692,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="patent_office", @@ -2528,7 +2703,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, @@ -2536,6 +2711,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="patent_number", @@ -2546,7 +2722,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, @@ -2554,6 +2730,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="patent_description", @@ -2564,7 +2741,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, @@ -2572,6 +2749,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="skills_used", @@ -2590,6 +2768,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2809,38 +2988,39 @@ Profile = _reflection.GeneratedProtocolMessageType( "Profile", (_message.Message,), - dict( - CustomAttributesEntry=_reflection.GeneratedProtocolMessageType( + { + "CustomAttributesEntry": _reflection.GeneratedProtocolMessageType( "CustomAttributesEntry", (_message.Message,), - dict( - DESCRIPTOR=_PROFILE_CUSTOMATTRIBUTESENTRY, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2" + { + "DESCRIPTOR": _PROFILE_CUSTOMATTRIBUTESENTRY, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2" # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Profile.CustomAttributesEntry) - ), + }, ), - DESCRIPTOR=_PROFILE, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""A resource that represents the profile for a job candidate (also - referred to as a "single-source profile"). + "DESCRIPTOR": _PROFILE, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """A resource that represents the profile for a job candidate (also + referred to as a “single-source profile”). + Attributes: name: Required during profile update. Resource name assigned to a - profile by the API. The format is "projects/{project\_id}/ten - ants/{tenant\_id}/profiles/{profile\_id}", for example, - "projects/foo/tenants/bar/profiles/baz". + profile by the API. The format is “projects/{project_id}/tena + nts/{tenant_id}/profiles/{profile_id}”, for example, + “projects/foo/tenants/bar/profiles/baz”. external_id: - Profile's id in client system, if available. This value is + Profile’s id in client system, if available. This value is unique for each profile inside a tenant. An error is thrown if - another profile with the same external\_id is created. The + another profile with the same external_id is created. The maximum number of bytes allowed is 100. source: The source description indicating where the profile is acquired. For example, if a candidate profile is acquired - from a resume, the user can input "resume" here to indicate + from a resume, the user can input “resume” here to indicate the source. The maximum number of bytes allowed is 100. uri: - The URI set by clients that links to this profile's client- + The URI set by clients that links to this profile’s client- side copy. The maximum number of bytes allowed is 4000. group_id: The cluster id of the profile to associate with other @@ -2852,9 +3032,9 @@ was created recently and the other one was created 5 years ago. These two profiles may be very different. The clients can create the first profile and get a generated - [group\_id][google.cloud.talent.v4beta1.Profile.group\_id], - and assign it when the second profile is created, indicating - these two profiles are referring to the same candidate. + [group_id][google.cloud.talent.v4beta1.Profile.group_id], and + assign it when the second profile is created, indicating these + two profiles are referring to the same candidate. is_hirable: Indicates the hirable status of the candidate. create_time: @@ -2873,21 +3053,20 @@ as uploading a resume to a job board that is collected by the agency through a feed, providing a resume to a recruiter who then uploads it into the ATS, and so on. - - Updates made to the candidate's profile by the recruiter as a + Updates made to the candidate’s profile by the recruiter as a result of interacting with the candidate (for example adding a skill or work preference, and so on). Changes to - [recruiting\_notes][google.cloud.talent.v4beta1.Profile.recrui - ting\_notes] are specifically excluded from this action - type. Note: [candidate\_update\_time][google.cloud.talent.v4b - eta1.Profile.candidate\_update\_time] must be greater than or - equal to [resume\_update\_time][google.cloud.talent.v4beta1.Pr - ofile.resume\_update\_time] or an error is thrown. + [recruiting_notes][google.cloud.talent.v4beta1.Profile.recruit + ing_notes] are specifically excluded from this action type. + Note: [candidate_update_time][google.cloud.talent.v4beta1.Prof + ile.candidate_update_time] must be greater than or equal to [r + esume_update_time][google.cloud.talent.v4beta1.Profile.resume_update_time] or an error is thrown. resume_update_time: - The timestamp when the candidate's resume was added or updated - on the candidate's profile. Whether that resume was directly + The timestamp when the candidate’s resume was added or updated + on the candidate’s profile. Whether that resume was directly uploaded by a candidate, pulled from a 3rd party job board feed, added by a recruiter, and so on. If this field is - updated, it's expected that + updated, it’s expected that [resume][google.cloud.talent.v4beta1.Profile.resume] is provided in the create or update calls. resume: @@ -2896,7 +3075,7 @@ The names of the candidate this profile references. Currently only one person name is supported. addresses: - The candidate's postal addresses. It's highly recommended to + The candidate’s postal addresses. It’s highly recommended to input this information as accurately as possible to help improve search quality. Here are some recommendations: - Provide @@ -2909,7 +3088,7 @@ for the current address if possible. During a search, only current addresses are considered. If there is no such address, all addresses are assumed to be current. When - displaying a candidate's addresses, it is sometimes desirable + displaying a candidate’s addresses, it is sometimes desirable to limit the number of addresses shown. In these cases we recommend that you display the addresses in the following order of priority: 1. @@ -2922,62 +3101,62 @@ [Address.current][google.cloud.talent.v4beta1.Address.current] is false or not set. 3. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is - CONTACT\_INFO\_USAGE\_UNSPECIFIED and + CONTACT_INFO_USAGE_UNSPECIFIED and [Address.current][google.cloud.talent.v4beta1.Address.current] is true. 4. [Address.usage][google.cloud.talent.v4beta1.Address.usage] is - CONTACT\_INFO\_USAGE\_UNSPECIFIED and + CONTACT_INFO_USAGE_UNSPECIFIED and [Address.current][google.cloud.talent.v4beta1.Address.current] is false or not set. email_addresses: - The candidate's email addresses. + The candidate’s email addresses. phone_numbers: - The candidate's phone number(s). + The candidate’s phone number(s). personal_uris: - The candidate's personal URIs. + The candidate’s personal URIs. additional_contact_info: Available contact information besides [addresses][google.cloud.talent.v4beta1.Profile.addresses], [e - mail\_addresses][google.cloud.talent.v4beta1.Profile.email\_ad - dresses], [phone\_numbers][google.cloud.talent.v4beta1.Profile - .phone\_numbers] and [personal\_uris][google.cloud.talent.v4be - ta1.Profile.personal\_uris]. For example, Hang-out, Skype. + mail_addresses][google.cloud.talent.v4beta1.Profile.email_addr + esses], [phone_numbers][google.cloud.talent.v4beta1.Profile.ph + one_numbers] and [personal_uris][google.cloud.talent.v4beta1.P + rofile.personal_uris]. For example, Hang-out, Skype. employment_records: - The employment history records of the candidate. It's highly + The employment history records of the candidate. It’s highly recommended to input this information as accurately as possible to help improve search quality. Here are some recommendations: - Specify the start and end dates of the employment records. - List different employment types separately, no matter how minor the change is. For example, - only job title is changed from "software engineer" to - "senior software engineer". - Provide [EmploymentRecord.is - \_current][google.cloud.talent.v4beta1.EmploymentRecord.is\_cu - rrent] for the current employment if possible. If not, it's + only job title is changed from “software engineer” to + “senior software engineer”. - Provide [EmploymentRecord.is + _current][google.cloud.talent.v4beta1.EmploymentRecord.is_curr + ent] for the current employment if possible. If not, it’s inferred from user inputs. The limitation for max number of employment records is 100. education_records: - The education history record of the candidate. It's highly + The education history record of the candidate. It’s highly recommended to input this information as accurately as possible to help improve search quality. Here are some recommendations: - Specify the start and end dates of the education records. - List each education type separately, no matter how minor the change is. For example, the profile contains the education experience from the same school but - different degrees. - Provide [EducationRecord.is\_current] - [google.cloud.talent.v4beta1.EducationRecord.is\_current] - for the current education if possible. If not, it's inferred - from user inputs. The limitation for max number of - education records is 100. + different degrees. - Provide [EducationRecord.is_current][ + google.cloud.talent.v4beta1.EducationRecord.is_current] for + the current education if possible. If not, it’s inferred from + user inputs. The limitation for max number of education + records is 100. skills: - The skill set of the candidate. It's highly recommended to + The skill set of the candidate. It’s highly recommended to provide as much information as possible to help improve the search quality. The limitation for max number of skills is 500. activities: The individual or collaborative activities which the candidate has participated in, for example, open-source projects, class - assignments that aren't listed in [employment\_records][google - .cloud.talent.v4beta1.Profile.employment\_records]. The + assignments that aren’t listed in [employment_records][google. + cloud.talent.v4beta1.Profile.employment_records]. The limitation for max number of activities is 50. publications: The publications published by the candidate. The limitation @@ -2987,14 +3166,14 @@ certifications: The certifications acquired by the candidate. applications: - Output only. The resource names of the candidate's + Output only. The resource names of the candidate’s applications. assignments: - Output only. The resource names of the candidate's + Output only. The resource names of the candidate’s assignments. custom_attributes: A map of fields to hold both filterable and non-filterable - custom profile attributes that aren't covered by the provided + custom profile attributes that aren’t covered by the provided structured fields. See [CustomAttribute][google.cloud.talent.v4beta1.CustomAttribute] for more details. At most 100 filterable and at most 100 @@ -3003,8 +3182,8 @@ default. These are filterable when the ``filterable`` flag is set to ``true``. Numeric custom attributes: each key can only map to one numeric value, otherwise an error is thrown. Client - can also filter on numeric custom attributes using '>', '<' or - '=' operators. String custom attributes: each key can map up + can also filter on numeric custom attributes using ‘>’, ‘<’ or + ‘=’ operators. String custom attributes: each key can map up to 50 string values. For filterable string value, each value has a byte size of no more than 256B. For unfilterable string values, the maximum byte size of a single key is 64B. An error @@ -3020,17 +3199,17 @@ filesResponse][google.cloud.talent.v4beta1.SearchProfilesRespo nse]. availability_signals: - Output only. Candidate's availability signals. + Output only. Candidate’s availability signals. derived_addresses: Output only. Derived locations of the profile, resolved from [ Profile.addresses][google.cloud.talent.v4beta1.Profile.address - es]. [derived\_addresses][google.cloud.talent.v4beta1.Profile - .derived\_addresses] are exactly matched to [Profile.addresses - ][google.cloud.talent.v4beta1.Profile.addresses] in the same + es]. [derived_addresses][google.cloud.talent.v4beta1.Profile. + derived_addresses] are exactly matched to [Profile.addresses][ + google.cloud.talent.v4beta1.Profile.addresses] in the same order. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Profile) - ), + }, ) _sym_db.RegisterMessage(Profile) _sym_db.RegisterMessage(Profile.CustomAttributesEntry) @@ -3038,10 +3217,11 @@ AvailabilitySignal = _reflection.GeneratedProtocolMessageType( "AvailabilitySignal", (_message.Message,), - dict( - DESCRIPTOR=_AVAILABILITYSIGNAL, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Candidate availability signal. + { + "DESCRIPTOR": _AVAILABILITYSIGNAL, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Candidate availability signal. + Attributes: type: Type of signal. @@ -3049,33 +3229,35 @@ Timestamp of when the given availability activity last happened. filter_satisfied: - Indicates if the [last\_update\_time][google.cloud.talent.v4be - ta1.AvailabilitySignal.last\_update\_time] is within [Availabi - lityFilter.range][google.cloud.talent.v4beta1.AvailabilityFilt - er.range]. Returned only in a search response when there is - an [AvailabilityFilter][google.cloud.talent.v4beta1.Availabili - tyFilter] in [ProfileQuery.availability\_filters][google.cloud - .talent.v4beta1.ProfileQuery.availability\_filters] where [sig - nal\_type][google.cloud.talent.v4beta1.AvailabilityFilter.sign - al\_type] matches + Indicates if the [last_update_time][google.cloud.talent.v4beta + 1.AvailabilitySignal.last_update_time] is within [Availability + Filter.range][google.cloud.talent.v4beta1.AvailabilityFilter.r + ange]. Returned only in a search response when there is an [A + vailabilityFilter][google.cloud.talent.v4beta1.AvailabilityFil + ter] in [ProfileQuery.availability_filters][google.cloud.talen + t.v4beta1.ProfileQuery.availability_filters] where [signal_typ + e][google.cloud.talent.v4beta1.AvailabilityFilter.signal_type] + matches [type][google.cloud.talent.v4beta1.AvailabilitySignal.type]. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.AvailabilitySignal) - ), + }, ) _sym_db.RegisterMessage(AvailabilitySignal) Resume = _reflection.GeneratedProtocolMessageType( "Resume", (_message.Message,), - dict( - DESCRIPTOR=_RESUME, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents a resume. + { + "DESCRIPTOR": _RESUME, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents a resume. + Attributes: structured_resume: - Users can create a profile with only this field field, if [res - ume\_type][google.cloud.talent.v4beta1.Resume.resume\_type] is + Users can create a profile with only this field field, if + [resume_type][google.cloud.talent.v4beta1.Resume.resume_type] + is [HRXML][google.cloud.talent.v4beta1.Resume.ResumeType.HRXML]. For example, the API parses this field and creates a profile with all structured fields populated. [EmploymentRecord][googl @@ -3086,40 +3268,41 @@ from resumes is an Alpha feature and as such is not covered by any SLA. resume_type: - The format of [structured\_resume][google.cloud.talent.v4beta1 - .Resume.structured\_resume]. + The format of [structured_resume][google.cloud.talent.v4beta1. + Resume.structured_resume]. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Resume) - ), + }, ) _sym_db.RegisterMessage(Resume) PersonName = _reflection.GeneratedProtocolMessageType( "PersonName", (_message.Message,), - dict( - PersonStructuredName=_reflection.GeneratedProtocolMessageType( + { + "PersonStructuredName": _reflection.GeneratedProtocolMessageType( "PersonStructuredName", (_message.Message,), - dict( - DESCRIPTOR=_PERSONNAME_PERSONSTRUCTUREDNAME, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents a person's structured name. + { + "DESCRIPTOR": _PERSONNAME_PERSONSTRUCTUREDNAME, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents a person’s structured name. + Attributes: given_name: - Given/first name. It's derived from [formatted\_name][google. - cloud.talent.v4beta1.PersonName.formatted\_name] if not + Given/first name. It’s derived from [formatted_name][google.c + loud.talent.v4beta1.PersonName.formatted_name] if not provided. Number of characters allowed is 100. preferred_name: Preferred given/first name or nickname. Number of characters allowed is 100. middle_initial: - Middle initial. It's derived from [formatted\_name][google.cl - oud.talent.v4beta1.PersonName.formatted\_name] if not - provided. Number of characters allowed is 20. + Middle initial. It’s derived from [formatted_name][google.clo + ud.talent.v4beta1.PersonName.formatted_name] if not provided. + Number of characters allowed is 20. family_name: - Family/last name. It's derived from [formatted\_name][google. - cloud.talent.v4beta1.PersonName.formatted\_name] if not + Family/last name. It’s derived from [formatted_name][google.c + loud.talent.v4beta1.PersonName.formatted_name] if not provided. Number of characters allowed is 100. suffixes: Suffixes. Number of characters allowed is 20. @@ -3127,30 +3310,29 @@ Prefixes. Number of characters allowed is 20. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) - ), + }, ), - DESCRIPTOR=_PERSONNAME, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents the name of a person. + "DESCRIPTOR": _PERSONNAME, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents the name of a person. + Attributes: person_name: - The name of a person. It can be one of [formatted\_name][googl - e.cloud.talent.v4beta1.PersonName.formatted\_name] or [structu - red\_name][google.cloud.talent.v4beta1.PersonName.structured\_ - name]. + The name of a person. It can be one of [formatted_name][google + .cloud.talent.v4beta1.PersonName.formatted_name] or [structure + d_name][google.cloud.talent.v4beta1.PersonName.structured_name + ]. formatted_name: - A string represents a person's full name. For example, "Dr. - John Smith". Number of characters allowed is 100. + A string represents a person’s full name. For example, + “Dr. John Smith”. Number of characters allowed is 100. structured_name: - A person's name in a structured way (last name, first name, + A person’s name in a structured way (last name, first name, suffix, and so on.) preferred_name: - Preferred name for the person. This field is ignored if [struc - tured\_name][google.cloud.talent.v4beta1.PersonName.structured - \_name] is provided. Number of characters allowed is 100. + Preferred name for the person. This field is ignored if [structured_name][google.cloud.talent.v4beta1.PersonName.structured_name] is provided. Number of characters allowed is 100. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonName) - ), + }, ) _sym_db.RegisterMessage(PersonName) _sym_db.RegisterMessage(PersonName.PersonStructuredName) @@ -3158,40 +3340,42 @@ Address = _reflection.GeneratedProtocolMessageType( "Address", (_message.Message,), - dict( - DESCRIPTOR=_ADDRESS, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents a address. + { + "DESCRIPTOR": _ADDRESS, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents a address. + Attributes: usage: The usage of the address. For example, SCHOOL, WORK, PERSONAL. address: - The address of a person. It can be one of [unstructured\_addre - ss][google.cloud.talent.v4beta1.Address.unstructured\_address] - or [structured\_address][google.cloud.talent.v4beta1.Address.s - tructured\_address]. + The address of a person. It can be one of [unstructured_addres + s][google.cloud.talent.v4beta1.Address.unstructured_address] + or [structured_address][google.cloud.talent.v4beta1.Address.st + ructured_address]. unstructured_address: - Unstructured address. For example, "1600 Amphitheatre Pkwy, - Mountain View, CA 94043", "Sunnyvale, California". Number of + Unstructured address. For example, “1600 Amphitheatre Pkwy, + Mountain View, CA 94043”, “Sunnyvale, California”. Number of characters allowed is 100. structured_address: Structured address that contains street address, city, state, country, and so on. current: - Indicates if it's the person's current address. + Indicates if it’s the person’s current address. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Address) - ), + }, ) _sym_db.RegisterMessage(Address) Email = _reflection.GeneratedProtocolMessageType( "Email", (_message.Message,), - dict( - DESCRIPTOR=_EMAIL, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents a person's email address. + { + "DESCRIPTOR": _EMAIL, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents a person’s email address. + Attributes: usage: The usage of the email address. For example, SCHOOL, WORK, @@ -3200,17 +3384,18 @@ Email address. Number of characters allowed is 4,000. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Email) - ), + }, ) _sym_db.RegisterMessage(Email) Phone = _reflection.GeneratedProtocolMessageType( "Phone", (_message.Message,), - dict( - DESCRIPTOR=_PHONE, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents a person's telephone number. + { + "DESCRIPTOR": _PHONE, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents a person’s telephone number. + Attributes: usage: The usage of the phone. For example, SCHOOL, WORK, PERSONAL. @@ -3219,64 +3404,67 @@ number: Phone number. Any phone formats are supported and only exact matches are performed on searches. For example, if a phone - number in profile is provided in the format of "(xxx)xxx- - xxxx", in profile searches the same phone format has to be + number in profile is provided in the format of “(xxx)xxx- + xxxx”, in profile searches the same phone format has to be provided. Number of characters allowed is 20. when_available: When this number is available. Any descriptive string is expected. Number of characters allowed is 100. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Phone) - ), + }, ) _sym_db.RegisterMessage(Phone) PersonalUri = _reflection.GeneratedProtocolMessageType( "PersonalUri", (_message.Message,), - dict( - DESCRIPTOR=_PERSONALURI, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents a valid URI for a personal use. + { + "DESCRIPTOR": _PERSONALURI, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents a valid URI for a personal use. + Attributes: uri: The personal URI. Number of characters allowed is 4,000. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonalUri) - ), + }, ) _sym_db.RegisterMessage(PersonalUri) AdditionalContactInfo = _reflection.GeneratedProtocolMessageType( "AdditionalContactInfo", (_message.Message,), - dict( - DESCRIPTOR=_ADDITIONALCONTACTINFO, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents contact information other than phone, email, + { + "DESCRIPTOR": _ADDITIONALCONTACTINFO, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents contact information other than phone, email, URI and addresses. + Attributes: usage: The usage of this contact method. For example, SCHOOL, WORK, PERSONAL. name: - The name of the contact method. For example, "hangout", - "skype". Number of characters allowed is 100. + The name of the contact method. For example, “hangout”, + “skype”. Number of characters allowed is 100. contact_id: The contact id. Number of characters allowed is 100. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.AdditionalContactInfo) - ), + }, ) _sym_db.RegisterMessage(AdditionalContactInfo) EmploymentRecord = _reflection.GeneratedProtocolMessageType( "EmploymentRecord", (_message.Message,), - dict( - DESCRIPTOR=_EMPLOYMENTRECORD, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents an employment record of a candidate. + { + "DESCRIPTOR": _EMPLOYMENTRECORD, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents an employment record of a candidate. + Attributes: start_date: Start date of the employment. @@ -3284,7 +3472,7 @@ End date of the employment. employer_name: The name of the employer company/organization. For example, - "Google", "Alphabet", and so on. Number of characters allowed + “Google”, “Alphabet”, and so on. Number of characters allowed is 250. division_name: The division name of the employment. For example, division, @@ -3293,8 +3481,8 @@ address: The physical address of the employer. job_title: - The job title of the employment. For example, "Software - Engineer", "Data Scientist", and so on. Number of characters + The job title of the employment. For example, “Software + Engineer”, “Data Scientist”, and so on. Number of characters allowed is 250. job_description: The description of job content. Number of characters allowed @@ -3306,36 +3494,37 @@ is_current: If this employment is current. job_title_snippet: - Output only. The job title snippet shows how the [job\_title][ - google.cloud.talent.v4beta1.EmploymentRecord.job\_title] is - related to a search query. It's empty if the [job\_title][goog - le.cloud.talent.v4beta1.EmploymentRecord.job\_title] isn't + Output only. The job title snippet shows how the [job_title][g + oogle.cloud.talent.v4beta1.EmploymentRecord.job_title] is + related to a search query. It’s empty if the [job_title][googl + e.cloud.talent.v4beta1.EmploymentRecord.job_title] isn’t related to the search query. job_description_snippet: - Output only. The job description snippet shows how the [job\_d - escription][google.cloud.talent.v4beta1.EmploymentRecord.job\_ - description] is related to a search query. It's empty if the [ - job\_description][google.cloud.talent.v4beta1.EmploymentRecord - .job\_description] isn't related to the search query. + Output only. The job description snippet shows how the [job_de + scription][google.cloud.talent.v4beta1.EmploymentRecord.job_de + scription] is related to a search query. It’s empty if the [jo + b_description][google.cloud.talent.v4beta1.EmploymentRecord.jo + b_description] isn’t related to the search query. employer_name_snippet: Output only. The employer name snippet shows how the [employer - \_name][google.cloud.talent.v4beta1.EmploymentRecord.employer\ - _name] is related to a search query. It's empty if the [employ - er\_name][google.cloud.talent.v4beta1.EmploymentRecord.employe - r\_name] isn't related to the search query. + _name][google.cloud.talent.v4beta1.EmploymentRecord.employer_n + ame] is related to a search query. It’s empty if the [employer + _name][google.cloud.talent.v4beta1.EmploymentRecord.employer_n + ame] isn’t related to the search query. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EmploymentRecord) - ), + }, ) _sym_db.RegisterMessage(EmploymentRecord) EducationRecord = _reflection.GeneratedProtocolMessageType( "EducationRecord", (_message.Message,), - dict( - DESCRIPTOR=_EDUCATIONRECORD, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents an education record of a candidate. + { + "DESCRIPTOR": _EDUCATIONRECORD, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents an education record of a candidate. + Attributes: start_date: The start date of the education. @@ -3344,19 +3533,19 @@ expected_graduation_date: The expected graduation date if currently pursuing a degree. school_name: - The name of the school or institution. For example, "Stanford - University", "UC Berkeley", and so on. Number of characters + The name of the school or institution. For example, “Stanford + University”, “UC Berkeley”, and so on. Number of characters allowed is 250. address: The physical address of the education institution. degree: - The degree information. It can be one of [degree\_description] - [google.cloud.talent.v4beta1.EducationRecord.degree\_descripti - on] or [structured\_degree][google.cloud.talent.v4beta1.Educat - ionRecord.structured\_degree]. + The degree information. It can be one of [degree_description][ + google.cloud.talent.v4beta1.EducationRecord.degree_description + ] or [structured_degree][google.cloud.talent.v4beta1.Education + Record.structured_degree]. degree_description: - The full description of the degree. For example, "Master of - Science in Computer Science", "B.S in Math". Number of + The full description of the degree. For example, “Master of + Science in Computer Science”, “B.S in Math”. Number of characters allowed is 100. structured_degree: The structured notation of the degree. @@ -3366,54 +3555,56 @@ is_current: If this education is current. school_name_snippet: - Output only. The school name snippet shows how the [school\_na - me][google.cloud.talent.v4beta1.EducationRecord.school\_name] - is related to a search query in search result. It's empty if - the [school\_name][google.cloud.talent.v4beta1.EducationRecord - .school\_name] isn't related to the search query. + Output only. The school name snippet shows how the [school_nam + e][google.cloud.talent.v4beta1.EducationRecord.school_name] is + related to a search query in search result. It’s empty if the + [school_name][google.cloud.talent.v4beta1.EducationRecord.scho + ol_name] isn’t related to the search query. degree_snippet: Output only. The job description snippet shows how the [Degree][google.cloud.talent.v4beta1.Degree] is related to a - search query in search result. It's empty if the - [Degree][google.cloud.talent.v4beta1.Degree] isn't related to + search query in search result. It’s empty if the + [Degree][google.cloud.talent.v4beta1.Degree] isn’t related to the search query. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EducationRecord) - ), + }, ) _sym_db.RegisterMessage(EducationRecord) Degree = _reflection.GeneratedProtocolMessageType( "Degree", (_message.Message,), - dict( - DESCRIPTOR=_DEGREE, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents a degree pursuing or acquired by a candidate. + { + "DESCRIPTOR": _DEGREE, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents a degree pursuing or acquired by a candidate. + Attributes: degree_type: ISCED degree type. degree_name: - Full Degree name. For example, "B.S.", "Master of Arts", and + Full Degree name. For example, “B.S.”, “Master of Arts”, and so on. Number of characters allowed is 100. fields_of_study: - Fields of study for the degree. For example, "Computer - science", "engineering". Number of characters allowed is 100. + Fields of study for the degree. For example, “Computer + science”, “engineering”. Number of characters allowed is 100. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Degree) - ), + }, ) _sym_db.RegisterMessage(Degree) Activity = _reflection.GeneratedProtocolMessageType( "Activity", (_message.Message,), - dict( - DESCRIPTOR=_ACTIVITY, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents an individual or collaborative activity + { + "DESCRIPTOR": _ACTIVITY, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents an individual or collaborative activity participated in by a candidate, for example, an open-source project, a class assignment, and so on. + Attributes: display_name: Activity display name. Number of characters allowed is 100. @@ -3434,36 +3625,37 @@ class assignment, and so on. A list of skills used in this activity. The limitation for max number of skills used is 50. activity_name_snippet: - Output only. Activity name snippet shows how the [display\_nam - e][google.cloud.talent.v4beta1.Activity.display\_name] is - related to a search query. It's empty if the [display\_name][g - oogle.cloud.talent.v4beta1.Activity.display\_name] isn't - related to the search query. + Output only. Activity name snippet shows how the [display_name + ][google.cloud.talent.v4beta1.Activity.display_name] is + related to a search query. It’s empty if the [display_name][go + ogle.cloud.talent.v4beta1.Activity.display_name] isn’t related + to the search query. activity_description_snippet: Output only. Activity description snippet shows how the [descr iption][google.cloud.talent.v4beta1.Activity.description] is - related to a search query. It's empty if the [description][goo - gle.cloud.talent.v4beta1.Activity.description] isn't related + related to a search query. It’s empty if the [description][goo + gle.cloud.talent.v4beta1.Activity.description] isn’t related to the search query. skills_used_snippet: Output only. Skill used snippet shows how the corresponding [s - kills\_used][google.cloud.talent.v4beta1.Activity.skills\_used - ] are related to a search query. It's empty if the - corresponding [skills\_used][google.cloud.talent.v4beta1.Activ - ity.skills\_used] are not related to the search query. + kills_used][google.cloud.talent.v4beta1.Activity.skills_used] + are related to a search query. It’s empty if the corresponding + [skills_used][google.cloud.talent.v4beta1.Activity.skills_used + ] are not related to the search query. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Activity) - ), + }, ) _sym_db.RegisterMessage(Activity) Publication = _reflection.GeneratedProtocolMessageType( "Publication", (_message.Message,), - dict( - DESCRIPTOR=_PUBLICATION, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents a publication resource of a candidate. + { + "DESCRIPTOR": _PUBLICATION, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents a publication resource of a candidate. + Attributes: authors: A list of author names. Number of characters allowed is 100. @@ -3489,22 +3681,23 @@ class assignment, and so on. ISBN number. Number of characters allowed is 100. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Publication) - ), + }, ) _sym_db.RegisterMessage(Publication) Patent = _reflection.GeneratedProtocolMessageType( "Patent", (_message.Message,), - dict( - DESCRIPTOR=_PATENT, - __module__="google.cloud.talent_v4beta1.proto.profile_pb2", - __doc__="""Resource that represents the patent acquired by a candidate. + { + "DESCRIPTOR": _PATENT, + "__module__": "google.cloud.talent_v4beta1.proto.profile_pb2", + "__doc__": """Resource that represents the patent acquired by a candidate. + Attributes: display_name: Name of the patent. Number of characters allowed is 100. inventors: - A list of inventors' names. Number of characters allowed for + A list of inventors’ names. Number of characters allowed for each is 100. patent_status: The status of the patent. Number of characters allowed is @@ -3526,7 +3719,7 @@ class assignment, and so on. The skills used in this patent. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Patent) - ), + }, ) _sym_db.RegisterMessage(Patent) diff --git a/google/cloud/talent_v4beta1/proto/profile_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/profile_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/talent_v4beta1/proto/profile_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/profile_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/google/cloud/talent_v4beta1/proto/profile_service_pb2.py b/google/cloud/talent_v4beta1/proto/profile_service_pb2.py index 6e75800f..5bad5a26 100644 --- a/google/cloud/talent_v4beta1/proto/profile_service_pb2.py +++ b/google/cloud/talent_v4beta1/proto/profile_service_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/profile_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 @@ -44,12 +41,9 @@ name="google/cloud/talent_v4beta1/proto/profile_service.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\023ProfileServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n7google/cloud/talent_v4beta1/proto/profile_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a/google/cloud/talent_v4beta1/proto/filters.proto\x1a\x31google/cloud/talent_v4beta1/proto/histogram.proto\x1a/google/cloud/talent_v4beta1/proto/profile.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto"\xb0\x01\n\x13ListProfilesRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Profile\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12-\n\tread_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"g\n\x14ListProfilesResponse\x12\x36\n\x08profiles\x18\x01 \x03(\x0b\x32$.google.cloud.talent.v4beta1.Profile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x86\x01\n\x14\x43reateProfileRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant\x12:\n\x07profile\x18\x02 \x01(\x0b\x32$.google.cloud.talent.v4beta1.ProfileB\x03\xe0\x41\x02"F\n\x11GetProfileRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Profile"\x83\x01\n\x14UpdateProfileRequest\x12:\n\x07profile\x18\x01 \x01(\x0b\x32$.google.cloud.talent.v4beta1.ProfileB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"I\n\x14\x44\x65leteProfileRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Profile"\xdc\x03\n\x15SearchProfilesRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant\x12K\n\x10request_metadata\x18\x02 \x01(\x0b\x32,.google.cloud.talent.v4beta1.RequestMetadataB\x03\xe0\x41\x02\x12@\n\rprofile_query\x18\x03 \x01(\x0b\x32).google.cloud.talent.v4beta1.ProfileQuery\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\x12\x0e\n\x06offset\x18\x06 \x01(\x05\x12\x1b\n\x13\x64isable_spell_check\x18\x07 \x01(\x08\x12\x10\n\x08order_by\x18\x08 \x01(\t\x12\x1b\n\x13\x63\x61se_sensitive_sort\x18\t \x01(\x08\x12\x46\n\x11histogram_queries\x18\n \x03(\x0b\x32+.google.cloud.talent.v4beta1.HistogramQuery\x12\x15\n\rresult_set_id\x18\x0c \x01(\t\x12\x1e\n\x16strict_keywords_search\x18\r \x01(\x08"\x93\x03\n\x16SearchProfilesResponse\x12\x1c\n\x14\x65stimated_total_size\x18\x01 \x01(\x03\x12I\n\x10spell_correction\x18\x02 \x01(\x0b\x32/.google.cloud.talent.v4beta1.SpellingCorrection\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\t\x12R\n\x17histogram_query_results\x18\x05 \x03(\x0b\x32\x31.google.cloud.talent.v4beta1.HistogramQueryResult\x12K\n\x13summarized_profiles\x18\x06 \x03(\x0b\x32..google.cloud.talent.v4beta1.SummarizedProfile\x12\x15\n\rresult_set_id\x18\x07 \x01(\t"\x82\x01\n\x11SummarizedProfile\x12\x36\n\x08profiles\x18\x01 \x03(\x0b\x32$.google.cloud.talent.v4beta1.Profile\x12\x35\n\x07summary\x18\x02 \x01(\x0b\x32$.google.cloud.talent.v4beta1.Profile2\x9f\t\n\x0eProfileService\x12\xb5\x01\n\x0cListProfiles\x12\x30.google.cloud.talent.v4beta1.ListProfilesRequest\x1a\x31.google.cloud.talent.v4beta1.ListProfilesResponse"@\x82\xd3\xe4\x93\x02\x31\x12//v4beta1/{parent=projects/*/tenants/*}/profiles\xda\x41\x06parent\x12\xb5\x01\n\rCreateProfile\x12\x31.google.cloud.talent.v4beta1.CreateProfileRequest\x1a$.google.cloud.talent.v4beta1.Profile"K\x82\xd3\xe4\x93\x02\x34"//v4beta1/{parent=projects/*/tenants/*}/profiles:\x01*\xda\x41\x0eparent,profile\x12\xa2\x01\n\nGetProfile\x12..google.cloud.talent.v4beta1.GetProfileRequest\x1a$.google.cloud.talent.v4beta1.Profile">\x82\xd3\xe4\x93\x02\x31\x12//v4beta1/{name=projects/*/tenants/*/profiles/*}\xda\x41\x04name\x12\xb6\x01\n\rUpdateProfile\x12\x31.google.cloud.talent.v4beta1.UpdateProfileRequest\x1a$.google.cloud.talent.v4beta1.Profile"L\x82\xd3\xe4\x93\x02<27/v4beta1/{profile.name=projects/*/tenants/*/profiles/*}:\x01*\xda\x41\x07profile\x12\x9a\x01\n\rDeleteProfile\x12\x31.google.cloud.talent.v4beta1.DeleteProfileRequest\x1a\x16.google.protobuf.Empty">\x82\xd3\xe4\x93\x02\x31*//v4beta1/{name=projects/*/tenants/*/profiles/*}\xda\x41\x04name\x12\xb3\x01\n\x0eSearchProfiles\x12\x32.google.cloud.talent.v4beta1.SearchProfilesRequest\x1a\x33.google.cloud.talent.v4beta1.SearchProfilesResponse"8\x82\xd3\xe4\x93\x02\x32"-/v4beta1/{parent=projects/*/tenants/*}:search:\x01*\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB\x81\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x13ProfileServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\023ProfileServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n7google/cloud/talent_v4beta1/proto/profile_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a/google/cloud/talent_v4beta1/proto/filters.proto\x1a\x31google/cloud/talent_v4beta1/proto/histogram.proto\x1a/google/cloud/talent_v4beta1/proto/profile.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto"\xb0\x01\n\x13ListProfilesRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bjobs.googleapis.com/Profile\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12-\n\tread_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"g\n\x14ListProfilesResponse\x12\x36\n\x08profiles\x18\x01 \x03(\x0b\x32$.google.cloud.talent.v4beta1.Profile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x86\x01\n\x14\x43reateProfileRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant\x12:\n\x07profile\x18\x02 \x01(\x0b\x32$.google.cloud.talent.v4beta1.ProfileB\x03\xe0\x41\x02"F\n\x11GetProfileRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Profile"\x83\x01\n\x14UpdateProfileRequest\x12:\n\x07profile\x18\x01 \x01(\x0b\x32$.google.cloud.talent.v4beta1.ProfileB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"I\n\x14\x44\x65leteProfileRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bjobs.googleapis.com/Profile"\xdc\x03\n\x15SearchProfilesRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant\x12K\n\x10request_metadata\x18\x02 \x01(\x0b\x32,.google.cloud.talent.v4beta1.RequestMetadataB\x03\xe0\x41\x02\x12@\n\rprofile_query\x18\x03 \x01(\x0b\x32).google.cloud.talent.v4beta1.ProfileQuery\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\x12\x0e\n\x06offset\x18\x06 \x01(\x05\x12\x1b\n\x13\x64isable_spell_check\x18\x07 \x01(\x08\x12\x10\n\x08order_by\x18\x08 \x01(\t\x12\x1b\n\x13\x63\x61se_sensitive_sort\x18\t \x01(\x08\x12\x46\n\x11histogram_queries\x18\n \x03(\x0b\x32+.google.cloud.talent.v4beta1.HistogramQuery\x12\x15\n\rresult_set_id\x18\x0c \x01(\t\x12\x1e\n\x16strict_keywords_search\x18\r \x01(\x08"\x93\x03\n\x16SearchProfilesResponse\x12\x1c\n\x14\x65stimated_total_size\x18\x01 \x01(\x03\x12I\n\x10spell_correction\x18\x02 \x01(\x0b\x32/.google.cloud.talent.v4beta1.SpellingCorrection\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\t\x12R\n\x17histogram_query_results\x18\x05 \x03(\x0b\x32\x31.google.cloud.talent.v4beta1.HistogramQueryResult\x12K\n\x13summarized_profiles\x18\x06 \x03(\x0b\x32..google.cloud.talent.v4beta1.SummarizedProfile\x12\x15\n\rresult_set_id\x18\x07 \x01(\t"\x82\x01\n\x11SummarizedProfile\x12\x36\n\x08profiles\x18\x01 \x03(\x0b\x32$.google.cloud.talent.v4beta1.Profile\x12\x35\n\x07summary\x18\x02 \x01(\x0b\x32$.google.cloud.talent.v4beta1.Profile2\x9f\t\n\x0eProfileService\x12\xb5\x01\n\x0cListProfiles\x12\x30.google.cloud.talent.v4beta1.ListProfilesRequest\x1a\x31.google.cloud.talent.v4beta1.ListProfilesResponse"@\x82\xd3\xe4\x93\x02\x31\x12//v4beta1/{parent=projects/*/tenants/*}/profiles\xda\x41\x06parent\x12\xb5\x01\n\rCreateProfile\x12\x31.google.cloud.talent.v4beta1.CreateProfileRequest\x1a$.google.cloud.talent.v4beta1.Profile"K\x82\xd3\xe4\x93\x02\x34"//v4beta1/{parent=projects/*/tenants/*}/profiles:\x01*\xda\x41\x0eparent,profile\x12\xa2\x01\n\nGetProfile\x12..google.cloud.talent.v4beta1.GetProfileRequest\x1a$.google.cloud.talent.v4beta1.Profile">\x82\xd3\xe4\x93\x02\x31\x12//v4beta1/{name=projects/*/tenants/*/profiles/*}\xda\x41\x04name\x12\xb6\x01\n\rUpdateProfile\x12\x31.google.cloud.talent.v4beta1.UpdateProfileRequest\x1a$.google.cloud.talent.v4beta1.Profile"L\x82\xd3\xe4\x93\x02<27/v4beta1/{profile.name=projects/*/tenants/*/profiles/*}:\x01*\xda\x41\x07profile\x12\x9a\x01\n\rDeleteProfile\x12\x31.google.cloud.talent.v4beta1.DeleteProfileRequest\x1a\x16.google.protobuf.Empty">\x82\xd3\xe4\x93\x02\x31*//v4beta1/{name=projects/*/tenants/*/profiles/*}\xda\x41\x04name\x12\xb3\x01\n\x0eSearchProfiles\x12\x32.google.cloud.talent.v4beta1.SearchProfilesRequest\x1a\x33.google.cloud.talent.v4beta1.SearchProfilesResponse"8\x82\xd3\xe4\x93\x02\x32"-/v4beta1/{parent=projects/*/tenants/*}:search:\x01*\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB\x81\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x13ProfileServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -74,6 +68,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -84,16 +79,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\035\022\033jobs.googleapis.com/Profile" - ), + serialized_options=b"\340A\002\372A\035\022\033jobs.googleapis.com/Profile", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -104,7 +98,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, @@ -112,6 +106,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -122,7 +117,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, @@ -130,6 +125,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -148,6 +144,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="read_mask", @@ -166,6 +163,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -187,6 +185,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="profiles", @@ -205,6 +204,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -215,7 +215,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, @@ -223,6 +223,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -244,6 +245,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -254,14 +256,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\034\n\032jobs.googleapis.com/Tenant"), + serialized_options=b"\340A\002\372A\034\n\032jobs.googleapis.com/Tenant", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="profile", @@ -278,8 +281,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=[], @@ -301,6 +305,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -311,17 +316,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\035\n\033jobs.googleapis.com/Profile" - ), + serialized_options=b"\340A\002\372A\035\n\033jobs.googleapis.com/Profile", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -342,6 +346,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="profile", @@ -358,8 +363,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", @@ -378,6 +384,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -399,6 +406,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -409,17 +417,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\035\n\033jobs.googleapis.com/Profile" - ), + serialized_options=b"\340A\002\372A\035\n\033jobs.googleapis.com/Profile", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -440,6 +447,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -450,14 +458,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\034\n\032jobs.googleapis.com/Tenant"), + serialized_options=b"\340A\002\372A\034\n\032jobs.googleapis.com/Tenant", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="request_metadata", @@ -474,8 +483,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="profile_query", @@ -494,6 +504,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -512,6 +523,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -522,7 +534,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, @@ -530,6 +542,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="offset", @@ -548,6 +561,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="disable_spell_check", @@ -566,6 +580,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="order_by", @@ -576,7 +591,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, @@ -584,6 +599,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="case_sensitive_sort", @@ -602,6 +618,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="histogram_queries", @@ -620,6 +637,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="result_set_id", @@ -630,7 +648,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, @@ -638,6 +656,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="strict_keywords_search", @@ -656,6 +675,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -677,6 +697,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="estimated_total_size", @@ -695,6 +716,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="spell_correction", @@ -713,6 +735,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="metadata", @@ -731,6 +754,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -741,7 +765,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, @@ -749,6 +773,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="histogram_query_results", @@ -767,6 +792,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="summarized_profiles", @@ -785,6 +811,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="result_set_id", @@ -795,7 +822,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, @@ -803,6 +830,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -824,6 +852,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="profiles", @@ -842,6 +871,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="summary", @@ -860,6 +890,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -952,29 +983,30 @@ ListProfilesRequest = _reflection.GeneratedProtocolMessageType( "ListProfilesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTPROFILESREQUEST, - __module__="google.cloud.talent_v4beta1.proto.profile_service_pb2", - __doc__="""List profiles request. + { + "DESCRIPTOR": _LISTPROFILESREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.profile_service_pb2", + "__doc__": """List profiles request. + Attributes: parent: Required. The resource name of the tenant under which the profile is created. The format is - "projects/{project\_id}/tenants/{tenant\_id}". For example, - "projects/foo/tenants/bar". + “projects/{project_id}/tenants/{tenant_id}”. For example, + “projects/foo/tenants/bar”. filter: The filter string specifies the profiles to be enumerated. Supported operator: =, AND The field(s) eligible for filtering are: - ``externalId`` - ``groupId`` externalId and groupId cannot be specified at the same time. If both externalId and groupId are provided, the API will return a bad - request error. Sample Query: - externalId = "externalId-1" - - groupId = "groupId-1" + request error. Sample Query: - externalId = “externalId-1” + - groupId = “groupId-1” page_token: The token that specifies the current offset (that is, starting - result). Please set the value to [ListProfilesResponse.next\_ - page\_token][google.cloud.talent.v4beta1.ListProfilesResponse. - next\_page\_token] to continue the list. + result). Please set the value to [ListProfilesResponse.next_p + age_token][google.cloud.talent.v4beta1.ListProfilesResponse.ne + xt_page_token] to continue the list. page_size: The maximum number of profiles to be returned, at most 100. Default is 100 unless a positive number smaller than 100 is @@ -985,17 +1017,18 @@ are: - name """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListProfilesRequest) - ), + }, ) _sym_db.RegisterMessage(ListProfilesRequest) ListProfilesResponse = _reflection.GeneratedProtocolMessageType( "ListProfilesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTPROFILESRESPONSE, - __module__="google.cloud.talent_v4beta1.proto.profile_service_pb2", - __doc__="""The List profiles response object. + { + "DESCRIPTOR": _LISTPROFILESRESPONSE, + "__module__": "google.cloud.talent_v4beta1.proto.profile_service_pb2", + "__doc__": """The List profiles response object. + Attributes: profiles: Profiles for the specific tenant. @@ -1004,55 +1037,58 @@ there are no more results. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListProfilesResponse) - ), + }, ) _sym_db.RegisterMessage(ListProfilesResponse) CreateProfileRequest = _reflection.GeneratedProtocolMessageType( "CreateProfileRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEPROFILEREQUEST, - __module__="google.cloud.talent_v4beta1.proto.profile_service_pb2", - __doc__="""Create profile request. + { + "DESCRIPTOR": _CREATEPROFILEREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.profile_service_pb2", + "__doc__": """Create profile request. + Attributes: parent: Required. The name of the tenant this profile belongs to. The - format is "projects/{project\_id}/tenants/{tenant\_id}". For - example, "projects/foo/tenants/bar". + format is “projects/{project_id}/tenants/{tenant_id}”. For + example, “projects/foo/tenants/bar”. profile: Required. The profile to be created. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateProfileRequest) - ), + }, ) _sym_db.RegisterMessage(CreateProfileRequest) GetProfileRequest = _reflection.GeneratedProtocolMessageType( "GetProfileRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETPROFILEREQUEST, - __module__="google.cloud.talent_v4beta1.proto.profile_service_pb2", - __doc__="""Get profile request. + { + "DESCRIPTOR": _GETPROFILEREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.profile_service_pb2", + "__doc__": """Get profile request. + Attributes: name: Required. Resource name of the profile to get. The format is - "projects/{project\_id}/tenants/{tenant\_id}/profiles/{profile - \_id}". For example, "projects/foo/tenants/bar/profiles/baz". + “projects/{project_id}/tenants/{tenant_id}/profiles/{profile_i + d}”. For example, “projects/foo/tenants/bar/profiles/baz”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetProfileRequest) - ), + }, ) _sym_db.RegisterMessage(GetProfileRequest) UpdateProfileRequest = _reflection.GeneratedProtocolMessageType( "UpdateProfileRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEPROFILEREQUEST, - __module__="google.cloud.talent_v4beta1.proto.profile_service_pb2", - __doc__="""Update profile request + { + "DESCRIPTOR": _UPDATEPROFILEREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.profile_service_pb2", + "__doc__": """Update profile request + Attributes: profile: Required. Profile to be updated. @@ -1061,41 +1097,43 @@ update is performed if it is unset. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateProfileRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateProfileRequest) DeleteProfileRequest = _reflection.GeneratedProtocolMessageType( "DeleteProfileRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEPROFILEREQUEST, - __module__="google.cloud.talent_v4beta1.proto.profile_service_pb2", - __doc__="""Delete profile request. + { + "DESCRIPTOR": _DELETEPROFILEREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.profile_service_pb2", + "__doc__": """Delete profile request. + Attributes: name: Required. Resource name of the profile to be deleted. The - format is "projects/{project\_id}/tenants/{tenant\_id}/profile - s/{profile\_id}". For example, - "projects/foo/tenants/bar/profiles/baz". + format is “projects/{project_id}/tenants/{tenant_id}/profiles/ + {profile_id}”. For example, + “projects/foo/tenants/bar/profiles/baz”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteProfileRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteProfileRequest) SearchProfilesRequest = _reflection.GeneratedProtocolMessageType( "SearchProfilesRequest", (_message.Message,), - dict( - DESCRIPTOR=_SEARCHPROFILESREQUEST, - __module__="google.cloud.talent_v4beta1.proto.profile_service_pb2", - __doc__="""The request body of the ``SearchProfiles`` call. + { + "DESCRIPTOR": _SEARCHPROFILESREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.profile_service_pb2", + "__doc__": """The request body of the ``SearchProfiles`` call. + Attributes: parent: Required. The resource name of the tenant to search within. - The format is "projects/{project\_id}/tenants/{tenant\_id}". - For example, "projects/foo/tenants/bar". + The format is “projects/{project_id}/tenants/{tenant_id}”. For + example, “projects/foo/tenants/bar”. request_metadata: Required. The meta information collected about the profile search user. This is used to improve the search quality of the @@ -1115,7 +1153,7 @@ paginate through the search results. To retrieve the first page of results, set the pageToken to empty. The search response includes a [nextPageToken][google.cloud.talent.v4beta - 1.SearchProfilesResponse.next\_page\_token] field that can be + 1.SearchProfilesResponse.next_page_token] field that can be used to populate the pageToken field for the next page of results. Using pageToken instead of offset increases the performance of the API, especially compared to larger offset @@ -1123,8 +1161,8 @@ offset: An integer that specifies the current offset (that is, starting result) in search results. This field is only - considered if [page\_token][google.cloud.talent.v4beta1.Search - ProfilesRequest.page\_token] is unset. The maximum allowed + considered if [page_token][google.cloud.talent.v4beta1.SearchP + rofilesRequest.page_token] is unset. The maximum allowed value is 5000. Otherwise an error is thrown. For example, 0 means to search from the first profile, and 10 means to search from the 11th profile. This can be used for pagination, for @@ -1133,29 +1171,29 @@ disable_spell_check: This flag controls the spell-check feature. If ``false``, the service attempts to correct a misspelled query. For example, - "enginee" is corrected to "engineer". + “enginee” is corrected to “engineer”. order_by: The criteria that determines how search results are sorted. - Defaults is "relevance desc" if no value is specified. - Supported options are: - "relevance desc": By descending + Defaults is “relevance desc” if no value is specified. + Supported options are: - “relevance desc”: By descending relevance, as determined by the API algorithms. - - "update\_date desc": Sort by [Profile.update\_time][google. - cloud.talent.v4beta1.Profile.update\_time] in descending - order (recently updated profiles first). - "create\_date - desc": Sort by [Profile.create\_time][google.cloud.talent.v - 4beta1.Profile.create\_time] in descending order (recently - created profiles first). - "first\_name": Sort by [PersonN - ame.PersonStructuredName.given\_name][google.cloud.talent.v4be - ta1.PersonName.PersonStructuredName.given\_name] in - ascending order. - "first\_name desc": Sort by [PersonName - .PersonStructuredName.given\_name][google.cloud.talent.v4beta1 - .PersonName.PersonStructuredName.given\_name] in descending - order. - "last\_name": Sort by [PersonName.PersonStructure - dName.family\_name][google.cloud.talent.v4beta1.PersonName.Per - sonStructuredName.family\_name] in ascending order. - - "last\_name desc": Sort by [PersonName.PersonStructuredName - .family\_name][google.cloud.talent.v4beta1.PersonName.PersonSt - ructuredName.family\_name] in ascending order. + “update_date desc”: Sort by [Profile.update_time][google.cl + oud.talent.v4beta1.Profile.update_time] in descending order + (recently updated profiles first). - “create_date desc”: Sort + by [Profile.create_time][google.cloud.talent.v4beta1.Profil + e.create_time] in descending order (recently created + profiles first). - “first_name”: Sort by [PersonName.Perso + nStructuredName.given_name][google.cloud.talent.v4beta1.Person + Name.PersonStructuredName.given_name] in ascending order. - + “first_name desc”: Sort by [PersonName.PersonStructuredName + .given_name][google.cloud.talent.v4beta1.PersonName.PersonStru + cturedName.given_name] in descending order. - “last_name”: + Sort by [PersonName.PersonStructuredName.family_name][googl + e.cloud.talent.v4beta1.PersonName.PersonStructuredName.family\_ + name] in ascending order. - “last_name desc”: Sort by [ + PersonName.PersonStructuredName.family_name][google.cloud.tale + nt.v4beta1.PersonName.PersonStructuredName.family_name] in + ascending order. case_sensitive_sort: When sort by field is based on alphabetical order, sort values case sensitively (based on ASCII) when the value is set to @@ -1165,68 +1203,66 @@ matching profiles for [SearchProfilesRequest][google.cloud.tal ent.v4beta1.SearchProfilesRequest]. The expression syntax looks like a function definition with parameters. Function - syntax: function\_name(histogram\_facet[, list of buckets]) + syntax: function_name(histogram_facet[, list of buckets]) Data types: - Histogram facet: facet names with format - [a-zA-Z][a-zA-Z0-9\_]+. - String: string like "any string - with backslash escape for quote(")." - Number: whole number - and floating point number like 10, -1 and -0.01. - List: list - of elements with comma(,) separator surrounded by square - brackets. For example, [1, 2, 3] and ["one", "two", "three"]. + [a-zA-Z][a-zA-Z0-9\_]+. - String: string like “any string with + backslash escape for quote(").” - Number: whole number and + floating point number like 10, -1 and -0.01. - List: list of + elements with comma(,) separator surrounded by square + brackets. For example, [1, 2, 3] and [“one”, “two”, “three”]. Built-in constants: - MIN (minimum number similar to java - Double.MIN\_VALUE) - MAX (maximum number similar to java - Double.MAX\_VALUE) Built-in functions: - bucket(start, - end[, label]) Bucket build-in function creates a bucket - with range of [start, end). Note that the end is exclusive. - For example, bucket(1, MAX, "positive number") or bucket(1, - 10). Histogram Facets: - admin1: Admin1 is a global - placeholder for referring to state, province, or the - particular term a country uses to define the geographic - structure below the country level. Examples include states - codes such as "CA", "IL", "NY", and provinces, such as "BC". - - locality: Locality is a global placeholder for referring to - city, town, or the particular term a country uses to define - the geographic structure below the admin1 level. Examples - include city names such as "Mountain View" and "New York". - - extended\_locality: Extended locality is concatenated - version of admin1 and locality with comma separator. For - example, "Mountain View, CA" and "New York, NY". - - postal\_code: Postal code of profile which follows locale - code. - country: Country code (ISO-3166-1 alpha-2 code) of - profile, such as US, JP, GB. - job\_title: Normalized job - titles specified in EmploymentHistory. - company\_name: - Normalized company name of profiles to match on. - - institution: The school name. For example, "MIT", "University - of California, Berkeley" - degree: Highest education - degree in ISCED code. Each value in degree covers a - specific level of education, without any expansion to upper - nor lower levels of education degree. - - experience\_in\_months: experience in months. 0 means 0 month - to 1 month (exclusive). - application\_date: The - application date specifies application start dates. See - [ApplicationDateFilter][google.cloud.talent.v4beta1.Applicatio - nDateFilter] for more details. - - application\_outcome\_notes: The application outcome reason - specifies the reasons behind the outcome of the job - application. See [ApplicationOutcomeNotesFilter][google.clo - ud.talent.v4beta1.ApplicationOutcomeNotesFilter] for more - details. - application\_job\_title: The application job title - specifies the job applied for in the application. See [A - pplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJo - bFilter] for more details. - hirable\_status: Hirable - status specifies the profile's hirable status. - - string\_custom\_attribute: String custom attributes. Values - can be accessed via square bracket notation like - string\_custom\_attribute["key1"]. - - numeric\_custom\_attribute: Numeric custom attributes. Values - can be accessed via square bracket notation like - numeric\_custom\_attribute["key1"]. Example expressions: - - count(admin1) - count(experience\_in\_months, [bucket(0, 12, - "1 year"), bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ - years")]) - - count(string\_custom\_attribute["assigned\_recruiter"]) - - count(numeric\_custom\_attribute["favorite\_number"], - [bucket(MIN, 0, "negative"), bucket(0, MAX, "non- - negative")]) + Double.MIN_VALUE) - MAX (maximum number similar to java + Double.MAX_VALUE) Built-in functions: - bucket(start, end[, + label]) Bucket build-in function creates a bucket with + range of [start, end). Note that the end is exclusive. For + example, bucket(1, MAX, “positive number”) or bucket(1, 10). + Histogram Facets: - admin1: Admin1 is a global placeholder + for referring to state, province, or the particular term a + country uses to define the geographic structure below the + country level. Examples include states codes such as “CA”, + “IL”, “NY”, and provinces, such as “BC”. - locality: Locality + is a global placeholder for referring to city, town, or the + particular term a country uses to define the geographic + structure below the admin1 level. Examples include city names + such as “Mountain View” and “New York”. - + extended_locality: Extended locality is concatenated version + of admin1 and locality with comma separator. For example, + “Mountain View, CA” and “New York, NY”. - postal_code: + Postal code of profile which follows locale code. - country: + Country code (ISO-3166-1 alpha-2 code) of profile, such as + US, JP, GB. - job_title: Normalized job titles specified in + EmploymentHistory. - company_name: Normalized company name of + profiles to match on. - institution: The school name. For + example, “MIT”, “University of California, Berkeley” - + degree: Highest education degree in ISCED code. Each value in + degree covers a specific level of education, without any + expansion to upper nor lower levels of education degree. - + experience_in_months: experience in months. 0 means 0 month to + 1 month (exclusive). - application_date: The application + date specifies application start dates. See [Application + DateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] + for more details. - application_outcome_notes: The + application outcome reason specifies the reasons behind the + outcome of the job application. See [ApplicationOutcomeNote + sFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFi + lter] for more details. - application_job_title: The + application job title specifies the job applied for in the + application. See [ApplicationJobFilter][google.cloud.talent + .v4beta1.ApplicationJobFilter] for more details. - + hirable_status: Hirable status specifies the profile’s hirable + status. - string_custom_attribute: String custom attributes. + Values can be accessed via square bracket notation like + string_custom_attribute[“key1”]. - numeric_custom_attribute: + Numeric custom attributes. Values can be accessed via + square bracket notation like + numeric_custom_attribute[“key1”]. Example expressions: - + count(admin1) - count(experience_in_months, [bucket(0, 12, “1 + year”), bucket(12, 36, “1-3 years”), bucket(36, MAX, “3+ + years”)]) - + count(string_custom_attribute[“assigned_recruiter”]) - + count(numeric_custom_attribute[“favorite_number”], + [bucket(MIN, 0, “negative”), bucket(0, MAX, “non- + negative”)]) result_set_id: An id that uniquely identifies the result set of a [SearchProf iles][google.cloud.talent.v4beta1.ProfileService.SearchProfile @@ -1236,54 +1272,55 @@ ][google.cloud.talent.v4beta1.ProfileService.SearchProfiles]. A result set is an ordered list of search results. If this field is not set, a new result set is computed based on the [p - rofile\_query][google.cloud.talent.v4beta1.SearchProfilesReque - st.profile\_query]. A new [result\_set\_id][google.cloud.talen - t.v4beta1.SearchProfilesRequest.result\_set\_id] is returned - as a handle to access this result set. If this field is set, - the service will ignore the resource and [profile\_query][goog - le.cloud.talent.v4beta1.SearchProfilesRequest.profile\_query] + rofile_query][google.cloud.talent.v4beta1.SearchProfilesReques + t.profile_query]. A new [result_set_id][google.cloud.talent.v4 + beta1.SearchProfilesRequest.result_set_id] is returned as a + handle to access this result set. If this field is set, the + service will ignore the resource and [profile_query][google.cl + oud.talent.v4beta1.SearchProfilesRequest.profile_query] values, and simply retrieve a page of results from the corresponding result set. In this case, one and only one of [p - age\_token][google.cloud.talent.v4beta1.SearchProfilesRequest. - page\_token] or [offset][google.cloud.talent.v4beta1.SearchPro - filesRequest.offset] must be set. A typical use case is to + age_token][google.cloud.talent.v4beta1.SearchProfilesRequest.p + age_token] or [offset][google.cloud.talent.v4beta1.SearchProfi + lesRequest.offset] must be set. A typical use case is to invoke [SearchProfilesRequest][google.cloud.talent.v4beta1.Sea rchProfilesRequest] without this field, then use the resulting - [result\_set\_id][google.cloud.talent.v4beta1.SearchProfilesRe - quest.result\_set\_id] in [SearchProfilesResponse][google.clou - d.talent.v4beta1.SearchProfilesResponse] to page through the + [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequ + est.result_set_id] in [SearchProfilesResponse][google.cloud.ta + lent.v4beta1.SearchProfilesResponse] to page through the results. strict_keywords_search: This flag is used to indicate whether the service will attempt to understand synonyms and terms related to the search query - or treat the query "as is" when it generates a set of results. + or treat the query “as is” when it generates a set of results. By default this flag is set to false, thus allowing expanded results to also be returned. For example a search for - "software engineer" might also return candidates who have + “software engineer” might also return candidates who have experience in jobs similar to software engineer positions. By setting this flag to true, the service will only attempt to deliver candidates has software engineer in his/her global - fields by treating "software engineer" as a keyword. It is + fields by treating “software engineer” as a keyword. It is recommended to provide a feature in the UI (such as a checkbox) to allow recruiters to set this flag to true if they intend to search for longer boolean strings. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchProfilesRequest) - ), + }, ) _sym_db.RegisterMessage(SearchProfilesRequest) SearchProfilesResponse = _reflection.GeneratedProtocolMessageType( "SearchProfilesResponse", (_message.Message,), - dict( - DESCRIPTOR=_SEARCHPROFILESRESPONSE, - __module__="google.cloud.talent_v4beta1.proto.profile_service_pb2", - __doc__="""Response of SearchProfiles method. + { + "DESCRIPTOR": _SEARCHPROFILESRESPONSE, + "__module__": "google.cloud.talent_v4beta1.proto.profile_service_pb2", + "__doc__": """Response of SearchProfiles method. + Attributes: estimated_total_size: An estimation of the number of profiles that match the - specified query. This number isn't guaranteed to be accurate. + specified query. This number isn’t guaranteed to be accurate. spell_correction: The spell checking result, and correction. metadata: @@ -1294,8 +1331,8 @@ there are no more results. histogram_query_results: The histogram results that match with specified [SearchProfile - sRequest.histogram\_queries][google.cloud.talent.v4beta1.Searc - hProfilesRequest.histogram\_queries]. + sRequest.histogram_queries][google.cloud.talent.v4beta1.Search + ProfilesRequest.histogram_queries]. summarized_profiles: The profile entities that match the specified [SearchProfilesR equest][google.cloud.talent.v4beta1.SearchProfilesRequest]. @@ -1305,39 +1342,40 @@ s] call for consistent results. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchProfilesResponse) - ), + }, ) _sym_db.RegisterMessage(SearchProfilesResponse) SummarizedProfile = _reflection.GeneratedProtocolMessageType( "SummarizedProfile", (_message.Message,), - dict( - DESCRIPTOR=_SUMMARIZEDPROFILE, - __module__="google.cloud.talent_v4beta1.proto.profile_service_pb2", - __doc__="""Profile entry with metadata inside [SearchProfilesResponse][google.clo + { + "DESCRIPTOR": _SUMMARIZEDPROFILE, + "__module__": "google.cloud.talent_v4beta1.proto.profile_service_pb2", + "__doc__": """Profile entry with metadata inside [SearchProfilesResponse][google.clo ud.talent.v4beta1.SearchProfilesResponse]. + Attributes: profiles: - A list of profiles that are linked by [Profile.group\_id][goog - le.cloud.talent.v4beta1.Profile.group\_id]. + A list of profiles that are linked by [Profile.group_id][googl + e.cloud.talent.v4beta1.Profile.group_id]. summary: A profile summary shows the profile summary and how the profile matches the search query. In profile summary, the - profiles with the same [Profile.group\_id][google.cloud.talent - .v4beta1.Profile.group\_id] are merged together. Among - profiles, same education/employment records may be slightly - different but they are merged into one with best efforts. For - example, in one profile the school name is "UC Berkeley" and - the field study is "Computer Science" and in another one the - school name is "University of California at Berkeley" and the - field study is "CS". The API merges these two inputs into one - and selects one value for each field. For example, the school - name in summary is set to "University of California at - Berkeley" and the field of study is set to "Computer Science". + profiles with the same [Profile.group_id][google.cloud.talent. + v4beta1.Profile.group_id] are merged together. Among profiles, + same education/employment records may be slightly different + but they are merged into one with best efforts. For example, + in one profile the school name is “UC Berkeley” and the field + study is “Computer Science” and in another one the school name + is “University of California at Berkeley” and the field study + is “CS”. The API merges these two inputs into one and selects + one value for each field. For example, the school name in + summary is set to “University of California at Berkeley” and + the field of study is set to “Computer Science”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SummarizedProfile) - ), + }, ) _sym_db.RegisterMessage(SummarizedProfile) @@ -1357,9 +1395,8 @@ full_name="google.cloud.talent.v4beta1.ProfileService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs" - ), + serialized_options=b"\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs", + create_key=_descriptor._internal_create_key, serialized_start=2273, serialized_end=3456, methods=[ @@ -1370,9 +1407,8 @@ containing_service=None, input_type=_LISTPROFILESREQUEST, output_type=_LISTPROFILESRESPONSE, - serialized_options=_b( - "\202\323\344\223\0021\022//v4beta1/{parent=projects/*/tenants/*}/profiles\332A\006parent" - ), + serialized_options=b"\202\323\344\223\0021\022//v4beta1/{parent=projects/*/tenants/*}/profiles\332A\006parent", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateProfile", @@ -1381,9 +1417,8 @@ containing_service=None, input_type=_CREATEPROFILEREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__pb2._PROFILE, - serialized_options=_b( - '\202\323\344\223\0024"//v4beta1/{parent=projects/*/tenants/*}/profiles:\001*\332A\016parent,profile' - ), + serialized_options=b'\202\323\344\223\0024"//v4beta1/{parent=projects/*/tenants/*}/profiles:\001*\332A\016parent,profile', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetProfile", @@ -1392,9 +1427,8 @@ containing_service=None, input_type=_GETPROFILEREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__pb2._PROFILE, - serialized_options=_b( - "\202\323\344\223\0021\022//v4beta1/{name=projects/*/tenants/*/profiles/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0021\022//v4beta1/{name=projects/*/tenants/*/profiles/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateProfile", @@ -1403,9 +1437,8 @@ containing_service=None, input_type=_UPDATEPROFILEREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__pb2._PROFILE, - serialized_options=_b( - "\202\323\344\223\002<27/v4beta1/{profile.name=projects/*/tenants/*/profiles/*}:\001*\332A\007profile" - ), + serialized_options=b"\202\323\344\223\002<27/v4beta1/{profile.name=projects/*/tenants/*/profiles/*}:\001*\332A\007profile", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteProfile", @@ -1414,9 +1447,8 @@ containing_service=None, input_type=_DELETEPROFILEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\0021*//v4beta1/{name=projects/*/tenants/*/profiles/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\0021*//v4beta1/{name=projects/*/tenants/*/profiles/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="SearchProfiles", @@ -1425,9 +1457,8 @@ containing_service=None, input_type=_SEARCHPROFILESREQUEST, output_type=_SEARCHPROFILESRESPONSE, - serialized_options=_b( - '\202\323\344\223\0022"-/v4beta1/{parent=projects/*/tenants/*}:search:\001*' - ), + serialized_options=b'\202\323\344\223\0022"-/v4beta1/{parent=projects/*/tenants/*}:search:\001*', + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/talent_v4beta1/proto/profile_service_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/profile_service_pb2_grpc.py index cf251d0f..cdf0919d 100644 --- a/google/cloud/talent_v4beta1/proto/profile_service_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/profile_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.talent_v4beta1.proto import ( @@ -12,15 +13,15 @@ class ProfileServiceStub(object): """A service that handles profile management, including profile CRUD, - enumeration and search. - """ + enumeration and search. + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.ListProfiles = channel.unary_unary( "/google.cloud.talent.v4beta1.ProfileService/ListProfiles", request_serializer=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__service__pb2.ListProfilesRequest.SerializeToString, @@ -55,42 +56,42 @@ def __init__(self, channel): class ProfileServiceServicer(object): """A service that handles profile management, including profile CRUD, - enumeration and search. - """ + enumeration and search. + """ def ListProfiles(self, request, context): """Lists profiles by filter. The order is unspecified. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def CreateProfile(self, request, context): """Creates and returns a new profile. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetProfile(self, request, context): """Gets the specified profile. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def UpdateProfile(self, request, context): """Updates the specified profile and returns the updated result. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def DeleteProfile(self, request, context): """Deletes the specified profile. - Prerequisite: The profile has no associated applications or assignments - associated. - """ + Prerequisite: The profile has no associated applications or assignments + associated. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -98,11 +99,11 @@ def DeleteProfile(self, request, context): def SearchProfiles(self, request, context): """Searches for profiles within a tenant. - For example, search by raw queries "software engineer in Mountain View" or - search by structured filters (location filter, education filter, etc.). + For example, search by raw queries "software engineer in Mountain View" or + search by structured filters (location filter, education filter, etc.). - See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more information. - """ + See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more information. + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -145,3 +146,172 @@ def add_ProfileServiceServicer_to_server(servicer, server): "google.cloud.talent.v4beta1.ProfileService", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class ProfileService(object): + """A service that handles profile management, including profile CRUD, + enumeration and search. + """ + + @staticmethod + def ListProfiles( + 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.talent.v4beta1.ProfileService/ListProfiles", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__service__pb2.ListProfilesRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__service__pb2.ListProfilesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def CreateProfile( + 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.talent.v4beta1.ProfileService/CreateProfile", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__service__pb2.CreateProfileRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__pb2.Profile.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetProfile( + 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.talent.v4beta1.ProfileService/GetProfile", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__service__pb2.GetProfileRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__pb2.Profile.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateProfile( + 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.talent.v4beta1.ProfileService/UpdateProfile", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__service__pb2.UpdateProfileRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__pb2.Profile.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteProfile( + 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.talent.v4beta1.ProfileService/DeleteProfile", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__service__pb2.DeleteProfileRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def SearchProfiles( + 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.talent.v4beta1.ProfileService/SearchProfiles", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__service__pb2.SearchProfilesRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_profile__service__pb2.SearchProfilesResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/google/cloud/talent_v4beta1/proto/tenant_pb2.py b/google/cloud/talent_v4beta1/proto/tenant_pb2.py index 0deb09de..229e410a 100644 --- a/google/cloud/talent_v4beta1/proto/tenant_pb2.py +++ b/google/cloud/talent_v4beta1/proto/tenant_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/tenant.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 @@ -25,12 +22,9 @@ name="google/cloud/talent_v4beta1/proto/tenant.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\023TenantResourceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n.google/cloud/talent_v4beta1/proto/tenant.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/api/annotations.proto"\xc3\x02\n\x06Tenant\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x65xternal_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\nusage_type\x18\x03 \x01(\x0e\x32\x31.google.cloud.talent.v4beta1.Tenant.DataUsageType\x12\x34\n,keyword_searchable_profile_custom_attributes\x18\x04 \x03(\t"N\n\rDataUsageType\x12\x1f\n\x1b\x44\x41TA_USAGE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nAGGREGATED\x10\x01\x12\x0c\n\x08ISOLATED\x10\x02:D\xea\x41\x41\n\x1ajobs.googleapis.com/Tenant\x12#projects/{project}/tenants/{tenant}B\x81\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x13TenantResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\023TenantResourceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n.google/cloud/talent_v4beta1/proto/tenant.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/api/annotations.proto"\xc3\x02\n\x06Tenant\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x65xternal_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\nusage_type\x18\x03 \x01(\x0e\x32\x31.google.cloud.talent.v4beta1.Tenant.DataUsageType\x12\x34\n,keyword_searchable_profile_custom_attributes\x18\x04 \x03(\t"N\n\rDataUsageType\x12\x1f\n\x1b\x44\x41TA_USAGE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nAGGREGATED\x10\x01\x12\x0c\n\x08ISOLATED\x10\x02:D\xea\x41\x41\n\x1ajobs.googleapis.com/Tenant\x12#projects/{project}/tenants/{tenant}B\x81\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x13TenantResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, @@ -45,6 +39,7 @@ full_name="google.cloud.talent.v4beta1.Tenant.DataUsageType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="DATA_USAGE_TYPE_UNSPECIFIED", @@ -52,12 +47,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="AGGREGATED", index=1, number=1, serialized_options=None, type=None + name="AGGREGATED", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ISOLATED", index=2, number=2, serialized_options=None, type=None + name="ISOLATED", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, @@ -74,6 +80,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -84,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, @@ -92,6 +99,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="external_id", @@ -102,14 +110,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="usage_type", @@ -128,6 +137,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="keyword_searchable_profile_custom_attributes", @@ -146,14 +156,13 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_TENANT_DATAUSAGETYPE], - serialized_options=_b( - "\352AA\n\032jobs.googleapis.com/Tenant\022#projects/{project}/tenants/{tenant}" - ), + enum_types=[_TENANT_DATAUSAGETYPE,], + serialized_options=b"\352AA\n\032jobs.googleapis.com/Tenant\022#projects/{project}/tenants/{tenant}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -170,20 +179,21 @@ Tenant = _reflection.GeneratedProtocolMessageType( "Tenant", (_message.Message,), - dict( - DESCRIPTOR=_TENANT, - __module__="google.cloud.talent_v4beta1.proto.tenant_pb2", - __doc__="""A Tenant resource represents a tenant in the service. A tenant is a + { + "DESCRIPTOR": _TENANT, + "__module__": "google.cloud.talent_v4beta1.proto.tenant_pb2", + "__doc__": """A Tenant resource represents a tenant in the service. A tenant is a group or entity that shares common access with specific privileges for resources like profiles. Customer may create multiple tenants to provide data isolation for different groups. + Attributes: name: Required during tenant update. The resource name for a tenant. This is generated by the service when a tenant is created. The format is - "projects/{project\_id}/tenants/{tenant\_id}", for example, - "projects/foo/tenants/bar". + “projects/{project_id}/tenants/{tenant_id}”, for example, + “projects/foo/tenants/bar”. external_id: Required. Client side tenant identifier, used to uniquely identify the tenant. The maximum number of allowed characters @@ -192,10 +202,10 @@ Indicates whether data owned by this tenant may be used to provide product improvements across other tenants. Defaults behavior is [DataUsageType.ISOLATED][google.cloud.talent.v4bet - a1.Tenant.DataUsageType.ISOLATED] if it's unset. + a1.Tenant.DataUsageType.ISOLATED] if it’s unset. keyword_searchable_profile_custom_attributes: - A list of keys of filterable [Profile.custom\_attributes][goog - le.cloud.talent.v4beta1.Profile.custom\_attributes], whose + A list of keys of filterable [Profile.custom_attributes][googl + e.cloud.talent.v4beta1.Profile.custom_attributes], whose corresponding ``string_values`` are used in keyword searches. Profiles with ``string_values`` under these specified field keys are returned if any of the values match the search @@ -204,7 +214,7 @@ surrounded by quotes. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Tenant) - ), + }, ) _sym_db.RegisterMessage(Tenant) diff --git a/google/cloud/talent_v4beta1/proto/tenant_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/tenant_pb2_grpc.py index 07cb78fe..8a939394 100644 --- a/google/cloud/talent_v4beta1/proto/tenant_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/tenant_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/google/cloud/talent_v4beta1/proto/tenant_service_pb2.py b/google/cloud/talent_v4beta1/proto/tenant_service_pb2.py index ca761c6f..bb8b03fe 100644 --- a/google/cloud/talent_v4beta1/proto/tenant_service_pb2.py +++ b/google/cloud/talent_v4beta1/proto/tenant_service_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/talent_v4beta1/proto/tenant_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 @@ -33,12 +30,9 @@ name="google/cloud/talent_v4beta1/proto/tenant_service.proto", package="google.cloud.talent.v4beta1", syntax="proto3", - serialized_options=_b( - "\n\037com.google.cloud.talent.v4beta1B\022TenantServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS" - ), - serialized_pb=_b( - '\n6google/cloud/talent_v4beta1/proto/tenant_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a.google/cloud/talent_v4beta1/proto/tenant.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x94\x01\n\x13\x43reateTenantRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x38\n\x06tenant\x18\x02 \x01(\x0b\x32#.google.cloud.talent.v4beta1.TenantB\x03\xe0\x41\x02"D\n\x10GetTenantRequest\x12\x30\n\x04name\x18\x01 \x01(\tB"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant"\x80\x01\n\x13UpdateTenantRequest\x12\x38\n\x06tenant\x18\x01 \x01(\x0b\x32#.google.cloud.talent.v4beta1.TenantB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"G\n\x13\x44\x65leteTenantRequest\x12\x30\n\x04name\x18\x01 \x01(\tB"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant"\x80\x01\n\x12ListTenantsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05"\xa5\x01\n\x13ListTenantsResponse\x12\x34\n\x07tenants\x18\x01 \x03(\x0b\x32#.google.cloud.talent.v4beta1.Tenant\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata2\xa0\x07\n\rTenantService\x12\xa6\x01\n\x0c\x43reateTenant\x12\x30.google.cloud.talent.v4beta1.CreateTenantRequest\x1a#.google.cloud.talent.v4beta1.Tenant"?\x82\xd3\xe4\x93\x02)"$/v4beta1/{parent=projects/*}/tenants:\x01*\xda\x41\rparent,tenant\x12\x94\x01\n\tGetTenant\x12-.google.cloud.talent.v4beta1.GetTenantRequest\x1a#.google.cloud.talent.v4beta1.Tenant"3\x82\xd3\xe4\x93\x02&\x12$/v4beta1/{name=projects/*/tenants/*}\xda\x41\x04name\x12\xa6\x01\n\x0cUpdateTenant\x12\x30.google.cloud.talent.v4beta1.UpdateTenantRequest\x1a#.google.cloud.talent.v4beta1.Tenant"?\x82\xd3\xe4\x93\x02\x30\x32+/v4beta1/{tenant.name=projects/*/tenants/*}:\x01*\xda\x41\x06tenant\x12\x8d\x01\n\x0c\x44\x65leteTenant\x12\x30.google.cloud.talent.v4beta1.DeleteTenantRequest\x1a\x16.google.protobuf.Empty"3\x82\xd3\xe4\x93\x02&*$/v4beta1/{name=projects/*/tenants/*}\xda\x41\x04name\x12\xa7\x01\n\x0bListTenants\x12/.google.cloud.talent.v4beta1.ListTenantsRequest\x1a\x30.google.cloud.talent.v4beta1.ListTenantsResponse"5\x82\xd3\xe4\x93\x02&\x12$/v4beta1/{parent=projects/*}/tenants\xda\x41\x06parent\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB\x80\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x12TenantServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3' - ), + serialized_options=b"\n\037com.google.cloud.talent.v4beta1B\022TenantServiceProtoP\001ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\242\002\003CTS", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n6google/cloud/talent_v4beta1/proto/tenant_service.proto\x12\x1bgoogle.cloud.talent.v4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/talent_v4beta1/proto/common.proto\x1a.google/cloud/talent_v4beta1/proto/tenant.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x94\x01\n\x13\x43reateTenantRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x38\n\x06tenant\x18\x02 \x01(\x0b\x32#.google.cloud.talent.v4beta1.TenantB\x03\xe0\x41\x02"D\n\x10GetTenantRequest\x12\x30\n\x04name\x18\x01 \x01(\tB"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant"\x80\x01\n\x13UpdateTenantRequest\x12\x38\n\x06tenant\x18\x01 \x01(\x0b\x32#.google.cloud.talent.v4beta1.TenantB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"G\n\x13\x44\x65leteTenantRequest\x12\x30\n\x04name\x18\x01 \x01(\tB"\xe0\x41\x02\xfa\x41\x1c\n\x1ajobs.googleapis.com/Tenant"\x80\x01\n\x12ListTenantsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05"\xa5\x01\n\x13ListTenantsResponse\x12\x34\n\x07tenants\x18\x01 \x03(\x0b\x32#.google.cloud.talent.v4beta1.Tenant\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32-.google.cloud.talent.v4beta1.ResponseMetadata2\xa0\x07\n\rTenantService\x12\xa6\x01\n\x0c\x43reateTenant\x12\x30.google.cloud.talent.v4beta1.CreateTenantRequest\x1a#.google.cloud.talent.v4beta1.Tenant"?\x82\xd3\xe4\x93\x02)"$/v4beta1/{parent=projects/*}/tenants:\x01*\xda\x41\rparent,tenant\x12\x94\x01\n\tGetTenant\x12-.google.cloud.talent.v4beta1.GetTenantRequest\x1a#.google.cloud.talent.v4beta1.Tenant"3\x82\xd3\xe4\x93\x02&\x12$/v4beta1/{name=projects/*/tenants/*}\xda\x41\x04name\x12\xa6\x01\n\x0cUpdateTenant\x12\x30.google.cloud.talent.v4beta1.UpdateTenantRequest\x1a#.google.cloud.talent.v4beta1.Tenant"?\x82\xd3\xe4\x93\x02\x30\x32+/v4beta1/{tenant.name=projects/*/tenants/*}:\x01*\xda\x41\x06tenant\x12\x8d\x01\n\x0c\x44\x65leteTenant\x12\x30.google.cloud.talent.v4beta1.DeleteTenantRequest\x1a\x16.google.protobuf.Empty"3\x82\xd3\xe4\x93\x02&*$/v4beta1/{name=projects/*/tenants/*}\xda\x41\x04name\x12\xa7\x01\n\x0bListTenants\x12/.google.cloud.talent.v4beta1.ListTenantsRequest\x1a\x30.google.cloud.talent.v4beta1.ListTenantsResponse"5\x82\xd3\xe4\x93\x02&\x12$/v4beta1/{parent=projects/*}/tenants\xda\x41\x06parent\x1al\xca\x41\x13jobs.googleapis.com\xd2\x41Shttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobsB\x80\x01\n\x1f\x63om.google.cloud.talent.v4beta1B\x12TenantServiceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent\xa2\x02\x03\x43TSb\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -58,6 +52,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -68,16 +63,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="tenant", @@ -94,8 +88,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=[], @@ -117,6 +112,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -127,15 +123,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\034\n\032jobs.googleapis.com/Tenant"), + serialized_options=b"\340A\002\372A\034\n\032jobs.googleapis.com/Tenant", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -156,6 +153,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="tenant", @@ -172,8 +170,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", @@ -192,6 +191,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -213,6 +213,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -223,15 +224,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\034\n\032jobs.googleapis.com/Tenant"), + serialized_options=b"\340A\002\372A\034\n\032jobs.googleapis.com/Tenant", file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -252,6 +254,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -262,16 +265,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="page_token", @@ -282,7 +284,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,6 +292,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -308,6 +311,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -329,6 +333,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="tenants", @@ -347,6 +352,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -357,7 +363,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, @@ -365,6 +371,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="metadata", @@ -383,6 +390,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -425,97 +433,102 @@ CreateTenantRequest = _reflection.GeneratedProtocolMessageType( "CreateTenantRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATETENANTREQUEST, - __module__="google.cloud.talent_v4beta1.proto.tenant_service_pb2", - __doc__="""The Request of the CreateTenant method. + { + "DESCRIPTOR": _CREATETENANTREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.tenant_service_pb2", + "__doc__": """The Request of the CreateTenant method. + Attributes: parent: Required. Resource name of the project under which the tenant - is created. The format is "projects/{project\_id}", for - example, "projects/foo". + is created. The format is “projects/{project_id}”, for + example, “projects/foo”. tenant: Required. The tenant to be created. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateTenantRequest) - ), + }, ) _sym_db.RegisterMessage(CreateTenantRequest) GetTenantRequest = _reflection.GeneratedProtocolMessageType( "GetTenantRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETTENANTREQUEST, - __module__="google.cloud.talent_v4beta1.proto.tenant_service_pb2", - __doc__="""Request for getting a tenant by name. + { + "DESCRIPTOR": _GETTENANTREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.tenant_service_pb2", + "__doc__": """Request for getting a tenant by name. + Attributes: name: Required. The resource name of the tenant to be retrieved. - The format is "projects/{project\_id}/tenants/{tenant\_id}", - for example, "projects/foo/tenants/bar". + The format is “projects/{project_id}/tenants/{tenant_id}”, for + example, “projects/foo/tenants/bar”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetTenantRequest) - ), + }, ) _sym_db.RegisterMessage(GetTenantRequest) UpdateTenantRequest = _reflection.GeneratedProtocolMessageType( "UpdateTenantRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATETENANTREQUEST, - __module__="google.cloud.talent_v4beta1.proto.tenant_service_pb2", - __doc__="""Request for updating a specified tenant. + { + "DESCRIPTOR": _UPDATETENANTREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.tenant_service_pb2", + "__doc__": """Request for updating a specified tenant. + Attributes: tenant: Required. The tenant resource to replace the current resource in the system. update_mask: Strongly recommended for the best service experience. If [upd - ate\_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.upd - ate\_mask] is provided, only the specified fields in [tenant][ - google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are + ate_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.upda + te_mask] is provided, only the specified fields in [tenant][go + ogle.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are updated. Otherwise all the fields are updated. A field mask to specify the tenant fields to be updated. Only top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are supported. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateTenantRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateTenantRequest) DeleteTenantRequest = _reflection.GeneratedProtocolMessageType( "DeleteTenantRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETETENANTREQUEST, - __module__="google.cloud.talent_v4beta1.proto.tenant_service_pb2", - __doc__="""Request to delete a tenant. + { + "DESCRIPTOR": _DELETETENANTREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.tenant_service_pb2", + "__doc__": """Request to delete a tenant. + Attributes: name: Required. The resource name of the tenant to be deleted. The - format is "projects/{project\_id}/tenants/{tenant\_id}", for - example, "projects/foo/tenants/bar". + format is “projects/{project_id}/tenants/{tenant_id}”, for + example, “projects/foo/tenants/bar”. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteTenantRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteTenantRequest) ListTenantsRequest = _reflection.GeneratedProtocolMessageType( "ListTenantsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTTENANTSREQUEST, - __module__="google.cloud.talent_v4beta1.proto.tenant_service_pb2", - __doc__="""List tenants for which the client has ACL visibility. + { + "DESCRIPTOR": _LISTTENANTSREQUEST, + "__module__": "google.cloud.talent_v4beta1.proto.tenant_service_pb2", + "__doc__": """List tenants for which the client has ACL visibility. + Attributes: parent: Required. Resource name of the project under which the tenant - is created. The format is "projects/{project\_id}", for - example, "projects/foo". + is created. The format is “projects/{project_id}”, for + example, “projects/foo”. page_token: The starting indicator from which to return results. page_size: @@ -523,17 +536,18 @@ Default is 100 if a non-positive number is provided. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListTenantsRequest) - ), + }, ) _sym_db.RegisterMessage(ListTenantsRequest) ListTenantsResponse = _reflection.GeneratedProtocolMessageType( "ListTenantsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTTENANTSRESPONSE, - __module__="google.cloud.talent_v4beta1.proto.tenant_service_pb2", - __doc__="""The List tenants response object. + { + "DESCRIPTOR": _LISTTENANTSRESPONSE, + "__module__": "google.cloud.talent_v4beta1.proto.tenant_service_pb2", + "__doc__": """The List tenants response object. + Attributes: tenants: Tenants for the current client. @@ -544,7 +558,7 @@ request tracking id. """, # @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListTenantsResponse) - ), + }, ) _sym_db.RegisterMessage(ListTenantsResponse) @@ -562,9 +576,8 @@ full_name="google.cloud.talent.v4beta1.TenantService", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs" - ), + serialized_options=b"\312A\023jobs.googleapis.com\322AShttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/jobs", + create_key=_descriptor._internal_create_key, serialized_start=1086, serialized_end=2014, methods=[ @@ -575,9 +588,8 @@ containing_service=None, input_type=_CREATETENANTREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_tenant__pb2._TENANT, - serialized_options=_b( - '\202\323\344\223\002)"$/v4beta1/{parent=projects/*}/tenants:\001*\332A\rparent,tenant' - ), + serialized_options=b'\202\323\344\223\002)"$/v4beta1/{parent=projects/*}/tenants:\001*\332A\rparent,tenant', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetTenant", @@ -586,9 +598,8 @@ containing_service=None, input_type=_GETTENANTREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_tenant__pb2._TENANT, - serialized_options=_b( - "\202\323\344\223\002&\022$/v4beta1/{name=projects/*/tenants/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002&\022$/v4beta1/{name=projects/*/tenants/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateTenant", @@ -597,9 +608,8 @@ containing_service=None, input_type=_UPDATETENANTREQUEST, output_type=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_tenant__pb2._TENANT, - serialized_options=_b( - "\202\323\344\223\00202+/v4beta1/{tenant.name=projects/*/tenants/*}:\001*\332A\006tenant" - ), + serialized_options=b"\202\323\344\223\00202+/v4beta1/{tenant.name=projects/*/tenants/*}:\001*\332A\006tenant", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteTenant", @@ -608,9 +618,8 @@ containing_service=None, input_type=_DELETETENANTREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002&*$/v4beta1/{name=projects/*/tenants/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002&*$/v4beta1/{name=projects/*/tenants/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListTenants", @@ -619,9 +628,8 @@ containing_service=None, input_type=_LISTTENANTSREQUEST, output_type=_LISTTENANTSRESPONSE, - serialized_options=_b( - "\202\323\344\223\002&\022$/v4beta1/{parent=projects/*}/tenants\332A\006parent" - ), + serialized_options=b"\202\323\344\223\002&\022$/v4beta1/{parent=projects/*}/tenants\332A\006parent", + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/google/cloud/talent_v4beta1/proto/tenant_service_pb2_grpc.py b/google/cloud/talent_v4beta1/proto/tenant_service_pb2_grpc.py index 48dd6dbb..ed0461f3 100644 --- a/google/cloud/talent_v4beta1/proto/tenant_service_pb2_grpc.py +++ b/google/cloud/talent_v4beta1/proto/tenant_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.talent_v4beta1.proto import ( @@ -12,14 +13,14 @@ class TenantServiceStub(object): """A service that handles tenant management, including CRUD and enumeration. - """ + """ def __init__(self, channel): """Constructor. - Args: - channel: A grpc.Channel. - """ + Args: + channel: A grpc.Channel. + """ self.CreateTenant = channel.unary_unary( "/google.cloud.talent.v4beta1.TenantService/CreateTenant", request_serializer=google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_tenant__service__pb2.CreateTenantRequest.SerializeToString, @@ -49,39 +50,39 @@ def __init__(self, channel): class TenantServiceServicer(object): """A service that handles tenant management, including CRUD and enumeration. - """ + """ def CreateTenant(self, request, context): """Creates a new tenant entity. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def GetTenant(self, request, context): """Retrieves specified tenant. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def UpdateTenant(self, request, context): """Updates specified tenant. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def DeleteTenant(self, request, context): """Deletes specified tenant. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def ListTenants(self, request, context): """Lists all tenants associated with the project. - """ + """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") @@ -119,3 +120,144 @@ def add_TenantServiceServicer_to_server(servicer, server): "google.cloud.talent.v4beta1.TenantService", rpc_method_handlers ) server.add_generic_rpc_handlers((generic_handler,)) + + +# This class is part of an EXPERIMENTAL API. +class TenantService(object): + """A service that handles tenant management, including CRUD and enumeration. + """ + + @staticmethod + def CreateTenant( + 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.talent.v4beta1.TenantService/CreateTenant", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_tenant__service__pb2.CreateTenantRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_tenant__pb2.Tenant.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetTenant( + 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.talent.v4beta1.TenantService/GetTenant", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_tenant__service__pb2.GetTenantRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_tenant__pb2.Tenant.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateTenant( + 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.talent.v4beta1.TenantService/UpdateTenant", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_tenant__service__pb2.UpdateTenantRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_tenant__pb2.Tenant.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteTenant( + 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.talent.v4beta1.TenantService/DeleteTenant", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_tenant__service__pb2.DeleteTenantRequest.SerializeToString, + google_dot_protobuf_dot_empty__pb2.Empty.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListTenants( + 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.talent.v4beta1.TenantService/ListTenants", + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_tenant__service__pb2.ListTenantsRequest.SerializeToString, + google_dot_cloud_dot_talent__v4beta1_dot_proto_dot_tenant__service__pb2.ListTenantsResponse.FromString, + options, + channel_credentials, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/noxfile.py b/noxfile.py index 50ae41bf..c6512ac3 100644 --- a/noxfile.py +++ b/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,7 +115,9 @@ def system(session): # Install all test dependencies, then install this package into the # virtualenv's dist-packages. - session.install("mock", "pytest", "google-cloud-testutils") + session.install( + "mock", "pytest", "google-cloud-testutils", + ) session.install("-e", ".") # Run py.test against the system tests. @@ -120,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. @@ -133,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/scripts/decrypt-secrets.sh b/scripts/decrypt-secrets.sh new file mode 100755 index 00000000..ff599eb2 --- /dev/null +++ b/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/scripts/readme-gen/readme_gen.py b/scripts/readme-gen/readme_gen.py new file mode 100644 index 00000000..d309d6e9 --- /dev/null +++ b/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/scripts/readme-gen/templates/README.tmpl.rst b/scripts/readme-gen/templates/README.tmpl.rst new file mode 100644 index 00000000..4fd23976 --- /dev/null +++ b/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/scripts/readme-gen/templates/auth.tmpl.rst b/scripts/readme-gen/templates/auth.tmpl.rst new file mode 100644 index 00000000..1446b94a --- /dev/null +++ b/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/scripts/readme-gen/templates/auth_api_key.tmpl.rst b/scripts/readme-gen/templates/auth_api_key.tmpl.rst new file mode 100644 index 00000000..11957ce2 --- /dev/null +++ b/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/scripts/readme-gen/templates/install_deps.tmpl.rst b/scripts/readme-gen/templates/install_deps.tmpl.rst new file mode 100644 index 00000000..a0406dba --- /dev/null +++ b/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/scripts/readme-gen/templates/install_portaudio.tmpl.rst b/scripts/readme-gen/templates/install_portaudio.tmpl.rst new file mode 100644 index 00000000..5ea33d18 --- /dev/null +++ b/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/synth.metadata b/synth.metadata index d37d2e20..fd938b71 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,32 +1,25 @@ { "sources": [ - { - "generator": { - "name": "artman", - "version": "2.0.0", - "dockerImage": "googleapis/artman@sha256:b3b47805231a305d0f40c4bf069df20f6a2635574e6d4259fac651d3f9f6e098" - } - }, { "git": { "name": ".", - "remote": "git@github.com:googleapis/python-talent", - "sha": "820ed8b6dcb94f08b45563872009c55cf52012a5" + "remote": "https://github.com/googleapis/python-talent.git", + "sha": "a9f9c148652876b0d3dd09a900a6185e3e5e4b64" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "756b174de4a122461993c1c583345533d819936d", - "internalRef": "308824110" + "sha": "b882b8e6bfcd708042ff00f7adc67ce750817dd0", + "internalRef": "318028816" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "01b6f23d24b27878b48667ce597876d66b59780e" + "sha": "2a29860e484695a07aa8670f9e750bfeeb308a43" } } ], @@ -37,8 +30,7 @@ "apiName": "talent", "apiVersion": "v4beta1", "language": "python", - "generator": "gapic", - "config": "google/cloud/talent/artman_talent_v4beta1.yaml" + "generator": "bazel" } } ] diff --git a/synth.py b/synth.py index 2e8241b4..22a72a64 100644 --- a/synth.py +++ b/synth.py @@ -34,10 +34,26 @@ ) s.move(library, excludes=excludes) +# fix docstring +s.replace( + "google/cloud/**/*.py", + "\[a-zA-Z\]\[a-zA-Z0-9_\]", + "[a-zA-Z][a-zA-Z0-9\_]" +) + +# Escape '_' in docstrings +s.replace( + "google/cloud/**/*_pb2.py", + """\_$""", + """\_""", +) # ---------------------------------------------------------------------------- # Add templated files # ---------------------------------------------------------------------------- templated_files = common.py_library(cov_level=83) s.move(templated_files) +# TODO(busunkim): Use latest sphinx after microgenerator transition +s.replace("noxfile.py", """['"]sphinx['"]""", '"sphinx<3.0.0"') + s.shell.run(["nox", "-s", "blacken"], hide_output=False) diff --git a/testing/.gitignore b/testing/.gitignore new file mode 100644 index 00000000..b05fbd63 --- /dev/null +++ b/testing/.gitignore @@ -0,0 +1,3 @@ +test-env.sh +service-account.json +client-secrets.json \ No newline at end of file diff --git a/tests/unit/gapic/v4beta1/test_application_service_client_v4beta1.py b/tests/unit/gapic/v4beta1/test_application_service_client_v4beta1.py index d2d75eda..f4b617e0 100644 --- a/tests/unit/gapic/v4beta1/test_application_service_client_v4beta1.py +++ b/tests/unit/gapic/v4beta1/test_application_service_client_v4beta1.py @@ -62,41 +62,6 @@ class CustomException(Exception): class TestApplicationServiceClient(object): - def test_delete_application(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = talent_v4beta1.ApplicationServiceClient() - - # Setup Request - name = client.application_path( - "[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]" - ) - - client.delete_application(name) - - assert len(channel.requests) == 1 - expected_request = application_service_pb2.DeleteApplicationRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_application_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = talent_v4beta1.ApplicationServiceClient() - - # Setup request - name = client.application_path( - "[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]" - ) - - with pytest.raises(CustomException): - client.delete_application(name) - def test_create_application(self): # Setup Expected Response name = "name3373707" @@ -263,6 +228,41 @@ def test_update_application_exception(self): with pytest.raises(CustomException): client.update_application(application) + def test_delete_application(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = talent_v4beta1.ApplicationServiceClient() + + # Setup Request + name = client.application_path( + "[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]" + ) + + client.delete_application(name) + + assert len(channel.requests) == 1 + expected_request = application_service_pb2.DeleteApplicationRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_application_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = talent_v4beta1.ApplicationServiceClient() + + # Setup request + name = client.application_path( + "[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]" + ) + + with pytest.raises(CustomException): + client.delete_application(name) + def test_list_applications(self): # Setup Expected Response next_page_token = "" diff --git a/tests/unit/gapic/v4beta1/test_company_service_client_v4beta1.py b/tests/unit/gapic/v4beta1/test_company_service_client_v4beta1.py index 54eaf6f0..0d2259a2 100644 --- a/tests/unit/gapic/v4beta1/test_company_service_client_v4beta1.py +++ b/tests/unit/gapic/v4beta1/test_company_service_client_v4beta1.py @@ -62,37 +62,6 @@ class CustomException(Exception): class TestCompanyServiceClient(object): - def test_delete_company(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = talent_v4beta1.CompanyServiceClient() - - # Setup Request - name = client.company_path("[PROJECT]", "[TENANT]", "[COMPANY]") - - client.delete_company(name) - - assert len(channel.requests) == 1 - expected_request = company_service_pb2.DeleteCompanyRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_company_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = talent_v4beta1.CompanyServiceClient() - - # Setup request - name = client.company_path("[PROJECT]", "[TENANT]", "[COMPANY]") - - with pytest.raises(CustomException): - client.delete_company(name) - def test_create_company(self): # Setup Expected Response name = "name3373707" @@ -127,7 +96,7 @@ def test_create_company(self): client = talent_v4beta1.CompanyServiceClient() # Setup Request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") company = {} response = client.create_company(parent, company) @@ -149,7 +118,7 @@ def test_create_company_exception(self): client = talent_v4beta1.CompanyServiceClient() # Setup request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") company = {} with pytest.raises(CustomException): @@ -271,6 +240,37 @@ def test_update_company_exception(self): with pytest.raises(CustomException): client.update_company(company) + def test_delete_company(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = talent_v4beta1.CompanyServiceClient() + + # Setup Request + name = client.company_path("[PROJECT]", "[TENANT]", "[COMPANY]") + + client.delete_company(name) + + assert len(channel.requests) == 1 + expected_request = company_service_pb2.DeleteCompanyRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_company_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = talent_v4beta1.CompanyServiceClient() + + # Setup request + name = client.company_path("[PROJECT]", "[TENANT]", "[COMPANY]") + + with pytest.raises(CustomException): + client.delete_company(name) + def test_list_companies(self): # Setup Expected Response next_page_token = "" @@ -289,7 +289,7 @@ def test_list_companies(self): client = talent_v4beta1.CompanyServiceClient() # Setup Request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") paged_list_response = client.list_companies(parent) resources = list(paged_list_response) @@ -310,7 +310,7 @@ def test_list_companies_exception(self): client = talent_v4beta1.CompanyServiceClient() # Setup request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") paged_list_response = client.list_companies(parent) with pytest.raises(CustomException): diff --git a/tests/unit/gapic/v4beta1/test_completion_client_v4beta1.py b/tests/unit/gapic/v4beta1/test_completion_client_v4beta1.py index 839fdd46..0e66aff0 100644 --- a/tests/unit/gapic/v4beta1/test_completion_client_v4beta1.py +++ b/tests/unit/gapic/v4beta1/test_completion_client_v4beta1.py @@ -75,7 +75,7 @@ def test_complete_query(self): client = talent_v4beta1.CompletionClient() # Setup Request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") query = "query107944136" page_size = 883849137 @@ -98,7 +98,7 @@ def test_complete_query_exception(self): client = talent_v4beta1.CompletionClient() # Setup request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") query = "query107944136" page_size = 883849137 diff --git a/tests/unit/gapic/v4beta1/test_event_service_client_v4beta1.py b/tests/unit/gapic/v4beta1/test_event_service_client_v4beta1.py index fd61a053..ca2b4336 100644 --- a/tests/unit/gapic/v4beta1/test_event_service_client_v4beta1.py +++ b/tests/unit/gapic/v4beta1/test_event_service_client_v4beta1.py @@ -81,7 +81,7 @@ def test_create_client_event(self): client = talent_v4beta1.EventServiceClient() # Setup Request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") client_event = {} response = client.create_client_event(parent, client_event) @@ -103,7 +103,7 @@ def test_create_client_event_exception(self): client = talent_v4beta1.EventServiceClient() # Setup request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") client_event = {} with pytest.raises(CustomException): diff --git a/tests/unit/gapic/v4beta1/test_job_service_client_v4beta1.py b/tests/unit/gapic/v4beta1/test_job_service_client_v4beta1.py index 13798f9b..2af4b385 100644 --- a/tests/unit/gapic/v4beta1/test_job_service_client_v4beta1.py +++ b/tests/unit/gapic/v4beta1/test_job_service_client_v4beta1.py @@ -66,37 +66,6 @@ class CustomException(Exception): class TestJobServiceClient(object): - def test_delete_job(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = talent_v4beta1.JobServiceClient() - - # Setup Request - name = client.job_path("[PROJECT]", "[TENANT]", "[JOB]") - - client.delete_job(name) - - assert len(channel.requests) == 1 - expected_request = job_service_pb2.DeleteJobRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_job_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = talent_v4beta1.JobServiceClient() - - # Setup request - name = client.job_path("[PROJECT]", "[TENANT]", "[JOB]") - - with pytest.raises(CustomException): - client.delete_job(name) - def test_create_job(self): # Setup Expected Response name = "name3373707" @@ -135,7 +104,7 @@ def test_create_job(self): client = talent_v4beta1.JobServiceClient() # Setup Request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") job = {} response = client.create_job(parent, job) @@ -155,7 +124,7 @@ def test_create_job_exception(self): client = talent_v4beta1.JobServiceClient() # Setup request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") job = {} with pytest.raises(CustomException): @@ -178,7 +147,7 @@ def test_batch_create_jobs(self): client = talent_v4beta1.JobServiceClient() # Setup Request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") jobs = [] response = client.batch_create_jobs(parent, jobs) @@ -208,7 +177,7 @@ def test_batch_create_jobs_exception(self): client = talent_v4beta1.JobServiceClient() # Setup Request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") jobs = [] response = client.batch_create_jobs(parent, jobs) @@ -356,7 +325,7 @@ def test_batch_update_jobs(self): client = talent_v4beta1.JobServiceClient() # Setup Request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") jobs = [] response = client.batch_update_jobs(parent, jobs) @@ -386,13 +355,44 @@ def test_batch_update_jobs_exception(self): client = talent_v4beta1.JobServiceClient() # Setup Request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") jobs = [] response = client.batch_update_jobs(parent, jobs) exception = response.exception() assert exception.errors[0] == error + def test_delete_job(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = talent_v4beta1.JobServiceClient() + + # Setup Request + name = client.job_path("[PROJECT]", "[TENANT]", "[JOB]") + + client.delete_job(name) + + assert len(channel.requests) == 1 + expected_request = job_service_pb2.DeleteJobRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_job_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = talent_v4beta1.JobServiceClient() + + # Setup request + name = client.job_path("[PROJECT]", "[TENANT]", "[JOB]") + + with pytest.raises(CustomException): + client.delete_job(name) + def test_batch_delete_jobs(self): channel = ChannelStub() patch = mock.patch("google.api_core.grpc_helpers.create_channel") @@ -401,7 +401,7 @@ def test_batch_delete_jobs(self): client = talent_v4beta1.JobServiceClient() # Setup Request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") filter_ = "filter-1274492040" client.batch_delete_jobs(parent, filter_) @@ -422,7 +422,7 @@ def test_batch_delete_jobs_exception(self): client = talent_v4beta1.JobServiceClient() # Setup request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") filter_ = "filter-1274492040" with pytest.raises(CustomException): @@ -444,7 +444,7 @@ def test_list_jobs(self): client = talent_v4beta1.JobServiceClient() # Setup Request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") filter_ = "filter-1274492040" paged_list_response = client.list_jobs(parent, filter_) @@ -468,7 +468,7 @@ def test_list_jobs_exception(self): client = talent_v4beta1.JobServiceClient() # Setup request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") filter_ = "filter-1274492040" paged_list_response = client.list_jobs(parent, filter_) @@ -500,7 +500,7 @@ def test_search_jobs(self): client = talent_v4beta1.JobServiceClient() # Setup Request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") request_metadata = {} paged_list_response = client.search_jobs(parent, request_metadata) @@ -524,7 +524,7 @@ def test_search_jobs_exception(self): client = talent_v4beta1.JobServiceClient() # Setup request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") request_metadata = {} paged_list_response = client.search_jobs(parent, request_metadata) @@ -556,7 +556,7 @@ def test_search_jobs_for_alert(self): client = talent_v4beta1.JobServiceClient() # Setup Request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") request_metadata = {} paged_list_response = client.search_jobs_for_alert(parent, request_metadata) @@ -580,7 +580,7 @@ def test_search_jobs_for_alert_exception(self): client = talent_v4beta1.JobServiceClient() # Setup request - parent = client.project_path("[PROJECT]") + parent = client.tenant_path("[PROJECT]", "[TENANT]") request_metadata = {} paged_list_response = client.search_jobs_for_alert(parent, request_metadata) diff --git a/tests/unit/gapic/v4beta1/test_profile_service_client_v4beta1.py b/tests/unit/gapic/v4beta1/test_profile_service_client_v4beta1.py index b8dde29c..2171635f 100644 --- a/tests/unit/gapic/v4beta1/test_profile_service_client_v4beta1.py +++ b/tests/unit/gapic/v4beta1/test_profile_service_client_v4beta1.py @@ -63,37 +63,6 @@ class CustomException(Exception): class TestProfileServiceClient(object): - def test_delete_profile(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = talent_v4beta1.ProfileServiceClient() - - # Setup Request - name = client.profile_path("[PROJECT]", "[TENANT]", "[PROFILE]") - - client.delete_profile(name) - - assert len(channel.requests) == 1 - expected_request = profile_service_pb2.DeleteProfileRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_profile_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = talent_v4beta1.ProfileServiceClient() - - # Setup request - name = client.profile_path("[PROJECT]", "[TENANT]", "[PROFILE]") - - with pytest.raises(CustomException): - client.delete_profile(name) - def test_search_profiles(self): # Setup Expected Response estimated_total_size = 1882144769 @@ -354,3 +323,34 @@ def test_update_profile_exception(self): with pytest.raises(CustomException): client.update_profile(profile) + + def test_delete_profile(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = talent_v4beta1.ProfileServiceClient() + + # Setup Request + name = client.profile_path("[PROJECT]", "[TENANT]", "[PROFILE]") + + client.delete_profile(name) + + assert len(channel.requests) == 1 + expected_request = profile_service_pb2.DeleteProfileRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_profile_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = talent_v4beta1.ProfileServiceClient() + + # Setup request + name = client.profile_path("[PROJECT]", "[TENANT]", "[PROFILE]") + + with pytest.raises(CustomException): + client.delete_profile(name) diff --git a/tests/unit/gapic/v4beta1/test_tenant_service_client_v4beta1.py b/tests/unit/gapic/v4beta1/test_tenant_service_client_v4beta1.py index 13e9a236..3ea8c09d 100644 --- a/tests/unit/gapic/v4beta1/test_tenant_service_client_v4beta1.py +++ b/tests/unit/gapic/v4beta1/test_tenant_service_client_v4beta1.py @@ -62,37 +62,6 @@ class CustomException(Exception): class TestTenantServiceClient(object): - def test_delete_tenant(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = talent_v4beta1.TenantServiceClient() - - # Setup Request - name = client.tenant_path("[PROJECT]", "[TENANT]") - - client.delete_tenant(name) - - assert len(channel.requests) == 1 - expected_request = tenant_service_pb2.DeleteTenantRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_tenant_exception(self): - # Mock the API response - channel = ChannelStub(responses=[CustomException()]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = talent_v4beta1.TenantServiceClient() - - # Setup request - name = client.tenant_path("[PROJECT]", "[TENANT]") - - with pytest.raises(CustomException): - client.delete_tenant(name) - def test_create_tenant(self): # Setup Expected Response name = "name3373707" @@ -214,6 +183,37 @@ def test_update_tenant_exception(self): with pytest.raises(CustomException): client.update_tenant(tenant) + def test_delete_tenant(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = talent_v4beta1.TenantServiceClient() + + # Setup Request + name = client.tenant_path("[PROJECT]", "[TENANT]") + + client.delete_tenant(name) + + assert len(channel.requests) == 1 + expected_request = tenant_service_pb2.DeleteTenantRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_tenant_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = talent_v4beta1.TenantServiceClient() + + # Setup request + name = client.tenant_path("[PROJECT]", "[TENANT]") + + with pytest.raises(CustomException): + client.delete_tenant(name) + def test_list_tenants(self): # Setup Expected Response next_page_token = ""