diff --git a/packages/google-cloud-build/.flake8 b/packages/google-cloud-build/.flake8 index 20fe9bda2ee4..ed9316381c9c 100644 --- a/packages/google-cloud-build/.flake8 +++ b/packages/google-cloud-build/.flake8 @@ -21,6 +21,8 @@ exclude = # Exclude generated code. **/proto/** **/gapic/** + **/services/** + **/types/** *_pb2.py # Standard linting exemptions. diff --git a/packages/google-cloud-build/.gitignore b/packages/google-cloud-build/.gitignore index 3fb06e09ce74..b87e1ed580d9 100644 --- a/packages/google-cloud-build/.gitignore +++ b/packages/google-cloud-build/.gitignore @@ -10,6 +10,7 @@ dist build eggs +.eggs parts bin var @@ -49,6 +50,7 @@ bigquery/docs/generated # Virtual environment env/ coverage.xml +sponge_log.xml # System test environment variables. system_tests/local_test_setup diff --git a/packages/google-cloud-build/.kokoro/publish-docs.sh b/packages/google-cloud-build/.kokoro/publish-docs.sh index a15d721a83a5..6877cdd54bbc 100755 --- a/packages/google-cloud-build/.kokoro/publish-docs.sh +++ b/packages/google-cloud-build/.kokoro/publish-docs.sh @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - set -eo pipefail # Disable buffering, so that the logs stream through. diff --git a/packages/google-cloud-build/.kokoro/release.sh b/packages/google-cloud-build/.kokoro/release.sh index f84c1347ba4a..e0fb9e49b5f8 100755 --- a/packages/google-cloud-build/.kokoro/release.sh +++ b/packages/google-cloud-build/.kokoro/release.sh @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -#!/bin/bash - set -eo pipefail # Start the releasetool reporter diff --git a/packages/google-cloud-build/.kokoro/samples/lint/common.cfg b/packages/google-cloud-build/.kokoro/samples/lint/common.cfg new file mode 100644 index 000000000000..a7984b872e44 --- /dev/null +++ b/packages/google-cloud-build/.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-cloudbuild/.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-cloudbuild/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/lint/continuous.cfg b/packages/google-cloud-build/.kokoro/samples/lint/continuous.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-build/.kokoro/samples/lint/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/lint/periodic.cfg b/packages/google-cloud-build/.kokoro/samples/lint/periodic.cfg new file mode 100644 index 000000000000..50fec9649732 --- /dev/null +++ b/packages/google-cloud-build/.kokoro/samples/lint/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/lint/presubmit.cfg b/packages/google-cloud-build/.kokoro/samples/lint/presubmit.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-build/.kokoro/samples/lint/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/python3.6/common.cfg b/packages/google-cloud-build/.kokoro/samples/python3.6/common.cfg new file mode 100644 index 000000000000..335f237948b5 --- /dev/null +++ b/packages/google-cloud-build/.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-cloudbuild/.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-cloudbuild/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/python3.6/continuous.cfg b/packages/google-cloud-build/.kokoro/samples/python3.6/continuous.cfg new file mode 100644 index 000000000000..7218af1499e5 --- /dev/null +++ b/packages/google-cloud-build/.kokoro/samples/python3.6/continuous.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} + diff --git a/packages/google-cloud-build/.kokoro/samples/python3.6/periodic.cfg b/packages/google-cloud-build/.kokoro/samples/python3.6/periodic.cfg new file mode 100644 index 000000000000..50fec9649732 --- /dev/null +++ b/packages/google-cloud-build/.kokoro/samples/python3.6/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/python3.6/presubmit.cfg b/packages/google-cloud-build/.kokoro/samples/python3.6/presubmit.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-build/.kokoro/samples/python3.6/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/python3.7/common.cfg b/packages/google-cloud-build/.kokoro/samples/python3.7/common.cfg new file mode 100644 index 000000000000..a9fec387534d --- /dev/null +++ b/packages/google-cloud-build/.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-cloudbuild/.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-cloudbuild/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/python3.7/continuous.cfg b/packages/google-cloud-build/.kokoro/samples/python3.7/continuous.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-build/.kokoro/samples/python3.7/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/python3.7/periodic.cfg b/packages/google-cloud-build/.kokoro/samples/python3.7/periodic.cfg new file mode 100644 index 000000000000..50fec9649732 --- /dev/null +++ b/packages/google-cloud-build/.kokoro/samples/python3.7/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/python3.7/presubmit.cfg b/packages/google-cloud-build/.kokoro/samples/python3.7/presubmit.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-build/.kokoro/samples/python3.7/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/python3.8/common.cfg b/packages/google-cloud-build/.kokoro/samples/python3.8/common.cfg new file mode 100644 index 000000000000..eb2f3c258c2b --- /dev/null +++ b/packages/google-cloud-build/.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-cloudbuild/.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-cloudbuild/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/python3.8/continuous.cfg b/packages/google-cloud-build/.kokoro/samples/python3.8/continuous.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-build/.kokoro/samples/python3.8/continuous.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/python3.8/periodic.cfg b/packages/google-cloud-build/.kokoro/samples/python3.8/periodic.cfg new file mode 100644 index 000000000000..50fec9649732 --- /dev/null +++ b/packages/google-cloud-build/.kokoro/samples/python3.8/periodic.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "False" +} \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/samples/python3.8/presubmit.cfg b/packages/google-cloud-build/.kokoro/samples/python3.8/presubmit.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/google-cloud-build/.kokoro/samples/python3.8/presubmit.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "INSTALL_LIBRARY_FROM_SOURCE" + value: "True" +} \ No newline at end of file diff --git a/packages/google-cloud-build/.kokoro/test-samples.sh b/packages/google-cloud-build/.kokoro/test-samples.sh new file mode 100755 index 000000000000..e560d1388dca --- /dev/null +++ b/packages/google-cloud-build/.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-cloudbuild + +# Run periodic samples tests at latest release +if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then + LATEST_RELEASE=$(git describe --abbrev=0 --tags) + git checkout $LATEST_RELEASE +fi + +# Disable buffering, so that the logs stream through. +export PYTHONUNBUFFERED=1 + +# Debug: show build environment +env | grep KOKORO + +# Install nox +python3.6 -m pip install --upgrade --quiet nox + +# Use secrets acessor service account to get secrets +if [[ -f "${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" ]]; then + gcloud auth activate-service-account \ + --key-file="${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" \ + --project="cloud-devrel-kokoro-resources" +fi + +# This script will create 3 files: +# - testing/test-env.sh +# - testing/service-account.json +# - testing/client-secrets.json +./scripts/decrypt-secrets.sh + +source ./testing/test-env.sh +export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/testing/service-account.json + +# For cloud-run session, we activate the service account for gcloud sdk. +gcloud auth activate-service-account \ + --key-file "${GOOGLE_APPLICATION_CREDENTIALS}" + +export GOOGLE_CLIENT_SECRETS=$(pwd)/testing/client-secrets.json + +echo -e "\n******************** TESTING PROJECTS ********************" + +# Switch to 'fail at end' to allow all tests to complete before exiting. +set +e +# Use RTN to return a non-zero value if the test fails. +RTN=0 +ROOT=$(pwd) +# Find all requirements.txt in the samples directory (may break on whitespace). +for file in samples/**/requirements.txt; do + cd "$ROOT" + # Navigate to the project folder. + file=$(dirname "$file") + cd "$file" + + echo "------------------------------------------------------------" + echo "- testing $file" + echo "------------------------------------------------------------" + + # Use nox to execute the tests for the project. + python3.6 -m nox -s "$RUN_TESTS_SESSION" + EXIT=$? + + # If this is a periodic build, send the test log to the Build Cop Bot. + # See https://github.com/googleapis/repo-automation-bots/tree/master/packages/buildcop. + if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then + chmod +x $KOKORO_GFILE_DIR/linux_amd64/buildcop + $KOKORO_GFILE_DIR/linux_amd64/buildcop + fi + + if [[ $EXIT -ne 0 ]]; then + RTN=1 + echo -e "\n Testing failed: Nox returned a non-zero exit code. \n" + else + echo -e "\n Testing completed.\n" + fi + +done +cd "$ROOT" + +# Workaround for Kokoro permissions issue: delete secrets +rm testing/{test-env.sh,client-secrets.json,service-account.json} + +exit "$RTN" \ No newline at end of file diff --git a/packages/google-cloud-build/MANIFEST.in b/packages/google-cloud-build/MANIFEST.in index 68855abc3f02..e9e29d12033d 100644 --- a/packages/google-cloud-build/MANIFEST.in +++ b/packages/google-cloud-build/MANIFEST.in @@ -20,3 +20,6 @@ recursive-include google *.json *.proto recursive-include tests * global-exclude *.py[co] global-exclude __pycache__ + +# Exclude scripts for samples readmegen +prune scripts/readme-gen \ No newline at end of file diff --git a/packages/google-cloud-build/docs/conf.py b/packages/google-cloud-build/docs/conf.py index 4e65b225787f..2d0ebebb25a5 100644 --- a/packages/google-cloud-build/docs/conf.py +++ b/packages/google-cloud-build/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'] @@ -293,7 +290,13 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, "google-cloud-build", u"google-cloud-build Documentation", [author], 1) + ( + master_doc, + "google-cloud-build", + u"google-cloud-build Documentation", + [author], + 1, + ) ] # If true, show URL addresses after external links. @@ -334,7 +337,7 @@ intersphinx_mapping = { "python": ("http://python.readthedocs.org/en/latest/", None), "google-auth": ("https://google-auth.readthedocs.io/en/stable", None), - "google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None), + "google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None,), "grpc": ("https://grpc.io/grpc/python/", None), } diff --git a/packages/google-cloud-build/docs/index.rst b/packages/google-cloud-build/docs/index.rst index 382348916108..21ccc1992554 100644 --- a/packages/google-cloud-build/docs/index.rst +++ b/packages/google-cloud-build/docs/index.rst @@ -1,5 +1,7 @@ .. include:: README.rst +.. include:: multiprocessing.rst + API Reference ------------- diff --git a/packages/google-cloud-build/docs/multiprocessing.rst b/packages/google-cloud-build/docs/multiprocessing.rst new file mode 100644 index 000000000000..1cb29d4ca967 --- /dev/null +++ b/packages/google-cloud-build/docs/multiprocessing.rst @@ -0,0 +1,7 @@ +.. note:: + + Because this client uses :mod:`grpcio` library, it is safe to + share instances across threads. In multiprocessing scenarios, the best + practice is to create client instances *after* the invocation of + :func:`os.fork` by :class:`multiprocessing.Pool` or + :class:`multiprocessing.Process`. diff --git a/packages/google-cloud-build/google/cloud/devtools/cloudbuild.py b/packages/google-cloud-build/google/cloud/devtools/cloudbuild.py index 1e6519eee862..45cdbff25635 100644 --- a/packages/google-cloud-build/google/cloud/devtools/cloudbuild.py +++ b/packages/google-cloud-build/google/cloud/devtools/cloudbuild.py @@ -22,4 +22,8 @@ from google.cloud.devtools.cloudbuild_v1 import types -__all__ = ("enums", "types", "CloudBuildClient") +__all__ = ( + "enums", + "types", + "CloudBuildClient", +) diff --git a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/__init__.py b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/__init__.py index 68a61ce05837..9071d8325c79 100644 --- a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/__init__.py +++ b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/__init__.py @@ -26,8 +26,8 @@ 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) @@ -38,4 +38,8 @@ class CloudBuildClient(cloud_build_client.CloudBuildClient): enums = enums -__all__ = ("enums", "types", "CloudBuildClient") +__all__ = ( + "enums", + "types", + "CloudBuildClient", +) diff --git a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/cloud_build_client.py b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/cloud_build_client.py index 7a804ae72074..455bf095e879 100644 --- a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/cloud_build_client.py +++ b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/cloud_build_client.py @@ -27,6 +27,8 @@ import google.api_core.gapic_v1.method import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers +import google.api_core.operation +import google.api_core.operations_v1 import google.api_core.page_iterator import grpc @@ -41,7 +43,7 @@ from google.protobuf import empty_pb2 -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-build").version +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-build",).version class CloudBuildClient(object): @@ -170,12 +172,12 @@ def __init__( self.transport = transport else: self.transport = cloud_build_grpc_transport.CloudBuildGrpcTransport( - 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 @@ -186,7 +188,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. @@ -196,6 +198,178 @@ def __init__( self._inner_api_calls = {} # Service calls + def list_builds( + self, + project_id, + page_size=None, + filter_=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Lists previously requested builds. + + Previously requested builds may still be in-progress, or may have finished + successfully or unsuccessfully. + + Example: + >>> from google.cloud.devtools import cloudbuild_v1 + >>> + >>> client = cloudbuild_v1.CloudBuildClient() + >>> + >>> # TODO: Initialize `project_id`: + >>> project_id = '' + >>> + >>> # Iterate over all results + >>> for element in client.list_builds(project_id): + ... # process element + ... pass + >>> + >>> + >>> # Alternatively: + >>> + >>> # Iterate over results one page at a time + >>> for page in client.list_builds(project_id).pages: + ... for element in page: + ... # process element + ... pass + + Args: + project_id (str): Required. ID of the project. + 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 + streaming is performed per-page, this determines the maximum number + of resources in a page. + filter_ (str): The raw filter text to constrain the results. + 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. + + Returns: + A :class:`~google.api_core.page_iterator.PageIterator` instance. + An iterable of :class:`~google.cloud.devtools.cloudbuild_v1.types.Build` instances. + You can also iterate over the pages of the response + using its `pages` property. + + 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 "list_builds" not in self._inner_api_calls: + self._inner_api_calls[ + "list_builds" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_builds, + default_retry=self._method_configs["ListBuilds"].retry, + default_timeout=self._method_configs["ListBuilds"].timeout, + client_info=self._client_info, + ) + + request = cloudbuild_pb2.ListBuildsRequest( + project_id=project_id, page_size=page_size, filter=filter_, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("project_id", project_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + iterator = google.api_core.page_iterator.GRPCIterator( + client=None, + method=functools.partial( + self._inner_api_calls["list_builds"], + retry=retry, + timeout=timeout, + metadata=metadata, + ), + request=request, + items_field="builds", + request_token_field="page_token", + response_token_field="next_page_token", + ) + return iterator + + def delete_build_trigger( + self, + project_id, + trigger_id, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Deletes a ``BuildTrigger`` by its project ID and trigger ID. + + This API is experimental. + + Example: + >>> from google.cloud.devtools import cloudbuild_v1 + >>> + >>> client = cloudbuild_v1.CloudBuildClient() + >>> + >>> # TODO: Initialize `project_id`: + >>> project_id = '' + >>> + >>> # TODO: Initialize `trigger_id`: + >>> trigger_id = '' + >>> + >>> client.delete_build_trigger(project_id, trigger_id) + + Args: + project_id (str): Required. ID of the project that owns the trigger. + trigger_id (str): Required. ID of the ``BuildTrigger`` to delete. + 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_build_trigger" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_build_trigger" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_build_trigger, + default_retry=self._method_configs["DeleteBuildTrigger"].retry, + default_timeout=self._method_configs["DeleteBuildTrigger"].timeout, + client_info=self._client_info, + ) + + request = cloudbuild_pb2.DeleteBuildTriggerRequest( + project_id=project_id, trigger_id=trigger_id, + ) + self._inner_api_calls["delete_build_trigger"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def create_build( self, project_id, @@ -223,6 +397,15 @@ def create_build( >>> build = {} >>> >>> response = client.create_build(project_id, build) + >>> + >>> def callback(operation_future): + ... # Handle result. + ... result = operation_future.result() + >>> + >>> response.add_done_callback(callback) + >>> + >>> # Handle metadata. + >>> metadata = response.metadata() Args: project_id (str): Required. ID of the project. @@ -240,7 +423,7 @@ def create_build( that is provided to the method. Returns: - A :class:`~google.cloud.devtools.cloudbuild_v1.types.Operation` instance. + A :class:`~google.cloud.devtools.cloudbuild_v1.types._OperationFuture` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -260,7 +443,7 @@ def create_build( client_info=self._client_info, ) - request = cloudbuild_pb2.CreateBuildRequest(project_id=project_id, build=build) + request = cloudbuild_pb2.CreateBuildRequest(project_id=project_id, build=build,) if metadata is None: metadata = [] metadata = list(metadata) @@ -274,9 +457,15 @@ def create_build( ) metadata.append(routing_metadata) - return self._inner_api_calls["create_build"]( + operation = self._inner_api_calls["create_build"]( request, retry=retry, timeout=timeout, metadata=metadata ) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + cloudbuild_pb2.Build, + metadata_type=cloudbuild_pb2.BuildOperationMetadata, + ) def get_build( self, @@ -338,25 +527,21 @@ def get_build( client_info=self._client_info, ) - request = cloudbuild_pb2.GetBuildRequest(project_id=project_id, id=id_) + request = cloudbuild_pb2.GetBuildRequest(project_id=project_id, id=id_,) return self._inner_api_calls["get_build"]( request, retry=retry, timeout=timeout, metadata=metadata ) - def list_builds( + def cancel_build( self, project_id, - page_size=None, - filter_=None, + id_, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, ): """ - Lists previously requested builds. - - Previously requested builds may still be in-progress, or may have finished - successfully or unsuccessfully. + Cancels a build in progress. Example: >>> from google.cloud.devtools import cloudbuild_v1 @@ -366,28 +551,14 @@ def list_builds( >>> # TODO: Initialize `project_id`: >>> project_id = '' >>> - >>> # Iterate over all results - >>> for element in client.list_builds(project_id): - ... # process element - ... pass - >>> - >>> - >>> # Alternatively: + >>> # TODO: Initialize `id_`: + >>> id_ = '' >>> - >>> # Iterate over results one page at a time - >>> for page in client.list_builds(project_id).pages: - ... for element in page: - ... # process element - ... pass + >>> response = client.cancel_build(project_id, id_) Args: project_id (str): Required. ID of the project. - 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 - streaming is performed per-page, this determines the maximum number - of resources in a page. - filter_ (str): The raw filter text to constrain the results. + id_ (str): Required. ID of the build. 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. @@ -398,10 +569,7 @@ def list_builds( that is provided to the method. Returns: - A :class:`~google.api_core.page_iterator.PageIterator` instance. - An iterable of :class:`~google.cloud.devtools.cloudbuild_v1.types.Build` instances. - You can also iterate over the pages of the response - using its `pages` property. + A :class:`~google.cloud.devtools.cloudbuild_v1.types.Build` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -411,48 +579,22 @@ def list_builds( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if "list_builds" not in self._inner_api_calls: + if "cancel_build" not in self._inner_api_calls: self._inner_api_calls[ - "list_builds" + "cancel_build" ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_builds, - default_retry=self._method_configs["ListBuilds"].retry, - default_timeout=self._method_configs["ListBuilds"].timeout, + self.transport.cancel_build, + default_retry=self._method_configs["CancelBuild"].retry, + default_timeout=self._method_configs["CancelBuild"].timeout, client_info=self._client_info, ) - request = cloudbuild_pb2.ListBuildsRequest( - project_id=project_id, page_size=page_size, filter=filter_ - ) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("project_id", project_id)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - iterator = google.api_core.page_iterator.GRPCIterator( - client=None, - method=functools.partial( - self._inner_api_calls["list_builds"], - retry=retry, - timeout=timeout, - metadata=metadata, - ), - request=request, - items_field="builds", - request_token_field="page_token", - response_token_field="next_page_token", + request = cloudbuild_pb2.CancelBuildRequest(project_id=project_id, id=id_,) + return self._inner_api_calls["cancel_build"]( + request, retry=retry, timeout=timeout, metadata=metadata ) - return iterator - def cancel_build( + def retry_build( self, project_id, id_, @@ -461,7 +603,34 @@ def cancel_build( metadata=None, ): """ - Cancels a build in progress. + Creates a new build based on the specified build. + + This method creates a new build using the original build request, which + may or may not result in an identical build. + + For triggered builds: + + - Triggered builds resolve to a precise revision; therefore a retry of + a triggered build will result in a build that uses the same revision. + + For non-triggered builds that specify ``RepoSource``: + + - If the original build built from the tip of a branch, the retried + build will build from the tip of that branch, which may not be the + same revision as the original build. + - If the original build specified a commit sha or revision ID, the + retried build will use the identical source. + + For builds that specify ``StorageSource``: + + - If the original build pulled source from Google Cloud Storage without + specifying the generation of the object, the new build will use the + current object, which may be different from the original build + source. + - If the original build pulled source from Cloud Storage and specified + the generation of the object, the new build will attempt to use the + same object, which may or may not be available depending on the + bucket's lifecycle management settings. Example: >>> from google.cloud.devtools import cloudbuild_v1 @@ -474,11 +643,20 @@ def cancel_build( >>> # TODO: Initialize `id_`: >>> id_ = '' >>> - >>> response = client.cancel_build(project_id, id_) + >>> response = client.retry_build(project_id, id_) + >>> + >>> def callback(operation_future): + ... # Handle result. + ... result = operation_future.result() + >>> + >>> response.add_done_callback(callback) + >>> + >>> # Handle metadata. + >>> metadata = response.metadata() Args: project_id (str): Required. ID of the project. - id_ (str): Required. ID of the build. + id_ (str): Required. Build ID of the original build. 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. @@ -489,7 +667,7 @@ def cancel_build( that is provided to the method. Returns: - A :class:`~google.cloud.devtools.cloudbuild_v1.types.Build` instance. + A :class:`~google.cloud.devtools.cloudbuild_v1.types._OperationFuture` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -499,20 +677,26 @@ def cancel_build( ValueError: If the parameters are invalid. """ # Wrap the transport method to add retry and timeout logic. - if "cancel_build" not in self._inner_api_calls: + if "retry_build" not in self._inner_api_calls: self._inner_api_calls[ - "cancel_build" + "retry_build" ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.cancel_build, - default_retry=self._method_configs["CancelBuild"].retry, - default_timeout=self._method_configs["CancelBuild"].timeout, + self.transport.retry_build, + default_retry=self._method_configs["RetryBuild"].retry, + default_timeout=self._method_configs["RetryBuild"].timeout, client_info=self._client_info, ) - request = cloudbuild_pb2.CancelBuildRequest(project_id=project_id, id=id_) - return self._inner_api_calls["cancel_build"]( + request = cloudbuild_pb2.RetryBuildRequest(project_id=project_id, id=id_,) + operation = self._inner_api_calls["retry_build"]( request, retry=retry, timeout=timeout, metadata=metadata ) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + cloudbuild_pb2.Build, + metadata_type=cloudbuild_pb2.BuildOperationMetadata, + ) def create_build_trigger( self, @@ -577,7 +761,7 @@ def create_build_trigger( ) request = cloudbuild_pb2.CreateBuildTriggerRequest( - project_id=project_id, trigger=trigger + project_id=project_id, trigger=trigger, ) if metadata is None: metadata = [] @@ -624,7 +808,8 @@ def get_build_trigger( Args: project_id (str): Required. ID of the project that owns the trigger. - trigger_id (str): Required. ID of the ``BuildTrigger`` to get. + trigger_id (str): Required. Identifier (``id`` or ``name``) of the ``BuildTrigger`` to + get. 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. @@ -656,7 +841,7 @@ def get_build_trigger( ) request = cloudbuild_pb2.GetBuildTriggerRequest( - project_id=project_id, trigger_id=trigger_id + project_id=project_id, trigger_id=trigger_id, ) return self._inner_api_calls["get_build_trigger"]( request, retry=retry, timeout=timeout, metadata=metadata @@ -666,7 +851,6 @@ def list_build_triggers( self, project_id, page_size=None, - page_token=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, @@ -684,12 +868,27 @@ def list_build_triggers( >>> # TODO: Initialize `project_id`: >>> project_id = '' >>> - >>> response = client.list_build_triggers(project_id) + >>> # Iterate over all results + >>> for element in client.list_build_triggers(project_id): + ... # process element + ... pass + >>> + >>> + >>> # Alternatively: + >>> + >>> # Iterate over results one page at a time + >>> for page in client.list_build_triggers(project_id).pages: + ... for element in page: + ... # process element + ... pass Args: project_id (str): Required. ID of the project for which to list BuildTriggers. - page_size (int): Number of results to return in the list. - page_token (str): Token to provide to skip to a particular spot in the list. + 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 + streaming is performed per-page, this determines the maximum number + of resources in a page. 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. @@ -700,7 +899,10 @@ def list_build_triggers( that is provided to the method. Returns: - A :class:`~google.cloud.devtools.cloudbuild_v1.types.ListBuildTriggersResponse` instance. + A :class:`~google.api_core.page_iterator.PageIterator` instance. + An iterable of :class:`~google.cloud.devtools.cloudbuild_v1.types.BuildTrigger` instances. + You can also iterate over the pages of the response + using its `pages` property. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -721,7 +923,7 @@ def list_build_triggers( ) request = cloudbuild_pb2.ListBuildTriggersRequest( - project_id=project_id, page_size=page_size, page_token=page_token + project_id=project_id, page_size=page_size, ) if metadata is None: metadata = [] @@ -736,72 +938,20 @@ def list_build_triggers( ) metadata.append(routing_metadata) - return self._inner_api_calls["list_build_triggers"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - - def delete_build_trigger( - self, - project_id, - trigger_id, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Deletes a ``BuildTrigger`` by its project ID and trigger ID. - - This API is experimental. - - Example: - >>> from google.cloud.devtools import cloudbuild_v1 - >>> - >>> client = cloudbuild_v1.CloudBuildClient() - >>> - >>> # TODO: Initialize `project_id`: - >>> project_id = '' - >>> - >>> # TODO: Initialize `trigger_id`: - >>> trigger_id = '' - >>> - >>> client.delete_build_trigger(project_id, trigger_id) - - Args: - project_id (str): Required. ID of the project that owns the trigger. - trigger_id (str): Required. ID of the ``BuildTrigger`` to delete. - 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_build_trigger" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_build_trigger" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_build_trigger, - default_retry=self._method_configs["DeleteBuildTrigger"].retry, - default_timeout=self._method_configs["DeleteBuildTrigger"].timeout, - client_info=self._client_info, - ) - - request = cloudbuild_pb2.DeleteBuildTriggerRequest( - project_id=project_id, trigger_id=trigger_id - ) - self._inner_api_calls["delete_build_trigger"]( - request, retry=retry, timeout=timeout, metadata=metadata + iterator = google.api_core.page_iterator.GRPCIterator( + client=None, + method=functools.partial( + self._inner_api_calls["list_build_triggers"], + retry=retry, + timeout=timeout, + metadata=metadata, + ), + request=request, + items_field="triggers", + request_token_field="page_token", + response_token_field="next_page_token", ) + return iterator def update_build_trigger( self, @@ -871,7 +1021,7 @@ def update_build_trigger( ) request = cloudbuild_pb2.UpdateBuildTriggerRequest( - project_id=project_id, trigger_id=trigger_id, trigger=trigger + project_id=project_id, trigger_id=trigger_id, trigger=trigger, ) return self._inner_api_calls["update_build_trigger"]( request, retry=retry, timeout=timeout, metadata=metadata @@ -904,6 +1054,15 @@ def run_build_trigger( >>> source = {} >>> >>> response = client.run_build_trigger(project_id, trigger_id, source) + >>> + >>> def callback(operation_future): + ... # Handle result. + ... result = operation_future.result() + >>> + >>> response.add_done_callback(callback) + >>> + >>> # Handle metadata. + >>> metadata = response.metadata() Args: project_id (str): Required. ID of the project. @@ -922,7 +1081,7 @@ def run_build_trigger( that is provided to the method. Returns: - A :class:`~google.cloud.devtools.cloudbuild_v1.types.Operation` instance. + A :class:`~google.cloud.devtools.cloudbuild_v1.types._OperationFuture` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -943,99 +1102,16 @@ def run_build_trigger( ) request = cloudbuild_pb2.RunBuildTriggerRequest( - project_id=project_id, trigger_id=trigger_id, source=source + project_id=project_id, trigger_id=trigger_id, source=source, ) - return self._inner_api_calls["run_build_trigger"]( + operation = self._inner_api_calls["run_build_trigger"]( request, retry=retry, timeout=timeout, metadata=metadata ) - - def retry_build( - self, - project_id, - id_, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Creates a new build based on the specified build. - - This method creates a new build using the original build request, which - may or may not result in an identical build. - - For triggered builds: - - - Triggered builds resolve to a precise revision; therefore a retry of - a triggered build will result in a build that uses the same revision. - - For non-triggered builds that specify ``RepoSource``: - - - If the original build built from the tip of a branch, the retried - build will build from the tip of that branch, which may not be the - same revision as the original build. - - If the original build specified a commit sha or revision ID, the - retried build will use the identical source. - - For builds that specify ``StorageSource``: - - - If the original build pulled source from Google Cloud Storage without - specifying the generation of the object, the new build will use the - current object, which may be different from the original build - source. - - If the original build pulled source from Cloud Storage and specified - the generation of the object, the new build will attempt to use the - same object, which may or may not be available depending on the - bucket's lifecycle management settings. - - Example: - >>> from google.cloud.devtools import cloudbuild_v1 - >>> - >>> client = cloudbuild_v1.CloudBuildClient() - >>> - >>> # TODO: Initialize `project_id`: - >>> project_id = '' - >>> - >>> # TODO: Initialize `id_`: - >>> id_ = '' - >>> - >>> response = client.retry_build(project_id, id_) - - Args: - project_id (str): Required. ID of the project. - id_ (str): Required. Build ID of the original build. - 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. - - Returns: - A :class:`~google.cloud.devtools.cloudbuild_v1.types.Operation` instance. - - 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 "retry_build" not in self._inner_api_calls: - self._inner_api_calls[ - "retry_build" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.retry_build, - default_retry=self._method_configs["RetryBuild"].retry, - default_timeout=self._method_configs["RetryBuild"].timeout, - client_info=self._client_info, - ) - - request = cloudbuild_pb2.RetryBuildRequest(project_id=project_id, id=id_) - return self._inner_api_calls["retry_build"]( - request, retry=retry, timeout=timeout, metadata=metadata + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + cloudbuild_pb2.Build, + metadata_type=cloudbuild_pb2.BuildOperationMetadata, ) def create_worker_pool( @@ -1047,8 +1123,8 @@ def create_worker_pool( metadata=None, ): """ - Creates a ``WorkerPool`` to run the builds, and returns the new worker - pool. + Creates a ``WorkerPool`` to run the builds, and returns the new + worker pool. This API is experimental. @@ -1096,7 +1172,7 @@ def create_worker_pool( ) request = cloudbuild_pb2.CreateWorkerPoolRequest( - parent=parent, worker_pool=worker_pool + parent=parent, worker_pool=worker_pool, ) return self._inner_api_calls["create_worker_pool"]( request, retry=retry, timeout=timeout, metadata=metadata @@ -1154,7 +1230,7 @@ def get_worker_pool( client_info=self._client_info, ) - request = cloudbuild_pb2.GetWorkerPoolRequest(name=name) + request = cloudbuild_pb2.GetWorkerPoolRequest(name=name,) return self._inner_api_calls["get_worker_pool"]( request, retry=retry, timeout=timeout, metadata=metadata ) @@ -1208,7 +1284,7 @@ def delete_worker_pool( client_info=self._client_info, ) - request = cloudbuild_pb2.DeleteWorkerPoolRequest(name=name) + request = cloudbuild_pb2.DeleteWorkerPoolRequest(name=name,) self._inner_api_calls["delete_worker_pool"]( request, retry=retry, timeout=timeout, metadata=metadata ) @@ -1271,7 +1347,7 @@ def update_worker_pool( ) request = cloudbuild_pb2.UpdateWorkerPoolRequest( - name=name, worker_pool=worker_pool + name=name, worker_pool=worker_pool, ) return self._inner_api_calls["update_worker_pool"]( request, retry=retry, timeout=timeout, metadata=metadata @@ -1328,7 +1404,7 @@ def list_worker_pools( client_info=self._client_info, ) - request = cloudbuild_pb2.ListWorkerPoolsRequest(parent=parent) + request = cloudbuild_pb2.ListWorkerPoolsRequest(parent=parent,) return self._inner_api_calls["list_worker_pools"]( request, retry=retry, timeout=timeout, metadata=metadata ) diff --git a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/cloud_build_client_config.py b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/cloud_build_client_config.py index 6f67ef28527e..abd2089410ff 100644 --- a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/cloud_build_client_config.py +++ b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/cloud_build_client_config.py @@ -17,63 +17,63 @@ } }, "methods": { - "CreateBuild": { + "ListBuilds": { "timeout_millis": 20000, - "retry_codes_name": "non_idempotent", + "retry_codes_name": "idempotent", "retry_params_name": "default", }, - "GetBuild": { - "timeout_millis": 5000, + "DeleteBuildTrigger": { + "timeout_millis": 60000, "retry_codes_name": "idempotent", "retry_params_name": "default", }, - "ListBuilds": { - "timeout_millis": 20000, + "CreateBuild": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default", + }, + "GetBuild": { + "timeout_millis": 60000, "retry_codes_name": "idempotent", "retry_params_name": "default", }, "CancelBuild": { - "timeout_millis": 5000, + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default", + }, + "RetryBuild": { + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, "CreateBuildTrigger": { - "timeout_millis": 5000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, "GetBuildTrigger": { - "timeout_millis": 5000, + "timeout_millis": 60000, "retry_codes_name": "idempotent", "retry_params_name": "default", }, "ListBuildTriggers": { - "timeout_millis": 5000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", - }, - "DeleteBuildTrigger": { - "timeout_millis": 5000, + "timeout_millis": 60000, "retry_codes_name": "idempotent", "retry_params_name": "default", }, "UpdateBuildTrigger": { - "timeout_millis": 5000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, "RunBuildTrigger": { - "timeout_millis": 20000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", - }, - "RetryBuild": { - "timeout_millis": 20000, + "timeout_millis": 180000, "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, "CreateWorkerPool": { - "timeout_millis": 60000, + "timeout_millis": 320000, "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, @@ -83,12 +83,12 @@ "retry_params_name": "default", }, "DeleteWorkerPool": { - "timeout_millis": 60000, + "timeout_millis": 320000, "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, "UpdateWorkerPool": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default", }, diff --git a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/enums.py b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/enums.py index 4776189a05f1..f49b47d2a543 100644 --- a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/enums.py +++ b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/enums.py @@ -33,6 +33,7 @@ class Status(enum.IntEnum): INTERNAL_ERROR (int): Build or step failed due to an internal cause. TIMEOUT (int): Build or step took longer than was allowed. CANCELLED (int): Build or step was canceled by a user. + EXPIRED (int): Build was enqueued for longer than the value of ``queue_ttl``. """ STATUS_UNKNOWN = 0 @@ -43,6 +44,7 @@ class Status(enum.IntEnum): INTERNAL_ERROR = 5 TIMEOUT = 6 CANCELLED = 7 + EXPIRED = 9 class BuildOptions(object): @@ -66,8 +68,9 @@ class LoggingMode(enum.IntEnum): Specifies the logging mode. Attributes: - LOGGING_UNSPECIFIED (int): The service determines the logging mode. The default is ``LEGACY``. Do - not rely on the default logging behavior as it may change in the future. + LOGGING_UNSPECIFIED (int): The service determines the logging mode. The default is ``LEGACY``. + Do not rely on the default logging behavior as it may change in the + future. LEGACY (int): Stackdriver logging and Cloud Storage logging are enabled. GCS_ONLY (int): Only Cloud Storage logging is enabled. """ @@ -174,7 +177,8 @@ class Status(enum.IntEnum): STATUS_UNSPECIFIED (int): Status of the ``WorkerPool`` is unknown. CREATING (int): ``WorkerPool`` is being created. RUNNING (int): ``WorkerPool`` is running. - DELETING (int): ``WorkerPool`` is being deleted: cancelling builds and draining workers. + DELETING (int): ``WorkerPool`` is being deleted: cancelling builds and draining + workers. DELETED (int): ``WorkerPool`` is deleted. """ diff --git a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/transports/cloud_build_grpc_transport.py b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/transports/cloud_build_grpc_transport.py index 632d895cd565..9bec829663b3 100644 --- a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/transports/cloud_build_grpc_transport.py +++ b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/gapic/transports/cloud_build_grpc_transport.py @@ -16,6 +16,7 @@ import google.api_core.grpc_helpers +import google.api_core.operations_v1 from google.cloud.devtools.cloudbuild_v1.proto import cloudbuild_pb2_grpc @@ -53,7 +54,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive." + "The `channel` and `credentials` arguments are mutually " "exclusive.", ) # Create the channel. @@ -71,7 +72,16 @@ def __init__( # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. - self._stubs = {"cloud_build_stub": cloudbuild_pb2_grpc.CloudBuildStub(channel)} + self._stubs = { + "cloud_build_stub": cloudbuild_pb2_grpc.CloudBuildStub(channel), + } + + # Because this API includes a method that returns a + # long-running operation (proto: google.longrunning.Operation), + # instantiate an LRO client. + self._operations_client = google.api_core.operations_v1.OperationsClient( + channel + ) @classmethod def create_channel( @@ -105,6 +115,37 @@ def channel(self): """ return self._channel + @property + def list_builds(self): + """Return the gRPC stub for :meth:`CloudBuildClient.list_builds`. + + Lists previously requested builds. + + Previously requested builds may still be in-progress, or may have finished + successfully or unsuccessfully. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["cloud_build_stub"].ListBuilds + + @property + def delete_build_trigger(self): + """Return the gRPC stub for :meth:`CloudBuildClient.delete_build_trigger`. + + Deletes a ``BuildTrigger`` by its project ID and trigger ID. + + This API is experimental. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["cloud_build_stub"].DeleteBuildTrigger + @property def create_build(self): """Return the gRPC stub for :meth:`CloudBuildClient.create_build`. @@ -139,33 +180,57 @@ def get_build(self): return self._stubs["cloud_build_stub"].GetBuild @property - def list_builds(self): - """Return the gRPC stub for :meth:`CloudBuildClient.list_builds`. - - Lists previously requested builds. + def cancel_build(self): + """Return the gRPC stub for :meth:`CloudBuildClient.cancel_build`. - Previously requested builds may still be in-progress, or may have finished - successfully or unsuccessfully. + Cancels a build in progress. Returns: Callable: A callable which accepts the appropriate deserialized request object and returns a deserialized response object. """ - return self._stubs["cloud_build_stub"].ListBuilds + return self._stubs["cloud_build_stub"].CancelBuild @property - def cancel_build(self): - """Return the gRPC stub for :meth:`CloudBuildClient.cancel_build`. + def retry_build(self): + """Return the gRPC stub for :meth:`CloudBuildClient.retry_build`. - Cancels a build in progress. + Creates a new build based on the specified build. + + This method creates a new build using the original build request, which + may or may not result in an identical build. + + For triggered builds: + + - Triggered builds resolve to a precise revision; therefore a retry of + a triggered build will result in a build that uses the same revision. + + For non-triggered builds that specify ``RepoSource``: + + - If the original build built from the tip of a branch, the retried + build will build from the tip of that branch, which may not be the + same revision as the original build. + - If the original build specified a commit sha or revision ID, the + retried build will use the identical source. + + For builds that specify ``StorageSource``: + + - If the original build pulled source from Google Cloud Storage without + specifying the generation of the object, the new build will use the + current object, which may be different from the original build + source. + - If the original build pulled source from Cloud Storage and specified + the generation of the object, the new build will attempt to use the + same object, which may or may not be available depending on the + bucket's lifecycle management settings. Returns: Callable: A callable which accepts the appropriate deserialized request object and returns a deserialized response object. """ - return self._stubs["cloud_build_stub"].CancelBuild + return self._stubs["cloud_build_stub"].RetryBuild @property def create_build_trigger(self): @@ -212,21 +277,6 @@ def list_build_triggers(self): """ return self._stubs["cloud_build_stub"].ListBuildTriggers - @property - def delete_build_trigger(self): - """Return the gRPC stub for :meth:`CloudBuildClient.delete_build_trigger`. - - Deletes a ``BuildTrigger`` by its project ID and trigger ID. - - This API is experimental. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["cloud_build_stub"].DeleteBuildTrigger - @property def update_build_trigger(self): """Return the gRPC stub for :meth:`CloudBuildClient.update_build_trigger`. @@ -255,52 +305,12 @@ def run_build_trigger(self): """ return self._stubs["cloud_build_stub"].RunBuildTrigger - @property - def retry_build(self): - """Return the gRPC stub for :meth:`CloudBuildClient.retry_build`. - - Creates a new build based on the specified build. - - This method creates a new build using the original build request, which - may or may not result in an identical build. - - For triggered builds: - - - Triggered builds resolve to a precise revision; therefore a retry of - a triggered build will result in a build that uses the same revision. - - For non-triggered builds that specify ``RepoSource``: - - - If the original build built from the tip of a branch, the retried - build will build from the tip of that branch, which may not be the - same revision as the original build. - - If the original build specified a commit sha or revision ID, the - retried build will use the identical source. - - For builds that specify ``StorageSource``: - - - If the original build pulled source from Google Cloud Storage without - specifying the generation of the object, the new build will use the - current object, which may be different from the original build - source. - - If the original build pulled source from Cloud Storage and specified - the generation of the object, the new build will attempt to use the - same object, which may or may not be available depending on the - bucket's lifecycle management settings. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["cloud_build_stub"].RetryBuild - @property def create_worker_pool(self): """Return the gRPC stub for :meth:`CloudBuildClient.create_worker_pool`. - Creates a ``WorkerPool`` to run the builds, and returns the new worker - pool. + Creates a ``WorkerPool`` to run the builds, and returns the new + worker pool. This API is experimental. diff --git a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/proto/cloudbuild.proto b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/proto/cloudbuild.proto index 1cf045394e33..40692c3e8f62 100644 --- a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/proto/cloudbuild.proto +++ b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/proto/cloudbuild.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// 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. @@ -11,7 +11,6 @@ // 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. -// syntax = "proto3"; @@ -29,6 +28,7 @@ option go_package = "google.golang.org/genproto/googleapis/devtools/cloudbuild/v option java_multiple_files = true; option java_package = "com.google.cloudbuild.v1"; option objc_class_prefix = "GCB"; +option ruby_package = "Google::Cloud::Build::V1"; // Creates and manages builds on Google Cloud Platform. // @@ -271,8 +271,7 @@ message RepoSource { // project ID requesting the build is assumed. string project_id = 1; - // Name of the Cloud Source Repository. If omitted, the name "default" is - // assumed. + // Required. Name of the Cloud Source Repository. string repo_name = 2; // A revision within the Cloud Source Repository must be specified in @@ -299,6 +298,14 @@ message RepoSource { // This must be a relative path. If a step's `dir` is specified and is an // absolute path, this value is ignored for that step's execution. string dir = 7; + + // Only trigger a build if the revision regex does NOT match the revision + // regex. + bool invert_regex = 8; + + // Substitutions to use in a triggered build. + // Should only be used with RunBuildTrigger + map substitutions = 9; } // Location of the source in a supported storage service. @@ -324,7 +331,7 @@ message BuiltImage { string digest = 3; // Output only. Stores timing information for pushing the specified image. - TimeSpan push_timing = 4; + TimeSpan push_timing = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A step in the build pipeline. @@ -405,7 +412,7 @@ message BuildStep { repeated Volume volumes = 9; // Output only. Stores timing information for executing this build step. - TimeSpan timing = 10; + TimeSpan timing = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Stores timing information for pulling this build step's // builder image only. @@ -520,13 +527,16 @@ message Build { // Build or step was canceled by a user. CANCELLED = 7; + + // Build was enqueued for longer than the value of `queue_ttl`. + EXPIRED = 9; } // Output only. Unique identifier of the build. - string id = 1; + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. ID of the project. - string project_id = 16; + string project_id = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Status of the build. Status status = 2; @@ -541,19 +551,22 @@ message Build { repeated BuildStep steps = 11; // Output only. Results of the build. - Results results = 10; + Results results = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time at which the request to create the build was received. - google.protobuf.Timestamp create_time = 6; + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time at which execution of the build was started. - google.protobuf.Timestamp start_time = 7; + google.protobuf.Timestamp start_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time at which execution of the build was finished. // // The difference between finish_time and start_time is the duration of the // build's execution. - google.protobuf.Timestamp finish_time = 8; + google.protobuf.Timestamp finish_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Amount of time that this build should be allowed to run, to second // granularity. If this amount of time elapses, work on the build will cease @@ -574,6 +587,13 @@ message Build { // `FAILURE`. repeated string images = 13; + // TTL in queue for this build. If provided and the build is enqueued longer + // than this value, the build will expire and the build status will be + // `EXPIRED`. + // + // The TTL starts ticking from create_time. + google.protobuf.Duration queue_ttl = 40; + // Artifacts produced by the build that should be uploaded upon // successful completion of all build steps. Artifacts artifacts = 37; @@ -595,7 +615,7 @@ message Build { BuildOptions options = 23; // Output only. URL to logs for this build in Google Cloud Console. - string log_url = 25; + string log_url = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; // Substitutions data for `Build` resource. map substitutions = 29; @@ -615,7 +635,7 @@ message Build { // // If the build does not specify source or images, // these keys will not be included. - map timing = 33; + map timing = 33 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Artifacts produced by a build that should be uploaded upon @@ -700,7 +720,8 @@ message SourceProvenance { // // If the build source came in a single package such as a gzipped tarfile // (`.tar.gz`), the `FileHash` will be for the single path to that file. - map file_hashes = 4; + map file_hashes = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Container message for hashes of byte content of files, used in @@ -801,12 +822,17 @@ message CancelBuildRequest { // changes. message BuildTrigger { // Output only. Unique identifier of the trigger. - string id = 1; + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Human-readable description of this trigger. string description = 10; - // User assigned name of the trigger. Must be unique within the project. + // User-assigned name of the trigger. Must be unique within the project. + // Trigger names must meet the following requirements: + // + // + They must contain only alphanumeric characters and dashes. + // + They can be 1-64 characters long. + // + They must begin and end with an alphanumeric character. string name = 21; // Tags for annotation of a `BuildTrigger` @@ -838,16 +864,19 @@ message BuildTrigger { } // Output only. Time when the trigger was created. - google.protobuf.Timestamp create_time = 5; + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // If true, the trigger will never result in a build. bool disabled = 9; - // Substitutions data for Build resource. + // Substitutions for Build resource. The keys must match the following + // regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the + // keys in bindings. map substitutions = 11; // ignored_files and included_files are file glob matches using - // http://godoc/pkg/path/filepath#Match extended with support for "**". + // https://golang.org/pkg/path/filepath/#Match extended with support for "**". // // If ignored_files and changed files are both empty, then they are // not used to determine whether or not to trigger a build. @@ -919,9 +948,12 @@ message PullRequestFilter { string branch = 2; } - // Whether to block builds on a "/gcbrun" comment from a repository owner or + // Whether to block builds on a "/gcbrun" comment from a repository admin or // collaborator. CommentControl comment_control = 5; + + // If true, branches that do NOT match the git_ref will trigger a build. + bool invert_regex = 6; } // Push contains filter properties for matching GitHub git pushes. @@ -941,6 +973,10 @@ message PushFilter { // RE2 and described at https://github.com/google/re2/wiki/Syntax string tag = 3; } + + // When true, only trigger a build if the revision regex does NOT match the + // git_ref regex. + bool invert_regex = 4; } // Request to create a new `BuildTrigger`. @@ -957,7 +993,7 @@ message GetBuildTriggerRequest { // Required. ID of the project that owns the trigger. string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. ID of the `BuildTrigger` to get. + // Required. Identifier (`id` or `name`) of the `BuildTrigger` to get. string trigger_id = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -1087,9 +1123,10 @@ message BuildOptions { // Storage. LogStreamingOption log_streaming_option = 5; - // Option to specify a `WorkerPool` for the build. User specifies the pool - // with the format "[WORKERPOOL_PROJECT_ID]/[WORKERPOOL_NAME]". - // This is an experimental field. + // Option to specify a `WorkerPool` for the build. + // Format: projects/{project}/workerPools/{workerPool} + // + // This field is experimental. string worker_pool = 7; // Option to specify the logging mode, which determines where the logs are diff --git a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/proto/cloudbuild_pb2.py b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/proto/cloudbuild_pb2.py index 7250837be734..573dd9a1a77d 100644 --- a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/proto/cloudbuild_pb2.py +++ b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/proto/cloudbuild_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/devtools/cloudbuild_v1/proto/cloudbuild.proto +# source: google/cloud/devtools/cloudbuild_v1/proto/cloudbuild.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -27,15 +24,12 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name="google/devtools/cloudbuild_v1/proto/cloudbuild.proto", + name="google/cloud/devtools/cloudbuild_v1/proto/cloudbuild.proto", package="google.devtools.cloudbuild.v1", syntax="proto3", - serialized_options=_b( - "\n\030com.google.cloudbuild.v1P\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudbuild/v1;cloudbuild\242\002\003GCB" - ), - serialized_pb=_b( - '\n4google/devtools/cloudbuild_v1/proto/cloudbuild.proto\x12\x1dgoogle.devtools.cloudbuild.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto"=\n\x11RetryBuildRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x02"\x8a\x01\n\x16RunBuildTriggerRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ntrigger_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x06source\x18\x03 \x01(\x0b\x32).google.devtools.cloudbuild.v1.RepoSourceB\x03\xe0\x41\x02"C\n\rStorageSource\x12\x0e\n\x06\x62ucket\x18\x01 \x01(\t\x12\x0e\n\x06object\x18\x02 \x01(\t\x12\x12\n\ngeneration\x18\x03 \x01(\x03"\x8d\x01\n\nRepoSource\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x11\n\trepo_name\x18\x02 \x01(\t\x12\x15\n\x0b\x62ranch_name\x18\x03 \x01(\tH\x00\x12\x12\n\x08tag_name\x18\x04 \x01(\tH\x00\x12\x14\n\ncommit_sha\x18\x05 \x01(\tH\x00\x12\x0b\n\x03\x64ir\x18\x07 \x01(\tB\n\n\x08revision"\x9c\x01\n\x06Source\x12\x46\n\x0estorage_source\x18\x02 \x01(\x0b\x32,.google.devtools.cloudbuild.v1.StorageSourceH\x00\x12@\n\x0brepo_source\x18\x03 \x01(\x0b\x32).google.devtools.cloudbuild.v1.RepoSourceH\x00\x42\x08\n\x06source"h\n\nBuiltImage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x64igest\x18\x03 \x01(\t\x12<\n\x0bpush_timing\x18\x04 \x01(\x0b\x32\'.google.devtools.cloudbuild.v1.TimeSpan"\x9f\x03\n\tBuildStep\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03\x65nv\x18\x02 \x03(\t\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\t\x12\x0b\n\x03\x64ir\x18\x04 \x01(\t\x12\n\n\x02id\x18\x05 \x01(\t\x12\x10\n\x08wait_for\x18\x06 \x03(\t\x12\x12\n\nentrypoint\x18\x07 \x01(\t\x12\x12\n\nsecret_env\x18\x08 \x03(\t\x12\x36\n\x07volumes\x18\t \x03(\x0b\x32%.google.devtools.cloudbuild.v1.Volume\x12\x37\n\x06timing\x18\n \x01(\x0b\x32\'.google.devtools.cloudbuild.v1.TimeSpan\x12<\n\x0bpull_timing\x18\r \x01(\x0b\x32\'.google.devtools.cloudbuild.v1.TimeSpan\x12*\n\x07timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x06status\x18\x0c \x01(\x0e\x32+.google.devtools.cloudbuild.v1.Build.Status"$\n\x06Volume\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t"\xef\x01\n\x07Results\x12\x39\n\x06images\x18\x02 \x03(\x0b\x32).google.devtools.cloudbuild.v1.BuiltImage\x12\x19\n\x11\x62uild_step_images\x18\x03 \x03(\t\x12\x19\n\x11\x61rtifact_manifest\x18\x04 \x01(\t\x12\x15\n\rnum_artifacts\x18\x05 \x01(\x03\x12\x1a\n\x12\x62uild_step_outputs\x18\x06 \x03(\x0c\x12@\n\x0f\x61rtifact_timing\x18\x07 \x01(\x0b\x32\'.google.devtools.cloudbuild.v1.TimeSpan"`\n\x0e\x41rtifactResult\x12\x10\n\x08location\x18\x01 \x01(\t\x12<\n\tfile_hash\x18\x02 \x03(\x0b\x32).google.devtools.cloudbuild.v1.FileHashes"\xe0\t\n\x05\x42uild\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x10 \x01(\t\x12;\n\x06status\x18\x02 \x01(\x0e\x32+.google.devtools.cloudbuild.v1.Build.Status\x12\x15\n\rstatus_detail\x18\x18 \x01(\t\x12\x35\n\x06source\x18\x03 \x01(\x0b\x32%.google.devtools.cloudbuild.v1.Source\x12\x37\n\x05steps\x18\x0b \x03(\x0b\x32(.google.devtools.cloudbuild.v1.BuildStep\x12\x37\n\x07results\x18\n \x01(\x0b\x32&.google.devtools.cloudbuild.v1.Results\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inish_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12*\n\x07timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0e\n\x06images\x18\r \x03(\t\x12;\n\tartifacts\x18% \x01(\x0b\x32(.google.devtools.cloudbuild.v1.Artifacts\x12\x13\n\x0blogs_bucket\x18\x13 \x01(\t\x12J\n\x11source_provenance\x18\x15 \x01(\x0b\x32/.google.devtools.cloudbuild.v1.SourceProvenance\x12\x18\n\x10\x62uild_trigger_id\x18\x16 \x01(\t\x12<\n\x07options\x18\x17 \x01(\x0b\x32+.google.devtools.cloudbuild.v1.BuildOptions\x12\x0f\n\x07log_url\x18\x19 \x01(\t\x12N\n\rsubstitutions\x18\x1d \x03(\x0b\x32\x37.google.devtools.cloudbuild.v1.Build.SubstitutionsEntry\x12\x0c\n\x04tags\x18\x1f \x03(\t\x12\x36\n\x07secrets\x18 \x03(\x0b\x32%.google.devtools.cloudbuild.v1.Secret\x12@\n\x06timing\x18! \x03(\x0b\x32\x30.google.devtools.cloudbuild.v1.Build.TimingEntry\x1a\x34\n\x12SubstitutionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aV\n\x0bTimingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.devtools.cloudbuild.v1.TimeSpan:\x02\x38\x01"\x7f\n\x06Status\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07WORKING\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\x0b\n\x07\x46\x41ILURE\x10\x04\x12\x12\n\x0eINTERNAL_ERROR\x10\x05\x12\x0b\n\x07TIMEOUT\x10\x06\x12\r\n\tCANCELLED\x10\x07"\xd3\x01\n\tArtifacts\x12\x0e\n\x06images\x18\x01 \x03(\t\x12I\n\x07objects\x18\x02 \x01(\x0b\x32\x38.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects\x1ak\n\x0f\x41rtifactObjects\x12\x10\n\x08location\x18\x01 \x01(\t\x12\r\n\x05paths\x18\x02 \x03(\t\x12\x37\n\x06timing\x18\x03 \x01(\x0b\x32\'.google.devtools.cloudbuild.v1.TimeSpan"h\n\x08TimeSpan\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"M\n\x16\x42uildOperationMetadata\x12\x33\n\x05\x62uild\x18\x01 \x01(\x0b\x32$.google.devtools.cloudbuild.v1.Build"\xde\x02\n\x10SourceProvenance\x12M\n\x17resolved_storage_source\x18\x03 \x01(\x0b\x32,.google.devtools.cloudbuild.v1.StorageSource\x12G\n\x14resolved_repo_source\x18\x06 \x01(\x0b\x32).google.devtools.cloudbuild.v1.RepoSource\x12T\n\x0b\x66ile_hashes\x18\x04 \x03(\x0b\x32?.google.devtools.cloudbuild.v1.SourceProvenance.FileHashesEntry\x1a\\\n\x0f\x46ileHashesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.devtools.cloudbuild.v1.FileHashes:\x02\x38\x01"D\n\nFileHashes\x12\x36\n\tfile_hash\x18\x01 \x03(\x0b\x32#.google.devtools.cloudbuild.v1.Hash"|\n\x04Hash\x12:\n\x04type\x18\x01 \x01(\x0e\x32,.google.devtools.cloudbuild.v1.Hash.HashType\x12\r\n\x05value\x18\x02 \x01(\x0c")\n\x08HashType\x12\x08\n\x04NONE\x10\x00\x12\n\n\x06SHA256\x10\x01\x12\x07\n\x03MD5\x10\x02"\x9a\x01\n\x06Secret\x12\x14\n\x0ckms_key_name\x18\x01 \x01(\t\x12H\n\nsecret_env\x18\x03 \x03(\x0b\x32\x34.google.devtools.cloudbuild.v1.Secret.SecretEnvEntry\x1a\x30\n\x0eSecretEnvEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01"g\n\x12\x43reateBuildRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x38\n\x05\x62uild\x18\x02 \x01(\x0b\x32$.google.devtools.cloudbuild.v1.BuildB\x03\xe0\x41\x02";\n\x0fGetBuildRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x02"c\n\x11ListBuildsRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x08 \x01(\t"c\n\x12ListBuildsResponse\x12\x34\n\x06\x62uilds\x18\x01 \x03(\x0b\x32$.google.devtools.cloudbuild.v1.Build\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t">\n\x12\x43\x61ncelBuildRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x02"\xaf\x04\n\x0c\x42uildTrigger\x12\n\n\x02id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\n \x01(\t\x12\x0c\n\x04name\x18\x15 \x01(\t\x12\x0c\n\x04tags\x18\x13 \x03(\t\x12\x43\n\x10trigger_template\x18\x07 \x01(\x0b\x32).google.devtools.cloudbuild.v1.RepoSource\x12\x41\n\x06github\x18\r \x01(\x0b\x32\x31.google.devtools.cloudbuild.v1.GitHubEventsConfig\x12\x35\n\x05\x62uild\x18\x04 \x01(\x0b\x32$.google.devtools.cloudbuild.v1.BuildH\x00\x12\x12\n\x08\x66ilename\x18\x08 \x01(\tH\x00\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08\x64isabled\x18\t \x01(\x08\x12U\n\rsubstitutions\x18\x0b \x03(\x0b\x32>.google.devtools.cloudbuild.v1.BuildTrigger.SubstitutionsEntry\x12\x15\n\rignored_files\x18\x0f \x03(\t\x12\x16\n\x0eincluded_files\x18\x10 \x03(\t\x1a\x34\n\x12SubstitutionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x10\n\x0e\x62uild_template"\xdc\x01\n\x12GitHubEventsConfig\x12\x1b\n\x0finstallation_id\x18\x01 \x01(\x03\x42\x02\x18\x01\x12\r\n\x05owner\x18\x06 \x01(\t\x12\x0c\n\x04name\x18\x07 \x01(\t\x12H\n\x0cpull_request\x18\x04 \x01(\x0b\x32\x30.google.devtools.cloudbuild.v1.PullRequestFilterH\x00\x12\x39\n\x04push\x18\x05 \x01(\x0b\x32).google.devtools.cloudbuild.v1.PushFilterH\x00\x42\x07\n\x05\x65vent"\xc9\x01\n\x11PullRequestFilter\x12\x10\n\x06\x62ranch\x18\x02 \x01(\tH\x00\x12X\n\x0f\x63omment_control\x18\x05 \x01(\x0e\x32?.google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl"=\n\x0e\x43ommentControl\x12\x15\n\x11\x43OMMENTS_DISABLED\x10\x00\x12\x14\n\x10\x43OMMENTS_ENABLED\x10\x01\x42\t\n\x07git_ref"8\n\nPushFilter\x12\x10\n\x06\x62ranch\x18\x02 \x01(\tH\x00\x12\r\n\x03tag\x18\x03 \x01(\tH\x00\x42\t\n\x07git_ref"w\n\x19\x43reateBuildTriggerRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x07trigger\x18\x02 \x01(\x0b\x32+.google.devtools.cloudbuild.v1.BuildTriggerB\x03\xe0\x41\x02"J\n\x16GetBuildTriggerRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ntrigger_id\x18\x02 \x01(\tB\x03\xe0\x41\x02"Z\n\x18ListBuildTriggersRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"s\n\x19ListBuildTriggersResponse\x12=\n\x08triggers\x18\x01 \x03(\x0b\x32+.google.devtools.cloudbuild.v1.BuildTrigger\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"M\n\x19\x44\x65leteBuildTriggerRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ntrigger_id\x18\x02 \x01(\tB\x03\xe0\x41\x02"\x90\x01\n\x19UpdateBuildTriggerRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ntrigger_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x07trigger\x18\x03 \x01(\x0b\x32+.google.devtools.cloudbuild.v1.BuildTriggerB\x03\xe0\x41\x02"\xc6\x07\n\x0c\x42uildOptions\x12L\n\x16source_provenance_hash\x18\x01 \x03(\x0e\x32,.google.devtools.cloudbuild.v1.Hash.HashType\x12Y\n\x17requested_verify_option\x18\x02 \x01(\x0e\x32\x38.google.devtools.cloudbuild.v1.BuildOptions.VerifyOption\x12M\n\x0cmachine_type\x18\x03 \x01(\x0e\x32\x37.google.devtools.cloudbuild.v1.BuildOptions.MachineType\x12\x14\n\x0c\x64isk_size_gb\x18\x06 \x01(\x03\x12[\n\x13substitution_option\x18\x04 \x01(\x0e\x32>.google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption\x12\\\n\x14log_streaming_option\x18\x05 \x01(\x0e\x32>.google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption\x12\x13\n\x0bworker_pool\x18\x07 \x01(\t\x12H\n\x07logging\x18\x0b \x01(\x0e\x32\x37.google.devtools.cloudbuild.v1.BuildOptions.LoggingMode\x12\x0b\n\x03\x65nv\x18\x0c \x03(\t\x12\x12\n\nsecret_env\x18\r \x03(\t\x12\x36\n\x07volumes\x18\x0e \x03(\x0b\x32%.google.devtools.cloudbuild.v1.Volume".\n\x0cVerifyOption\x12\x10\n\x0cNOT_VERIFIED\x10\x00\x12\x0c\n\x08VERIFIED\x10\x01"C\n\x0bMachineType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x10\n\x0cN1_HIGHCPU_8\x10\x01\x12\x11\n\rN1_HIGHCPU_32\x10\x02"5\n\x12SubstitutionOption\x12\x0e\n\nMUST_MATCH\x10\x00\x12\x0f\n\x0b\x41LLOW_LOOSE\x10\x01"G\n\x12LogStreamingOption\x12\x12\n\x0eSTREAM_DEFAULT\x10\x00\x12\r\n\tSTREAM_ON\x10\x01\x12\x0e\n\nSTREAM_OFF\x10\x02"@\n\x0bLoggingMode\x12\x17\n\x13LOGGING_UNSPECIFIED\x10\x00\x12\n\n\x06LEGACY\x10\x01\x12\x0c\n\x08GCS_ONLY\x10\x02"\xf4\x04\n\nWorkerPool\x12\x0c\n\x04name\x18\x0e \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x1d\n\x15service_account_email\x18\x03 \x01(\t\x12\x14\n\x0cworker_count\x18\x04 \x01(\x03\x12\x42\n\rworker_config\x18\x10 \x01(\x0b\x32+.google.devtools.cloudbuild.v1.WorkerConfig\x12\x41\n\x07regions\x18\t \x03(\x0e\x32\x30.google.devtools.cloudbuild.v1.WorkerPool.Region\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x06status\x18\r \x01(\x0e\x32\x30.google.devtools.cloudbuild.v1.WorkerPool.Status"[\n\x06Region\x12\x16\n\x12REGION_UNSPECIFIED\x10\x00\x12\x0f\n\x0bUS_CENTRAL1\x10\x01\x12\x0c\n\x08US_WEST1\x10\x02\x12\x0c\n\x08US_EAST1\x10\x03\x12\x0c\n\x08US_EAST4\x10\x04"V\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0b\n\x07\x44\x45LETED\x10\x04"\x80\x01\n\x0cWorkerConfig\x12\x14\n\x0cmachine_type\x18\x01 \x01(\t\x12\x14\n\x0c\x64isk_size_gb\x18\x02 \x01(\x03\x12\x37\n\x07network\x18\x03 \x01(\x0b\x32&.google.devtools.cloudbuild.v1.Network\x12\x0b\n\x03tag\x18\x04 \x01(\t"B\n\x07Network\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0f\n\x07network\x18\x02 \x01(\t\x12\x12\n\nsubnetwork\x18\x03 \x01(\t"i\n\x17\x43reateWorkerPoolRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12>\n\x0bworker_pool\x18\x02 \x01(\x0b\x32).google.devtools.cloudbuild.v1.WorkerPool"$\n\x14GetWorkerPoolRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\'\n\x17\x44\x65leteWorkerPoolRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"g\n\x17UpdateWorkerPoolRequest\x12\x0c\n\x04name\x18\x02 \x01(\t\x12>\n\x0bworker_pool\x18\x03 \x01(\x0b\x32).google.devtools.cloudbuild.v1.WorkerPool"(\n\x16ListWorkerPoolsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t"Z\n\x17ListWorkerPoolsResponse\x12?\n\x0cworker_pools\x18\x01 \x03(\x0b\x32).google.devtools.cloudbuild.v1.WorkerPool2\xa1\x16\n\nCloudBuild\x12\xc5\x01\n\x0b\x43reateBuild\x12\x31.google.devtools.cloudbuild.v1.CreateBuildRequest\x1a\x1d.google.longrunning.Operation"d\x82\xd3\xe4\x93\x02)" /v1/projects/{project_id}/builds:\x05\x62uild\xda\x41\x10project_id,build\xca\x41\x1f\n\x05\x42uild\x12\x16\x42uildOperationMetadata\x12\x9f\x01\n\x08GetBuild\x12..google.devtools.cloudbuild.v1.GetBuildRequest\x1a$.google.devtools.cloudbuild.v1.Build"=\x82\xd3\xe4\x93\x02\'\x12%/v1/projects/{project_id}/builds/{id}\xda\x41\rproject_id,id\x12\xaf\x01\n\nListBuilds\x12\x30.google.devtools.cloudbuild.v1.ListBuildsRequest\x1a\x31.google.devtools.cloudbuild.v1.ListBuildsResponse"<\x82\xd3\xe4\x93\x02"\x12 /v1/projects/{project_id}/builds\xda\x41\x11project_id,filter\x12\xaf\x01\n\x0b\x43\x61ncelBuild\x12\x31.google.devtools.cloudbuild.v1.CancelBuildRequest\x1a$.google.devtools.cloudbuild.v1.Build"G\x82\xd3\xe4\x93\x02\x31",/v1/projects/{project_id}/builds/{id}:cancel:\x01*\xda\x41\rproject_id,id\x12\xc7\x01\n\nRetryBuild\x12\x30.google.devtools.cloudbuild.v1.RetryBuildRequest\x1a\x1d.google.longrunning.Operation"h\x82\xd3\xe4\x93\x02\x30"+/v1/projects/{project_id}/builds/{id}:retry:\x01*\xda\x41\rproject_id,id\xca\x41\x1f\n\x05\x42uild\x12\x16\x42uildOperationMetadata\x12\xc5\x01\n\x12\x43reateBuildTrigger\x12\x38.google.devtools.cloudbuild.v1.CreateBuildTriggerRequest\x1a+.google.devtools.cloudbuild.v1.BuildTrigger"H\x82\xd3\xe4\x93\x02-""/v1/projects/{project_id}/triggers:\x07trigger\xda\x41\x12project_id,trigger\x12\xc6\x01\n\x0fGetBuildTrigger\x12\x35.google.devtools.cloudbuild.v1.GetBuildTriggerRequest\x1a+.google.devtools.cloudbuild.v1.BuildTrigger"O\x82\xd3\xe4\x93\x02\x31\x12//v1/projects/{project_id}/triggers/{trigger_id}\xda\x41\x15project_id,trigger_id\x12\xbf\x01\n\x11ListBuildTriggers\x12\x37.google.devtools.cloudbuild.v1.ListBuildTriggersRequest\x1a\x38.google.devtools.cloudbuild.v1.ListBuildTriggersResponse"7\x82\xd3\xe4\x93\x02$\x12"/v1/projects/{project_id}/triggers\xda\x41\nproject_id\x12\xb7\x01\n\x12\x44\x65leteBuildTrigger\x12\x38.google.devtools.cloudbuild.v1.DeleteBuildTriggerRequest\x1a\x16.google.protobuf.Empty"O\x82\xd3\xe4\x93\x02\x31*//v1/projects/{project_id}/triggers/{trigger_id}\xda\x41\x15project_id,trigger_id\x12\xdd\x01\n\x12UpdateBuildTrigger\x12\x38.google.devtools.cloudbuild.v1.UpdateBuildTriggerRequest\x1a+.google.devtools.cloudbuild.v1.BuildTrigger"`\x82\xd3\xe4\x93\x02:2//v1/projects/{project_id}/triggers/{trigger_id}:\x07trigger\xda\x41\x1dproject_id,trigger_id,trigger\x12\xee\x01\n\x0fRunBuildTrigger\x12\x35.google.devtools.cloudbuild.v1.RunBuildTriggerRequest\x1a\x1d.google.longrunning.Operation"\x84\x01\x82\xd3\xe4\x93\x02="3/v1/projects/{project_id}/triggers/{trigger_id}:run:\x06source\xda\x41\x1cproject_id,trigger_id,source\xca\x41\x1f\n\x05\x42uild\x12\x16\x42uildOperationMetadata\x12w\n\x10\x43reateWorkerPool\x12\x36.google.devtools.cloudbuild.v1.CreateWorkerPoolRequest\x1a).google.devtools.cloudbuild.v1.WorkerPool"\x00\x12q\n\rGetWorkerPool\x12\x33.google.devtools.cloudbuild.v1.GetWorkerPoolRequest\x1a).google.devtools.cloudbuild.v1.WorkerPool"\x00\x12\x64\n\x10\x44\x65leteWorkerPool\x12\x36.google.devtools.cloudbuild.v1.DeleteWorkerPoolRequest\x1a\x16.google.protobuf.Empty"\x00\x12w\n\x10UpdateWorkerPool\x12\x36.google.devtools.cloudbuild.v1.UpdateWorkerPoolRequest\x1a).google.devtools.cloudbuild.v1.WorkerPool"\x00\x12\x82\x01\n\x0fListWorkerPools\x12\x35.google.devtools.cloudbuild.v1.ListWorkerPoolsRequest\x1a\x36.google.devtools.cloudbuild.v1.ListWorkerPoolsResponse"\x00\x1aM\xca\x41\x19\x63loudbuild.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBk\n\x18\x63om.google.cloudbuild.v1P\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudbuild/v1;cloudbuild\xa2\x02\x03GCBb\x06proto3' - ), + serialized_options=b"\n\030com.google.cloudbuild.v1P\001ZGgoogle.golang.org/genproto/googleapis/devtools/cloudbuild/v1;cloudbuild\242\002\003GCB\352\002\030Google::Cloud::Build::V1", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n:google/cloud/devtools/cloudbuild_v1/proto/cloudbuild.proto\x12\x1dgoogle.devtools.cloudbuild.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto"=\n\x11RetryBuildRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x02"\x8a\x01\n\x16RunBuildTriggerRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ntrigger_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x06source\x18\x03 \x01(\x0b\x32).google.devtools.cloudbuild.v1.RepoSourceB\x03\xe0\x41\x02"C\n\rStorageSource\x12\x0e\n\x06\x62ucket\x18\x01 \x01(\t\x12\x0e\n\x06object\x18\x02 \x01(\t\x12\x12\n\ngeneration\x18\x03 \x01(\x03"\xae\x02\n\nRepoSource\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x11\n\trepo_name\x18\x02 \x01(\t\x12\x15\n\x0b\x62ranch_name\x18\x03 \x01(\tH\x00\x12\x12\n\x08tag_name\x18\x04 \x01(\tH\x00\x12\x14\n\ncommit_sha\x18\x05 \x01(\tH\x00\x12\x0b\n\x03\x64ir\x18\x07 \x01(\t\x12\x14\n\x0cinvert_regex\x18\x08 \x01(\x08\x12S\n\rsubstitutions\x18\t \x03(\x0b\x32<.google.devtools.cloudbuild.v1.RepoSource.SubstitutionsEntry\x1a\x34\n\x12SubstitutionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08revision"\x9c\x01\n\x06Source\x12\x46\n\x0estorage_source\x18\x02 \x01(\x0b\x32,.google.devtools.cloudbuild.v1.StorageSourceH\x00\x12@\n\x0brepo_source\x18\x03 \x01(\x0b\x32).google.devtools.cloudbuild.v1.RepoSourceH\x00\x42\x08\n\x06source"m\n\nBuiltImage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x64igest\x18\x03 \x01(\t\x12\x41\n\x0bpush_timing\x18\x04 \x01(\x0b\x32\'.google.devtools.cloudbuild.v1.TimeSpanB\x03\xe0\x41\x03"\xa4\x03\n\tBuildStep\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03\x65nv\x18\x02 \x03(\t\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\t\x12\x0b\n\x03\x64ir\x18\x04 \x01(\t\x12\n\n\x02id\x18\x05 \x01(\t\x12\x10\n\x08wait_for\x18\x06 \x03(\t\x12\x12\n\nentrypoint\x18\x07 \x01(\t\x12\x12\n\nsecret_env\x18\x08 \x03(\t\x12\x36\n\x07volumes\x18\t \x03(\x0b\x32%.google.devtools.cloudbuild.v1.Volume\x12<\n\x06timing\x18\n \x01(\x0b\x32\'.google.devtools.cloudbuild.v1.TimeSpanB\x03\xe0\x41\x03\x12<\n\x0bpull_timing\x18\r \x01(\x0b\x32\'.google.devtools.cloudbuild.v1.TimeSpan\x12*\n\x07timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x06status\x18\x0c \x01(\x0e\x32+.google.devtools.cloudbuild.v1.Build.Status"$\n\x06Volume\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t"\xef\x01\n\x07Results\x12\x39\n\x06images\x18\x02 \x03(\x0b\x32).google.devtools.cloudbuild.v1.BuiltImage\x12\x19\n\x11\x62uild_step_images\x18\x03 \x03(\t\x12\x19\n\x11\x61rtifact_manifest\x18\x04 \x01(\t\x12\x15\n\rnum_artifacts\x18\x05 \x01(\x03\x12\x1a\n\x12\x62uild_step_outputs\x18\x06 \x03(\x0c\x12@\n\x0f\x61rtifact_timing\x18\x07 \x01(\x0b\x32\'.google.devtools.cloudbuild.v1.TimeSpan"`\n\x0e\x41rtifactResult\x12\x10\n\x08location\x18\x01 \x01(\t\x12<\n\tfile_hash\x18\x02 \x03(\x0b\x32).google.devtools.cloudbuild.v1.FileHashes"\xc4\n\n\x05\x42uild\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nproject_id\x18\x10 \x01(\tB\x03\xe0\x41\x03\x12;\n\x06status\x18\x02 \x01(\x0e\x32+.google.devtools.cloudbuild.v1.Build.Status\x12\x15\n\rstatus_detail\x18\x18 \x01(\t\x12\x35\n\x06source\x18\x03 \x01(\x0b\x32%.google.devtools.cloudbuild.v1.Source\x12\x37\n\x05steps\x18\x0b \x03(\x0b\x32(.google.devtools.cloudbuild.v1.BuildStep\x12<\n\x07results\x18\n \x01(\x0b\x32&.google.devtools.cloudbuild.v1.ResultsB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x66inish_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12*\n\x07timeout\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0e\n\x06images\x18\r \x03(\t\x12,\n\tqueue_ttl\x18( \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\tartifacts\x18% \x01(\x0b\x32(.google.devtools.cloudbuild.v1.Artifacts\x12\x13\n\x0blogs_bucket\x18\x13 \x01(\t\x12J\n\x11source_provenance\x18\x15 \x01(\x0b\x32/.google.devtools.cloudbuild.v1.SourceProvenance\x12\x18\n\x10\x62uild_trigger_id\x18\x16 \x01(\t\x12<\n\x07options\x18\x17 \x01(\x0b\x32+.google.devtools.cloudbuild.v1.BuildOptions\x12\x14\n\x07log_url\x18\x19 \x01(\tB\x03\xe0\x41\x03\x12N\n\rsubstitutions\x18\x1d \x03(\x0b\x32\x37.google.devtools.cloudbuild.v1.Build.SubstitutionsEntry\x12\x0c\n\x04tags\x18\x1f \x03(\t\x12\x36\n\x07secrets\x18 \x03(\x0b\x32%.google.devtools.cloudbuild.v1.Secret\x12\x45\n\x06timing\x18! \x03(\x0b\x32\x30.google.devtools.cloudbuild.v1.Build.TimingEntryB\x03\xe0\x41\x03\x1a\x34\n\x12SubstitutionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aV\n\x0bTimingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.devtools.cloudbuild.v1.TimeSpan:\x02\x38\x01"\x8c\x01\n\x06Status\x12\x12\n\x0eSTATUS_UNKNOWN\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07WORKING\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\x0b\n\x07\x46\x41ILURE\x10\x04\x12\x12\n\x0eINTERNAL_ERROR\x10\x05\x12\x0b\n\x07TIMEOUT\x10\x06\x12\r\n\tCANCELLED\x10\x07\x12\x0b\n\x07\x45XPIRED\x10\t"\xd3\x01\n\tArtifacts\x12\x0e\n\x06images\x18\x01 \x03(\t\x12I\n\x07objects\x18\x02 \x01(\x0b\x32\x38.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects\x1ak\n\x0f\x41rtifactObjects\x12\x10\n\x08location\x18\x01 \x01(\t\x12\r\n\x05paths\x18\x02 \x03(\t\x12\x37\n\x06timing\x18\x03 \x01(\x0b\x32\'.google.devtools.cloudbuild.v1.TimeSpan"h\n\x08TimeSpan\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"M\n\x16\x42uildOperationMetadata\x12\x33\n\x05\x62uild\x18\x01 \x01(\x0b\x32$.google.devtools.cloudbuild.v1.Build"\xe3\x02\n\x10SourceProvenance\x12M\n\x17resolved_storage_source\x18\x03 \x01(\x0b\x32,.google.devtools.cloudbuild.v1.StorageSource\x12G\n\x14resolved_repo_source\x18\x06 \x01(\x0b\x32).google.devtools.cloudbuild.v1.RepoSource\x12Y\n\x0b\x66ile_hashes\x18\x04 \x03(\x0b\x32?.google.devtools.cloudbuild.v1.SourceProvenance.FileHashesEntryB\x03\xe0\x41\x03\x1a\\\n\x0f\x46ileHashesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.devtools.cloudbuild.v1.FileHashes:\x02\x38\x01"D\n\nFileHashes\x12\x36\n\tfile_hash\x18\x01 \x03(\x0b\x32#.google.devtools.cloudbuild.v1.Hash"|\n\x04Hash\x12:\n\x04type\x18\x01 \x01(\x0e\x32,.google.devtools.cloudbuild.v1.Hash.HashType\x12\r\n\x05value\x18\x02 \x01(\x0c")\n\x08HashType\x12\x08\n\x04NONE\x10\x00\x12\n\n\x06SHA256\x10\x01\x12\x07\n\x03MD5\x10\x02"\x9a\x01\n\x06Secret\x12\x14\n\x0ckms_key_name\x18\x01 \x01(\t\x12H\n\nsecret_env\x18\x03 \x03(\x0b\x32\x34.google.devtools.cloudbuild.v1.Secret.SecretEnvEntry\x1a\x30\n\x0eSecretEnvEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01"g\n\x12\x43reateBuildRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x38\n\x05\x62uild\x18\x02 \x01(\x0b\x32$.google.devtools.cloudbuild.v1.BuildB\x03\xe0\x41\x02";\n\x0fGetBuildRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x02"c\n\x11ListBuildsRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x08 \x01(\t"c\n\x12ListBuildsResponse\x12\x34\n\x06\x62uilds\x18\x01 \x03(\x0b\x32$.google.devtools.cloudbuild.v1.Build\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t">\n\x12\x43\x61ncelBuildRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x02"\xb9\x04\n\x0c\x42uildTrigger\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\n \x01(\t\x12\x0c\n\x04name\x18\x15 \x01(\t\x12\x0c\n\x04tags\x18\x13 \x03(\t\x12\x43\n\x10trigger_template\x18\x07 \x01(\x0b\x32).google.devtools.cloudbuild.v1.RepoSource\x12\x41\n\x06github\x18\r \x01(\x0b\x32\x31.google.devtools.cloudbuild.v1.GitHubEventsConfig\x12\x35\n\x05\x62uild\x18\x04 \x01(\x0b\x32$.google.devtools.cloudbuild.v1.BuildH\x00\x12\x12\n\x08\x66ilename\x18\x08 \x01(\tH\x00\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x10\n\x08\x64isabled\x18\t \x01(\x08\x12U\n\rsubstitutions\x18\x0b \x03(\x0b\x32>.google.devtools.cloudbuild.v1.BuildTrigger.SubstitutionsEntry\x12\x15\n\rignored_files\x18\x0f \x03(\t\x12\x16\n\x0eincluded_files\x18\x10 \x03(\t\x1a\x34\n\x12SubstitutionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x10\n\x0e\x62uild_template"\xdc\x01\n\x12GitHubEventsConfig\x12\x1b\n\x0finstallation_id\x18\x01 \x01(\x03\x42\x02\x18\x01\x12\r\n\x05owner\x18\x06 \x01(\t\x12\x0c\n\x04name\x18\x07 \x01(\t\x12H\n\x0cpull_request\x18\x04 \x01(\x0b\x32\x30.google.devtools.cloudbuild.v1.PullRequestFilterH\x00\x12\x39\n\x04push\x18\x05 \x01(\x0b\x32).google.devtools.cloudbuild.v1.PushFilterH\x00\x42\x07\n\x05\x65vent"\xdf\x01\n\x11PullRequestFilter\x12\x10\n\x06\x62ranch\x18\x02 \x01(\tH\x00\x12X\n\x0f\x63omment_control\x18\x05 \x01(\x0e\x32?.google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl\x12\x14\n\x0cinvert_regex\x18\x06 \x01(\x08"=\n\x0e\x43ommentControl\x12\x15\n\x11\x43OMMENTS_DISABLED\x10\x00\x12\x14\n\x10\x43OMMENTS_ENABLED\x10\x01\x42\t\n\x07git_ref"N\n\nPushFilter\x12\x10\n\x06\x62ranch\x18\x02 \x01(\tH\x00\x12\r\n\x03tag\x18\x03 \x01(\tH\x00\x12\x14\n\x0cinvert_regex\x18\x04 \x01(\x08\x42\t\n\x07git_ref"w\n\x19\x43reateBuildTriggerRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x07trigger\x18\x02 \x01(\x0b\x32+.google.devtools.cloudbuild.v1.BuildTriggerB\x03\xe0\x41\x02"J\n\x16GetBuildTriggerRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ntrigger_id\x18\x02 \x01(\tB\x03\xe0\x41\x02"Z\n\x18ListBuildTriggersRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"s\n\x19ListBuildTriggersResponse\x12=\n\x08triggers\x18\x01 \x03(\x0b\x32+.google.devtools.cloudbuild.v1.BuildTrigger\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"M\n\x19\x44\x65leteBuildTriggerRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ntrigger_id\x18\x02 \x01(\tB\x03\xe0\x41\x02"\x90\x01\n\x19UpdateBuildTriggerRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ntrigger_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x07trigger\x18\x03 \x01(\x0b\x32+.google.devtools.cloudbuild.v1.BuildTriggerB\x03\xe0\x41\x02"\xc6\x07\n\x0c\x42uildOptions\x12L\n\x16source_provenance_hash\x18\x01 \x03(\x0e\x32,.google.devtools.cloudbuild.v1.Hash.HashType\x12Y\n\x17requested_verify_option\x18\x02 \x01(\x0e\x32\x38.google.devtools.cloudbuild.v1.BuildOptions.VerifyOption\x12M\n\x0cmachine_type\x18\x03 \x01(\x0e\x32\x37.google.devtools.cloudbuild.v1.BuildOptions.MachineType\x12\x14\n\x0c\x64isk_size_gb\x18\x06 \x01(\x03\x12[\n\x13substitution_option\x18\x04 \x01(\x0e\x32>.google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption\x12\\\n\x14log_streaming_option\x18\x05 \x01(\x0e\x32>.google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption\x12\x13\n\x0bworker_pool\x18\x07 \x01(\t\x12H\n\x07logging\x18\x0b \x01(\x0e\x32\x37.google.devtools.cloudbuild.v1.BuildOptions.LoggingMode\x12\x0b\n\x03\x65nv\x18\x0c \x03(\t\x12\x12\n\nsecret_env\x18\r \x03(\t\x12\x36\n\x07volumes\x18\x0e \x03(\x0b\x32%.google.devtools.cloudbuild.v1.Volume".\n\x0cVerifyOption\x12\x10\n\x0cNOT_VERIFIED\x10\x00\x12\x0c\n\x08VERIFIED\x10\x01"C\n\x0bMachineType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x10\n\x0cN1_HIGHCPU_8\x10\x01\x12\x11\n\rN1_HIGHCPU_32\x10\x02"5\n\x12SubstitutionOption\x12\x0e\n\nMUST_MATCH\x10\x00\x12\x0f\n\x0b\x41LLOW_LOOSE\x10\x01"G\n\x12LogStreamingOption\x12\x12\n\x0eSTREAM_DEFAULT\x10\x00\x12\r\n\tSTREAM_ON\x10\x01\x12\x0e\n\nSTREAM_OFF\x10\x02"@\n\x0bLoggingMode\x12\x17\n\x13LOGGING_UNSPECIFIED\x10\x00\x12\n\n\x06LEGACY\x10\x01\x12\x0c\n\x08GCS_ONLY\x10\x02"\xf4\x04\n\nWorkerPool\x12\x0c\n\x04name\x18\x0e \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x1d\n\x15service_account_email\x18\x03 \x01(\t\x12\x14\n\x0cworker_count\x18\x04 \x01(\x03\x12\x42\n\rworker_config\x18\x10 \x01(\x0b\x32+.google.devtools.cloudbuild.v1.WorkerConfig\x12\x41\n\x07regions\x18\t \x03(\x0e\x32\x30.google.devtools.cloudbuild.v1.WorkerPool.Region\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x06status\x18\r \x01(\x0e\x32\x30.google.devtools.cloudbuild.v1.WorkerPool.Status"[\n\x06Region\x12\x16\n\x12REGION_UNSPECIFIED\x10\x00\x12\x0f\n\x0bUS_CENTRAL1\x10\x01\x12\x0c\n\x08US_WEST1\x10\x02\x12\x0c\n\x08US_EAST1\x10\x03\x12\x0c\n\x08US_EAST4\x10\x04"V\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0b\n\x07\x44\x45LETED\x10\x04"\x80\x01\n\x0cWorkerConfig\x12\x14\n\x0cmachine_type\x18\x01 \x01(\t\x12\x14\n\x0c\x64isk_size_gb\x18\x02 \x01(\x03\x12\x37\n\x07network\x18\x03 \x01(\x0b\x32&.google.devtools.cloudbuild.v1.Network\x12\x0b\n\x03tag\x18\x04 \x01(\t"B\n\x07Network\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0f\n\x07network\x18\x02 \x01(\t\x12\x12\n\nsubnetwork\x18\x03 \x01(\t"i\n\x17\x43reateWorkerPoolRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12>\n\x0bworker_pool\x18\x02 \x01(\x0b\x32).google.devtools.cloudbuild.v1.WorkerPool"$\n\x14GetWorkerPoolRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"\'\n\x17\x44\x65leteWorkerPoolRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"g\n\x17UpdateWorkerPoolRequest\x12\x0c\n\x04name\x18\x02 \x01(\t\x12>\n\x0bworker_pool\x18\x03 \x01(\x0b\x32).google.devtools.cloudbuild.v1.WorkerPool"(\n\x16ListWorkerPoolsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t"Z\n\x17ListWorkerPoolsResponse\x12?\n\x0cworker_pools\x18\x01 \x03(\x0b\x32).google.devtools.cloudbuild.v1.WorkerPool2\xa1\x16\n\nCloudBuild\x12\xc5\x01\n\x0b\x43reateBuild\x12\x31.google.devtools.cloudbuild.v1.CreateBuildRequest\x1a\x1d.google.longrunning.Operation"d\x82\xd3\xe4\x93\x02)" /v1/projects/{project_id}/builds:\x05\x62uild\xda\x41\x10project_id,build\xca\x41\x1f\n\x05\x42uild\x12\x16\x42uildOperationMetadata\x12\x9f\x01\n\x08GetBuild\x12..google.devtools.cloudbuild.v1.GetBuildRequest\x1a$.google.devtools.cloudbuild.v1.Build"=\x82\xd3\xe4\x93\x02\'\x12%/v1/projects/{project_id}/builds/{id}\xda\x41\rproject_id,id\x12\xaf\x01\n\nListBuilds\x12\x30.google.devtools.cloudbuild.v1.ListBuildsRequest\x1a\x31.google.devtools.cloudbuild.v1.ListBuildsResponse"<\x82\xd3\xe4\x93\x02"\x12 /v1/projects/{project_id}/builds\xda\x41\x11project_id,filter\x12\xaf\x01\n\x0b\x43\x61ncelBuild\x12\x31.google.devtools.cloudbuild.v1.CancelBuildRequest\x1a$.google.devtools.cloudbuild.v1.Build"G\x82\xd3\xe4\x93\x02\x31",/v1/projects/{project_id}/builds/{id}:cancel:\x01*\xda\x41\rproject_id,id\x12\xc7\x01\n\nRetryBuild\x12\x30.google.devtools.cloudbuild.v1.RetryBuildRequest\x1a\x1d.google.longrunning.Operation"h\x82\xd3\xe4\x93\x02\x30"+/v1/projects/{project_id}/builds/{id}:retry:\x01*\xda\x41\rproject_id,id\xca\x41\x1f\n\x05\x42uild\x12\x16\x42uildOperationMetadata\x12\xc5\x01\n\x12\x43reateBuildTrigger\x12\x38.google.devtools.cloudbuild.v1.CreateBuildTriggerRequest\x1a+.google.devtools.cloudbuild.v1.BuildTrigger"H\x82\xd3\xe4\x93\x02-""/v1/projects/{project_id}/triggers:\x07trigger\xda\x41\x12project_id,trigger\x12\xc6\x01\n\x0fGetBuildTrigger\x12\x35.google.devtools.cloudbuild.v1.GetBuildTriggerRequest\x1a+.google.devtools.cloudbuild.v1.BuildTrigger"O\x82\xd3\xe4\x93\x02\x31\x12//v1/projects/{project_id}/triggers/{trigger_id}\xda\x41\x15project_id,trigger_id\x12\xbf\x01\n\x11ListBuildTriggers\x12\x37.google.devtools.cloudbuild.v1.ListBuildTriggersRequest\x1a\x38.google.devtools.cloudbuild.v1.ListBuildTriggersResponse"7\x82\xd3\xe4\x93\x02$\x12"/v1/projects/{project_id}/triggers\xda\x41\nproject_id\x12\xb7\x01\n\x12\x44\x65leteBuildTrigger\x12\x38.google.devtools.cloudbuild.v1.DeleteBuildTriggerRequest\x1a\x16.google.protobuf.Empty"O\x82\xd3\xe4\x93\x02\x31*//v1/projects/{project_id}/triggers/{trigger_id}\xda\x41\x15project_id,trigger_id\x12\xdd\x01\n\x12UpdateBuildTrigger\x12\x38.google.devtools.cloudbuild.v1.UpdateBuildTriggerRequest\x1a+.google.devtools.cloudbuild.v1.BuildTrigger"`\x82\xd3\xe4\x93\x02:2//v1/projects/{project_id}/triggers/{trigger_id}:\x07trigger\xda\x41\x1dproject_id,trigger_id,trigger\x12\xee\x01\n\x0fRunBuildTrigger\x12\x35.google.devtools.cloudbuild.v1.RunBuildTriggerRequest\x1a\x1d.google.longrunning.Operation"\x84\x01\x82\xd3\xe4\x93\x02="3/v1/projects/{project_id}/triggers/{trigger_id}:run:\x06source\xda\x41\x1cproject_id,trigger_id,source\xca\x41\x1f\n\x05\x42uild\x12\x16\x42uildOperationMetadata\x12w\n\x10\x43reateWorkerPool\x12\x36.google.devtools.cloudbuild.v1.CreateWorkerPoolRequest\x1a).google.devtools.cloudbuild.v1.WorkerPool"\x00\x12q\n\rGetWorkerPool\x12\x33.google.devtools.cloudbuild.v1.GetWorkerPoolRequest\x1a).google.devtools.cloudbuild.v1.WorkerPool"\x00\x12\x64\n\x10\x44\x65leteWorkerPool\x12\x36.google.devtools.cloudbuild.v1.DeleteWorkerPoolRequest\x1a\x16.google.protobuf.Empty"\x00\x12w\n\x10UpdateWorkerPool\x12\x36.google.devtools.cloudbuild.v1.UpdateWorkerPoolRequest\x1a).google.devtools.cloudbuild.v1.WorkerPool"\x00\x12\x82\x01\n\x0fListWorkerPools\x12\x35.google.devtools.cloudbuild.v1.ListWorkerPoolsRequest\x1a\x36.google.devtools.cloudbuild.v1.ListWorkerPoolsResponse"\x00\x1aM\xca\x41\x19\x63loudbuild.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x86\x01\n\x18\x63om.google.cloudbuild.v1P\x01ZGgoogle.golang.org/genproto/googleapis/devtools/cloudbuild/v1;cloudbuild\xa2\x02\x03GCB\xea\x02\x18Google::Cloud::Build::V1b\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -53,36 +47,85 @@ full_name="google.devtools.cloudbuild.v1.Build.Status", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="STATUS_UNKNOWN", index=0, number=0, serialized_options=None, type=None + name="STATUS_UNKNOWN", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="QUEUED", index=1, number=1, serialized_options=None, type=None + name="QUEUED", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="WORKING", index=2, number=2, serialized_options=None, type=None + name="WORKING", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SUCCESS", index=3, number=3, serialized_options=None, type=None + name="SUCCESS", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FAILURE", index=4, number=4, serialized_options=None, type=None + name="FAILURE", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INTERNAL_ERROR", index=5, number=5, serialized_options=None, type=None + name="INTERNAL_ERROR", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="TIMEOUT", index=6, number=6, serialized_options=None, type=None + name="TIMEOUT", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, + ), + _descriptor.EnumValueDescriptor( + name="CANCELLED", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CANCELLED", index=7, number=7, serialized_options=None, type=None + name="EXPIRED", + index=8, + number=9, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=2906, - serialized_end=3033, + serialized_start=3170, + serialized_end=3310, ) _sym_db.RegisterEnumDescriptor(_BUILD_STATUS) @@ -91,21 +134,37 @@ full_name="google.devtools.cloudbuild.v1.Hash.HashType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="NONE", index=0, number=0, serialized_options=None, type=None + name="NONE", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SHA256", index=1, number=1, serialized_options=None, type=None + name="SHA256", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MD5", index=2, number=2, serialized_options=None, type=None + name="MD5", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=3940, - serialized_end=3981, + serialized_start=4222, + serialized_end=4263, ) _sym_db.RegisterEnumDescriptor(_HASH_HASHTYPE) @@ -114,6 +173,7 @@ full_name="google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="COMMENTS_DISABLED", @@ -121,6 +181,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="COMMENTS_ENABLED", @@ -128,12 +189,13 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=5487, - serialized_end=5548, + serialized_start=5801, + serialized_end=5862, ) _sym_db.RegisterEnumDescriptor(_PULLREQUESTFILTER_COMMENTCONTROL) @@ -142,18 +204,29 @@ full_name="google.devtools.cloudbuild.v1.BuildOptions.VerifyOption", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="NOT_VERIFIED", index=0, number=0, serialized_options=None, type=None + name="NOT_VERIFIED", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VERIFIED", index=1, number=1, serialized_options=None, type=None + name="VERIFIED", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=6909, - serialized_end=6955, + serialized_start=7245, + serialized_end=7291, ) _sym_db.RegisterEnumDescriptor(_BUILDOPTIONS_VERIFYOPTION) @@ -162,21 +235,37 @@ full_name="google.devtools.cloudbuild.v1.BuildOptions.MachineType", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="UNSPECIFIED", index=0, number=0, serialized_options=None, type=None + name="UNSPECIFIED", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="N1_HIGHCPU_8", index=1, number=1, serialized_options=None, type=None + name="N1_HIGHCPU_8", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="N1_HIGHCPU_32", index=2, number=2, serialized_options=None, type=None + name="N1_HIGHCPU_32", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=6957, - serialized_end=7024, + serialized_start=7293, + serialized_end=7360, ) _sym_db.RegisterEnumDescriptor(_BUILDOPTIONS_MACHINETYPE) @@ -185,18 +274,29 @@ full_name="google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="MUST_MATCH", index=0, number=0, serialized_options=None, type=None + name="MUST_MATCH", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ALLOW_LOOSE", index=1, number=1, serialized_options=None, type=None + name="ALLOW_LOOSE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=7026, - serialized_end=7079, + serialized_start=7362, + serialized_end=7415, ) _sym_db.RegisterEnumDescriptor(_BUILDOPTIONS_SUBSTITUTIONOPTION) @@ -205,21 +305,37 @@ full_name="google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( - name="STREAM_DEFAULT", index=0, number=0, serialized_options=None, type=None + name="STREAM_DEFAULT", + index=0, + number=0, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="STREAM_ON", index=1, number=1, serialized_options=None, type=None + name="STREAM_ON", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="STREAM_OFF", index=2, number=2, serialized_options=None, type=None + name="STREAM_OFF", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=7081, - serialized_end=7152, + serialized_start=7417, + serialized_end=7488, ) _sym_db.RegisterEnumDescriptor(_BUILDOPTIONS_LOGSTREAMINGOPTION) @@ -228,6 +344,7 @@ full_name="google.devtools.cloudbuild.v1.BuildOptions.LoggingMode", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="LOGGING_UNSPECIFIED", @@ -235,18 +352,29 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LEGACY", index=1, number=1, serialized_options=None, type=None + name="LEGACY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GCS_ONLY", index=2, number=2, serialized_options=None, type=None + name="GCS_ONLY", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=7154, - serialized_end=7218, + serialized_start=7490, + serialized_end=7554, ) _sym_db.RegisterEnumDescriptor(_BUILDOPTIONS_LOGGINGMODE) @@ -255,6 +383,7 @@ full_name="google.devtools.cloudbuild.v1.WorkerPool.Region", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="REGION_UNSPECIFIED", @@ -262,24 +391,45 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="US_CENTRAL1", index=1, number=1, serialized_options=None, type=None + name="US_CENTRAL1", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="US_WEST1", index=2, number=2, serialized_options=None, type=None + name="US_WEST1", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="US_EAST1", index=3, number=3, serialized_options=None, type=None + name="US_EAST1", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="US_EAST4", index=4, number=4, serialized_options=None, type=None + name="US_EAST4", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=7670, - serialized_end=7761, + serialized_start=8006, + serialized_end=8097, ) _sym_db.RegisterEnumDescriptor(_WORKERPOOL_REGION) @@ -288,6 +438,7 @@ full_name="google.devtools.cloudbuild.v1.WorkerPool.Status", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="STATUS_UNSPECIFIED", @@ -295,24 +446,45 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CREATING", index=1, number=1, serialized_options=None, type=None + name="CREATING", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="RUNNING", index=2, number=2, serialized_options=None, type=None + name="RUNNING", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DELETING", index=3, number=3, serialized_options=None, type=None + name="DELETING", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DELETED", index=4, number=4, serialized_options=None, type=None + name="DELETED", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=7763, - serialized_end=7849, + serialized_start=8099, + serialized_end=8185, ) _sym_db.RegisterEnumDescriptor(_WORKERPOOL_STATUS) @@ -323,6 +495,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -333,14 +506,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="id", @@ -351,14 +525,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=[], @@ -369,8 +544,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=306, - serialized_end=367, + serialized_start=312, + serialized_end=373, ) @@ -380,6 +555,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -390,14 +566,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="trigger_id", @@ -408,14 +585,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="source", @@ -432,8 +610,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=[], @@ -444,8 +623,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=370, - serialized_end=508, + serialized_start=376, + serialized_end=514, ) @@ -455,6 +634,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="bucket", @@ -465,7 +645,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, @@ -473,6 +653,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="object", @@ -483,7 +664,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, @@ -491,6 +672,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="generation", @@ -509,6 +691,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -519,17 +702,77 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=510, - serialized_end=577, + serialized_start=516, + serialized_end=583, ) +_REPOSOURCE_SUBSTITUTIONSENTRY = _descriptor.Descriptor( + name="SubstitutionsEntry", + full_name="google.devtools.cloudbuild.v1.RepoSource.SubstitutionsEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.devtools.cloudbuild.v1.RepoSource.SubstitutionsEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.devtools.cloudbuild.v1.RepoSource.SubstitutionsEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=b"8\001", + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=824, + serialized_end=876, +) + _REPOSOURCE = _descriptor.Descriptor( name="RepoSource", full_name="google.devtools.cloudbuild.v1.RepoSource", filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -540,7 +783,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 +791,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="repo_name", @@ -558,7 +802,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 +810,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="branch_name", @@ -576,7 +821,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 +829,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tag_name", @@ -594,7 +840,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, @@ -602,6 +848,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="commit_sha", @@ -612,7 +859,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 +867,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="dir", @@ -630,7 +878,26 @@ cpp_type=9, label=1, has_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=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="invert_regex", + full_name="google.devtools.cloudbuild.v1.RepoSource.invert_regex", + index=6, + number=8, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, message_type=None, enum_type=None, containing_type=None, @@ -638,10 +905,30 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="substitutions", + full_name="google.devtools.cloudbuild.v1.RepoSource.substitutions", + index=7, + number=9, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[], + nested_types=[_REPOSOURCE_SUBSTITUTIONSENTRY,], enum_types=[], serialized_options=None, is_extendable=False, @@ -653,11 +940,12 @@ full_name="google.devtools.cloudbuild.v1.RepoSource.revision", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], - serialized_start=580, - serialized_end=721, + serialized_start=586, + serialized_end=888, ) @@ -667,6 +955,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="storage_source", @@ -685,6 +974,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="repo_source", @@ -703,6 +993,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -718,11 +1009,12 @@ full_name="google.devtools.cloudbuild.v1.Source.source", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], - serialized_start=724, - serialized_end=880, + serialized_start=891, + serialized_end=1047, ) @@ -732,6 +1024,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -742,7 +1035,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, @@ -750,6 +1043,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="digest", @@ -760,7 +1054,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, @@ -768,6 +1062,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="push_timing", @@ -784,8 +1079,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -796,8 +1092,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=882, - serialized_end=986, + serialized_start=1049, + serialized_end=1158, ) @@ -807,6 +1103,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -817,7 +1114,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, @@ -825,6 +1122,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="env", @@ -843,6 +1141,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="args", @@ -861,6 +1160,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="dir", @@ -871,7 +1171,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, @@ -879,6 +1179,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="id", @@ -889,7 +1190,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, @@ -897,6 +1198,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="wait_for", @@ -915,6 +1217,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="entrypoint", @@ -925,7 +1228,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, @@ -933,6 +1236,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="secret_env", @@ -951,6 +1255,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="volumes", @@ -969,6 +1274,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="timing", @@ -985,8 +1291,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pull_timing", @@ -1005,6 +1312,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="timeout", @@ -1023,6 +1331,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="status", @@ -1041,6 +1350,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1051,8 +1361,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=989, - serialized_end=1404, + serialized_start=1161, + serialized_end=1581, ) @@ -1062,6 +1372,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1072,7 +1383,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, @@ -1080,6 +1391,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="path", @@ -1090,7 +1402,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, @@ -1098,6 +1410,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1108,8 +1421,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1406, - serialized_end=1442, + serialized_start=1583, + serialized_end=1619, ) @@ -1119,6 +1432,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="images", @@ -1137,6 +1451,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="build_step_images", @@ -1155,6 +1470,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="artifact_manifest", @@ -1165,7 +1481,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, @@ -1173,6 +1489,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="num_artifacts", @@ -1191,6 +1508,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="build_step_outputs", @@ -1209,6 +1527,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="artifact_timing", @@ -1227,6 +1546,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1237,8 +1557,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1445, - serialized_end=1684, + serialized_start=1622, + serialized_end=1861, ) @@ -1248,6 +1568,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="location", @@ -1258,7 +1579,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, @@ -1266,6 +1587,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="file_hash", @@ -1284,6 +1606,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1294,8 +1617,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1686, - serialized_end=1782, + serialized_start=1863, + serialized_end=1959, ) @@ -1305,6 +1628,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -1315,7 +1639,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, @@ -1323,6 +1647,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -1333,7 +1658,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, @@ -1341,18 +1666,19 @@ 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=[], oneofs=[], - serialized_start=2764, - serialized_end=2816, + serialized_start=824, + serialized_end=876, ) _BUILD_TIMINGENTRY = _descriptor.Descriptor( @@ -1361,6 +1687,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -1371,7 +1698,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, @@ -1379,6 +1706,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -1397,18 +1725,19 @@ 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=[], oneofs=[], - serialized_start=2818, - serialized_end=2904, + serialized_start=3081, + serialized_end=3167, ) _BUILD = _descriptor.Descriptor( @@ -1417,6 +1746,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="id", @@ -1427,14 +1757,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=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="project_id", @@ -1445,14 +1776,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=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="status", @@ -1471,6 +1803,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="status_detail", @@ -1481,7 +1814,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, @@ -1489,6 +1822,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="source", @@ -1507,6 +1841,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="steps", @@ -1525,6 +1860,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="results", @@ -1541,8 +1877,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -1559,8 +1896,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="start_time", @@ -1577,8 +1915,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="finish_time", @@ -1595,8 +1934,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="timeout", @@ -1615,6 +1955,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="images", @@ -1633,11 +1974,31 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="queue_ttl", + full_name="google.devtools.cloudbuild.v1.Build.queue_ttl", + index=12, + number=40, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="artifacts", full_name="google.devtools.cloudbuild.v1.Build.artifacts", - index=12, + index=13, number=37, type=11, cpp_type=10, @@ -1651,17 +2012,18 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="logs_bucket", full_name="google.devtools.cloudbuild.v1.Build.logs_bucket", - index=13, + index=14, number=19, type=9, cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1669,11 +2031,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="source_provenance", full_name="google.devtools.cloudbuild.v1.Build.source_provenance", - index=14, + index=15, number=21, type=11, cpp_type=10, @@ -1687,17 +2050,18 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="build_trigger_id", full_name="google.devtools.cloudbuild.v1.Build.build_trigger_id", - index=15, + index=16, number=22, type=9, cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1705,11 +2069,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="options", full_name="google.devtools.cloudbuild.v1.Build.options", - index=16, + index=17, number=23, type=11, cpp_type=10, @@ -1723,29 +2088,31 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="log_url", full_name="google.devtools.cloudbuild.v1.Build.log_url", - index=17, + index=18, number=25, type=9, cpp_type=9, label=1, has_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=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="substitutions", full_name="google.devtools.cloudbuild.v1.Build.substitutions", - index=18, + index=19, number=29, type=11, cpp_type=10, @@ -1759,11 +2126,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tags", full_name="google.devtools.cloudbuild.v1.Build.tags", - index=19, + index=20, number=31, type=9, cpp_type=9, @@ -1777,11 +2145,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="secrets", full_name="google.devtools.cloudbuild.v1.Build.secrets", - index=20, + index=21, number=32, type=11, cpp_type=10, @@ -1795,11 +2164,12 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="timing", full_name="google.devtools.cloudbuild.v1.Build.timing", - index=21, + index=22, number=33, type=11, cpp_type=10, @@ -1811,20 +2181,21 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_BUILD_SUBSTITUTIONSENTRY, _BUILD_TIMINGENTRY], - enum_types=[_BUILD_STATUS], + nested_types=[_BUILD_SUBSTITUTIONSENTRY, _BUILD_TIMINGENTRY,], + enum_types=[_BUILD_STATUS,], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1785, - serialized_end=3033, + serialized_start=1962, + serialized_end=3310, ) @@ -1834,6 +2205,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="location", @@ -1844,7 +2216,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, @@ -1852,6 +2224,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="paths", @@ -1870,6 +2243,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="timing", @@ -1888,6 +2262,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1898,8 +2273,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3140, - serialized_end=3247, + serialized_start=3417, + serialized_end=3524, ) _ARTIFACTS = _descriptor.Descriptor( @@ -1908,6 +2283,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="images", @@ -1926,6 +2302,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="objects", @@ -1944,18 +2321,19 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_ARTIFACTS_ARTIFACTOBJECTS], + nested_types=[_ARTIFACTS_ARTIFACTOBJECTS,], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3036, - serialized_end=3247, + serialized_start=3313, + serialized_end=3524, ) @@ -1965,6 +2343,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="start_time", @@ -1983,6 +2362,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_time", @@ -2001,6 +2381,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2011,8 +2392,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3249, - serialized_end=3353, + serialized_start=3526, + serialized_end=3630, ) @@ -2022,6 +2403,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="build", @@ -2040,7 +2422,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -2050,8 +2433,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3355, - serialized_end=3432, + serialized_start=3632, + serialized_end=3709, ) @@ -2061,6 +2444,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -2071,7 +2455,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, @@ -2079,6 +2463,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -2097,18 +2482,19 @@ 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=[], oneofs=[], - serialized_start=3693, - serialized_end=3785, + serialized_start=3975, + serialized_end=4067, ) _SOURCEPROVENANCE = _descriptor.Descriptor( @@ -2117,6 +2503,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="resolved_storage_source", @@ -2135,6 +2522,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="resolved_repo_source", @@ -2153,6 +2541,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="file_hashes", @@ -2169,20 +2558,21 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_SOURCEPROVENANCE_FILEHASHESENTRY], + nested_types=[_SOURCEPROVENANCE_FILEHASHESENTRY,], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3435, - serialized_end=3785, + serialized_start=3712, + serialized_end=4067, ) @@ -2192,6 +2582,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="file_hash", @@ -2210,7 +2601,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -2220,8 +2612,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3787, - serialized_end=3855, + serialized_start=4069, + serialized_end=4137, ) @@ -2231,6 +2623,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -2249,6 +2642,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -2259,7 +2653,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -2267,18 +2661,19 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_HASH_HASHTYPE], + enum_types=[_HASH_HASHTYPE,], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3857, - serialized_end=3981, + serialized_start=4139, + serialized_end=4263, ) @@ -2288,6 +2683,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -2298,7 +2694,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, @@ -2306,6 +2702,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -2316,7 +2713,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b(""), + default_value=b"", message_type=None, enum_type=None, containing_type=None, @@ -2324,18 +2721,19 @@ 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=[], oneofs=[], - serialized_start=4090, - serialized_end=4138, + serialized_start=4372, + serialized_end=4420, ) _SECRET = _descriptor.Descriptor( @@ -2344,6 +2742,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="kms_key_name", @@ -2354,7 +2753,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, @@ -2362,6 +2761,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="secret_env", @@ -2380,18 +2780,19 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_SECRET_SECRETENVENTRY], + nested_types=[_SECRET_SECRETENVENTRY,], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3984, - serialized_end=4138, + serialized_start=4266, + serialized_end=4420, ) @@ -2401,6 +2802,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -2411,14 +2813,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="build", @@ -2435,8 +2838,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=[], @@ -2447,8 +2851,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4140, - serialized_end=4243, + serialized_start=4422, + serialized_end=4525, ) @@ -2458,6 +2862,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -2468,14 +2873,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="id", @@ -2486,14 +2892,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=[], @@ -2504,8 +2911,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4245, - serialized_end=4304, + serialized_start=4527, + serialized_end=4586, ) @@ -2515,6 +2922,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -2525,14 +2933,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_size", @@ -2551,6 +2960,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -2561,7 +2971,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, @@ -2569,6 +2979,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -2579,7 +2990,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, @@ -2587,6 +2998,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2597,8 +3009,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4306, - serialized_end=4405, + serialized_start=4588, + serialized_end=4687, ) @@ -2608,6 +3020,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="builds", @@ -2626,6 +3039,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -2636,7 +3050,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, @@ -2644,6 +3058,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -2654,8 +3069,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4407, - serialized_end=4506, + serialized_start=4689, + serialized_end=4788, ) @@ -2665,6 +3080,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -2675,14 +3091,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="id", @@ -2693,14 +3110,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=[], @@ -2711,8 +3129,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4508, - serialized_end=4570, + serialized_start=4790, + serialized_end=4852, ) @@ -2722,6 +3140,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -2732,7 +3151,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, @@ -2740,6 +3159,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -2750,7 +3170,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, @@ -2758,18 +3178,19 @@ 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=[], oneofs=[], - serialized_start=2764, - serialized_end=2816, + serialized_start=824, + serialized_end=876, ) _BUILDTRIGGER = _descriptor.Descriptor( @@ -2778,6 +3199,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="id", @@ -2788,14 +3210,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=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -2806,7 +3229,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, @@ -2814,6 +3237,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="name", @@ -2824,7 +3248,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, @@ -2832,6 +3256,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tags", @@ -2850,6 +3275,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="trigger_template", @@ -2868,6 +3294,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="github", @@ -2886,6 +3313,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="build", @@ -2904,6 +3332,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filename", @@ -2914,7 +3343,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, @@ -2922,6 +3351,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -2938,8 +3368,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=b"\340A\003", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="disabled", @@ -2958,6 +3389,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="substitutions", @@ -2976,6 +3408,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="ignored_files", @@ -2994,6 +3427,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="included_files", @@ -3012,10 +3446,11 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], - nested_types=[_BUILDTRIGGER_SUBSTITUTIONSENTRY], + nested_types=[_BUILDTRIGGER_SUBSTITUTIONSENTRY,], enum_types=[], serialized_options=None, is_extendable=False, @@ -3027,11 +3462,12 @@ full_name="google.devtools.cloudbuild.v1.BuildTrigger.build_template", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], - serialized_start=4573, - serialized_end=5132, + serialized_start=4855, + serialized_end=5424, ) @@ -3041,6 +3477,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="installation_id", @@ -3057,8 +3494,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="owner", @@ -3069,7 +3507,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, @@ -3077,6 +3515,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="name", @@ -3087,7 +3526,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, @@ -3095,6 +3534,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="pull_request", @@ -3113,6 +3553,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="push", @@ -3131,6 +3572,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -3146,11 +3588,12 @@ full_name="google.devtools.cloudbuild.v1.GitHubEventsConfig.event", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], - serialized_start=5135, - serialized_end=5355, + serialized_start=5427, + serialized_end=5647, ) @@ -3160,6 +3603,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="branch", @@ -3170,7 +3614,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, @@ -3178,6 +3622,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="comment_control", @@ -3196,11 +3641,31 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="invert_regex", + full_name="google.devtools.cloudbuild.v1.PullRequestFilter.invert_regex", + index=2, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_PULLREQUESTFILTER_COMMENTCONTROL], + enum_types=[_PULLREQUESTFILTER_COMMENTCONTROL,], serialized_options=None, is_extendable=False, syntax="proto3", @@ -3211,11 +3676,12 @@ full_name="google.devtools.cloudbuild.v1.PullRequestFilter.git_ref", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], - serialized_start=5358, - serialized_end=5559, + serialized_start=5650, + serialized_end=5873, ) @@ -3225,6 +3691,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="branch", @@ -3235,7 +3702,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, @@ -3243,6 +3710,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tag", @@ -3253,7 +3721,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, @@ -3261,6 +3729,26 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, + ), + _descriptor.FieldDescriptor( + name="invert_regex", + full_name="google.devtools.cloudbuild.v1.PushFilter.invert_regex", + index=2, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -3276,11 +3764,12 @@ full_name="google.devtools.cloudbuild.v1.PushFilter.git_ref", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], - serialized_start=5561, - serialized_end=5617, + serialized_start=5875, + serialized_end=5953, ) @@ -3290,6 +3779,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -3300,14 +3790,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="trigger", @@ -3324,8 +3815,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=[], @@ -3336,8 +3828,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=5619, - serialized_end=5738, + serialized_start=5955, + serialized_end=6074, ) @@ -3347,6 +3839,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -3357,14 +3850,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="trigger_id", @@ -3375,14 +3869,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=[], @@ -3393,8 +3888,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=5740, - serialized_end=5814, + serialized_start=6076, + serialized_end=6150, ) @@ -3404,6 +3899,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -3414,14 +3910,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_size", @@ -3440,6 +3937,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -3450,7 +3948,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, @@ -3458,6 +3956,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -3468,8 +3967,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=5816, - serialized_end=5906, + serialized_start=6152, + serialized_end=6242, ) @@ -3479,6 +3978,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="triggers", @@ -3497,6 +3997,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -3507,7 +4008,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, @@ -3515,6 +4016,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -3525,8 +4027,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=5908, - serialized_end=6023, + serialized_start=6244, + serialized_end=6359, ) @@ -3536,6 +4038,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -3546,14 +4049,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="trigger_id", @@ -3564,14 +4068,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=[], @@ -3582,8 +4087,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=6025, - serialized_end=6102, + serialized_start=6361, + serialized_end=6438, ) @@ -3593,6 +4098,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -3603,14 +4109,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="trigger_id", @@ -3621,14 +4128,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="trigger", @@ -3645,8 +4153,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=[], @@ -3657,8 +4166,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=6105, - serialized_end=6249, + serialized_start=6441, + serialized_end=6585, ) @@ -3668,6 +4177,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="source_provenance_hash", @@ -3686,6 +4196,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="requested_verify_option", @@ -3704,6 +4215,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="machine_type", @@ -3722,6 +4234,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="disk_size_gb", @@ -3740,6 +4253,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="substitution_option", @@ -3758,6 +4272,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="log_streaming_option", @@ -3776,6 +4291,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="worker_pool", @@ -3786,7 +4302,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, @@ -3794,6 +4310,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="logging", @@ -3812,6 +4329,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="env", @@ -3830,6 +4348,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="secret_env", @@ -3848,6 +4367,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="volumes", @@ -3866,6 +4386,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -3882,8 +4403,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=6252, - serialized_end=7218, + serialized_start=6588, + serialized_end=7554, ) @@ -3893,6 +4414,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -3903,7 +4425,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, @@ -3911,6 +4433,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="project_id", @@ -3921,7 +4444,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, @@ -3929,6 +4452,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="service_account_email", @@ -3939,7 +4463,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, @@ -3947,6 +4471,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="worker_count", @@ -3965,6 +4490,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="worker_config", @@ -3983,6 +4509,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="regions", @@ -4001,6 +4528,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -4019,6 +4547,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_time", @@ -4037,6 +4566,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="delete_time", @@ -4055,6 +4585,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="status", @@ -4073,18 +4604,19 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], - enum_types=[_WORKERPOOL_REGION, _WORKERPOOL_STATUS], + enum_types=[_WORKERPOOL_REGION, _WORKERPOOL_STATUS,], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=7221, - serialized_end=7849, + serialized_start=7557, + serialized_end=8185, ) @@ -4094,6 +4626,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="machine_type", @@ -4104,7 +4637,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, @@ -4112,6 +4645,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="disk_size_gb", @@ -4130,6 +4664,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="network", @@ -4148,6 +4683,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="tag", @@ -4158,7 +4694,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, @@ -4166,6 +4702,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -4176,8 +4713,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=7852, - serialized_end=7980, + serialized_start=8188, + serialized_end=8316, ) @@ -4187,6 +4724,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -4197,7 +4735,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, @@ -4205,6 +4743,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="network", @@ -4215,7 +4754,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, @@ -4223,6 +4762,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="subnetwork", @@ -4233,7 +4773,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, @@ -4241,6 +4781,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -4251,8 +4792,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=7982, - serialized_end=8048, + serialized_start=8318, + serialized_end=8384, ) @@ -4262,6 +4803,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -4272,7 +4814,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, @@ -4280,6 +4822,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="worker_pool", @@ -4298,6 +4841,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -4308,8 +4852,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=8050, - serialized_end=8155, + serialized_start=8386, + serialized_end=8491, ) @@ -4319,6 +4863,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -4329,7 +4874,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, @@ -4337,7 +4882,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -4347,8 +4893,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=8157, - serialized_end=8193, + serialized_start=8493, + serialized_end=8529, ) @@ -4358,6 +4904,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -4368,7 +4915,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, @@ -4376,7 +4923,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -4386,8 +4934,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=8195, - serialized_end=8234, + serialized_start=8531, + serialized_end=8570, ) @@ -4397,6 +4945,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -4407,7 +4956,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, @@ -4415,6 +4964,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="worker_pool", @@ -4433,6 +4983,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -4443,8 +4994,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=8236, - serialized_end=8339, + serialized_start=8572, + serialized_end=8675, ) @@ -4454,6 +5005,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -4464,7 +5016,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, @@ -4472,7 +5024,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -4482,8 +5035,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=8341, - serialized_end=8381, + serialized_start=8677, + serialized_end=8717, ) @@ -4493,6 +5046,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="worker_pools", @@ -4511,7 +5065,8 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, - ) + create_key=_descriptor._internal_create_key, + ), ], extensions=[], nested_types=[], @@ -4521,11 +5076,15 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=8383, - serialized_end=8473, + serialized_start=8719, + serialized_end=8809, ) _RUNBUILDTRIGGERREQUEST.fields_by_name["source"].message_type = _REPOSOURCE +_REPOSOURCE_SUBSTITUTIONSENTRY.containing_type = _REPOSOURCE +_REPOSOURCE.fields_by_name[ + "substitutions" +].message_type = _REPOSOURCE_SUBSTITUTIONSENTRY _REPOSOURCE.oneofs_by_name["revision"].fields.append( _REPOSOURCE.fields_by_name["branch_name"] ) @@ -4584,6 +5143,9 @@ _BUILD.fields_by_name[ "timeout" ].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_BUILD.fields_by_name[ + "queue_ttl" +].message_type = google_dot_protobuf_dot_duration__pb2._DURATION _BUILD.fields_by_name["artifacts"].message_type = _ARTIFACTS _BUILD.fields_by_name["source_provenance"].message_type = _SOURCEPROVENANCE _BUILD.fields_by_name["options"].message_type = _BUILDOPTIONS @@ -4768,11 +5330,10 @@ RetryBuildRequest = _reflection.GeneratedProtocolMessageType( "RetryBuildRequest", (_message.Message,), - dict( - DESCRIPTOR=_RETRYBUILDREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Specifies a build to retry. - + { + "DESCRIPTOR": _RETRYBUILDREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Specifies a build to retry. Attributes: project_id: @@ -4781,18 +5342,17 @@ Required. Build ID of the original build. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.RetryBuildRequest) - ), + }, ) _sym_db.RegisterMessage(RetryBuildRequest) RunBuildTriggerRequest = _reflection.GeneratedProtocolMessageType( "RunBuildTriggerRequest", (_message.Message,), - dict( - DESCRIPTOR=_RUNBUILDTRIGGERREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Specifies a build trigger to run and the source to use. - + { + "DESCRIPTOR": _RUNBUILDTRIGGERREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Specifies a build trigger to run and the source to use. Attributes: project_id: @@ -4803,19 +5363,17 @@ Required. Source to build against this trigger. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.RunBuildTriggerRequest) - ), + }, ) _sym_db.RegisterMessage(RunBuildTriggerRequest) StorageSource = _reflection.GeneratedProtocolMessageType( "StorageSource", (_message.Message,), - dict( - DESCRIPTOR=_STORAGESOURCE, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Location of the source in an archive file in Google Cloud - Storage. - + { + "DESCRIPTOR": _STORAGESOURCE, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Location of the source in an archive file in Google Cloud Storage. Attributes: bucket: @@ -4832,27 +5390,33 @@ generation is omitted, the latest generation will be used. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.StorageSource) - ), + }, ) _sym_db.RegisterMessage(StorageSource) RepoSource = _reflection.GeneratedProtocolMessageType( "RepoSource", (_message.Message,), - dict( - DESCRIPTOR=_REPOSOURCE, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Location of the source in a Google Cloud Source - Repository. - + { + "SubstitutionsEntry": _reflection.GeneratedProtocolMessageType( + "SubstitutionsEntry", + (_message.Message,), + { + "DESCRIPTOR": _REPOSOURCE_SUBSTITUTIONSENTRY, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2" + # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.RepoSource.SubstitutionsEntry) + }, + ), + "DESCRIPTOR": _REPOSOURCE, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Location of the source in a Google Cloud Source Repository. Attributes: project_id: ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed. repo_name: - Name of the Cloud Source Repository. If omitted, the name - "default" is assumed. + Required. Name of the Cloud Source Repository. revision: A revision within the Cloud Source Repository must be specified in one of these ways. @@ -4868,23 +5432,29 @@ Explicit commit SHA to build. dir: Directory, relative to the source root, in which to run the - build. This must be a relative path. If a step's ``dir`` is + build. This must be a relative path. If a step’s ``dir`` is specified and is an absolute path, this value is ignored for - that step's execution. + that step’s execution. + invert_regex: + Only trigger a build if the revision regex does NOT match the + revision regex. + substitutions: + Substitutions to use in a triggered build. Should only be used + with RunBuildTrigger """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.RepoSource) - ), + }, ) _sym_db.RegisterMessage(RepoSource) +_sym_db.RegisterMessage(RepoSource.SubstitutionsEntry) Source = _reflection.GeneratedProtocolMessageType( "Source", (_message.Message,), - dict( - DESCRIPTOR=_SOURCE, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Location of the source in a supported storage service. - + { + "DESCRIPTOR": _SOURCE, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Location of the source in a supported storage service. Attributes: source: @@ -4897,18 +5467,17 @@ Source Repository. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Source) - ), + }, ) _sym_db.RegisterMessage(Source) BuiltImage = _reflection.GeneratedProtocolMessageType( "BuiltImage", (_message.Message,), - dict( - DESCRIPTOR=_BUILTIMAGE, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""An image built by the pipeline. - + { + "DESCRIPTOR": _BUILTIMAGE, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """An image built by the pipeline. Attributes: name: @@ -4921,56 +5490,55 @@ specified image. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.BuiltImage) - ), + }, ) _sym_db.RegisterMessage(BuiltImage) BuildStep = _reflection.GeneratedProtocolMessageType( "BuildStep", (_message.Message,), - dict( - DESCRIPTOR=_BUILDSTEP, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""A step in the build pipeline. - + { + "DESCRIPTOR": _BUILDSTEP, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """A step in the build pipeline. Attributes: name: Required. The name of the container image that will run this particular build step. If the image is available in the - host's Docker daemon's cache, it will be run directly. If not, + host’s Docker daemon’s cache, it will be run directly. If not, the host will attempt to pull the image first, using the - builder service account's credentials if necessary. The - Docker daemon's cache will already have the latest versions of + builder service account’s credentials if necessary. The + Docker daemon’s cache will already have the latest versions of all of the officially supported build steps (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon will also have cached many of the layers for - some popular images, like "ubuntu", "debian", but they will be + some popular images, like “ubuntu”, “debian”, but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the - host's Docker daemon's cache and is available to use as the + host’s Docker daemon’s cache and is available to use as the name for a later build step. env: A list of environment variable definitions to be used when - running a step. The elements are of the form "KEY=VALUE" for - the environment variable "KEY" being given the value "VALUE". + running a step. The elements are of the form “KEY=VALUE” for + the environment variable “KEY” being given the value “VALUE”. args: A list of arguments that will be presented to the step when it - is started. If the image used to run the step's container has + is started. If the image used to run the step’s container has an entrypoint, the ``args`` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments. dir: - Working directory to use when running this step's container. + Working directory to use when running this step’s container. If this value is a relative path, it is relative to the - build's working directory. If this value is absolute, it may - be outside the build's working directory, in which case the + build’s working directory. If this value is absolute, it may + be outside the build’s working directory, in which case the contents of the path may not be persisted across build step executions, unless a ``volume`` for that path is specified. If the build specifies a ``RepoSource`` with ``dir`` and a step with a ``dir``, which specifies an absolute path, the - ``RepoSource`` ``dir`` is ignored for the step's execution. + ``RepoSource`` ``dir`` is ignored for the step’s execution. id: Unique identifier for this build step, used in ``wait_for`` to reference this build step as a dependency. @@ -4981,13 +5549,13 @@ empty, this build step will start when all previous build steps in the ``Build.Steps`` list have completed successfully. entrypoint: - Entrypoint to be used instead of the build step image's - default entrypoint. If unset, the image's default entrypoint + Entrypoint to be used instead of the build step image’s + default entrypoint. If unset, the image’s default entrypoint is used. secret_env: A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be - specified in the build's ``Secret``. + specified in the build’s ``Secret``. volumes: List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build @@ -5000,7 +5568,7 @@ build step. pull_timing: Output only. Stores timing information for pulling this build - step's builder image only. + step’s builder image only. timeout: Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run @@ -5011,20 +5579,18 @@ is not updated in real-time as the build progresses. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.BuildStep) - ), + }, ) _sym_db.RegisterMessage(BuildStep) Volume = _reflection.GeneratedProtocolMessageType( "Volume", (_message.Message,), - dict( - DESCRIPTOR=_VOLUME, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Volume describes a Docker container volume which is - mounted into build steps in order to persist files across build step - execution. - + { + "DESCRIPTOR": _VOLUME, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Volume describes a Docker container volume which is mounted into build + steps in order to persist files across build step execution. Attributes: name: @@ -5037,18 +5603,17 @@ or with certain reserved volume paths. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Volume) - ), + }, ) _sym_db.RegisterMessage(Volume) Results = _reflection.GeneratedProtocolMessageType( "Results", (_message.Message,), - dict( - DESCRIPTOR=_RESULTS, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Artifacts created by the build pipeline. - + { + "DESCRIPTOR": _RESULTS, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Artifacts created by the build pipeline. Attributes: images: @@ -5073,19 +5638,18 @@ Time to push all non-container artifacts. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Results) - ), + }, ) _sym_db.RegisterMessage(Results) ArtifactResult = _reflection.GeneratedProtocolMessageType( "ArtifactResult", (_message.Message,), - dict( - DESCRIPTOR=_ARTIFACTRESULT, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""An artifact that was uploaded during a build. This is a - single record in the artifact manifest JSON file. - + { + "DESCRIPTOR": _ARTIFACTRESULT, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """An artifact that was uploaded during a build. This is a single record + in the artifact manifest JSON file. Attributes: location: @@ -5096,52 +5660,46 @@ The file hash of the artifact. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.ArtifactResult) - ), + }, ) _sym_db.RegisterMessage(ArtifactResult) Build = _reflection.GeneratedProtocolMessageType( "Build", (_message.Message,), - dict( - SubstitutionsEntry=_reflection.GeneratedProtocolMessageType( + { + "SubstitutionsEntry": _reflection.GeneratedProtocolMessageType( "SubstitutionsEntry", (_message.Message,), - dict( - DESCRIPTOR=_BUILD_SUBSTITUTIONSENTRY, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2" + { + "DESCRIPTOR": _BUILD_SUBSTITUTIONSENTRY, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2" # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Build.SubstitutionsEntry) - ), + }, ), - TimingEntry=_reflection.GeneratedProtocolMessageType( + "TimingEntry": _reflection.GeneratedProtocolMessageType( "TimingEntry", (_message.Message,), - dict( - DESCRIPTOR=_BUILD_TIMINGENTRY, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2" + { + "DESCRIPTOR": _BUILD_TIMINGENTRY, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2" # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Build.TimingEntry) - ), - ), - DESCRIPTOR=_BUILD, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""A build resource in the Cloud Build API. - - At a high level, a ``Build`` describes where to find source code, how to - build it (for example, the builder image to run on the source), and - where to store the built artifacts. - - Fields can include the following variables, which will be expanded when - the build is created: - - - $PROJECT\_ID: the project ID of the build. - - $BUILD\_ID: the autogenerated ID of the build. - - $REPO\_NAME: the source repository name specified by RepoSource. - - $BRANCH\_NAME: the branch name specified by RepoSource. - - $TAG\_NAME: the tag name specified by RepoSource. - - $REVISION\_ID or $COMMIT\_SHA: the commit SHA specified by RepoSource - or resolved from the specified branch or tag. - - $SHORT\_SHA: first 7 characters of $REVISION\_ID or $COMMIT\_SHA. - + }, + ), + "DESCRIPTOR": _BUILD, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """A build resource in the Cloud Build API. At a high level, a ``Build`` + describes where to find source code, how to build it (for example, the + builder image to run on the source), and where to store the built + artifacts. Fields can include the following variables, which will be + expanded when the build is created: - $PROJECT_ID: the project ID of + the build. - $BUILD_ID: the autogenerated ID of the build. - + $REPO_NAME: the source repository name specified by RepoSource. - + $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: + the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: + the commit SHA specified by RepoSource or resolved from the + specified branch or tag. - $SHORT_SHA: first 7 characters of + $REVISION_ID or $COMMIT_SHA. Attributes: id: @@ -5166,8 +5724,8 @@ Output only. Time at which execution of the build was started. finish_time: Output only. Time at which execution of the build was - finished. The difference between finish\_time and start\_time - is the duration of the build's execution. + finished. The difference between finish_time and start_time + is the duration of the build’s execution. timeout: Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on @@ -5176,10 +5734,15 @@ images: A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder - service account's credentials. The digests of the pushed - images will be stored in the ``Build`` resource's results + service account’s credentials. The digests of the pushed + images will be stored in the ``Build`` resource’s results field. If any of the images fail to be pushed, the build status is marked ``FAILURE``. + queue_ttl: + TTL in queue for this build. If provided and the build is + enqueued longer than this value, the build will expire and the + build status will be ``EXPIRED``. The TTL starts ticking from + create_time. artifacts: Artifacts produced by the build that should be uploaded upon successful completion of all build steps. @@ -5213,7 +5776,7 @@ specify source or images, these keys will not be included. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Build) - ), + }, ) _sym_db.RegisterMessage(Build) _sym_db.RegisterMessage(Build.SubstitutionsEntry) @@ -5222,46 +5785,44 @@ Artifacts = _reflection.GeneratedProtocolMessageType( "Artifacts", (_message.Message,), - dict( - ArtifactObjects=_reflection.GeneratedProtocolMessageType( + { + "ArtifactObjects": _reflection.GeneratedProtocolMessageType( "ArtifactObjects", (_message.Message,), - dict( - DESCRIPTOR=_ARTIFACTS_ARTIFACTOBJECTS, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Files in the workspace to upload to Cloud Storage upon successful + { + "DESCRIPTOR": _ARTIFACTS_ARTIFACTOBJECTS, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. - Attributes: location: Cloud Storage bucket and optional object path, in the form - "gs://bucket/path/to/somewhere/". (see `Bucket Name + “gs://bucket/path/to/somewhere/”. (see `Bucket Name Requirements `__). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix. paths: - Path globs used to match files in the build's workspace. + Path globs used to match files in the build’s workspace. timing: Output only. Stores timing information for pushing all artifact objects. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects) - ), + }, ), - DESCRIPTOR=_ARTIFACTS, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Artifacts produced by a build that should be uploaded upon - successful completion of all build steps. - + "DESCRIPTOR": _ARTIFACTS, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Artifacts produced by a build that should be uploaded upon successful + completion of all build steps. Attributes: images: A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the - builder service account's credentials. The digests of the - pushed images will be stored in the Build resource's results + builder service account’s credentials. The digests of the + pushed images will be stored in the Build resource’s results field. If any of the images fail to be pushed, the build is marked FAILURE. objects: @@ -5269,13 +5830,13 @@ successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service - account's credentials. The location and generation of the - uploaded objects will be stored in the Build resource's + account’s credentials. The location and generation of the + uploaded objects will be stored in the Build resource’s results field. If any objects fail to be pushed, the build is marked FAILURE. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Artifacts) - ), + }, ) _sym_db.RegisterMessage(Artifacts) _sym_db.RegisterMessage(Artifacts.ArtifactObjects) @@ -5283,11 +5844,10 @@ TimeSpan = _reflection.GeneratedProtocolMessageType( "TimeSpan", (_message.Message,), - dict( - DESCRIPTOR=_TIMESPAN, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Start and end times for a build execution phase. - + { + "DESCRIPTOR": _TIMESPAN, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Start and end times for a build execution phase. Attributes: start_time: @@ -5296,53 +5856,51 @@ End of time span. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.TimeSpan) - ), + }, ) _sym_db.RegisterMessage(TimeSpan) BuildOperationMetadata = _reflection.GeneratedProtocolMessageType( "BuildOperationMetadata", (_message.Message,), - dict( - DESCRIPTOR=_BUILDOPERATIONMETADATA, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Metadata for build operations. - + { + "DESCRIPTOR": _BUILDOPERATIONMETADATA, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Metadata for build operations. Attributes: build: The build that the operation is tracking. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.BuildOperationMetadata) - ), + }, ) _sym_db.RegisterMessage(BuildOperationMetadata) SourceProvenance = _reflection.GeneratedProtocolMessageType( "SourceProvenance", (_message.Message,), - dict( - FileHashesEntry=_reflection.GeneratedProtocolMessageType( + { + "FileHashesEntry": _reflection.GeneratedProtocolMessageType( "FileHashesEntry", (_message.Message,), - dict( - DESCRIPTOR=_SOURCEPROVENANCE_FILEHASHESENTRY, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2" + { + "DESCRIPTOR": _SOURCEPROVENANCE_FILEHASHESENTRY, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2" # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.SourceProvenance.FileHashesEntry) - ), + }, ), - DESCRIPTOR=_SOURCEPROVENANCE, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Provenance of the source. Ways to find the original - source, or verify that some source was used for this build. - + "DESCRIPTOR": _SOURCEPROVENANCE, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Provenance of the source. Ways to find the original source, or verify + that some source was used for this build. Attributes: resolved_storage_source: - A copy of the build's ``source.storage_source``, if exists, + A copy of the build’s ``source.storage_source``, if exists, with any generations resolved. resolved_repo_source: - A copy of the build's ``source.repo_source``, if exists, with + A copy of the build’s ``source.repo_source``, if exists, with any revisions resolved. file_hashes: Output only. Hash(es) of the build source, which can be used @@ -5356,7 +5914,7 @@ path to that file. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.SourceProvenance) - ), + }, ) _sym_db.RegisterMessage(SourceProvenance) _sym_db.RegisterMessage(SourceProvenance.FileHashesEntry) @@ -5364,31 +5922,29 @@ FileHashes = _reflection.GeneratedProtocolMessageType( "FileHashes", (_message.Message,), - dict( - DESCRIPTOR=_FILEHASHES, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Container message for hashes of byte content of files, - used in SourceProvenance messages to verify integrity of source input to - the build. - + { + "DESCRIPTOR": _FILEHASHES, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Container message for hashes of byte content of files, used in + SourceProvenance messages to verify integrity of source input to the + build. Attributes: file_hash: Collection of file hashes. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.FileHashes) - ), + }, ) _sym_db.RegisterMessage(FileHashes) Hash = _reflection.GeneratedProtocolMessageType( "Hash", (_message.Message,), - dict( - DESCRIPTOR=_HASH, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Container message for hash values. - + { + "DESCRIPTOR": _HASH, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Container message for hash values. Attributes: type: @@ -5397,28 +5953,27 @@ The hash value. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Hash) - ), + }, ) _sym_db.RegisterMessage(Hash) Secret = _reflection.GeneratedProtocolMessageType( "Secret", (_message.Message,), - dict( - SecretEnvEntry=_reflection.GeneratedProtocolMessageType( + { + "SecretEnvEntry": _reflection.GeneratedProtocolMessageType( "SecretEnvEntry", (_message.Message,), - dict( - DESCRIPTOR=_SECRET_SECRETENVENTRY, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2" + { + "DESCRIPTOR": _SECRET_SECRETENVENTRY, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2" # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Secret.SecretEnvEntry) - ), + }, ), - DESCRIPTOR=_SECRET, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Pairs a set of secret environment variables containing - encrypted values with the Cloud KMS key to use to decrypt the value. - + "DESCRIPTOR": _SECRET, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Pairs a set of secret environment variables containing encrypted + values with the Cloud KMS key to use to decrypt the value. Attributes: kms_key_name: @@ -5426,12 +5981,12 @@ secret_env: Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a - build's secrets, and must be used by at least one build step. + build’s secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 - secret values across all of a build's secrets. + secret values across all of a build’s secrets. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Secret) - ), + }, ) _sym_db.RegisterMessage(Secret) _sym_db.RegisterMessage(Secret.SecretEnvEntry) @@ -5439,11 +5994,10 @@ CreateBuildRequest = _reflection.GeneratedProtocolMessageType( "CreateBuildRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEBUILDREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Request to create a new build. - + { + "DESCRIPTOR": _CREATEBUILDREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Request to create a new build. Attributes: project_id: @@ -5452,18 +6006,17 @@ Required. Build resource to create. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.CreateBuildRequest) - ), + }, ) _sym_db.RegisterMessage(CreateBuildRequest) GetBuildRequest = _reflection.GeneratedProtocolMessageType( "GetBuildRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETBUILDREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Request to get a build. - + { + "DESCRIPTOR": _GETBUILDREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Request to get a build. Attributes: project_id: @@ -5472,18 +6025,17 @@ Required. ID of the build. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.GetBuildRequest) - ), + }, ) _sym_db.RegisterMessage(GetBuildRequest) ListBuildsRequest = _reflection.GeneratedProtocolMessageType( "ListBuildsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTBUILDSREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Request to list builds. - + { + "DESCRIPTOR": _LISTBUILDSREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Request to list builds. Attributes: project_id: @@ -5496,18 +6048,17 @@ The raw filter text to constrain the results. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.ListBuildsRequest) - ), + }, ) _sym_db.RegisterMessage(ListBuildsRequest) ListBuildsResponse = _reflection.GeneratedProtocolMessageType( "ListBuildsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTBUILDSRESPONSE, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Response including listed builds. - + { + "DESCRIPTOR": _LISTBUILDSRESPONSE, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Response including listed builds. Attributes: builds: @@ -5516,18 +6067,17 @@ Token to receive the next page of results. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.ListBuildsResponse) - ), + }, ) _sym_db.RegisterMessage(ListBuildsResponse) CancelBuildRequest = _reflection.GeneratedProtocolMessageType( "CancelBuildRequest", (_message.Message,), - dict( - DESCRIPTOR=_CANCELBUILDREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Request to cancel an ongoing build. - + { + "DESCRIPTOR": _CANCELBUILDREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Request to cancel an ongoing build. Attributes: project_id: @@ -5536,28 +6086,27 @@ Required. ID of the build. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.CancelBuildRequest) - ), + }, ) _sym_db.RegisterMessage(CancelBuildRequest) BuildTrigger = _reflection.GeneratedProtocolMessageType( "BuildTrigger", (_message.Message,), - dict( - SubstitutionsEntry=_reflection.GeneratedProtocolMessageType( + { + "SubstitutionsEntry": _reflection.GeneratedProtocolMessageType( "SubstitutionsEntry", (_message.Message,), - dict( - DESCRIPTOR=_BUILDTRIGGER_SUBSTITUTIONSENTRY, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2" + { + "DESCRIPTOR": _BUILDTRIGGER_SUBSTITUTIONSENTRY, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2" # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.BuildTrigger.SubstitutionsEntry) - ), + }, ), - DESCRIPTOR=_BUILDTRIGGER, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Configuration for an automated build in response to source - repository changes. - + "DESCRIPTOR": _BUILDTRIGGER, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Configuration for an automated build in response to source repository + changes. Attributes: id: @@ -5565,8 +6114,11 @@ description: Human-readable description of this trigger. name: - User assigned name of the trigger. Must be unique within the - project. + User-assigned name of the trigger. Must be unique within the + project. Trigger names must meet the following requirements: + - They must contain only alphanumeric characters and dashes. + - They can be 1-64 characters long. - They must begin and + end with an alphanumeric character. tags: Tags for annotation of a ``BuildTrigger`` trigger_template: @@ -5592,27 +6144,29 @@ disabled: If true, the trigger will never result in a build. substitutions: - Substitutions data for Build resource. + Substitutions for Build resource. The keys must match the + following regular expression: ``^_[A-Z0-9_]+$``.The keys + cannot conflict with the keys in bindings. ignored_files: - ignored\_files and included\_files are file glob matches using - http://godoc/pkg/path/filepath#Match extended with support for - "\*\*". If ignored\_files and changed files are both empty, - then they are not used to determine whether or not to trigger - a build. If ignored\_files is not empty, then we ignore any - files that match any of the ignored\_file globs. If the change - has no files that are outside of the ignored\_files globs, - then we do not trigger a build. + ignored_files and included_files are file glob matches using + https://golang.org/pkg/path/filepath/#Match extended with + support for "**". If ignored_files and changed files are both + empty, then they are not used to determine whether or not to + trigger a build. If ignored_files is not empty, then we + ignore any files that match any of the ignored_file globs. If + the change has no files that are outside of the ignored_files + globs, then we do not trigger a build. included_files: If any of the files altered in the commit pass the - ignored\_files filter and included\_files is empty, then as - far as this filter is concerned, we should trigger the build. - If any of the files altered in the commit pass the - ignored\_files filter and included\_files is not empty, then - we make sure that at least one of those files matches a - included\_files glob. If not, then we do not trigger a build. + ignored_files filter and included_files is empty, then as far + as this filter is concerned, we should trigger the build. If + any of the files altered in the commit pass the ignored_files + filter and included_files is not empty, then we make sure that + at least one of those files matches a included_files glob. If + not, then we do not trigger a build. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.BuildTrigger) - ), + }, ) _sym_db.RegisterMessage(BuildTrigger) _sym_db.RegisterMessage(BuildTrigger.SubstitutionsEntry) @@ -5620,14 +6174,12 @@ GitHubEventsConfig = _reflection.GeneratedProtocolMessageType( "GitHubEventsConfig", (_message.Message,), - dict( - DESCRIPTOR=_GITHUBEVENTSCONFIG, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""GitHubEventsConfig describes the configuration of a - trigger that creates a build whenever a GitHub event is received. - - This message is experimental. - + { + "DESCRIPTOR": _GITHUBEVENTSCONFIG, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """GitHubEventsConfig describes the configuration of a trigger that + creates a build whenever a GitHub event is received. This message is + experimental. Attributes: installation_id: @@ -5635,33 +6187,32 @@ owner: Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is - "googlecloudplatform". + “googlecloudplatform”. name: Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is - "cloud-builders". + “cloud-builders”. event: Filter describing the types of events to trigger a build. - Currently supported event types: push, pull\_request. + Currently supported event types: push, pull_request. pull_request: filter to match changes in pull requests. push: filter to match changes in refs like branches, tags. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.GitHubEventsConfig) - ), + }, ) _sym_db.RegisterMessage(GitHubEventsConfig) PullRequestFilter = _reflection.GeneratedProtocolMessageType( "PullRequestFilter", (_message.Message,), - dict( - DESCRIPTOR=_PULLREQUESTFILTER, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""PullRequestFilter contains filter properties for matching - GitHub Pull Requests. - + { + "DESCRIPTOR": _PULLREQUESTFILTER, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """PullRequestFilter contains filter properties for matching GitHub Pull + Requests. Attributes: git_ref: @@ -5672,23 +6223,24 @@ expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax comment_control: - Whether to block builds on a "/gcbrun" comment from a - repository owner or collaborator. + Whether to block builds on a “/gcbrun” comment from a + repository admin or collaborator. + invert_regex: + If true, branches that do NOT match the git_ref will trigger a + build. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.PullRequestFilter) - ), + }, ) _sym_db.RegisterMessage(PullRequestFilter) PushFilter = _reflection.GeneratedProtocolMessageType( "PushFilter", (_message.Message,), - dict( - DESCRIPTOR=_PUSHFILTER, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Push contains filter properties for matching GitHub git - pushes. - + { + "DESCRIPTOR": _PUSHFILTER, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Push contains filter properties for matching GitHub git pushes. Attributes: git_ref: @@ -5702,20 +6254,22 @@ Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax + invert_regex: + When true, only trigger a build if the revision regex does NOT + match the git_ref regex. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.PushFilter) - ), + }, ) _sym_db.RegisterMessage(PushFilter) CreateBuildTriggerRequest = _reflection.GeneratedProtocolMessageType( "CreateBuildTriggerRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEBUILDTRIGGERREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Request to create a new ``BuildTrigger``. - + { + "DESCRIPTOR": _CREATEBUILDTRIGGERREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Request to create a new ``BuildTrigger``. Attributes: project_id: @@ -5725,38 +6279,37 @@ Required. ``BuildTrigger`` to create. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.CreateBuildTriggerRequest) - ), + }, ) _sym_db.RegisterMessage(CreateBuildTriggerRequest) GetBuildTriggerRequest = _reflection.GeneratedProtocolMessageType( "GetBuildTriggerRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETBUILDTRIGGERREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Returns the ``BuildTrigger`` with the specified ID. - + { + "DESCRIPTOR": _GETBUILDTRIGGERREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Returns the ``BuildTrigger`` with the specified ID. Attributes: project_id: Required. ID of the project that owns the trigger. trigger_id: - Required. ID of the ``BuildTrigger`` to get. + Required. Identifier (``id`` or ``name``) of the + ``BuildTrigger`` to get. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.GetBuildTriggerRequest) - ), + }, ) _sym_db.RegisterMessage(GetBuildTriggerRequest) ListBuildTriggersRequest = _reflection.GeneratedProtocolMessageType( "ListBuildTriggersRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTBUILDTRIGGERSREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Request to list existing ``BuildTriggers``. - + { + "DESCRIPTOR": _LISTBUILDTRIGGERSREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Request to list existing ``BuildTriggers``. Attributes: project_id: @@ -5767,18 +6320,17 @@ Token to provide to skip to a particular spot in the list. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.ListBuildTriggersRequest) - ), + }, ) _sym_db.RegisterMessage(ListBuildTriggersRequest) ListBuildTriggersResponse = _reflection.GeneratedProtocolMessageType( "ListBuildTriggersResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTBUILDTRIGGERSRESPONSE, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Response containing existing ``BuildTriggers``. - + { + "DESCRIPTOR": _LISTBUILDTRIGGERSRESPONSE, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Response containing existing ``BuildTriggers``. Attributes: triggers: @@ -5788,18 +6340,17 @@ Token to receive the next page of results. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.ListBuildTriggersResponse) - ), + }, ) _sym_db.RegisterMessage(ListBuildTriggersResponse) DeleteBuildTriggerRequest = _reflection.GeneratedProtocolMessageType( "DeleteBuildTriggerRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEBUILDTRIGGERREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Request to delete a ``BuildTrigger``. - + { + "DESCRIPTOR": _DELETEBUILDTRIGGERREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Request to delete a ``BuildTrigger``. Attributes: project_id: @@ -5808,18 +6359,17 @@ Required. ID of the ``BuildTrigger`` to delete. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.DeleteBuildTriggerRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteBuildTriggerRequest) UpdateBuildTriggerRequest = _reflection.GeneratedProtocolMessageType( "UpdateBuildTriggerRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEBUILDTRIGGERREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Request to update an existing ``BuildTrigger``. - + { + "DESCRIPTOR": _UPDATEBUILDTRIGGERREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Request to update an existing ``BuildTrigger``. Attributes: project_id: @@ -5830,18 +6380,17 @@ Required. ``BuildTrigger`` to update. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.UpdateBuildTriggerRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateBuildTriggerRequest) BuildOptions = _reflection.GeneratedProtocolMessageType( "BuildOptions", (_message.Message,), - dict( - DESCRIPTOR=_BUILDOPTIONS, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Optional arguments to enable specific features of builds. - + { + "DESCRIPTOR": _BUILDOPTIONS, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Optional arguments to enable specific features of builds. Attributes: source_provenance_hash: @@ -5852,10 +6401,10 @@ Compute Engine machine type on which to run the build. disk_size_gb: Requested disk size for the VM that runs the build. Note that - this is *NOT* "disk free"; some of the space will be used by + this is *NOT* “disk free”; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build - -- the build may run with a larger disk than requested. At + – the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error. substitution_option: @@ -5865,10 +6414,9 @@ Option to define build log streaming behavior to Google Cloud Storage. worker_pool: - Option to specify a ``WorkerPool`` for the build. User - specifies the pool with the format - "[WORKERPOOL\_PROJECT\_ID]/[WORKERPOOL\_NAME]". This is an - experimental field. + Option to specify a ``WorkerPool`` for the build. Format: + projects/{project}/workerPools/{workerPool} This field is + experimental. logging: Option to specify the logging mode, which determines where the logs are stored. @@ -5877,12 +6425,12 @@ exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form - "KEY=VALUE" for the environment variable "KEY" being given the - value "VALUE". + “KEY=VALUE” for the environment variable “KEY” being given the + value “VALUE”. secret_env: A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values - must be specified in the build's ``Secret``. These variables + must be specified in the build’s ``Secret``. These variables will be available to all build steps in this build. volumes: Global list of volumes to mount for ALL build steps Each @@ -5895,26 +6443,24 @@ configuration. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.BuildOptions) - ), + }, ) _sym_db.RegisterMessage(BuildOptions) WorkerPool = _reflection.GeneratedProtocolMessageType( "WorkerPool", (_message.Message,), - dict( - DESCRIPTOR=_WORKERPOOL, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Configuration for a WorkerPool to run the builds. - - Workers are machines that Cloud Build uses to run your builds. By - default, all workers run in a project owned by Cloud Build. To have full - control over the workers that execute your builds -- such as enabling - them to access private resources on your private network -- you can - request Cloud Build to run the workers in your own project by creating a + { + "DESCRIPTOR": _WORKERPOOL, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Configuration for a WorkerPool to run the builds. Workers are + machines that Cloud Build uses to run your builds. By default, all + workers run in a project owned by Cloud Build. To have full control + over the workers that execute your builds – such as enabling them to + access private resources on your private network – you can request + Cloud Build to run the workers in your own project by creating a custom workers pool. - Attributes: name: User-defined name of the ``WorkerPool``. @@ -5932,7 +6478,7 @@ Configuration to be used for a creating workers in the ``WorkerPool``. regions: - List of regions to create the ``WorkerPool``. Regions can't be + List of regions to create the ``WorkerPool``. Regions can’t be empty. If Cloud Build adds a new GCP region in the future, the existing ``WorkerPool`` will not be enabled in the new region automatically; you must add the new region to the ``regions`` @@ -5950,19 +6496,18 @@ Output only. WorkerPool Status. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.WorkerPool) - ), + }, ) _sym_db.RegisterMessage(WorkerPool) WorkerConfig = _reflection.GeneratedProtocolMessageType( "WorkerConfig", (_message.Message,), - dict( - DESCRIPTOR=_WORKERCONFIG, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""WorkerConfig defines the configuration to be used for a - creating workers in the pool. - + { + "DESCRIPTOR": _WORKERCONFIG, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """WorkerConfig defines the configuration to be used for a creating + workers in the pool. Attributes: machine_type: @@ -5974,7 +6519,7 @@ case, the VM specified in the ``build_options`` will be created on demand at build time. For more information see https://cloud.google.com/cloud-build/docs/speeding-up- - builds#using\_custom\_virtual\_machine\_sizes + builds#using_custom_virtual_machine_sizes disk_size_gb: Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If ``0`` is @@ -5988,55 +6533,52 @@ network: The network definition used to create the worker. If this section is left empty, the workers will be created in - WorkerPool.project\_id on the default network. + WorkerPool.project_id on the default network. tag: The tag applied to the worker, and the same tag used by the firewall rule. It is used to identify the Cloud Build workers among other VMs. The default value for tag is ``worker``. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.WorkerConfig) - ), + }, ) _sym_db.RegisterMessage(WorkerConfig) Network = _reflection.GeneratedProtocolMessageType( "Network", (_message.Message,), - dict( - DESCRIPTOR=_NETWORK, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Network describes the GCP network used to create workers - in. - + { + "DESCRIPTOR": _NETWORK, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Network describes the GCP network used to create workers in. Attributes: project_id: Project id containing the defined network and subnetwork. For - a peered VPC, this will be the same as the project\_id in - which the workers are created. For a shared VPC, this will be - the project sharing the network with the project\_id project - in which workers will be created. For custom workers with no - VPC, this will be the same as project\_id. + a peered VPC, this will be the same as the project_id in which + the workers are created. For a shared VPC, this will be the + project sharing the network with the project_id project in + which workers will be created. For custom workers with no VPC, + this will be the same as project_id. network: - Network on which the workers are created. "default" network is + Network on which the workers are created. “default” network is used if empty. subnetwork: - Subnetwork on which the workers are created. "default" + Subnetwork on which the workers are created. “default” subnetwork is used if empty. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.Network) - ), + }, ) _sym_db.RegisterMessage(Network) CreateWorkerPoolRequest = _reflection.GeneratedProtocolMessageType( "CreateWorkerPoolRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEWORKERPOOLREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Request to create a new ``WorkerPool``. - + { + "DESCRIPTOR": _CREATEWORKERPOOLREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Request to create a new ``WorkerPool``. Attributes: parent: @@ -6045,102 +6587,97 @@ \ ``WorkerPool`` resource to create. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.CreateWorkerPoolRequest) - ), + }, ) _sym_db.RegisterMessage(CreateWorkerPoolRequest) GetWorkerPoolRequest = _reflection.GeneratedProtocolMessageType( "GetWorkerPoolRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETWORKERPOOLREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Request to get a ``WorkerPool`` with the specified name. - + { + "DESCRIPTOR": _GETWORKERPOOLREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Request to get a ``WorkerPool`` with the specified name. Attributes: name: The field will contain name of the resource requested, for - example: "projects/project-1/workerPools/workerpool-name" + example: “projects/project-1/workerPools/workerpool-name” """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.GetWorkerPoolRequest) - ), + }, ) _sym_db.RegisterMessage(GetWorkerPoolRequest) DeleteWorkerPoolRequest = _reflection.GeneratedProtocolMessageType( "DeleteWorkerPoolRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEWORKERPOOLREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Request to delete a ``WorkerPool``. - + { + "DESCRIPTOR": _DELETEWORKERPOOLREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Request to delete a ``WorkerPool``. Attributes: name: The field will contain name of the resource requested, for - example: "projects/project-1/workerPools/workerpool-name" + example: “projects/project-1/workerPools/workerpool-name” """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.DeleteWorkerPoolRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteWorkerPoolRequest) UpdateWorkerPoolRequest = _reflection.GeneratedProtocolMessageType( "UpdateWorkerPoolRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEWORKERPOOLREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Request to update a ``WorkerPool``. - + { + "DESCRIPTOR": _UPDATEWORKERPOOLREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Request to update a ``WorkerPool``. Attributes: name: The field will contain name of the resource requested, for - example: "projects/project-1/workerPools/workerpool-name" + example: “projects/project-1/workerPools/workerpool-name” worker_pool: \ ``WorkerPool`` resource to update. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.UpdateWorkerPoolRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateWorkerPoolRequest) ListWorkerPoolsRequest = _reflection.GeneratedProtocolMessageType( "ListWorkerPoolsRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTWORKERPOOLSREQUEST, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Request to list ``WorkerPool``\ s. - + { + "DESCRIPTOR": _LISTWORKERPOOLSREQUEST, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Request to list ``WorkerPool``\ s. Attributes: parent: ID of the parent project. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.ListWorkerPoolsRequest) - ), + }, ) _sym_db.RegisterMessage(ListWorkerPoolsRequest) ListWorkerPoolsResponse = _reflection.GeneratedProtocolMessageType( "ListWorkerPoolsResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTWORKERPOOLSRESPONSE, - __module__="google.devtools.cloudbuild_v1.proto.cloudbuild_pb2", - __doc__="""Response containing existing ``WorkerPools``. - + { + "DESCRIPTOR": _LISTWORKERPOOLSRESPONSE, + "__module__": "google.cloud.devtools.cloudbuild_v1.proto.cloudbuild_pb2", + "__doc__": """Response containing existing ``WorkerPools``. Attributes: worker_pools: \ ``WorkerPools`` for the project. """, # @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.ListWorkerPoolsResponse) - ), + }, ) _sym_db.RegisterMessage(ListWorkerPoolsResponse) @@ -6151,9 +6688,21 @@ _RUNBUILDTRIGGERREQUEST.fields_by_name["project_id"]._options = None _RUNBUILDTRIGGERREQUEST.fields_by_name["trigger_id"]._options = None _RUNBUILDTRIGGERREQUEST.fields_by_name["source"]._options = None +_REPOSOURCE_SUBSTITUTIONSENTRY._options = None +_BUILTIMAGE.fields_by_name["push_timing"]._options = None +_BUILDSTEP.fields_by_name["timing"]._options = None _BUILD_SUBSTITUTIONSENTRY._options = None _BUILD_TIMINGENTRY._options = None +_BUILD.fields_by_name["id"]._options = None +_BUILD.fields_by_name["project_id"]._options = None +_BUILD.fields_by_name["results"]._options = None +_BUILD.fields_by_name["create_time"]._options = None +_BUILD.fields_by_name["start_time"]._options = None +_BUILD.fields_by_name["finish_time"]._options = None +_BUILD.fields_by_name["log_url"]._options = None +_BUILD.fields_by_name["timing"]._options = None _SOURCEPROVENANCE_FILEHASHESENTRY._options = None +_SOURCEPROVENANCE.fields_by_name["file_hashes"]._options = None _SECRET_SECRETENVENTRY._options = None _CREATEBUILDREQUEST.fields_by_name["project_id"]._options = None _CREATEBUILDREQUEST.fields_by_name["build"]._options = None @@ -6163,6 +6712,8 @@ _CANCELBUILDREQUEST.fields_by_name["project_id"]._options = None _CANCELBUILDREQUEST.fields_by_name["id"]._options = None _BUILDTRIGGER_SUBSTITUTIONSENTRY._options = None +_BUILDTRIGGER.fields_by_name["id"]._options = None +_BUILDTRIGGER.fields_by_name["create_time"]._options = None _GITHUBEVENTSCONFIG.fields_by_name["installation_id"]._options = None _CREATEBUILDTRIGGERREQUEST.fields_by_name["project_id"]._options = None _CREATEBUILDTRIGGERREQUEST.fields_by_name["trigger"]._options = None @@ -6180,11 +6731,10 @@ full_name="google.devtools.cloudbuild.v1.CloudBuild", file=DESCRIPTOR, index=0, - serialized_options=_b( - "\312A\031cloudbuild.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platform" - ), - serialized_start=8476, - serialized_end=11325, + serialized_options=b"\312A\031cloudbuild.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platform", + create_key=_descriptor._internal_create_key, + serialized_start=8812, + serialized_end=11661, methods=[ _descriptor.MethodDescriptor( name="CreateBuild", @@ -6193,9 +6743,8 @@ containing_service=None, input_type=_CREATEBUILDREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002)" /v1/projects/{project_id}/builds:\005build\332A\020project_id,build\312A\037\n\005Build\022\026BuildOperationMetadata' - ), + serialized_options=b'\202\323\344\223\002)" /v1/projects/{project_id}/builds:\005build\332A\020project_id,build\312A\037\n\005Build\022\026BuildOperationMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetBuild", @@ -6204,9 +6753,8 @@ containing_service=None, input_type=_GETBUILDREQUEST, output_type=_BUILD, - serialized_options=_b( - "\202\323\344\223\002'\022%/v1/projects/{project_id}/builds/{id}\332A\rproject_id,id" - ), + serialized_options=b"\202\323\344\223\002'\022%/v1/projects/{project_id}/builds/{id}\332A\rproject_id,id", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListBuilds", @@ -6215,9 +6763,8 @@ containing_service=None, input_type=_LISTBUILDSREQUEST, output_type=_LISTBUILDSRESPONSE, - serialized_options=_b( - '\202\323\344\223\002"\022 /v1/projects/{project_id}/builds\332A\021project_id,filter' - ), + serialized_options=b'\202\323\344\223\002"\022 /v1/projects/{project_id}/builds\332A\021project_id,filter', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CancelBuild", @@ -6226,9 +6773,8 @@ containing_service=None, input_type=_CANCELBUILDREQUEST, output_type=_BUILD, - serialized_options=_b( - '\202\323\344\223\0021",/v1/projects/{project_id}/builds/{id}:cancel:\001*\332A\rproject_id,id' - ), + serialized_options=b'\202\323\344\223\0021",/v1/projects/{project_id}/builds/{id}:cancel:\001*\332A\rproject_id,id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="RetryBuild", @@ -6237,9 +6783,8 @@ containing_service=None, input_type=_RETRYBUILDREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\0020"+/v1/projects/{project_id}/builds/{id}:retry:\001*\332A\rproject_id,id\312A\037\n\005Build\022\026BuildOperationMetadata' - ), + serialized_options=b'\202\323\344\223\0020"+/v1/projects/{project_id}/builds/{id}:retry:\001*\332A\rproject_id,id\312A\037\n\005Build\022\026BuildOperationMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateBuildTrigger", @@ -6248,9 +6793,8 @@ containing_service=None, input_type=_CREATEBUILDTRIGGERREQUEST, output_type=_BUILDTRIGGER, - serialized_options=_b( - '\202\323\344\223\002-""/v1/projects/{project_id}/triggers:\007trigger\332A\022project_id,trigger' - ), + serialized_options=b'\202\323\344\223\002-""/v1/projects/{project_id}/triggers:\007trigger\332A\022project_id,trigger', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetBuildTrigger", @@ -6259,9 +6803,8 @@ containing_service=None, input_type=_GETBUILDTRIGGERREQUEST, output_type=_BUILDTRIGGER, - serialized_options=_b( - "\202\323\344\223\0021\022//v1/projects/{project_id}/triggers/{trigger_id}\332A\025project_id,trigger_id" - ), + serialized_options=b"\202\323\344\223\0021\022//v1/projects/{project_id}/triggers/{trigger_id}\332A\025project_id,trigger_id", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListBuildTriggers", @@ -6270,9 +6813,8 @@ containing_service=None, input_type=_LISTBUILDTRIGGERSREQUEST, output_type=_LISTBUILDTRIGGERSRESPONSE, - serialized_options=_b( - '\202\323\344\223\002$\022"/v1/projects/{project_id}/triggers\332A\nproject_id' - ), + serialized_options=b'\202\323\344\223\002$\022"/v1/projects/{project_id}/triggers\332A\nproject_id', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteBuildTrigger", @@ -6281,9 +6823,8 @@ containing_service=None, input_type=_DELETEBUILDTRIGGERREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\0021*//v1/projects/{project_id}/triggers/{trigger_id}\332A\025project_id,trigger_id" - ), + serialized_options=b"\202\323\344\223\0021*//v1/projects/{project_id}/triggers/{trigger_id}\332A\025project_id,trigger_id", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateBuildTrigger", @@ -6292,9 +6833,8 @@ containing_service=None, input_type=_UPDATEBUILDTRIGGERREQUEST, output_type=_BUILDTRIGGER, - serialized_options=_b( - "\202\323\344\223\002:2//v1/projects/{project_id}/triggers/{trigger_id}:\007trigger\332A\035project_id,trigger_id,trigger" - ), + serialized_options=b"\202\323\344\223\002:2//v1/projects/{project_id}/triggers/{trigger_id}:\007trigger\332A\035project_id,trigger_id,trigger", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="RunBuildTrigger", @@ -6303,9 +6843,8 @@ containing_service=None, input_type=_RUNBUILDTRIGGERREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b( - '\202\323\344\223\002="3/v1/projects/{project_id}/triggers/{trigger_id}:run:\006source\332A\034project_id,trigger_id,source\312A\037\n\005Build\022\026BuildOperationMetadata' - ), + serialized_options=b'\202\323\344\223\002="3/v1/projects/{project_id}/triggers/{trigger_id}:run:\006source\332A\034project_id,trigger_id,source\312A\037\n\005Build\022\026BuildOperationMetadata', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateWorkerPool", @@ -6315,6 +6854,7 @@ input_type=_CREATEWORKERPOOLREQUEST, output_type=_WORKERPOOL, serialized_options=None, + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetWorkerPool", @@ -6324,6 +6864,7 @@ input_type=_GETWORKERPOOLREQUEST, output_type=_WORKERPOOL, serialized_options=None, + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteWorkerPool", @@ -6333,6 +6874,7 @@ input_type=_DELETEWORKERPOOLREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateWorkerPool", @@ -6342,6 +6884,7 @@ input_type=_UPDATEWORKERPOOLREQUEST, output_type=_WORKERPOOL, serialized_options=None, + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListWorkerPools", @@ -6351,6 +6894,7 @@ input_type=_LISTWORKERPOOLSREQUEST, output_type=_LISTWORKERPOOLSRESPONSE, serialized_options=None, + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/proto/cloudbuild_pb2_grpc.py b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/proto/cloudbuild_pb2_grpc.py index c8abcba7c2ab..215b18c9e1f7 100644 --- a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/proto/cloudbuild_pb2_grpc.py +++ b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/proto/cloudbuild_pb2_grpc.py @@ -2,7 +2,7 @@ import grpc from google.cloud.devtools.cloudbuild_v1.proto import ( - cloudbuild_pb2 as google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2, + cloudbuild_pb2 as google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2, ) from google.longrunning import ( operations_pb2 as google_dot_longrunning_dot_operations__pb2, @@ -29,83 +29,83 @@ def __init__(self, channel): """ self.CreateBuild = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/CreateBuild", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CreateBuildRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CreateBuildRequest.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) self.GetBuild = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/GetBuild", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.GetBuildRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.Build.FromString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.GetBuildRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.Build.FromString, ) self.ListBuilds = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/ListBuilds", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildsRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildsResponse.FromString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildsResponse.FromString, ) self.CancelBuild = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/CancelBuild", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CancelBuildRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.Build.FromString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CancelBuildRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.Build.FromString, ) self.RetryBuild = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/RetryBuild", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.RetryBuildRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.RetryBuildRequest.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) self.CreateBuildTrigger = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/CreateBuildTrigger", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CreateBuildTriggerRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.BuildTrigger.FromString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CreateBuildTriggerRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.BuildTrigger.FromString, ) self.GetBuildTrigger = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/GetBuildTrigger", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.GetBuildTriggerRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.BuildTrigger.FromString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.GetBuildTriggerRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.BuildTrigger.FromString, ) self.ListBuildTriggers = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/ListBuildTriggers", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildTriggersRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildTriggersResponse.FromString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildTriggersRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildTriggersResponse.FromString, ) self.DeleteBuildTrigger = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/DeleteBuildTrigger", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.DeleteBuildTriggerRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.DeleteBuildTriggerRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.UpdateBuildTrigger = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/UpdateBuildTrigger", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.UpdateBuildTriggerRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.BuildTrigger.FromString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.UpdateBuildTriggerRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.BuildTrigger.FromString, ) self.RunBuildTrigger = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/RunBuildTrigger", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.RunBuildTriggerRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.RunBuildTriggerRequest.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) self.CreateWorkerPool = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/CreateWorkerPool", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CreateWorkerPoolRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.WorkerPool.FromString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CreateWorkerPoolRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.WorkerPool.FromString, ) self.GetWorkerPool = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/GetWorkerPool", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.GetWorkerPoolRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.WorkerPool.FromString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.GetWorkerPoolRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.WorkerPool.FromString, ) self.DeleteWorkerPool = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/DeleteWorkerPool", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.DeleteWorkerPoolRequest.SerializeToString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.DeleteWorkerPoolRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.UpdateWorkerPool = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/UpdateWorkerPool", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.UpdateWorkerPoolRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.WorkerPool.FromString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.UpdateWorkerPoolRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.WorkerPool.FromString, ) self.ListWorkerPools = channel.unary_unary( "/google.devtools.cloudbuild.v1.CloudBuild/ListWorkerPools", - request_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListWorkerPoolsRequest.SerializeToString, - response_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListWorkerPoolsResponse.FromString, + request_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListWorkerPoolsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListWorkerPoolsResponse.FromString, ) @@ -293,83 +293,83 @@ def add_CloudBuildServicer_to_server(servicer, server): rpc_method_handlers = { "CreateBuild": grpc.unary_unary_rpc_method_handler( servicer.CreateBuild, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CreateBuildRequest.FromString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CreateBuildRequest.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), "GetBuild": grpc.unary_unary_rpc_method_handler( servicer.GetBuild, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.GetBuildRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.Build.SerializeToString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.GetBuildRequest.FromString, + response_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.Build.SerializeToString, ), "ListBuilds": grpc.unary_unary_rpc_method_handler( servicer.ListBuilds, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildsRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildsResponse.SerializeToString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildsRequest.FromString, + response_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildsResponse.SerializeToString, ), "CancelBuild": grpc.unary_unary_rpc_method_handler( servicer.CancelBuild, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CancelBuildRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.Build.SerializeToString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CancelBuildRequest.FromString, + response_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.Build.SerializeToString, ), "RetryBuild": grpc.unary_unary_rpc_method_handler( servicer.RetryBuild, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.RetryBuildRequest.FromString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.RetryBuildRequest.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), "CreateBuildTrigger": grpc.unary_unary_rpc_method_handler( servicer.CreateBuildTrigger, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CreateBuildTriggerRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.BuildTrigger.SerializeToString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CreateBuildTriggerRequest.FromString, + response_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.BuildTrigger.SerializeToString, ), "GetBuildTrigger": grpc.unary_unary_rpc_method_handler( servicer.GetBuildTrigger, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.GetBuildTriggerRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.BuildTrigger.SerializeToString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.GetBuildTriggerRequest.FromString, + response_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.BuildTrigger.SerializeToString, ), "ListBuildTriggers": grpc.unary_unary_rpc_method_handler( servicer.ListBuildTriggers, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildTriggersRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildTriggersResponse.SerializeToString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildTriggersRequest.FromString, + response_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListBuildTriggersResponse.SerializeToString, ), "DeleteBuildTrigger": grpc.unary_unary_rpc_method_handler( servicer.DeleteBuildTrigger, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.DeleteBuildTriggerRequest.FromString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.DeleteBuildTriggerRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), "UpdateBuildTrigger": grpc.unary_unary_rpc_method_handler( servicer.UpdateBuildTrigger, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.UpdateBuildTriggerRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.BuildTrigger.SerializeToString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.UpdateBuildTriggerRequest.FromString, + response_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.BuildTrigger.SerializeToString, ), "RunBuildTrigger": grpc.unary_unary_rpc_method_handler( servicer.RunBuildTrigger, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.RunBuildTriggerRequest.FromString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.RunBuildTriggerRequest.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), "CreateWorkerPool": grpc.unary_unary_rpc_method_handler( servicer.CreateWorkerPool, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CreateWorkerPoolRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.WorkerPool.SerializeToString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.CreateWorkerPoolRequest.FromString, + response_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.WorkerPool.SerializeToString, ), "GetWorkerPool": grpc.unary_unary_rpc_method_handler( servicer.GetWorkerPool, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.GetWorkerPoolRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.WorkerPool.SerializeToString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.GetWorkerPoolRequest.FromString, + response_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.WorkerPool.SerializeToString, ), "DeleteWorkerPool": grpc.unary_unary_rpc_method_handler( servicer.DeleteWorkerPool, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.DeleteWorkerPoolRequest.FromString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.DeleteWorkerPoolRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), "UpdateWorkerPool": grpc.unary_unary_rpc_method_handler( servicer.UpdateWorkerPool, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.UpdateWorkerPoolRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.WorkerPool.SerializeToString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.UpdateWorkerPoolRequest.FromString, + response_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.WorkerPool.SerializeToString, ), "ListWorkerPools": grpc.unary_unary_rpc_method_handler( servicer.ListWorkerPools, - request_deserializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListWorkerPoolsRequest.FromString, - response_serializer=google_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListWorkerPoolsResponse.SerializeToString, + request_deserializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListWorkerPoolsRequest.FromString, + response_serializer=google_dot_cloud_dot_devtools_dot_cloudbuild__v1_dot_proto_dot_cloudbuild__pb2.ListWorkerPoolsResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( diff --git a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/types.py b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/types.py index fb2ebcd5e7fc..bb5281bf7bbc 100644 --- a/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/types.py +++ b/packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/types.py @@ -38,7 +38,9 @@ status_pb2, ] -_local_modules = [cloudbuild_pb2] +_local_modules = [ + cloudbuild_pb2, +] names = [] diff --git a/packages/google-cloud-build/noxfile.py b/packages/google-cloud-build/noxfile.py index 84924048be55..348438e00160 100644 --- a/packages/google-cloud-build/noxfile.py +++ b/packages/google-cloud-build/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/packages/google-cloud-build/scripts/decrypt-secrets.sh b/packages/google-cloud-build/scripts/decrypt-secrets.sh new file mode 100755 index 000000000000..ff599eb2af25 --- /dev/null +++ b/packages/google-cloud-build/scripts/decrypt-secrets.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Copyright 2015 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +ROOT=$( dirname "$DIR" ) + +# Work from the project root. +cd $ROOT + +# Use SECRET_MANAGER_PROJECT if set, fallback to cloud-devrel-kokoro-resources. +PROJECT_ID="${SECRET_MANAGER_PROJECT:-cloud-devrel-kokoro-resources}" + +gcloud secrets versions access latest --secret="python-docs-samples-test-env" \ + > testing/test-env.sh +gcloud secrets versions access latest \ + --secret="python-docs-samples-service-account" \ + > testing/service-account.json +gcloud secrets versions access latest \ + --secret="python-docs-samples-client-secrets" \ + > testing/client-secrets.json \ No newline at end of file diff --git a/packages/google-cloud-build/scripts/readme-gen/readme_gen.py b/packages/google-cloud-build/scripts/readme-gen/readme_gen.py new file mode 100644 index 000000000000..d309d6e97518 --- /dev/null +++ b/packages/google-cloud-build/scripts/readme-gen/readme_gen.py @@ -0,0 +1,66 @@ +#!/usr/bin/env python + +# Copyright 2016 Google Inc +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Generates READMEs using configuration defined in yaml.""" + +import argparse +import io +import os +import subprocess + +import jinja2 +import yaml + + +jinja_env = jinja2.Environment( + trim_blocks=True, + loader=jinja2.FileSystemLoader( + os.path.abspath(os.path.join(os.path.dirname(__file__), 'templates')))) + +README_TMPL = jinja_env.get_template('README.tmpl.rst') + + +def get_help(file): + return subprocess.check_output(['python', file, '--help']).decode() + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument('source') + parser.add_argument('--destination', default='README.rst') + + args = parser.parse_args() + + source = os.path.abspath(args.source) + root = os.path.dirname(source) + destination = os.path.join(root, args.destination) + + jinja_env.globals['get_help'] = get_help + + with io.open(source, 'r') as f: + config = yaml.load(f) + + # This allows get_help to execute in the right directory. + os.chdir(root) + + output = README_TMPL.render(config) + + with io.open(destination, 'w') as f: + f.write(output) + + +if __name__ == '__main__': + main() diff --git a/packages/google-cloud-build/scripts/readme-gen/templates/README.tmpl.rst b/packages/google-cloud-build/scripts/readme-gen/templates/README.tmpl.rst new file mode 100644 index 000000000000..4fd239765b0a --- /dev/null +++ b/packages/google-cloud-build/scripts/readme-gen/templates/README.tmpl.rst @@ -0,0 +1,87 @@ +{# The following line is a lie. BUT! Once jinja2 is done with it, it will + become truth! #} +.. This file is automatically generated. Do not edit this file directly. + +{{product.name}} Python Samples +=============================================================================== + +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor={{folder}}/README.rst + + +This directory contains samples for {{product.name}}. {{product.description}} + +{{description}} + +.. _{{product.name}}: {{product.url}} + +{% if required_api_url %} +To run the sample, you need to enable the API at: {{required_api_url}} +{% endif %} + +{% if required_role %} +To run the sample, you need to have `{{required_role}}` role. +{% endif %} + +{{other_required_steps}} + +{% if setup %} +Setup +------------------------------------------------------------------------------- + +{% for section in setup %} + +{% include section + '.tmpl.rst' %} + +{% endfor %} +{% endif %} + +{% if samples %} +Samples +------------------------------------------------------------------------------- + +{% for sample in samples %} +{{sample.name}} ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +{% if not sample.hide_cloudshell_button %} +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor={{folder}}/{{sample.file}},{{folder}}/README.rst +{% endif %} + + +{{sample.description}} + +To run this sample: + +.. code-block:: bash + + $ python {{sample.file}} +{% if sample.show_help %} + + {{get_help(sample.file)|indent}} +{% endif %} + + +{% endfor %} +{% endif %} + +{% if cloud_client_library %} + +The client library +------------------------------------------------------------------------------- + +This sample uses the `Google Cloud Client Library for Python`_. +You can read the documentation for more details on API usage and use GitHub +to `browse the source`_ and `report issues`_. + +.. _Google Cloud Client Library for Python: + https://googlecloudplatform.github.io/google-cloud-python/ +.. _browse the source: + https://github.com/GoogleCloudPlatform/google-cloud-python +.. _report issues: + https://github.com/GoogleCloudPlatform/google-cloud-python/issues + +{% endif %} + +.. _Google Cloud SDK: https://cloud.google.com/sdk/ \ No newline at end of file diff --git a/packages/google-cloud-build/scripts/readme-gen/templates/auth.tmpl.rst b/packages/google-cloud-build/scripts/readme-gen/templates/auth.tmpl.rst new file mode 100644 index 000000000000..1446b94a5e3a --- /dev/null +++ b/packages/google-cloud-build/scripts/readme-gen/templates/auth.tmpl.rst @@ -0,0 +1,9 @@ +Authentication +++++++++++++++ + +This sample requires you to have authentication setup. Refer to the +`Authentication Getting Started Guide`_ for instructions on setting up +credentials for applications. + +.. _Authentication Getting Started Guide: + https://cloud.google.com/docs/authentication/getting-started diff --git a/packages/google-cloud-build/scripts/readme-gen/templates/auth_api_key.tmpl.rst b/packages/google-cloud-build/scripts/readme-gen/templates/auth_api_key.tmpl.rst new file mode 100644 index 000000000000..11957ce2714a --- /dev/null +++ b/packages/google-cloud-build/scripts/readme-gen/templates/auth_api_key.tmpl.rst @@ -0,0 +1,14 @@ +Authentication +++++++++++++++ + +Authentication for this service is done via an `API Key`_. To obtain an API +Key: + +1. Open the `Cloud Platform Console`_ +2. Make sure that billing is enabled for your project. +3. From the **Credentials** page, create a new **API Key** or use an existing + one for your project. + +.. _API Key: + https://developers.google.com/api-client-library/python/guide/aaa_apikeys +.. _Cloud Console: https://console.cloud.google.com/project?_ diff --git a/packages/google-cloud-build/scripts/readme-gen/templates/install_deps.tmpl.rst b/packages/google-cloud-build/scripts/readme-gen/templates/install_deps.tmpl.rst new file mode 100644 index 000000000000..a0406dba8c84 --- /dev/null +++ b/packages/google-cloud-build/scripts/readme-gen/templates/install_deps.tmpl.rst @@ -0,0 +1,29 @@ +Install Dependencies +++++++++++++++++++++ + +#. Clone python-docs-samples and change directory to the sample directory you want to use. + + .. code-block:: bash + + $ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git + +#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions. + + .. _Python Development Environment Setup Guide: + https://cloud.google.com/python/setup + +#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+. + + .. code-block:: bash + + $ virtualenv env + $ source env/bin/activate + +#. Install the dependencies needed to run the samples. + + .. code-block:: bash + + $ pip install -r requirements.txt + +.. _pip: https://pip.pypa.io/ +.. _virtualenv: https://virtualenv.pypa.io/ diff --git a/packages/google-cloud-build/scripts/readme-gen/templates/install_portaudio.tmpl.rst b/packages/google-cloud-build/scripts/readme-gen/templates/install_portaudio.tmpl.rst new file mode 100644 index 000000000000..5ea33d18c00c --- /dev/null +++ b/packages/google-cloud-build/scripts/readme-gen/templates/install_portaudio.tmpl.rst @@ -0,0 +1,35 @@ +Install PortAudio ++++++++++++++++++ + +Install `PortAudio`_. This is required by the `PyAudio`_ library to stream +audio from your computer's microphone. PyAudio depends on PortAudio for cross-platform compatibility, and is installed differently depending on the +platform. + +* For Mac OS X, you can use `Homebrew`_:: + + brew install portaudio + + **Note**: if you encounter an error when running `pip install` that indicates + it can't find `portaudio.h`, try running `pip install` with the following + flags:: + + pip install --global-option='build_ext' \ + --global-option='-I/usr/local/include' \ + --global-option='-L/usr/local/lib' \ + pyaudio + +* For Debian / Ubuntu Linux:: + + apt-get install portaudio19-dev python-all-dev + +* Windows may work without having to install PortAudio explicitly (it will get + installed with PyAudio). + +For more details, see the `PyAudio installation`_ page. + + +.. _PyAudio: https://people.csail.mit.edu/hubert/pyaudio/ +.. _PortAudio: http://www.portaudio.com/ +.. _PyAudio installation: + https://people.csail.mit.edu/hubert/pyaudio/#downloads +.. _Homebrew: http://brew.sh diff --git a/packages/google-cloud-build/synth.metadata b/packages/google-cloud-build/synth.metadata index 45c112767bb6..03899b47e132 100644 --- a/packages/google-cloud-build/synth.metadata +++ b/packages/google-cloud-build/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-cloudbuild.git", - "sha": "2376f6a2d83c4ad32fd5dd9bdc85111ae7503bd9" + "remote": "https://github.com/googleapis/python-cloudbuild.git", + "sha": "d812ba23a8e460b5cd55922ca72586bd2d6ece41" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "ee9e8e4e67f06aba881392a1a2956fbe7a42d216", - "internalRef": "309481123" + "sha": "cf41866c6f14f10a07aa1e2a1260fc0a2727d889", + "internalRef": "317812187" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "04cb397eb7590ea1e6c10a39fca3d8fe0fb3d256" + "sha": "cf2eff09d0f5319a4dc5cdce2b6356d85af4a798" } } ], @@ -37,8 +30,7 @@ "apiName": "cloudbuild", "apiVersion": "v1", "language": "python", - "generator": "gapic", - "config": "google/devtools/cloudbuild/artman_cloudbuild.yaml" + "generator": "bazel" } } ] diff --git a/packages/google-cloud-build/synth.py b/packages/google-cloud-build/synth.py index df95e5b13e99..7c1e46168eb9 100644 --- a/packages/google-cloud-build/synth.py +++ b/packages/google-cloud-build/synth.py @@ -59,4 +59,8 @@ templated_files = common.py_library(unit_cov_level=65, cov_level=65) 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) \ No newline at end of file diff --git a/packages/google-cloud-build/testing/.gitignore b/packages/google-cloud-build/testing/.gitignore new file mode 100644 index 000000000000..b05fbd630881 --- /dev/null +++ b/packages/google-cloud-build/testing/.gitignore @@ -0,0 +1,3 @@ +test-env.sh +service-account.json +client-secrets.json \ No newline at end of file diff --git a/packages/google-cloud-build/tests/unit/gapic/v1/test_cloud_build_client_v1.py b/packages/google-cloud-build/tests/unit/gapic/v1/test_cloud_build_client_v1.py index 32d115d4aea4..f4a2bfce31b2 100644 --- a/packages/google-cloud-build/tests/unit/gapic/v1/test_cloud_build_client_v1.py +++ b/packages/google-cloud-build/tests/unit/gapic/v1/test_cloud_build_client_v1.py @@ -19,6 +19,8 @@ import mock import pytest +from google.rpc import status_pb2 + from google.cloud.devtools import cloudbuild_v1 from google.cloud.devtools.cloudbuild_v1.proto import cloudbuild_pb2 from google.longrunning import operations_pb2 @@ -62,12 +64,13 @@ class CustomException(Exception): class TestCloudBuildClient(object): - def test_create_build(self): + def test_list_builds(self): # Setup Expected Response - name = "name3373707" - done = True - expected_response = {"name": name, "done": done} - expected_response = operations_pb2.Operation(**expected_response) + next_page_token = "" + builds_element = {} + builds = [builds_element] + expected_response = {"next_page_token": next_page_token, "builds": builds} + expected_response = cloudbuild_pb2.ListBuildsResponse(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) @@ -76,12 +79,105 @@ def test_create_build(self): create_channel.return_value = channel client = cloudbuild_v1.CloudBuildClient() + # Setup Request + project_id = "projectId-1969970175" + + paged_list_response = client.list_builds(project_id) + resources = list(paged_list_response) + assert len(resources) == 1 + + assert expected_response.builds[0] == resources[0] + + assert len(channel.requests) == 1 + expected_request = cloudbuild_pb2.ListBuildsRequest(project_id=project_id) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_list_builds_exception(self): + 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 = cloudbuild_v1.CloudBuildClient() + + # Setup request + project_id = "projectId-1969970175" + + paged_list_response = client.list_builds(project_id) + with pytest.raises(CustomException): + list(paged_list_response) + + def test_delete_build_trigger(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = cloudbuild_v1.CloudBuildClient() + + # Setup Request + project_id = "projectId-1969970175" + trigger_id = "triggerId1363517698" + + client.delete_build_trigger(project_id, trigger_id) + + assert len(channel.requests) == 1 + expected_request = cloudbuild_pb2.DeleteBuildTriggerRequest( + project_id=project_id, trigger_id=trigger_id + ) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_build_trigger_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 = cloudbuild_v1.CloudBuildClient() + + # Setup request + project_id = "projectId-1969970175" + trigger_id = "triggerId1363517698" + + with pytest.raises(CustomException): + client.delete_build_trigger(project_id, trigger_id) + + def test_create_build(self): + # Setup Expected Response + id_ = "id3355" + project_id_2 = "projectId2939242356" + status_detail = "statusDetail2089931070" + logs_bucket = "logsBucket1565363834" + build_trigger_id = "buildTriggerId1105559411" + log_url = "logUrl342054388" + expected_response = { + "id": id_, + "project_id": project_id_2, + "status_detail": status_detail, + "logs_bucket": logs_bucket, + "build_trigger_id": build_trigger_id, + "log_url": log_url, + } + expected_response = cloudbuild_pb2.Build(**expected_response) + operation = operations_pb2.Operation( + name="operations/test_create_build", done=True + ) + operation.response.Pack(expected_response) + + # Mock the API response + channel = ChannelStub(responses=[operation]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = cloudbuild_v1.CloudBuildClient() + # Setup Request project_id = "projectId-1969970175" build = {} response = client.create_build(project_id, build) - assert expected_response == response + result = response.result() + assert expected_response == result assert len(channel.requests) == 1 expected_request = cloudbuild_pb2.CreateBuildRequest( @@ -91,19 +187,27 @@ def test_create_build(self): assert expected_request == actual_request def test_create_build_exception(self): + # Setup Response + error = status_pb2.Status() + operation = operations_pb2.Operation( + name="operations/test_create_build_exception", done=True + ) + operation.error.CopyFrom(error) + # Mock the API response - channel = ChannelStub(responses=[CustomException()]) + channel = ChannelStub(responses=[operation]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = cloudbuild_v1.CloudBuildClient() - # Setup request + # Setup Request project_id = "projectId-1969970175" build = {} - with pytest.raises(CustomException): - client.create_build(project_id, build) + response = client.create_build(project_id, build) + exception = response.exception() + assert exception.errors[0] == error def test_get_build(self): # Setup Expected Response @@ -157,13 +261,23 @@ def test_get_build_exception(self): with pytest.raises(CustomException): client.get_build(project_id, id_) - def test_list_builds(self): + def test_cancel_build(self): # Setup Expected Response - next_page_token = "" - builds_element = {} - builds = [builds_element] - expected_response = {"next_page_token": next_page_token, "builds": builds} - expected_response = cloudbuild_pb2.ListBuildsResponse(**expected_response) + id_2 = "id23227150" + project_id_2 = "projectId2939242356" + status_detail = "statusDetail2089931070" + logs_bucket = "logsBucket1565363834" + build_trigger_id = "buildTriggerId1105559411" + log_url = "logUrl342054388" + expected_response = { + "id": id_2, + "project_id": project_id_2, + "status_detail": status_detail, + "logs_bucket": logs_bucket, + "build_trigger_id": build_trigger_id, + "log_url": log_url, + } + expected_response = cloudbuild_pb2.Build(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) @@ -174,19 +288,20 @@ def test_list_builds(self): # Setup Request project_id = "projectId-1969970175" + id_ = "id3355" - paged_list_response = client.list_builds(project_id) - resources = list(paged_list_response) - assert len(resources) == 1 - - assert expected_response.builds[0] == resources[0] + response = client.cancel_build(project_id, id_) + assert expected_response == response assert len(channel.requests) == 1 - expected_request = cloudbuild_pb2.ListBuildsRequest(project_id=project_id) + expected_request = cloudbuild_pb2.CancelBuildRequest( + project_id=project_id, id=id_ + ) actual_request = channel.requests[0][1] assert expected_request == actual_request - def test_list_builds_exception(self): + def test_cancel_build_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: @@ -195,12 +310,12 @@ def test_list_builds_exception(self): # Setup request project_id = "projectId-1969970175" + id_ = "id3355" - paged_list_response = client.list_builds(project_id) with pytest.raises(CustomException): - list(paged_list_response) + client.cancel_build(project_id, id_) - def test_cancel_build(self): + def test_retry_build(self): # Setup Expected Response id_2 = "id23227150" project_id_2 = "projectId2939242356" @@ -217,9 +332,13 @@ def test_cancel_build(self): "log_url": log_url, } expected_response = cloudbuild_pb2.Build(**expected_response) + operation = operations_pb2.Operation( + name="operations/test_retry_build", done=True + ) + operation.response.Pack(expected_response) # Mock the API response - channel = ChannelStub(responses=[expected_response]) + channel = ChannelStub(responses=[operation]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel @@ -229,30 +348,39 @@ def test_cancel_build(self): project_id = "projectId-1969970175" id_ = "id3355" - response = client.cancel_build(project_id, id_) - assert expected_response == response + response = client.retry_build(project_id, id_) + result = response.result() + assert expected_response == result assert len(channel.requests) == 1 - expected_request = cloudbuild_pb2.CancelBuildRequest( + expected_request = cloudbuild_pb2.RetryBuildRequest( project_id=project_id, id=id_ ) actual_request = channel.requests[0][1] assert expected_request == actual_request - def test_cancel_build_exception(self): + def test_retry_build_exception(self): + # Setup Response + error = status_pb2.Status() + operation = operations_pb2.Operation( + name="operations/test_retry_build_exception", done=True + ) + operation.error.CopyFrom(error) + # Mock the API response - channel = ChannelStub(responses=[CustomException()]) + channel = ChannelStub(responses=[operation]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = cloudbuild_v1.CloudBuildClient() - # Setup request + # Setup Request project_id = "projectId-1969970175" id_ = "id3355" - with pytest.raises(CustomException): - client.cancel_build(project_id, id_) + response = client.retry_build(project_id, id_) + exception = response.exception() + assert exception.errors[0] == error def test_create_build_trigger(self): # Setup Expected Response @@ -360,8 +488,10 @@ def test_get_build_trigger_exception(self): def test_list_build_triggers(self): # Setup Expected Response - next_page_token = "nextPageToken-1530815211" - expected_response = {"next_page_token": next_page_token} + next_page_token = "" + triggers_element = {} + triggers = [triggers_element] + expected_response = {"next_page_token": next_page_token, "triggers": triggers} expected_response = cloudbuild_pb2.ListBuildTriggersResponse( **expected_response ) @@ -376,8 +506,11 @@ def test_list_build_triggers(self): # Setup Request project_id = "projectId-1969970175" - response = client.list_build_triggers(project_id) - assert expected_response == response + paged_list_response = client.list_build_triggers(project_id) + resources = list(paged_list_response) + assert len(resources) == 1 + + assert expected_response.triggers[0] == resources[0] assert len(channel.requests) == 1 expected_request = cloudbuild_pb2.ListBuildTriggersRequest( @@ -387,41 +520,6 @@ def test_list_build_triggers(self): assert expected_request == actual_request def test_list_build_triggers_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 = cloudbuild_v1.CloudBuildClient() - - # Setup request - project_id = "projectId-1969970175" - - with pytest.raises(CustomException): - client.list_build_triggers(project_id) - - def test_delete_build_trigger(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = cloudbuild_v1.CloudBuildClient() - - # Setup Request - project_id = "projectId-1969970175" - trigger_id = "triggerId1363517698" - - client.delete_build_trigger(project_id, trigger_id) - - assert len(channel.requests) == 1 - expected_request = cloudbuild_pb2.DeleteBuildTriggerRequest( - project_id=project_id, trigger_id=trigger_id - ) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_build_trigger_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: @@ -430,10 +528,10 @@ def test_delete_build_trigger_exception(self): # Setup request project_id = "projectId-1969970175" - trigger_id = "triggerId1363517698" + paged_list_response = client.list_build_triggers(project_id) with pytest.raises(CustomException): - client.delete_build_trigger(project_id, trigger_id) + list(paged_list_response) def test_update_build_trigger(self): # Setup Expected Response @@ -491,13 +589,28 @@ def test_update_build_trigger_exception(self): def test_run_build_trigger(self): # Setup Expected Response - name = "name3373707" - done = True - expected_response = {"name": name, "done": done} - expected_response = operations_pb2.Operation(**expected_response) + id_ = "id3355" + project_id_2 = "projectId2939242356" + status_detail = "statusDetail2089931070" + logs_bucket = "logsBucket1565363834" + build_trigger_id = "buildTriggerId1105559411" + log_url = "logUrl342054388" + expected_response = { + "id": id_, + "project_id": project_id_2, + "status_detail": status_detail, + "logs_bucket": logs_bucket, + "build_trigger_id": build_trigger_id, + "log_url": log_url, + } + expected_response = cloudbuild_pb2.Build(**expected_response) + operation = operations_pb2.Operation( + name="operations/test_run_build_trigger", done=True + ) + operation.response.Pack(expected_response) # Mock the API response - channel = ChannelStub(responses=[expected_response]) + channel = ChannelStub(responses=[operation]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel @@ -509,7 +622,8 @@ def test_run_build_trigger(self): source = {} response = client.run_build_trigger(project_id, trigger_id, source) - assert expected_response == response + result = response.result() + assert expected_response == result assert len(channel.requests) == 1 expected_request = cloudbuild_pb2.RunBuildTriggerRequest( @@ -519,63 +633,28 @@ def test_run_build_trigger(self): assert expected_request == actual_request def test_run_build_trigger_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 = cloudbuild_v1.CloudBuildClient() - - # Setup request - project_id = "projectId-1969970175" - trigger_id = "triggerId1363517698" - source = {} - - with pytest.raises(CustomException): - client.run_build_trigger(project_id, trigger_id, source) - - def test_retry_build(self): - # Setup Expected Response - name = "name3373707" - done = True - expected_response = {"name": name, "done": done} - expected_response = operations_pb2.Operation(**expected_response) - - # Mock the API response - channel = ChannelStub(responses=[expected_response]) - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - client = cloudbuild_v1.CloudBuildClient() - - # Setup Request - project_id = "projectId-1969970175" - id_ = "id3355" - - response = client.retry_build(project_id, id_) - assert expected_response == response - - assert len(channel.requests) == 1 - expected_request = cloudbuild_pb2.RetryBuildRequest( - project_id=project_id, id=id_ + # Setup Response + error = status_pb2.Status() + operation = operations_pb2.Operation( + name="operations/test_run_build_trigger_exception", done=True ) - actual_request = channel.requests[0][1] - assert expected_request == actual_request + operation.error.CopyFrom(error) - def test_retry_build_exception(self): # Mock the API response - channel = ChannelStub(responses=[CustomException()]) + channel = ChannelStub(responses=[operation]) patch = mock.patch("google.api_core.grpc_helpers.create_channel") with patch as create_channel: create_channel.return_value = channel client = cloudbuild_v1.CloudBuildClient() - # Setup request + # Setup Request project_id = "projectId-1969970175" - id_ = "id3355" + trigger_id = "triggerId1363517698" + source = {} - with pytest.raises(CustomException): - client.retry_build(project_id, id_) + response = client.run_build_trigger(project_id, trigger_id, source) + exception = response.exception() + assert exception.errors[0] == error def test_create_worker_pool(self): # Setup Expected Response