From 5886087fc3a23bd1cd469593a778b1706e599e40 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 25 Jun 2020 11:30:15 -0700 Subject: [PATCH] fix: update retry config (#24) --- packages/grafeas/.flake8 | 2 + packages/grafeas/.gitignore | 2 + packages/grafeas/.kokoro/publish-docs.sh | 2 - packages/grafeas/.kokoro/release.sh | 2 - .../grafeas/.kokoro/samples/lint/common.cfg | 34 + .../.kokoro/samples/lint/continuous.cfg | 6 + .../grafeas/.kokoro/samples/lint/periodic.cfg | 6 + .../.kokoro/samples/lint/presubmit.cfg | 6 + .../.kokoro/samples/python3.6/common.cfg | 34 + .../.kokoro/samples/python3.6/continuous.cfg | 7 + .../.kokoro/samples/python3.6/periodic.cfg | 6 + .../.kokoro/samples/python3.6/presubmit.cfg | 6 + .../.kokoro/samples/python3.7/common.cfg | 34 + .../.kokoro/samples/python3.7/continuous.cfg | 6 + .../.kokoro/samples/python3.7/periodic.cfg | 6 + .../.kokoro/samples/python3.7/presubmit.cfg | 6 + .../.kokoro/samples/python3.8/common.cfg | 34 + .../.kokoro/samples/python3.8/continuous.cfg | 6 + .../.kokoro/samples/python3.8/periodic.cfg | 6 + .../.kokoro/samples/python3.8/presubmit.cfg | 6 + packages/grafeas/.kokoro/test-samples.sh | 104 +++ packages/grafeas/MANIFEST.in | 3 + packages/grafeas/docs/conf.py | 7 +- packages/grafeas/docs/index.rst | 2 + packages/grafeas/docs/multiprocessing.rst | 7 + .../grafeas/grafeas/grafeas_v1/__init__.py | 4 +- .../grafeas_v1/gapic/grafeas_client.py | 304 ++++---- .../grafeas_v1/gapic/grafeas_client_config.py | 101 ++- .../transports/grafeas_grpc_transport.py | 54 +- .../grafeas_v1/proto/attestation_pb2.py | 92 +-- .../grafeas/grafeas_v1/proto/build_pb2.py | 61 +- .../grafeas/grafeas_v1/proto/common_pb2.py | 140 ++-- .../grafeas/grafeas_v1/proto/cvss_pb2.py | 119 ++- .../grafeas_v1/proto/deployment_pb2.py | 89 ++- .../grafeas/grafeas_v1/proto/discovery_pb2.py | 111 ++- .../grafeas/grafeas_v1/proto/grafeas_pb2.py | 728 ++++++++++-------- .../grafeas_v1/proto/grafeas_pb2_grpc.py | 106 +-- .../grafeas/grafeas_v1/proto/image_pb2.py | 122 +-- .../grafeas/grafeas_v1/proto/package_pb2.py | 189 +++-- .../grafeas_v1/proto/provenance_pb2.py | 428 ++++++---- .../grafeas/grafeas_v1/proto/upgrade_pb2.py | 182 +++-- .../grafeas_v1/proto/vulnerability_pb2.py | 289 ++++--- packages/grafeas/scripts/decrypt-secrets.sh | 33 + .../grafeas/scripts/readme-gen/readme_gen.py | 66 ++ .../readme-gen/templates/README.tmpl.rst | 87 +++ .../readme-gen/templates/auth.tmpl.rst | 9 + .../templates/auth_api_key.tmpl.rst | 14 + .../templates/install_deps.tmpl.rst | 29 + .../templates/install_portaudio.tmpl.rst | 35 + packages/grafeas/synth.metadata | 20 +- packages/grafeas/synth.py | 10 +- packages/grafeas/testing/.gitignore | 3 + .../unit/gapic/v1/test_grafeas_client_v1.py | 172 ++--- 53 files changed, 2544 insertions(+), 1393 deletions(-) create mode 100644 packages/grafeas/.kokoro/samples/lint/common.cfg create mode 100644 packages/grafeas/.kokoro/samples/lint/continuous.cfg create mode 100644 packages/grafeas/.kokoro/samples/lint/periodic.cfg create mode 100644 packages/grafeas/.kokoro/samples/lint/presubmit.cfg create mode 100644 packages/grafeas/.kokoro/samples/python3.6/common.cfg create mode 100644 packages/grafeas/.kokoro/samples/python3.6/continuous.cfg create mode 100644 packages/grafeas/.kokoro/samples/python3.6/periodic.cfg create mode 100644 packages/grafeas/.kokoro/samples/python3.6/presubmit.cfg create mode 100644 packages/grafeas/.kokoro/samples/python3.7/common.cfg create mode 100644 packages/grafeas/.kokoro/samples/python3.7/continuous.cfg create mode 100644 packages/grafeas/.kokoro/samples/python3.7/periodic.cfg create mode 100644 packages/grafeas/.kokoro/samples/python3.7/presubmit.cfg create mode 100644 packages/grafeas/.kokoro/samples/python3.8/common.cfg create mode 100644 packages/grafeas/.kokoro/samples/python3.8/continuous.cfg create mode 100644 packages/grafeas/.kokoro/samples/python3.8/periodic.cfg create mode 100644 packages/grafeas/.kokoro/samples/python3.8/presubmit.cfg create mode 100755 packages/grafeas/.kokoro/test-samples.sh create mode 100644 packages/grafeas/docs/multiprocessing.rst create mode 100755 packages/grafeas/scripts/decrypt-secrets.sh create mode 100644 packages/grafeas/scripts/readme-gen/readme_gen.py create mode 100644 packages/grafeas/scripts/readme-gen/templates/README.tmpl.rst create mode 100644 packages/grafeas/scripts/readme-gen/templates/auth.tmpl.rst create mode 100644 packages/grafeas/scripts/readme-gen/templates/auth_api_key.tmpl.rst create mode 100644 packages/grafeas/scripts/readme-gen/templates/install_deps.tmpl.rst create mode 100644 packages/grafeas/scripts/readme-gen/templates/install_portaudio.tmpl.rst create mode 100644 packages/grafeas/testing/.gitignore diff --git a/packages/grafeas/.flake8 b/packages/grafeas/.flake8 index 20fe9bda2ee4..ed9316381c9c 100644 --- a/packages/grafeas/.flake8 +++ b/packages/grafeas/.flake8 @@ -21,6 +21,8 @@ exclude = # Exclude generated code. **/proto/** **/gapic/** + **/services/** + **/types/** *_pb2.py # Standard linting exemptions. diff --git a/packages/grafeas/.gitignore b/packages/grafeas/.gitignore index 3fb06e09ce74..b87e1ed580d9 100644 --- a/packages/grafeas/.gitignore +++ b/packages/grafeas/.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/grafeas/.kokoro/publish-docs.sh b/packages/grafeas/.kokoro/publish-docs.sh index 971928a025cf..917e0d1573cf 100755 --- a/packages/grafeas/.kokoro/publish-docs.sh +++ b/packages/grafeas/.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/grafeas/.kokoro/release.sh b/packages/grafeas/.kokoro/release.sh index 5b74ce1eb5a1..9b7a96df577c 100755 --- a/packages/grafeas/.kokoro/release.sh +++ b/packages/grafeas/.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/grafeas/.kokoro/samples/lint/common.cfg b/packages/grafeas/.kokoro/samples/lint/common.cfg new file mode 100644 index 000000000000..6e0e9caa63c6 --- /dev/null +++ b/packages/grafeas/.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-grafeas/.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-grafeas/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/packages/grafeas/.kokoro/samples/lint/continuous.cfg b/packages/grafeas/.kokoro/samples/lint/continuous.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/grafeas/.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/grafeas/.kokoro/samples/lint/periodic.cfg b/packages/grafeas/.kokoro/samples/lint/periodic.cfg new file mode 100644 index 000000000000..50fec9649732 --- /dev/null +++ b/packages/grafeas/.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/grafeas/.kokoro/samples/lint/presubmit.cfg b/packages/grafeas/.kokoro/samples/lint/presubmit.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/grafeas/.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/grafeas/.kokoro/samples/python3.6/common.cfg b/packages/grafeas/.kokoro/samples/python3.6/common.cfg new file mode 100644 index 000000000000..321eeec1368b --- /dev/null +++ b/packages/grafeas/.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-grafeas/.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-grafeas/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/packages/grafeas/.kokoro/samples/python3.6/continuous.cfg b/packages/grafeas/.kokoro/samples/python3.6/continuous.cfg new file mode 100644 index 000000000000..7218af1499e5 --- /dev/null +++ b/packages/grafeas/.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/grafeas/.kokoro/samples/python3.6/periodic.cfg b/packages/grafeas/.kokoro/samples/python3.6/periodic.cfg new file mode 100644 index 000000000000..50fec9649732 --- /dev/null +++ b/packages/grafeas/.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/grafeas/.kokoro/samples/python3.6/presubmit.cfg b/packages/grafeas/.kokoro/samples/python3.6/presubmit.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/grafeas/.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/grafeas/.kokoro/samples/python3.7/common.cfg b/packages/grafeas/.kokoro/samples/python3.7/common.cfg new file mode 100644 index 000000000000..301533d52d2c --- /dev/null +++ b/packages/grafeas/.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-grafeas/.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-grafeas/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/packages/grafeas/.kokoro/samples/python3.7/continuous.cfg b/packages/grafeas/.kokoro/samples/python3.7/continuous.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/grafeas/.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/grafeas/.kokoro/samples/python3.7/periodic.cfg b/packages/grafeas/.kokoro/samples/python3.7/periodic.cfg new file mode 100644 index 000000000000..50fec9649732 --- /dev/null +++ b/packages/grafeas/.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/grafeas/.kokoro/samples/python3.7/presubmit.cfg b/packages/grafeas/.kokoro/samples/python3.7/presubmit.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/grafeas/.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/grafeas/.kokoro/samples/python3.8/common.cfg b/packages/grafeas/.kokoro/samples/python3.8/common.cfg new file mode 100644 index 000000000000..fe1ee7dbfee8 --- /dev/null +++ b/packages/grafeas/.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-grafeas/.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-grafeas/.kokoro/trampoline.sh" \ No newline at end of file diff --git a/packages/grafeas/.kokoro/samples/python3.8/continuous.cfg b/packages/grafeas/.kokoro/samples/python3.8/continuous.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/grafeas/.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/grafeas/.kokoro/samples/python3.8/periodic.cfg b/packages/grafeas/.kokoro/samples/python3.8/periodic.cfg new file mode 100644 index 000000000000..50fec9649732 --- /dev/null +++ b/packages/grafeas/.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/grafeas/.kokoro/samples/python3.8/presubmit.cfg b/packages/grafeas/.kokoro/samples/python3.8/presubmit.cfg new file mode 100644 index 000000000000..a1c8d9759c88 --- /dev/null +++ b/packages/grafeas/.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/grafeas/.kokoro/test-samples.sh b/packages/grafeas/.kokoro/test-samples.sh new file mode 100755 index 000000000000..14be8d7de7cf --- /dev/null +++ b/packages/grafeas/.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-grafeas + +# 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/grafeas/MANIFEST.in b/packages/grafeas/MANIFEST.in index 68855abc3f02..e9e29d12033d 100644 --- a/packages/grafeas/MANIFEST.in +++ b/packages/grafeas/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/grafeas/docs/conf.py b/packages/grafeas/docs/conf.py index 2f4cc05c3e88..0a4008b5b8fb 100644 --- a/packages/grafeas/docs/conf.py +++ b/packages/grafeas/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'] diff --git a/packages/grafeas/docs/index.rst b/packages/grafeas/docs/index.rst index 221c0e06399d..690b4eb5214f 100644 --- a/packages/grafeas/docs/index.rst +++ b/packages/grafeas/docs/index.rst @@ -1,5 +1,7 @@ .. include:: README.rst +.. include:: multiprocessing.rst + Api Reference ------------- .. toctree:: diff --git a/packages/grafeas/docs/multiprocessing.rst b/packages/grafeas/docs/multiprocessing.rst new file mode 100644 index 000000000000..1cb29d4ca967 --- /dev/null +++ b/packages/grafeas/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/grafeas/grafeas/grafeas_v1/__init__.py b/packages/grafeas/grafeas/grafeas_v1/__init__.py index 2e0f3ee626da..2d0a0d57988a 100644 --- a/packages/grafeas/grafeas/grafeas_v1/__init__.py +++ b/packages/grafeas/grafeas/grafeas_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) diff --git a/packages/grafeas/grafeas/grafeas_v1/gapic/grafeas_client.py b/packages/grafeas/grafeas/grafeas_v1/gapic/grafeas_client.py index c8328158d9b2..5c25bdd275ba 100644 --- a/packages/grafeas/grafeas/grafeas_v1/gapic/grafeas_client.py +++ b/packages/grafeas/grafeas/grafeas_v1/gapic/grafeas_client.py @@ -146,150 +146,6 @@ def __init__(self, transport, client_config=None, client_info=None): self._inner_api_calls = {} # Service calls - def delete_occurrence( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Deletes the specified occurrence. For example, use this method to delete an - occurrence when the occurrence is no longer applicable for the given - resource. - - Example: - >>> from grafeas import grafeas_v1 - >>> from grafeas.grafeas_v1.gapic.transports import grafeas_grpc_transport - >>> - >>> address = "[SERVICE_ADDRESS]" - >>> scopes = ("[SCOPE]") - >>> transport = grafeas_grpc_transport.GrafeasGrpcTransport(address, scopes) - >>> client = grafeas_v1.GrafeasClient(transport) - >>> - >>> name = client.occurrence_path('[PROJECT]', '[OCCURRENCE]') - >>> - >>> client.delete_occurrence(name) - - Args: - name (str): The name of the occurrence in the form of - ``projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]``. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - 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_occurrence" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_occurrence" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_occurrence, - default_retry=self._method_configs["DeleteOccurrence"].retry, - default_timeout=self._method_configs["DeleteOccurrence"].timeout, - client_info=self._client_info, - ) - - request = grafeas_pb2.DeleteOccurrenceRequest(name=name,) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_occurrence"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - - def delete_note( - self, - name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None, - ): - """ - Deletes the specified note. - - Example: - >>> from grafeas import grafeas_v1 - >>> from grafeas.grafeas_v1.gapic.transports import grafeas_grpc_transport - >>> - >>> address = "[SERVICE_ADDRESS]" - >>> scopes = ("[SCOPE]") - >>> transport = grafeas_grpc_transport.GrafeasGrpcTransport(address, scopes) - >>> client = grafeas_v1.GrafeasClient(transport) - >>> - >>> name = client.note_path('[PROJECT]', '[NOTE]') - >>> - >>> client.delete_note(name) - - Args: - name (str): The name of the note in the form of - ``projects/[PROVIDER_ID]/notes/[NOTE_ID]``. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will - be retried using a default configuration. - 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_note" not in self._inner_api_calls: - self._inner_api_calls[ - "delete_note" - ] = google.api_core.gapic_v1.method.wrap_method( - self.transport.delete_note, - default_retry=self._method_configs["DeleteNote"].retry, - default_timeout=self._method_configs["DeleteNote"].timeout, - client_info=self._client_info, - ) - - request = grafeas_pb2.DeleteNoteRequest(name=name,) - if metadata is None: - metadata = [] - metadata = list(metadata) - try: - routing_header = [("name", name)] - except AttributeError: - pass - else: - routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( - routing_header - ) - metadata.append(routing_metadata) - - self._inner_api_calls["delete_note"]( - request, retry=retry, timeout=timeout, metadata=metadata - ) - def get_occurrence( self, name, @@ -474,6 +330,79 @@ def list_occurrences( ) return iterator + def delete_occurrence( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Deletes the specified occurrence. For example, use this method to delete an + occurrence when the occurrence is no longer applicable for the given + resource. + + Example: + >>> from grafeas import grafeas_v1 + >>> from grafeas.grafeas_v1.gapic.transports import grafeas_grpc_transport + >>> + >>> address = "[SERVICE_ADDRESS]" + >>> scopes = ("[SCOPE]") + >>> transport = grafeas_grpc_transport.GrafeasGrpcTransport(address, scopes) + >>> client = grafeas_v1.GrafeasClient(transport) + >>> + >>> name = client.occurrence_path('[PROJECT]', '[OCCURRENCE]') + >>> + >>> client.delete_occurrence(name) + + Args: + name (str): The name of the occurrence in the form of + ``projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]``. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + 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_occurrence" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_occurrence" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_occurrence, + default_retry=self._method_configs["DeleteOccurrence"].retry, + default_timeout=self._method_configs["DeleteOccurrence"].timeout, + client_info=self._client_info, + ) + + request = grafeas_pb2.DeleteOccurrenceRequest(name=name,) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_occurrence"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def create_occurrence( self, parent, @@ -502,8 +431,8 @@ def create_occurrence( >>> response = client.create_occurrence(parent, occurrence) Args: - parent (str): The name of the project in the form of ``projects/[PROJECT_ID]``, under - which the occurrence is to be created. + parent (str): The name of the project in the form of ``projects/[PROJECT_ID]``, + under which the occurrence is to be created. occurrence (Union[dict, ~grafeas.grafeas_v1.types.Occurrence]): The occurrence to create. If a dict is provided, it must be of the same form as the protobuf @@ -586,8 +515,8 @@ def batch_create_occurrences( >>> response = client.batch_create_occurrences(parent, occurrences) Args: - parent (str): The name of the project in the form of ``projects/[PROJECT_ID]``, under - which the occurrences are to be created. + parent (str): The name of the project in the form of ``projects/[PROJECT_ID]``, + under which the occurrences are to be created. occurrences (list[Union[dict, ~grafeas.grafeas_v1.types.Occurrence]]): The occurrences to create. Max allowed length is 1000. If a dict is provided, it must be of the same form as the protobuf @@ -990,6 +919,77 @@ def list_notes( ) return iterator + def delete_note( + self, + name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Deletes the specified note. + + Example: + >>> from grafeas import grafeas_v1 + >>> from grafeas.grafeas_v1.gapic.transports import grafeas_grpc_transport + >>> + >>> address = "[SERVICE_ADDRESS]" + >>> scopes = ("[SCOPE]") + >>> transport = grafeas_grpc_transport.GrafeasGrpcTransport(address, scopes) + >>> client = grafeas_v1.GrafeasClient(transport) + >>> + >>> name = client.note_path('[PROJECT]', '[NOTE]') + >>> + >>> client.delete_note(name) + + Args: + name (str): The name of the note in the form of + ``projects/[PROVIDER_ID]/notes/[NOTE_ID]``. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + 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_note" not in self._inner_api_calls: + self._inner_api_calls[ + "delete_note" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.delete_note, + default_retry=self._method_configs["DeleteNote"].retry, + default_timeout=self._method_configs["DeleteNote"].timeout, + client_info=self._client_info, + ) + + request = grafeas_pb2.DeleteNoteRequest(name=name,) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("name", name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + self._inner_api_calls["delete_note"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def create_note( self, parent, @@ -1022,8 +1022,8 @@ def create_note( >>> response = client.create_note(parent, note_id, note) Args: - parent (str): The name of the project in the form of ``projects/[PROJECT_ID]``, under - which the note is to be created. + parent (str): The name of the project in the form of ``projects/[PROJECT_ID]``, + under which the note is to be created. note_id (str): The ID to use for this note. note (Union[dict, ~grafeas.grafeas_v1.types.Note]): The note to create. @@ -1107,8 +1107,8 @@ def batch_create_notes( >>> response = client.batch_create_notes(parent, notes) Args: - parent (str): The name of the project in the form of ``projects/[PROJECT_ID]``, under - which the notes are to be created. + parent (str): The name of the project in the form of ``projects/[PROJECT_ID]``, + under which the notes are to be created. notes (dict[str -> Union[dict, ~grafeas.grafeas_v1.types.Note]]): The notes to create. Max allowed length is 1000. If a dict is provided, it must be of the same form as the protobuf diff --git a/packages/grafeas/grafeas/grafeas_v1/gapic/grafeas_client_config.py b/packages/grafeas/grafeas/grafeas_v1/gapic/grafeas_client_config.py index de254f033688..f3b49a815127 100644 --- a/packages/grafeas/grafeas/grafeas_v1/gapic/grafeas_client_config.py +++ b/packages/grafeas/grafeas/grafeas_v1/gapic/grafeas_client_config.py @@ -2,90 +2,109 @@ "interfaces": { "grafeas.v1.Grafeas": { "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [], + "retry_policy_1_codes": ["UNAVAILABLE", "DEADLINE_EXCEEDED"], + "no_retry_codes": [], + "no_retry_1_codes": [], }, "retry_params": { - "default": { + "retry_policy_1_params": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, + "initial_rpc_timeout_millis": 30000, "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 600000, - } - }, - "methods": { - "DeleteOccurrence": { - "timeout_millis": 30000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000, }, - "DeleteNote": { - "timeout_millis": 30000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0, + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000, }, + }, + "methods": { "GetOccurrence": { "timeout_millis": 30000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "ListOccurrences": { "timeout_millis": 30000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", + }, + "DeleteOccurrence": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "CreateOccurrence": { "timeout_millis": 30000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "BatchCreateOccurrences": { "timeout_millis": 30000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "UpdateOccurrence": { "timeout_millis": 30000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "GetOccurrenceNote": { "timeout_millis": 30000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "GetNote": { "timeout_millis": 30000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "ListNotes": { "timeout_millis": 30000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", + }, + "DeleteNote": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, "CreateNote": { "timeout_millis": 30000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "BatchCreateNotes": { "timeout_millis": 30000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "UpdateNote": { "timeout_millis": 30000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default", + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params", }, "ListNoteOccurrences": { "timeout_millis": 30000, - "retry_codes_name": "idempotent", - "retry_params_name": "default", + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params", }, }, } diff --git a/packages/grafeas/grafeas/grafeas_v1/gapic/transports/grafeas_grpc_transport.py b/packages/grafeas/grafeas/grafeas_v1/gapic/transports/grafeas_grpc_transport.py index c6423be41d29..8a630ead26aa 100644 --- a/packages/grafeas/grafeas/grafeas_v1/gapic/transports/grafeas_grpc_transport.py +++ b/packages/grafeas/grafeas/grafeas_v1/gapic/transports/grafeas_grpc_transport.py @@ -104,58 +104,45 @@ def channel(self): return self._channel @property - def delete_occurrence(self): - """Return the gRPC stub for :meth:`GrafeasClient.delete_occurrence`. - - Deletes the specified occurrence. For example, use this method to delete an - occurrence when the occurrence is no longer applicable for the given - resource. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs["grafeas_stub"].DeleteOccurrence - - @property - def delete_note(self): - """Return the gRPC stub for :meth:`GrafeasClient.delete_note`. + def get_occurrence(self): + """Return the gRPC stub for :meth:`GrafeasClient.get_occurrence`. - Deletes the specified note. + Gets the specified occurrence. Returns: Callable: A callable which accepts the appropriate deserialized request object and returns a deserialized response object. """ - return self._stubs["grafeas_stub"].DeleteNote + return self._stubs["grafeas_stub"].GetOccurrence @property - def get_occurrence(self): - """Return the gRPC stub for :meth:`GrafeasClient.get_occurrence`. + def list_occurrences(self): + """Return the gRPC stub for :meth:`GrafeasClient.list_occurrences`. - Gets the specified occurrence. + Lists occurrences for the specified project. Returns: Callable: A callable which accepts the appropriate deserialized request object and returns a deserialized response object. """ - return self._stubs["grafeas_stub"].GetOccurrence + return self._stubs["grafeas_stub"].ListOccurrences @property - def list_occurrences(self): - """Return the gRPC stub for :meth:`GrafeasClient.list_occurrences`. + def delete_occurrence(self): + """Return the gRPC stub for :meth:`GrafeasClient.delete_occurrence`. - Lists occurrences for the specified project. + Deletes the specified occurrence. For example, use this method to delete an + occurrence when the occurrence is no longer applicable for the given + resource. Returns: Callable: A callable which accepts the appropriate deserialized request object and returns a deserialized response object. """ - return self._stubs["grafeas_stub"].ListOccurrences + return self._stubs["grafeas_stub"].DeleteOccurrence @property def create_occurrence(self): @@ -236,6 +223,19 @@ def list_notes(self): """ return self._stubs["grafeas_stub"].ListNotes + @property + def delete_note(self): + """Return the gRPC stub for :meth:`GrafeasClient.delete_note`. + + Deletes the specified note. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["grafeas_stub"].DeleteNote + @property def create_note(self): """Return the gRPC stub for :meth:`GrafeasClient.create_note`. diff --git a/packages/grafeas/grafeas/grafeas_v1/proto/attestation_pb2.py b/packages/grafeas/grafeas/grafeas_v1/proto/attestation_pb2.py index 3b1304acaa5a..5606d9e711e6 100644 --- a/packages/grafeas/grafeas/grafeas_v1/proto/attestation_pb2.py +++ b/packages/grafeas/grafeas/grafeas_v1/proto/attestation_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: grafeas_v1/proto/attestation.proto +# source: grafeas/grafeas_v1/proto/attestation.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 @@ -15,20 +12,19 @@ _sym_db = _symbol_database.Default() -from grafeas.grafeas_v1.proto import common_pb2 as grafeas__v1_dot_proto_dot_common__pb2 +from grafeas.grafeas_v1.proto import ( + common_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name="grafeas_v1/proto/attestation.proto", + name="grafeas/grafeas_v1/proto/attestation.proto", package="grafeas.v1", syntax="proto3", - serialized_options=_b( - "\n\rio.grafeas.v1P\001Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\242\002\003GRA" - ), - serialized_pb=_b( - '\n"grafeas_v1/proto/attestation.proto\x12\ngrafeas.v1\x1a\x1dgrafeas_v1/proto/common.proto"f\n\x0f\x41ttestationNote\x12.\n\x04hint\x18\x01 \x01(\x0b\x32 .grafeas.v1.AttestationNote.Hint\x1a#\n\x04Hint\x12\x1b\n\x13human_readable_name\x18\x01 \x01(\t"^\n\x15\x41ttestationOccurrence\x12\x1a\n\x12serialized_payload\x18\x01 \x01(\x0c\x12)\n\nsignatures\x18\x02 \x03(\x0b\x32\x15.grafeas.v1.SignatureBQ\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3' - ), - dependencies=[grafeas__v1_dot_proto_dot_common__pb2.DESCRIPTOR,], + serialized_options=b"\n\rio.grafeas.v1P\001ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\242\002\003GRA", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n*grafeas/grafeas_v1/proto/attestation.proto\x12\ngrafeas.v1\x1a%grafeas/grafeas_v1/proto/common.proto"f\n\x0f\x41ttestationNote\x12.\n\x04hint\x18\x01 \x01(\x0b\x32 .grafeas.v1.AttestationNote.Hint\x1a#\n\x04Hint\x12\x1b\n\x13human_readable_name\x18\x01 \x01(\t"^\n\x15\x41ttestationOccurrence\x12\x1a\n\x12serialized_payload\x18\x01 \x01(\x0c\x12)\n\nsignatures\x18\x02 \x03(\x0b\x32\x15.grafeas.v1.SignatureB_\n\rio.grafeas.v1P\x01ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\xa2\x02\x03GRAb\x06proto3', + dependencies=[grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2.DESCRIPTOR,], ) @@ -38,6 +34,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="human_readable_name", @@ -48,7 +45,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -56,6 +53,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -66,8 +64,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=148, - serialized_end=183, + serialized_start=164, + serialized_end=199, ) _ATTESTATIONNOTE = _descriptor.Descriptor( @@ -76,6 +74,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="hint", @@ -94,6 +93,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -104,8 +104,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=81, - serialized_end=183, + serialized_start=97, + serialized_end=199, ) @@ -115,6 +115,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="serialized_payload", @@ -125,7 +126,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, @@ -133,6 +134,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="signatures", @@ -151,6 +153,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -161,15 +164,15 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=185, - serialized_end=279, + serialized_start=201, + serialized_end=295, ) _ATTESTATIONNOTE_HINT.containing_type = _ATTESTATIONNOTE _ATTESTATIONNOTE.fields_by_name["hint"].message_type = _ATTESTATIONNOTE_HINT _ATTESTATIONOCCURRENCE.fields_by_name[ "signatures" -].message_type = grafeas__v1_dot_proto_dot_common__pb2._SIGNATURE +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2._SIGNATURE DESCRIPTOR.message_types_by_name["AttestationNote"] = _ATTESTATIONNOTE DESCRIPTOR.message_types_by_name["AttestationOccurrence"] = _ATTESTATIONOCCURRENCE _sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -177,45 +180,47 @@ AttestationNote = _reflection.GeneratedProtocolMessageType( "AttestationNote", (_message.Message,), - dict( - Hint=_reflection.GeneratedProtocolMessageType( + { + "Hint": _reflection.GeneratedProtocolMessageType( "Hint", (_message.Message,), - dict( - DESCRIPTOR=_ATTESTATIONNOTE_HINT, - __module__="grafeas_v1.proto.attestation_pb2", - __doc__="""This submessage provides human-readable hints about the purpose of the + { + "DESCRIPTOR": _ATTESTATIONNOTE_HINT, + "__module__": "grafeas.grafeas_v1.proto.attestation_pb2", + "__doc__": """This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which - might be a UUID for security purposes) from "readable" names more + might be a UUID for security purposes) from “readable” names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. + Attributes: human_readable_name: Required. The human readable name of this attestation - authority, for example "qa". + authority, for example “qa”. """, # @@protoc_insertion_point(class_scope:grafeas.v1.AttestationNote.Hint) - ), + }, ), - DESCRIPTOR=_ATTESTATIONNOTE, - __module__="grafeas_v1.proto.attestation_pb2", - __doc__="""Note kind that represents a logical attestation "role" or "authority". - For example, an organization might have one ``Authority`` for "QA" and - one for "build". This note is intended to act strictly as a grouping + "DESCRIPTOR": _ATTESTATIONNOTE, + "__module__": "grafeas.grafeas_v1.proto.attestation_pb2", + "__doc__": """Note kind that represents a logical attestation “role” or “authority”. + For example, an organization might have one ``Authority`` for “QA” and + one for “build”. This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached - attestation occurrences, even if they don't all live in the same + attestation occurrences, even if they don’t all live in the same project. + Attributes: hint: Hint hints at the purpose of the attestation authority. """, # @@protoc_insertion_point(class_scope:grafeas.v1.AttestationNote) - ), + }, ) _sym_db.RegisterMessage(AttestationNote) _sym_db.RegisterMessage(AttestationNote.Hint) @@ -223,10 +228,10 @@ AttestationOccurrence = _reflection.GeneratedProtocolMessageType( "AttestationOccurrence", (_message.Message,), - dict( - DESCRIPTOR=_ATTESTATIONOCCURRENCE, - __module__="grafeas_v1.proto.attestation_pb2", - __doc__="""Occurrence that represents a single "attestation". The authenticity of + { + "DESCRIPTOR": _ATTESTATIONOCCURRENCE, + "__module__": "grafeas.grafeas_v1.proto.attestation_pb2", + "__doc__": """Occurrence that represents a single “attestation”. The authenticity of an attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the @@ -234,6 +239,7 @@ for lookup (how to find this attestation if you already know the authority and artifact to be verified) and intent (for which authority this attestation was intended to sign. + Attributes: serialized_payload: Required. The serialized payload that is verified by one or @@ -246,7 +252,7 @@ more details on signature structure and verification. """, # @@protoc_insertion_point(class_scope:grafeas.v1.AttestationOccurrence) - ), + }, ) _sym_db.RegisterMessage(AttestationOccurrence) diff --git a/packages/grafeas/grafeas/grafeas_v1/proto/build_pb2.py b/packages/grafeas/grafeas/grafeas_v1/proto/build_pb2.py index 7a3723ca35e0..a92ff932c792 100644 --- a/packages/grafeas/grafeas/grafeas_v1/proto/build_pb2.py +++ b/packages/grafeas/grafeas/grafeas_v1/proto/build_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: grafeas_v1/proto/build.proto +# source: grafeas/grafeas_v1/proto/build.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 @@ -16,21 +13,18 @@ from grafeas.grafeas_v1.proto import ( - provenance_pb2 as grafeas__v1_dot_proto_dot_provenance__pb2, + provenance_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_provenance__pb2, ) DESCRIPTOR = _descriptor.FileDescriptor( - name="grafeas_v1/proto/build.proto", + name="grafeas/grafeas_v1/proto/build.proto", package="grafeas.v1", syntax="proto3", - serialized_options=_b( - "\n\rio.grafeas.v1P\001Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\242\002\003GRA" - ), - serialized_pb=_b( - '\n\x1cgrafeas_v1/proto/build.proto\x12\ngrafeas.v1\x1a!grafeas_v1/proto/provenance.proto"$\n\tBuildNote\x12\x17\n\x0f\x62uilder_version\x18\x01 \x01(\t"\\\n\x0f\x42uildOccurrence\x12/\n\nprovenance\x18\x01 \x01(\x0b\x32\x1b.grafeas.v1.BuildProvenance\x12\x18\n\x10provenance_bytes\x18\x02 \x01(\tBQ\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3' - ), - dependencies=[grafeas__v1_dot_proto_dot_provenance__pb2.DESCRIPTOR,], + serialized_options=b"\n\rio.grafeas.v1P\001ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\242\002\003GRA", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n$grafeas/grafeas_v1/proto/build.proto\x12\ngrafeas.v1\x1a)grafeas/grafeas_v1/proto/provenance.proto"$\n\tBuildNote\x12\x17\n\x0f\x62uilder_version\x18\x01 \x01(\t"\\\n\x0f\x42uildOccurrence\x12/\n\nprovenance\x18\x01 \x01(\x0b\x32\x1b.grafeas.v1.BuildProvenance\x12\x18\n\x10provenance_bytes\x18\x02 \x01(\tB_\n\rio.grafeas.v1P\x01ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\xa2\x02\x03GRAb\x06proto3', + dependencies=[grafeas_dot_grafeas__v1_dot_proto_dot_provenance__pb2.DESCRIPTOR,], ) @@ -40,6 +34,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="builder_version", @@ -50,7 +45,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, @@ -58,6 +53,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -68,8 +64,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=79, - serialized_end=115, + serialized_start=95, + serialized_end=131, ) @@ -79,6 +75,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="provenance", @@ -97,6 +94,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="provenance_bytes", @@ -107,7 +105,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, @@ -115,6 +113,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -125,13 +124,13 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=117, - serialized_end=209, + serialized_start=133, + serialized_end=225, ) _BUILDOCCURRENCE.fields_by_name[ "provenance" -].message_type = grafeas__v1_dot_proto_dot_provenance__pb2._BUILDPROVENANCE +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_provenance__pb2._BUILDPROVENANCE DESCRIPTOR.message_types_by_name["BuildNote"] = _BUILDNOTE DESCRIPTOR.message_types_by_name["BuildOccurrence"] = _BUILDOCCURRENCE _sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -139,28 +138,30 @@ BuildNote = _reflection.GeneratedProtocolMessageType( "BuildNote", (_message.Message,), - dict( - DESCRIPTOR=_BUILDNOTE, - __module__="grafeas_v1.proto.build_pb2", - __doc__="""Note holding the version of the provider's builder and the signature + { + "DESCRIPTOR": _BUILDNOTE, + "__module__": "grafeas.grafeas_v1.proto.build_pb2", + "__doc__": """Note holding the version of the provider’s builder and the signature of the provenance message in the build details occurrence. + Attributes: builder_version: Required. Immutable. Version of the builder which produced this build. """, # @@protoc_insertion_point(class_scope:grafeas.v1.BuildNote) - ), + }, ) _sym_db.RegisterMessage(BuildNote) BuildOccurrence = _reflection.GeneratedProtocolMessageType( "BuildOccurrence", (_message.Message,), - dict( - DESCRIPTOR=_BUILDOCCURRENCE, - __module__="grafeas_v1.proto.build_pb2", - __doc__="""Details of a build occurrence. + { + "DESCRIPTOR": _BUILDOCCURRENCE, + "__module__": "grafeas.grafeas_v1.proto.build_pb2", + "__doc__": """Details of a build occurrence. + Attributes: provenance: Required. The actual provenance for the build. @@ -177,7 +178,7 @@ as well to prevent incompatibilities with future changes. """, # @@protoc_insertion_point(class_scope:grafeas.v1.BuildOccurrence) - ), + }, ) _sym_db.RegisterMessage(BuildOccurrence) diff --git a/packages/grafeas/grafeas/grafeas_v1/proto/common_pb2.py b/packages/grafeas/grafeas/grafeas_v1/proto/common_pb2.py index 9edf58cb75d8..c53a61b9f9ed 100644 --- a/packages/grafeas/grafeas/grafeas_v1/proto/common_pb2.py +++ b/packages/grafeas/grafeas/grafeas_v1/proto/common_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: grafeas_v1/proto/common.proto +# source: grafeas/grafeas_v1/proto/common.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -17,15 +14,12 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name="grafeas_v1/proto/common.proto", + name="grafeas/grafeas_v1/proto/common.proto", package="grafeas.v1", syntax="proto3", - serialized_options=_b( - "\n\rio.grafeas.v1P\001Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\242\002\003GRA" - ), - serialized_pb=_b( - '\n\x1dgrafeas_v1/proto/common.proto\x12\ngrafeas.v1"(\n\nRelatedUrl\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t"5\n\tSignature\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\x15\n\rpublic_key_id\x18\x02 \x01(\t*\x98\x01\n\x08NoteKind\x12\x19\n\x15NOTE_KIND_UNSPECIFIED\x10\x00\x12\x11\n\rVULNERABILITY\x10\x01\x12\t\n\x05\x42UILD\x10\x02\x12\t\n\x05IMAGE\x10\x03\x12\x0b\n\x07PACKAGE\x10\x04\x12\x0e\n\nDEPLOYMENT\x10\x05\x12\r\n\tDISCOVERY\x10\x06\x12\x0f\n\x0b\x41TTESTATION\x10\x07\x12\x0b\n\x07UPGRADE\x10\x08\x42Q\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3' - ), + serialized_options=b"\n\rio.grafeas.v1P\001ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\242\002\003GRA", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n%grafeas/grafeas_v1/proto/common.proto\x12\ngrafeas.v1"(\n\nRelatedUrl\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t"5\n\tSignature\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\x15\n\rpublic_key_id\x18\x02 \x01(\t*\x98\x01\n\x08NoteKind\x12\x19\n\x15NOTE_KIND_UNSPECIFIED\x10\x00\x12\x11\n\rVULNERABILITY\x10\x01\x12\t\n\x05\x42UILD\x10\x02\x12\t\n\x05IMAGE\x10\x03\x12\x0b\n\x07PACKAGE\x10\x04\x12\x0e\n\nDEPLOYMENT\x10\x05\x12\r\n\tDISCOVERY\x10\x06\x12\x0f\n\x0b\x41TTESTATION\x10\x07\x12\x0b\n\x07UPGRADE\x10\x08\x42_\n\rio.grafeas.v1P\x01ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\xa2\x02\x03GRAb\x06proto3', ) _NOTEKIND = _descriptor.EnumDescriptor( @@ -33,6 +27,7 @@ full_name="grafeas.v1.NoteKind", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="NOTE_KIND_UNSPECIFIED", @@ -40,36 +35,77 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="VULNERABILITY", index=1, number=1, serialized_options=None, type=None + name="VULNERABILITY", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="BUILD", index=2, number=2, serialized_options=None, type=None + name="BUILD", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IMAGE", index=3, number=3, serialized_options=None, type=None + name="IMAGE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PACKAGE", index=4, number=4, serialized_options=None, type=None + name="PACKAGE", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DEPLOYMENT", index=5, number=5, serialized_options=None, type=None + name="DEPLOYMENT", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="DISCOVERY", index=6, number=6, serialized_options=None, type=None + name="DISCOVERY", + index=6, + number=6, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ATTESTATION", index=7, number=7, serialized_options=None, type=None + name="ATTESTATION", + index=7, + number=7, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="UPGRADE", index=8, number=8, serialized_options=None, type=None + name="UPGRADE", + index=8, + number=8, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=143, - serialized_end=295, + serialized_start=151, + serialized_end=303, ) _sym_db.RegisterEnumDescriptor(_NOTEKIND) @@ -91,6 +127,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="url", @@ -101,7 +138,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -109,6 +146,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="label", @@ -119,7 +157,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, @@ -127,6 +165,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -137,8 +176,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=45, - serialized_end=85, + serialized_start=53, + serialized_end=93, ) @@ -148,6 +187,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="signature", @@ -158,7 +198,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, @@ -166,6 +206,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="public_key_id", @@ -176,7 +217,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, @@ -184,6 +225,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -194,8 +236,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=87, - serialized_end=140, + serialized_start=95, + serialized_end=148, ) DESCRIPTOR.message_types_by_name["RelatedUrl"] = _RELATEDURL @@ -206,10 +248,11 @@ RelatedUrl = _reflection.GeneratedProtocolMessageType( "RelatedUrl", (_message.Message,), - dict( - DESCRIPTOR=_RELATEDURL, - __module__="grafeas_v1.proto.common_pb2", - __doc__="""Metadata for any related URL information. + { + "DESCRIPTOR": _RELATEDURL, + "__module__": "grafeas.grafeas_v1.proto.common_pb2", + "__doc__": """Metadata for any related URL information. + Attributes: url: Specific URL associated with the resource. @@ -217,21 +260,21 @@ Label to describe usage of the URL. """, # @@protoc_insertion_point(class_scope:grafeas.v1.RelatedUrl) - ), + }, ) _sym_db.RegisterMessage(RelatedUrl) Signature = _reflection.GeneratedProtocolMessageType( "Signature", (_message.Message,), - dict( - DESCRIPTOR=_SIGNATURE, - __module__="grafeas_v1.proto.common_pb2", - __doc__="""Verifiers (e.g. Kritis implementations) MUST verify signatures with - respect to the trust anchors defined in policy (e.g. a Kritis policy). + { + "DESCRIPTOR": _SIGNATURE, + "__module__": "grafeas.grafeas_v1.proto.common_pb2", + "__doc__": """Verifiers (e.g. Kritis implementations) MUST verify signatures with + respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from ``public_key_id`` to public key material (and any required - parameters, e.g. signing algorithm). In particular, verification + parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature ``public_key_id`` as anything more than a key lookup hint. The ``public_key_id`` DOES NOT validate or authenticate a public key; it only provides a mechanism @@ -241,12 +284,13 @@ ``public_key_id`` is not recognized by the verifier. \* The public key that ``public_key_id`` refers to does not verify the signature with respect to the payload. The ``signature`` contents SHOULD NOT be - "attached" (where the payload is included with the serialized - ``signature`` bytes). Verifiers MUST ignore any "attached" payload and + “attached” (where the payload is included with the serialized + ``signature`` bytes). Verifiers MUST ignore any “attached” payload and only verify signatures with respect to explicitly provided payload - (e.g. a ``payload`` field on the proto message that holds this + (e.g. a ``payload`` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature). + Attributes: signature: The content of the signature, an opaque bytestring. The @@ -262,16 +306,16 @@ possible, the ``public_key_id`` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid ``public_key_id``\ s: OpenPGP V4 public key fingerprint: \* - "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" See + “openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA” See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): \* - "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi\_vdjJGecm\_iXkbqVoScViaU" - \* "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9 - bf89791ba95a1271589a5" + “ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU” \* + “nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf8 + 9791ba95a1271589a5” """, # @@protoc_insertion_point(class_scope:grafeas.v1.Signature) - ), + }, ) _sym_db.RegisterMessage(Signature) diff --git a/packages/grafeas/grafeas/grafeas_v1/proto/cvss_pb2.py b/packages/grafeas/grafeas/grafeas_v1/proto/cvss_pb2.py index 1e70aab640aa..f4fd1d182e40 100644 --- a/packages/grafeas/grafeas/grafeas_v1/proto/cvss_pb2.py +++ b/packages/grafeas/grafeas/grafeas_v1/proto/cvss_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: grafeas_v1/proto/cvss.proto +# source: grafeas/grafeas_v1/proto/cvss.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 @@ -16,15 +13,12 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name="grafeas_v1/proto/cvss.proto", + name="grafeas/grafeas_v1/proto/cvss.proto", package="grafeas.v1", syntax="proto3", - serialized_options=_b( - "\n\rio.grafeas.v1P\001Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\242\002\003GRA" - ), - serialized_pb=_b( - '\n\x1bgrafeas_v1/proto/cvss.proto\x12\ngrafeas.v1"\xc5\t\n\x06\x43VSSv3\x12\x12\n\nbase_score\x18\x01 \x01(\x02\x12\x1c\n\x14\x65xploitability_score\x18\x02 \x01(\x02\x12\x14\n\x0cimpact_score\x18\x03 \x01(\x02\x12\x36\n\rattack_vector\x18\x05 \x01(\x0e\x32\x1f.grafeas.v1.CVSSv3.AttackVector\x12>\n\x11\x61ttack_complexity\x18\x06 \x01(\x0e\x32#.grafeas.v1.CVSSv3.AttackComplexity\x12\x42\n\x13privileges_required\x18\x07 \x01(\x0e\x32%.grafeas.v1.CVSSv3.PrivilegesRequired\x12<\n\x10user_interaction\x18\x08 \x01(\x0e\x32".grafeas.v1.CVSSv3.UserInteraction\x12\'\n\x05scope\x18\t \x01(\x0e\x32\x18.grafeas.v1.CVSSv3.Scope\x12\x39\n\x16\x63onfidentiality_impact\x18\n \x01(\x0e\x32\x19.grafeas.v1.CVSSv3.Impact\x12\x33\n\x10integrity_impact\x18\x0b \x01(\x0e\x32\x19.grafeas.v1.CVSSv3.Impact\x12\x36\n\x13\x61vailability_impact\x18\x0c \x01(\x0e\x32\x19.grafeas.v1.CVSSv3.Impact"\x99\x01\n\x0c\x41ttackVector\x12\x1d\n\x19\x41TTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41TTACK_VECTOR_NETWORK\x10\x01\x12\x1a\n\x16\x41TTACK_VECTOR_ADJACENT\x10\x02\x12\x17\n\x13\x41TTACK_VECTOR_LOCAL\x10\x03\x12\x1a\n\x16\x41TTACK_VECTOR_PHYSICAL\x10\x04"l\n\x10\x41ttackComplexity\x12!\n\x1d\x41TTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41TTACK_COMPLEXITY_LOW\x10\x01\x12\x1a\n\x16\x41TTACK_COMPLEXITY_HIGH\x10\x02"\x92\x01\n\x12PrivilegesRequired\x12#\n\x1fPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1c\n\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1b\n\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1c\n\x18PRIVILEGES_REQUIRED_HIGH\x10\x03"m\n\x0fUserInteraction\x12 \n\x1cUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\n\x15USER_INTERACTION_NONE\x10\x01\x12\x1d\n\x19USER_INTERACTION_REQUIRED\x10\x02"F\n\x05Scope\x12\x15\n\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSCOPE_UNCHANGED\x10\x01\x12\x11\n\rSCOPE_CHANGED\x10\x02"R\n\x06Impact\x12\x16\n\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIMPACT_HIGH\x10\x01\x12\x0e\n\nIMPACT_LOW\x10\x02\x12\x0f\n\x0bIMPACT_NONE\x10\x03\x42Q\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3' - ), + serialized_options=b"\n\rio.grafeas.v1P\001ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\242\002\003GRA", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n#grafeas/grafeas_v1/proto/cvss.proto\x12\ngrafeas.v1"\xc5\t\n\x06\x43VSSv3\x12\x12\n\nbase_score\x18\x01 \x01(\x02\x12\x1c\n\x14\x65xploitability_score\x18\x02 \x01(\x02\x12\x14\n\x0cimpact_score\x18\x03 \x01(\x02\x12\x36\n\rattack_vector\x18\x05 \x01(\x0e\x32\x1f.grafeas.v1.CVSSv3.AttackVector\x12>\n\x11\x61ttack_complexity\x18\x06 \x01(\x0e\x32#.grafeas.v1.CVSSv3.AttackComplexity\x12\x42\n\x13privileges_required\x18\x07 \x01(\x0e\x32%.grafeas.v1.CVSSv3.PrivilegesRequired\x12<\n\x10user_interaction\x18\x08 \x01(\x0e\x32".grafeas.v1.CVSSv3.UserInteraction\x12\'\n\x05scope\x18\t \x01(\x0e\x32\x18.grafeas.v1.CVSSv3.Scope\x12\x39\n\x16\x63onfidentiality_impact\x18\n \x01(\x0e\x32\x19.grafeas.v1.CVSSv3.Impact\x12\x33\n\x10integrity_impact\x18\x0b \x01(\x0e\x32\x19.grafeas.v1.CVSSv3.Impact\x12\x36\n\x13\x61vailability_impact\x18\x0c \x01(\x0e\x32\x19.grafeas.v1.CVSSv3.Impact"\x99\x01\n\x0c\x41ttackVector\x12\x1d\n\x19\x41TTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41TTACK_VECTOR_NETWORK\x10\x01\x12\x1a\n\x16\x41TTACK_VECTOR_ADJACENT\x10\x02\x12\x17\n\x13\x41TTACK_VECTOR_LOCAL\x10\x03\x12\x1a\n\x16\x41TTACK_VECTOR_PHYSICAL\x10\x04"l\n\x10\x41ttackComplexity\x12!\n\x1d\x41TTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41TTACK_COMPLEXITY_LOW\x10\x01\x12\x1a\n\x16\x41TTACK_COMPLEXITY_HIGH\x10\x02"\x92\x01\n\x12PrivilegesRequired\x12#\n\x1fPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1c\n\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1b\n\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1c\n\x18PRIVILEGES_REQUIRED_HIGH\x10\x03"m\n\x0fUserInteraction\x12 \n\x1cUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\n\x15USER_INTERACTION_NONE\x10\x01\x12\x1d\n\x19USER_INTERACTION_REQUIRED\x10\x02"F\n\x05Scope\x12\x15\n\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSCOPE_UNCHANGED\x10\x01\x12\x11\n\rSCOPE_CHANGED\x10\x02"R\n\x06Impact\x12\x16\n\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIMPACT_HIGH\x10\x01\x12\x0e\n\nIMPACT_LOW\x10\x02\x12\x0f\n\x0bIMPACT_NONE\x10\x03\x42_\n\rio.grafeas.v1P\x01ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\xa2\x02\x03GRAb\x06proto3', ) @@ -33,6 +27,7 @@ full_name="grafeas.v1.CVSSv3.AttackVector", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="ATTACK_VECTOR_UNSPECIFIED", @@ -40,6 +35,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ATTACK_VECTOR_NETWORK", @@ -47,6 +43,7 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ATTACK_VECTOR_ADJACENT", @@ -54,6 +51,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ATTACK_VECTOR_LOCAL", @@ -61,6 +59,7 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ATTACK_VECTOR_PHYSICAL", @@ -68,12 +67,13 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=586, - serialized_end=739, + serialized_start=594, + serialized_end=747, ) _sym_db.RegisterEnumDescriptor(_CVSSV3_ATTACKVECTOR) @@ -82,6 +82,7 @@ full_name="grafeas.v1.CVSSv3.AttackComplexity", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="ATTACK_COMPLEXITY_UNSPECIFIED", @@ -89,6 +90,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ATTACK_COMPLEXITY_LOW", @@ -96,6 +98,7 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="ATTACK_COMPLEXITY_HIGH", @@ -103,12 +106,13 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=741, - serialized_end=849, + serialized_start=749, + serialized_end=857, ) _sym_db.RegisterEnumDescriptor(_CVSSV3_ATTACKCOMPLEXITY) @@ -117,6 +121,7 @@ full_name="grafeas.v1.CVSSv3.PrivilegesRequired", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="PRIVILEGES_REQUIRED_UNSPECIFIED", @@ -124,6 +129,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="PRIVILEGES_REQUIRED_NONE", @@ -131,6 +137,7 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="PRIVILEGES_REQUIRED_LOW", @@ -138,6 +145,7 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="PRIVILEGES_REQUIRED_HIGH", @@ -145,12 +153,13 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=852, - serialized_end=998, + serialized_start=860, + serialized_end=1006, ) _sym_db.RegisterEnumDescriptor(_CVSSV3_PRIVILEGESREQUIRED) @@ -159,6 +168,7 @@ full_name="grafeas.v1.CVSSv3.UserInteraction", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="USER_INTERACTION_UNSPECIFIED", @@ -166,6 +176,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="USER_INTERACTION_NONE", @@ -173,6 +184,7 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="USER_INTERACTION_REQUIRED", @@ -180,12 +192,13 @@ number=2, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=1000, - serialized_end=1109, + serialized_start=1008, + serialized_end=1117, ) _sym_db.RegisterEnumDescriptor(_CVSSV3_USERINTERACTION) @@ -194,6 +207,7 @@ full_name="grafeas.v1.CVSSv3.Scope", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="SCOPE_UNSPECIFIED", @@ -201,6 +215,7 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="SCOPE_UNCHANGED", @@ -208,15 +223,21 @@ number=1, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SCOPE_CHANGED", index=2, number=2, serialized_options=None, type=None + name="SCOPE_CHANGED", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=1111, - serialized_end=1181, + serialized_start=1119, + serialized_end=1189, ) _sym_db.RegisterEnumDescriptor(_CVSSV3_SCOPE) @@ -225,6 +246,7 @@ full_name="grafeas.v1.CVSSv3.Impact", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="IMPACT_UNSPECIFIED", @@ -232,21 +254,37 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IMPACT_HIGH", index=1, number=1, serialized_options=None, type=None + name="IMPACT_HIGH", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IMPACT_LOW", index=2, number=2, serialized_options=None, type=None + name="IMPACT_LOW", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="IMPACT_NONE", index=3, number=3, serialized_options=None, type=None + name="IMPACT_NONE", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=1183, - serialized_end=1265, + serialized_start=1191, + serialized_end=1273, ) _sym_db.RegisterEnumDescriptor(_CVSSV3_IMPACT) @@ -257,6 +295,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="base_score", @@ -275,6 +314,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="exploitability_score", @@ -293,6 +333,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="impact_score", @@ -311,6 +352,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="attack_vector", @@ -329,6 +371,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="attack_complexity", @@ -347,6 +390,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="privileges_required", @@ -365,6 +409,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="user_interaction", @@ -383,6 +428,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="scope", @@ -401,6 +447,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="confidentiality_impact", @@ -419,6 +466,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="integrity_impact", @@ -437,6 +485,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="availability_impact", @@ -455,6 +504,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -472,8 +522,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=44, - serialized_end=1265, + serialized_start=52, + serialized_end=1273, ) _CVSSV3.fields_by_name["attack_vector"].enum_type = _CVSSV3_ATTACKVECTOR @@ -496,11 +546,12 @@ CVSSv3 = _reflection.GeneratedProtocolMessageType( "CVSSv3", (_message.Message,), - dict( - DESCRIPTOR=_CVSSV3, - __module__="grafeas_v1.proto.cvss_pb2", - __doc__="""Common Vulnerability Scoring System version 3. For details, see + { + "DESCRIPTOR": _CVSSV3, + "__module__": "grafeas.grafeas_v1.proto.cvss_pb2", + "__doc__": """Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document + Attributes: base_score: The base score is a function of the base metric scores. @@ -510,7 +561,7 @@ environments. """, # @@protoc_insertion_point(class_scope:grafeas.v1.CVSSv3) - ), + }, ) _sym_db.RegisterMessage(CVSSv3) diff --git a/packages/grafeas/grafeas/grafeas_v1/proto/deployment_pb2.py b/packages/grafeas/grafeas/grafeas_v1/proto/deployment_pb2.py index a0eeeea69d5d..342bf864790f 100644 --- a/packages/grafeas/grafeas/grafeas_v1/proto/deployment_pb2.py +++ b/packages/grafeas/grafeas/grafeas_v1/proto/deployment_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: grafeas_v1/proto/deployment.proto +# source: grafeas/grafeas_v1/proto/deployment.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 @@ -19,15 +16,12 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name="grafeas_v1/proto/deployment.proto", + name="grafeas/grafeas_v1/proto/deployment.proto", package="grafeas.v1", syntax="proto3", - serialized_options=_b( - "\n\rio.grafeas.v1P\001Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\242\002\003GRA" - ), - serialized_pb=_b( - '\n!grafeas_v1/proto/deployment.proto\x12\ngrafeas.v1\x1a\x1fgoogle/protobuf/timestamp.proto"&\n\x0e\x44\x65ploymentNote\x12\x14\n\x0cresource_uri\x18\x01 \x03(\t"\xc7\x02\n\x14\x44\x65ploymentOccurrence\x12\x12\n\nuser_email\x18\x01 \x01(\t\x12/\n\x0b\x64\x65ploy_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rundeploy_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x63onfig\x18\x04 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x05 \x01(\t\x12\x14\n\x0cresource_uri\x18\x06 \x03(\t\x12;\n\x08platform\x18\x07 \x01(\x0e\x32).grafeas.v1.DeploymentOccurrence.Platform"C\n\x08Platform\x12\x18\n\x14PLATFORM_UNSPECIFIED\x10\x00\x12\x07\n\x03GKE\x10\x01\x12\x08\n\x04\x46LEX\x10\x02\x12\n\n\x06\x43USTOM\x10\x03\x42Q\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3' - ), + serialized_options=b"\n\rio.grafeas.v1P\001ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\242\002\003GRA", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n)grafeas/grafeas_v1/proto/deployment.proto\x12\ngrafeas.v1\x1a\x1fgoogle/protobuf/timestamp.proto"&\n\x0e\x44\x65ploymentNote\x12\x14\n\x0cresource_uri\x18\x01 \x03(\t"\xc7\x02\n\x14\x44\x65ploymentOccurrence\x12\x12\n\nuser_email\x18\x01 \x01(\t\x12/\n\x0b\x64\x65ploy_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rundeploy_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x63onfig\x18\x04 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x05 \x01(\t\x12\x14\n\x0cresource_uri\x18\x06 \x03(\t\x12;\n\x08platform\x18\x07 \x01(\x0e\x32).grafeas.v1.DeploymentOccurrence.Platform"C\n\x08Platform\x12\x18\n\x14PLATFORM_UNSPECIFIED\x10\x00\x12\x07\n\x03GKE\x10\x01\x12\x08\n\x04\x46LEX\x10\x02\x12\n\n\x06\x43USTOM\x10\x03\x42_\n\rio.grafeas.v1P\x01ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\xa2\x02\x03GRAb\x06proto3', dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,], ) @@ -37,6 +31,7 @@ full_name="grafeas.v1.DeploymentOccurrence.Platform", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="PLATFORM_UNSPECIFIED", @@ -44,21 +39,37 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="GKE", index=1, number=1, serialized_options=None, type=None + name="GKE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FLEX", index=2, number=2, serialized_options=None, type=None + name="FLEX", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CUSTOM", index=3, number=3, serialized_options=None, type=None + name="CUSTOM", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=383, - serialized_end=450, + serialized_start=391, + serialized_end=458, ) _sym_db.RegisterEnumDescriptor(_DEPLOYMENTOCCURRENCE_PLATFORM) @@ -69,6 +80,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="resource_uri", @@ -87,6 +99,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -97,8 +110,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=82, - serialized_end=120, + serialized_start=90, + serialized_end=128, ) @@ -108,6 +121,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="user_email", @@ -118,7 +132,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, @@ -126,6 +140,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="deploy_time", @@ -144,6 +159,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="undeploy_time", @@ -162,6 +178,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="config", @@ -172,7 +189,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, @@ -180,6 +197,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", @@ -190,7 +208,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, @@ -198,6 +216,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="resource_uri", @@ -216,6 +235,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="platform", @@ -234,6 +254,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -244,8 +265,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=123, - serialized_end=450, + serialized_start=131, + serialized_end=458, ) _DEPLOYMENTOCCURRENCE.fields_by_name[ @@ -265,26 +286,28 @@ DeploymentNote = _reflection.GeneratedProtocolMessageType( "DeploymentNote", (_message.Message,), - dict( - DESCRIPTOR=_DEPLOYMENTNOTE, - __module__="grafeas_v1.proto.deployment_pb2", - __doc__="""An artifact that can be deployed in some runtime. + { + "DESCRIPTOR": _DEPLOYMENTNOTE, + "__module__": "grafeas.grafeas_v1.proto.deployment_pb2", + "__doc__": """An artifact that can be deployed in some runtime. + Attributes: resource_uri: Required. Resource URI for the artifact being deployed. """, # @@protoc_insertion_point(class_scope:grafeas.v1.DeploymentNote) - ), + }, ) _sym_db.RegisterMessage(DeploymentNote) DeploymentOccurrence = _reflection.GeneratedProtocolMessageType( "DeploymentOccurrence", (_message.Message,), - dict( - DESCRIPTOR=_DEPLOYMENTOCCURRENCE, - __module__="grafeas_v1.proto.deployment_pb2", - __doc__="""The period during which some deployable was active in a runtime. + { + "DESCRIPTOR": _DEPLOYMENTOCCURRENCE, + "__module__": "grafeas.grafeas_v1.proto.deployment_pb2", + "__doc__": """The period during which some deployable was active in a runtime. + Attributes: user_email: Identity of the user that triggered this deployment. @@ -303,7 +326,7 @@ Platform hosting this deployment. """, # @@protoc_insertion_point(class_scope:grafeas.v1.DeploymentOccurrence) - ), + }, ) _sym_db.RegisterMessage(DeploymentOccurrence) diff --git a/packages/grafeas/grafeas/grafeas_v1/proto/discovery_pb2.py b/packages/grafeas/grafeas/grafeas_v1/proto/discovery_pb2.py index 53e9e1ee7232..68f18d404c5d 100644 --- a/packages/grafeas/grafeas/grafeas_v1/proto/discovery_pb2.py +++ b/packages/grafeas/grafeas/grafeas_v1/proto/discovery_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: grafeas_v1/proto/discovery.proto +# source: grafeas/grafeas_v1/proto/discovery.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 @@ -17,23 +14,22 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 -from grafeas.grafeas_v1.proto import common_pb2 as grafeas__v1_dot_proto_dot_common__pb2 +from grafeas.grafeas_v1.proto import ( + common_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2, +) DESCRIPTOR = _descriptor.FileDescriptor( - name="grafeas_v1/proto/discovery.proto", + name="grafeas/grafeas_v1/proto/discovery.proto", package="grafeas.v1", syntax="proto3", - serialized_options=_b( - "\n\rio.grafeas.v1P\001Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\242\002\003GRA" - ), - serialized_pb=_b( - '\n grafeas_v1/proto/discovery.proto\x12\ngrafeas.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x1dgrafeas_v1/proto/common.proto"<\n\rDiscoveryNote\x12+\n\ranalysis_kind\x18\x01 \x01(\x0e\x32\x14.grafeas.v1.NoteKind"\x8c\x04\n\x13\x44iscoveryOccurrence\x12O\n\x13\x63ontinuous_analysis\x18\x01 \x01(\x0e\x32\x32.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis\x12G\n\x0f\x61nalysis_status\x18\x02 \x01(\x0e\x32..grafeas.v1.DiscoveryOccurrence.AnalysisStatus\x12\x31\n\x15\x61nalysis_status_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x0b\n\x03\x63pe\x18\x04 \x01(\t\x12\x32\n\x0elast_scan_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"S\n\x12\x43ontinuousAnalysis\x12#\n\x1f\x43ONTINUOUS_ANALYSIS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02"\x91\x01\n\x0e\x41nalysisStatus\x12\x1f\n\x1b\x41NALYSIS_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0c\n\x08SCANNING\x10\x02\x12\x14\n\x10\x46INISHED_SUCCESS\x10\x03\x12\x13\n\x0f\x46INISHED_FAILED\x10\x04\x12\x18\n\x14\x46INISHED_UNSUPPORTED\x10\x05\x42Q\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3' - ), + serialized_options=b"\n\rio.grafeas.v1P\001ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\242\002\003GRA", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n(grafeas/grafeas_v1/proto/discovery.proto\x12\ngrafeas.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a%grafeas/grafeas_v1/proto/common.proto"<\n\rDiscoveryNote\x12+\n\ranalysis_kind\x18\x01 \x01(\x0e\x32\x14.grafeas.v1.NoteKind"\x8c\x04\n\x13\x44iscoveryOccurrence\x12O\n\x13\x63ontinuous_analysis\x18\x01 \x01(\x0e\x32\x32.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis\x12G\n\x0f\x61nalysis_status\x18\x02 \x01(\x0e\x32..grafeas.v1.DiscoveryOccurrence.AnalysisStatus\x12\x31\n\x15\x61nalysis_status_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x0b\n\x03\x63pe\x18\x04 \x01(\t\x12\x32\n\x0elast_scan_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"S\n\x12\x43ontinuousAnalysis\x12#\n\x1f\x43ONTINUOUS_ANALYSIS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02"\x91\x01\n\x0e\x41nalysisStatus\x12\x1f\n\x1b\x41NALYSIS_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0c\n\x08SCANNING\x10\x02\x12\x14\n\x10\x46INISHED_SUCCESS\x10\x03\x12\x13\n\x0f\x46INISHED_FAILED\x10\x04\x12\x18\n\x14\x46INISHED_UNSUPPORTED\x10\x05\x42_\n\rio.grafeas.v1P\x01ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\xa2\x02\x03GRAb\x06proto3', dependencies=[ google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, google_dot_rpc_dot_status__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_common__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2.DESCRIPTOR, ], ) @@ -43,6 +39,7 @@ full_name="grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="CONTINUOUS_ANALYSIS_UNSPECIFIED", @@ -50,18 +47,29 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="ACTIVE", index=1, number=1, serialized_options=None, type=None + name="ACTIVE", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="INACTIVE", index=2, number=2, serialized_options=None, type=None + name="INACTIVE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=493, - serialized_end=576, + serialized_start=509, + serialized_end=592, ) _sym_db.RegisterEnumDescriptor(_DISCOVERYOCCURRENCE_CONTINUOUSANALYSIS) @@ -70,6 +78,7 @@ full_name="grafeas.v1.DiscoveryOccurrence.AnalysisStatus", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="ANALYSIS_STATUS_UNSPECIFIED", @@ -77,12 +86,23 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="PENDING", index=1, number=1, serialized_options=None, type=None + name="PENDING", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="SCANNING", index=2, number=2, serialized_options=None, type=None + name="SCANNING", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="FINISHED_SUCCESS", @@ -90,6 +110,7 @@ number=3, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="FINISHED_FAILED", @@ -97,6 +118,7 @@ number=4, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( name="FINISHED_UNSUPPORTED", @@ -104,12 +126,13 @@ number=5, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=579, - serialized_end=724, + serialized_start=595, + serialized_end=740, ) _sym_db.RegisterEnumDescriptor(_DISCOVERYOCCURRENCE_ANALYSISSTATUS) @@ -120,6 +143,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="analysis_kind", @@ -138,6 +162,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -148,8 +173,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=137, - serialized_end=197, + serialized_start=153, + serialized_end=213, ) @@ -159,6 +184,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="continuous_analysis", @@ -177,6 +203,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="analysis_status", @@ -195,6 +222,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="analysis_status_error", @@ -213,6 +241,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="cpe", @@ -223,7 +252,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, @@ -231,6 +260,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="last_scan_time", @@ -249,6 +279,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -262,13 +293,13 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=200, - serialized_end=724, + serialized_start=216, + serialized_end=740, ) _DISCOVERYNOTE.fields_by_name[ "analysis_kind" -].enum_type = grafeas__v1_dot_proto_dot_common__pb2._NOTEKIND +].enum_type = grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2._NOTEKIND _DISCOVERYOCCURRENCE.fields_by_name[ "continuous_analysis" ].enum_type = _DISCOVERYOCCURRENCE_CONTINUOUSANALYSIS @@ -290,30 +321,32 @@ DiscoveryNote = _reflection.GeneratedProtocolMessageType( "DiscoveryNote", (_message.Message,), - dict( - DESCRIPTOR=_DISCOVERYNOTE, - __module__="grafeas_v1.proto.discovery_pb2", - __doc__="""A note that indicates a type of analysis a provider would perform. - This note exists in a provider's project. A ``Discovery`` occurrence - is created in a consumer's project at the start of analysis. + { + "DESCRIPTOR": _DISCOVERYNOTE, + "__module__": "grafeas.grafeas_v1.proto.discovery_pb2", + "__doc__": """A note that indicates a type of analysis a provider would perform. + This note exists in a provider’s project. A ``Discovery`` occurrence + is created in a consumer’s project at the start of analysis. + Attributes: analysis_kind: Required. Immutable. The kind of analysis that is handled by this discovery. """, # @@protoc_insertion_point(class_scope:grafeas.v1.DiscoveryNote) - ), + }, ) _sym_db.RegisterMessage(DiscoveryNote) DiscoveryOccurrence = _reflection.GeneratedProtocolMessageType( "DiscoveryOccurrence", (_message.Message,), - dict( - DESCRIPTOR=_DISCOVERYOCCURRENCE, - __module__="grafeas_v1.proto.discovery_pb2", - __doc__="""Provides information about the analysis status of a discovered + { + "DESCRIPTOR": _DISCOVERYOCCURRENCE, + "__module__": "grafeas.grafeas_v1.proto.discovery_pb2", + "__doc__": """Provides information about the analysis status of a discovered resource. + Attributes: continuous_analysis: Whether the resource is continuously analyzed. @@ -329,7 +362,7 @@ The last time this resource was scanned. """, # @@protoc_insertion_point(class_scope:grafeas.v1.DiscoveryOccurrence) - ), + }, ) _sym_db.RegisterMessage(DiscoveryOccurrence) diff --git a/packages/grafeas/grafeas/grafeas_v1/proto/grafeas_pb2.py b/packages/grafeas/grafeas/grafeas_v1/proto/grafeas_pb2.py index daa0f52c8f3d..5a855a11c3ae 100644 --- a/packages/grafeas/grafeas/grafeas_v1/proto/grafeas_pb2.py +++ b/packages/grafeas/grafeas/grafeas_v1/proto/grafeas_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: grafeas_v1/proto/grafeas.proto +# source: grafeas/grafeas_v1/proto/grafeas.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 @@ -23,38 +20,41 @@ from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from grafeas.grafeas_v1.proto import ( - attestation_pb2 as grafeas__v1_dot_proto_dot_attestation__pb2, + attestation_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_attestation__pb2, +) +from grafeas.grafeas_v1.proto import ( + build_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_build__pb2, +) +from grafeas.grafeas_v1.proto import ( + common_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2, +) +from grafeas.grafeas_v1.proto import ( + deployment_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_deployment__pb2, ) -from grafeas.grafeas_v1.proto import build_pb2 as grafeas__v1_dot_proto_dot_build__pb2 -from grafeas.grafeas_v1.proto import common_pb2 as grafeas__v1_dot_proto_dot_common__pb2 from grafeas.grafeas_v1.proto import ( - deployment_pb2 as grafeas__v1_dot_proto_dot_deployment__pb2, + discovery_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_discovery__pb2, ) from grafeas.grafeas_v1.proto import ( - discovery_pb2 as grafeas__v1_dot_proto_dot_discovery__pb2, + image_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_image__pb2, ) -from grafeas.grafeas_v1.proto import image_pb2 as grafeas__v1_dot_proto_dot_image__pb2 from grafeas.grafeas_v1.proto import ( - package_pb2 as grafeas__v1_dot_proto_dot_package__pb2, + package_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2, ) from grafeas.grafeas_v1.proto import ( - upgrade_pb2 as grafeas__v1_dot_proto_dot_upgrade__pb2, + upgrade_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_upgrade__pb2, ) from grafeas.grafeas_v1.proto import ( - vulnerability_pb2 as grafeas__v1_dot_proto_dot_vulnerability__pb2, + vulnerability_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_vulnerability__pb2, ) DESCRIPTOR = _descriptor.FileDescriptor( - name="grafeas_v1/proto/grafeas.proto", + name="grafeas/grafeas_v1/proto/grafeas.proto", package="grafeas.v1", syntax="proto3", - serialized_options=_b( - "\n\rio.grafeas.v1P\001Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\242\002\003GRA\352A(\n\022grafeas.io/Project\022\022projects/{project}" - ), - serialized_pb=_b( - '\n\x1egrafeas_v1/proto/grafeas.proto\x12\ngrafeas.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a"grafeas_v1/proto/attestation.proto\x1a\x1cgrafeas_v1/proto/build.proto\x1a\x1dgrafeas_v1/proto/common.proto\x1a!grafeas_v1/proto/deployment.proto\x1a grafeas_v1/proto/discovery.proto\x1a\x1cgrafeas_v1/proto/image.proto\x1a\x1egrafeas_v1/proto/package.proto\x1a\x1egrafeas_v1/proto/upgrade.proto\x1a$grafeas_v1/proto/vulnerability.proto"\xd8\x05\n\nOccurrence\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0cresource_uri\x18\x02 \x01(\t\x12\x11\n\tnote_name\x18\x03 \x01(\t\x12"\n\x04kind\x18\x04 \x01(\x0e\x32\x14.grafeas.v1.NoteKind\x12\x13\n\x0bremediation\x18\x05 \x01(\t\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\rvulnerability\x18\x08 \x01(\x0b\x32#.grafeas.v1.VulnerabilityOccurrenceH\x00\x12,\n\x05\x62uild\x18\t \x01(\x0b\x32\x1b.grafeas.v1.BuildOccurrenceH\x00\x12,\n\x05image\x18\n \x01(\x0b\x32\x1b.grafeas.v1.ImageOccurrenceH\x00\x12\x30\n\x07package\x18\x0b \x01(\x0b\x32\x1d.grafeas.v1.PackageOccurrenceH\x00\x12\x36\n\ndeployment\x18\x0c \x01(\x0b\x32 .grafeas.v1.DeploymentOccurrenceH\x00\x12\x34\n\tdiscovery\x18\r \x01(\x0b\x32\x1f.grafeas.v1.DiscoveryOccurrenceH\x00\x12\x38\n\x0b\x61ttestation\x18\x0e \x01(\x0b\x32!.grafeas.v1.AttestationOccurrenceH\x00\x12\x30\n\x07upgrade\x18\x0f \x01(\x0b\x32\x1d.grafeas.v1.UpgradeOccurrenceH\x00:G\xea\x41\x44\n\x15grafeas.io/Occurrence\x12+projects/{project}/occurrences/{occurrence}B\t\n\x07\x64\x65tails"\x82\x06\n\x04Note\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x11short_description\x18\x02 \x01(\t\x12\x18\n\x10long_description\x18\x03 \x01(\t\x12"\n\x04kind\x18\x04 \x01(\x0e\x32\x14.grafeas.v1.NoteKind\x12+\n\x0brelated_url\x18\x05 \x03(\x0b\x32\x16.grafeas.v1.RelatedUrl\x12\x33\n\x0f\x65xpiration_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12related_note_names\x18\t \x03(\t\x12\x36\n\rvulnerability\x18\n \x01(\x0b\x32\x1d.grafeas.v1.VulnerabilityNoteH\x00\x12&\n\x05\x62uild\x18\x0b \x01(\x0b\x32\x15.grafeas.v1.BuildNoteH\x00\x12&\n\x05image\x18\x0c \x01(\x0b\x32\x15.grafeas.v1.ImageNoteH\x00\x12*\n\x07package\x18\r \x01(\x0b\x32\x17.grafeas.v1.PackageNoteH\x00\x12\x30\n\ndeployment\x18\x0e \x01(\x0b\x32\x1a.grafeas.v1.DeploymentNoteH\x00\x12.\n\tdiscovery\x18\x0f \x01(\x0b\x32\x19.grafeas.v1.DiscoveryNoteH\x00\x12\x32\n\x0b\x61ttestation\x18\x10 \x01(\x0b\x32\x1b.grafeas.v1.AttestationNoteH\x00\x12*\n\x07upgrade\x18\x11 \x01(\x0b\x32\x17.grafeas.v1.UpgradeNoteH\x00:5\xea\x41\x32\n\x0fgrafeas.io/Note\x12\x1fprojects/{project}/notes/{note}B\x06\n\x04type"C\n\x14GetOccurrenceRequest\x12+\n\x04name\x18\x01 \x01(\tB\x1d\xe0\x41\x02\xfa\x41\x17\n\x15grafeas.io/Occurrence"{\n\x16ListOccurrencesRequest\x12*\n\x06parent\x18\x01 \x01(\tB\x1a\xe0\x41\x02\xfa\x41\x14\n\x12grafeas.io/Project\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"_\n\x17ListOccurrencesResponse\x12+\n\x0boccurrences\x18\x01 \x03(\x0b\x32\x16.grafeas.v1.Occurrence\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"F\n\x17\x44\x65leteOccurrenceRequest\x12+\n\x04name\x18\x01 \x01(\tB\x1d\xe0\x41\x02\xfa\x41\x17\n\x15grafeas.io/Occurrence"v\n\x17\x43reateOccurrenceRequest\x12*\n\x06parent\x18\x01 \x01(\tB\x1a\xe0\x41\x02\xfa\x41\x14\n\x12grafeas.io/Project\x12/\n\noccurrence\x18\x02 \x01(\x0b\x32\x16.grafeas.v1.OccurrenceB\x03\xe0\x41\x02"\xa8\x01\n\x17UpdateOccurrenceRequest\x12+\n\x04name\x18\x01 \x01(\tB\x1d\xe0\x41\x02\xfa\x41\x17\n\x15grafeas.io/Occurrence\x12/\n\noccurrence\x18\x02 \x01(\x0b\x32\x16.grafeas.v1.OccurrenceB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"7\n\x0eGetNoteRequest\x12%\n\x04name\x18\x01 \x01(\tB\x17\xe0\x41\x02\xfa\x41\x11\n\x0fgrafeas.io/Note"G\n\x18GetOccurrenceNoteRequest\x12+\n\x04name\x18\x01 \x01(\tB\x1d\xe0\x41\x02\xfa\x41\x17\n\x15grafeas.io/Occurrence"u\n\x10ListNotesRequest\x12*\n\x06parent\x18\x01 \x01(\tB\x1a\xe0\x41\x02\xfa\x41\x14\n\x12grafeas.io/Project\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"M\n\x11ListNotesResponse\x12\x1f\n\x05notes\x18\x01 \x03(\x0b\x32\x10.grafeas.v1.Note\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t":\n\x11\x44\x65leteNoteRequest\x12%\n\x04name\x18\x01 \x01(\tB\x17\xe0\x41\x02\xfa\x41\x11\n\x0fgrafeas.io/Note"z\n\x11\x43reateNoteRequest\x12*\n\x06parent\x18\x01 \x01(\tB\x1a\xe0\x41\x02\xfa\x41\x14\n\x12grafeas.io/Project\x12\x14\n\x07note_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12#\n\x04note\x18\x03 \x01(\x0b\x32\x10.grafeas.v1.NoteB\x03\xe0\x41\x02"\x90\x01\n\x11UpdateNoteRequest\x12%\n\x04name\x18\x01 \x01(\tB\x17\xe0\x41\x02\xfa\x41\x11\n\x0fgrafeas.io/Note\x12#\n\x04note\x18\x02 \x01(\x0b\x32\x10.grafeas.v1.NoteB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"z\n\x1aListNoteOccurrencesRequest\x12%\n\x04name\x18\x01 \x01(\tB\x17\xe0\x41\x02\xfa\x41\x11\n\x0fgrafeas.io/Note\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"c\n\x1bListNoteOccurrencesResponse\x12+\n\x0boccurrences\x18\x01 \x03(\x0b\x32\x16.grafeas.v1.Occurrence\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\xc9\x01\n\x17\x42\x61tchCreateNotesRequest\x12*\n\x06parent\x18\x01 \x01(\tB\x1a\xe0\x41\x02\xfa\x41\x14\n\x12grafeas.io/Project\x12\x42\n\x05notes\x18\x02 \x03(\x0b\x32..grafeas.v1.BatchCreateNotesRequest.NotesEntryB\x03\xe0\x41\x02\x1a>\n\nNotesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1f\n\x05value\x18\x02 \x01(\x0b\x32\x10.grafeas.v1.Note:\x02\x38\x01";\n\x18\x42\x61tchCreateNotesResponse\x12\x1f\n\x05notes\x18\x01 \x03(\x0b\x32\x10.grafeas.v1.Note"}\n\x1d\x42\x61tchCreateOccurrencesRequest\x12*\n\x06parent\x18\x01 \x01(\tB\x1a\xe0\x41\x02\xfa\x41\x14\n\x12grafeas.io/Project\x12\x30\n\x0boccurrences\x18\x02 \x03(\x0b\x32\x16.grafeas.v1.OccurrenceB\x03\xe0\x41\x02"M\n\x1e\x42\x61tchCreateOccurrencesResponse\x12+\n\x0boccurrences\x18\x01 \x03(\x0b\x32\x16.grafeas.v1.Occurrence2\x92\x10\n\x07Grafeas\x12}\n\rGetOccurrence\x12 .grafeas.v1.GetOccurrenceRequest\x1a\x16.grafeas.v1.Occurrence"2\x82\xd3\xe4\x93\x02%\x12#/v1/{name=projects/*/occurrences/*}\xda\x41\x04name\x12\x97\x01\n\x0fListOccurrences\x12".grafeas.v1.ListOccurrencesRequest\x1a#.grafeas.v1.ListOccurrencesResponse";\x82\xd3\xe4\x93\x02%\x12#/v1/{parent=projects/*}/occurrences\xda\x41\rparent,filter\x12\x83\x01\n\x10\x44\x65leteOccurrence\x12#.grafeas.v1.DeleteOccurrenceRequest\x1a\x16.google.protobuf.Empty"2\x82\xd3\xe4\x93\x02%*#/v1/{name=projects/*/occurrences/*}\xda\x41\x04name\x12\x9c\x01\n\x10\x43reateOccurrence\x12#.grafeas.v1.CreateOccurrenceRequest\x1a\x16.grafeas.v1.Occurrence"K\x82\xd3\xe4\x93\x02\x31"#/v1/{parent=projects/*}/occurrences:\noccurrence\xda\x41\x11parent,occurrence\x12\xc0\x01\n\x16\x42\x61tchCreateOccurrences\x12).grafeas.v1.BatchCreateOccurrencesRequest\x1a*.grafeas.v1.BatchCreateOccurrencesResponse"O\x82\xd3\xe4\x93\x02\x34"//v1/{parent=projects/*}/occurrences:batchCreate:\x01*\xda\x41\x12parent,occurrences\x12\xa6\x01\n\x10UpdateOccurrence\x12#.grafeas.v1.UpdateOccurrenceRequest\x1a\x16.grafeas.v1.Occurrence"U\x82\xd3\xe4\x93\x02\x31\x32#/v1/{name=projects/*/occurrences/*}:\noccurrence\xda\x41\x1bname,occurrence,update_mask\x12\x85\x01\n\x11GetOccurrenceNote\x12$.grafeas.v1.GetOccurrenceNoteRequest\x1a\x10.grafeas.v1.Note"8\x82\xd3\xe4\x93\x02+\x12)/v1/{name=projects/*/occurrences/*}/notes\xda\x41\x04name\x12\x65\n\x07GetNote\x12\x1a.grafeas.v1.GetNoteRequest\x1a\x10.grafeas.v1.Note",\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=projects/*/notes/*}\xda\x41\x04name\x12\x7f\n\tListNotes\x12\x1c.grafeas.v1.ListNotesRequest\x1a\x1d.grafeas.v1.ListNotesResponse"5\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=projects/*}/notes\xda\x41\rparent,filter\x12q\n\nDeleteNote\x12\x1d.grafeas.v1.DeleteNoteRequest\x1a\x16.google.protobuf.Empty",\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=projects/*/notes/*}\xda\x41\x04name\x12\x80\x01\n\nCreateNote\x12\x1d.grafeas.v1.CreateNoteRequest\x1a\x10.grafeas.v1.Note"A\x82\xd3\xe4\x93\x02%"\x1d/v1/{parent=projects/*}/notes:\x04note\xda\x41\x13parent,note_id,note\x12\xa2\x01\n\x10\x42\x61tchCreateNotes\x12#.grafeas.v1.BatchCreateNotesRequest\x1a$.grafeas.v1.BatchCreateNotesResponse"C\x82\xd3\xe4\x93\x02.")/v1/{parent=projects/*}/notes:batchCreate:\x01*\xda\x41\x0cparent,notes\x12\x82\x01\n\nUpdateNote\x12\x1d.grafeas.v1.UpdateNoteRequest\x1a\x10.grafeas.v1.Note"C\x82\xd3\xe4\x93\x02%2\x1d/v1/{name=projects/*/notes/*}:\x04note\xda\x41\x15name,note,update_mask\x12\xa7\x01\n\x13ListNoteOccurrences\x12&.grafeas.v1.ListNoteOccurrencesRequest\x1a\'.grafeas.v1.ListNoteOccurrencesResponse"?\x82\xd3\xe4\x93\x02+\x12)/v1/{name=projects/*/notes/*}/occurrences\xda\x41\x0bname,filter\x1a#\xca\x41 containeranalysis.googleapis.comB|\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRA\xea\x41(\n\x12grafeas.io/Project\x12\x12projects/{project}b\x06proto3' - ), + serialized_options=b"\n\rio.grafeas.v1P\001ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\242\002\003GRA\352A(\n\022grafeas.io/Project\022\022projects/{project}", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n&grafeas/grafeas_v1/proto/grafeas.proto\x12\ngrafeas.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a*grafeas/grafeas_v1/proto/attestation.proto\x1a$grafeas/grafeas_v1/proto/build.proto\x1a%grafeas/grafeas_v1/proto/common.proto\x1a)grafeas/grafeas_v1/proto/deployment.proto\x1a(grafeas/grafeas_v1/proto/discovery.proto\x1a$grafeas/grafeas_v1/proto/image.proto\x1a&grafeas/grafeas_v1/proto/package.proto\x1a&grafeas/grafeas_v1/proto/upgrade.proto\x1a,grafeas/grafeas_v1/proto/vulnerability.proto"\xd8\x05\n\nOccurrence\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0cresource_uri\x18\x02 \x01(\t\x12\x11\n\tnote_name\x18\x03 \x01(\t\x12"\n\x04kind\x18\x04 \x01(\x0e\x32\x14.grafeas.v1.NoteKind\x12\x13\n\x0bremediation\x18\x05 \x01(\t\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\rvulnerability\x18\x08 \x01(\x0b\x32#.grafeas.v1.VulnerabilityOccurrenceH\x00\x12,\n\x05\x62uild\x18\t \x01(\x0b\x32\x1b.grafeas.v1.BuildOccurrenceH\x00\x12,\n\x05image\x18\n \x01(\x0b\x32\x1b.grafeas.v1.ImageOccurrenceH\x00\x12\x30\n\x07package\x18\x0b \x01(\x0b\x32\x1d.grafeas.v1.PackageOccurrenceH\x00\x12\x36\n\ndeployment\x18\x0c \x01(\x0b\x32 .grafeas.v1.DeploymentOccurrenceH\x00\x12\x34\n\tdiscovery\x18\r \x01(\x0b\x32\x1f.grafeas.v1.DiscoveryOccurrenceH\x00\x12\x38\n\x0b\x61ttestation\x18\x0e \x01(\x0b\x32!.grafeas.v1.AttestationOccurrenceH\x00\x12\x30\n\x07upgrade\x18\x0f \x01(\x0b\x32\x1d.grafeas.v1.UpgradeOccurrenceH\x00:G\xea\x41\x44\n\x15grafeas.io/Occurrence\x12+projects/{project}/occurrences/{occurrence}B\t\n\x07\x64\x65tails"\x82\x06\n\x04Note\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x11short_description\x18\x02 \x01(\t\x12\x18\n\x10long_description\x18\x03 \x01(\t\x12"\n\x04kind\x18\x04 \x01(\x0e\x32\x14.grafeas.v1.NoteKind\x12+\n\x0brelated_url\x18\x05 \x03(\x0b\x32\x16.grafeas.v1.RelatedUrl\x12\x33\n\x0f\x65xpiration_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12related_note_names\x18\t \x03(\t\x12\x36\n\rvulnerability\x18\n \x01(\x0b\x32\x1d.grafeas.v1.VulnerabilityNoteH\x00\x12&\n\x05\x62uild\x18\x0b \x01(\x0b\x32\x15.grafeas.v1.BuildNoteH\x00\x12&\n\x05image\x18\x0c \x01(\x0b\x32\x15.grafeas.v1.ImageNoteH\x00\x12*\n\x07package\x18\r \x01(\x0b\x32\x17.grafeas.v1.PackageNoteH\x00\x12\x30\n\ndeployment\x18\x0e \x01(\x0b\x32\x1a.grafeas.v1.DeploymentNoteH\x00\x12.\n\tdiscovery\x18\x0f \x01(\x0b\x32\x19.grafeas.v1.DiscoveryNoteH\x00\x12\x32\n\x0b\x61ttestation\x18\x10 \x01(\x0b\x32\x1b.grafeas.v1.AttestationNoteH\x00\x12*\n\x07upgrade\x18\x11 \x01(\x0b\x32\x17.grafeas.v1.UpgradeNoteH\x00:5\xea\x41\x32\n\x0fgrafeas.io/Note\x12\x1fprojects/{project}/notes/{note}B\x06\n\x04type"C\n\x14GetOccurrenceRequest\x12+\n\x04name\x18\x01 \x01(\tB\x1d\xe0\x41\x02\xfa\x41\x17\n\x15grafeas.io/Occurrence"{\n\x16ListOccurrencesRequest\x12*\n\x06parent\x18\x01 \x01(\tB\x1a\xe0\x41\x02\xfa\x41\x14\n\x12grafeas.io/Project\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"_\n\x17ListOccurrencesResponse\x12+\n\x0boccurrences\x18\x01 \x03(\x0b\x32\x16.grafeas.v1.Occurrence\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"F\n\x17\x44\x65leteOccurrenceRequest\x12+\n\x04name\x18\x01 \x01(\tB\x1d\xe0\x41\x02\xfa\x41\x17\n\x15grafeas.io/Occurrence"v\n\x17\x43reateOccurrenceRequest\x12*\n\x06parent\x18\x01 \x01(\tB\x1a\xe0\x41\x02\xfa\x41\x14\n\x12grafeas.io/Project\x12/\n\noccurrence\x18\x02 \x01(\x0b\x32\x16.grafeas.v1.OccurrenceB\x03\xe0\x41\x02"\xa8\x01\n\x17UpdateOccurrenceRequest\x12+\n\x04name\x18\x01 \x01(\tB\x1d\xe0\x41\x02\xfa\x41\x17\n\x15grafeas.io/Occurrence\x12/\n\noccurrence\x18\x02 \x01(\x0b\x32\x16.grafeas.v1.OccurrenceB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"7\n\x0eGetNoteRequest\x12%\n\x04name\x18\x01 \x01(\tB\x17\xe0\x41\x02\xfa\x41\x11\n\x0fgrafeas.io/Note"G\n\x18GetOccurrenceNoteRequest\x12+\n\x04name\x18\x01 \x01(\tB\x1d\xe0\x41\x02\xfa\x41\x17\n\x15grafeas.io/Occurrence"u\n\x10ListNotesRequest\x12*\n\x06parent\x18\x01 \x01(\tB\x1a\xe0\x41\x02\xfa\x41\x14\n\x12grafeas.io/Project\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"M\n\x11ListNotesResponse\x12\x1f\n\x05notes\x18\x01 \x03(\x0b\x32\x10.grafeas.v1.Note\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t":\n\x11\x44\x65leteNoteRequest\x12%\n\x04name\x18\x01 \x01(\tB\x17\xe0\x41\x02\xfa\x41\x11\n\x0fgrafeas.io/Note"z\n\x11\x43reateNoteRequest\x12*\n\x06parent\x18\x01 \x01(\tB\x1a\xe0\x41\x02\xfa\x41\x14\n\x12grafeas.io/Project\x12\x14\n\x07note_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12#\n\x04note\x18\x03 \x01(\x0b\x32\x10.grafeas.v1.NoteB\x03\xe0\x41\x02"\x90\x01\n\x11UpdateNoteRequest\x12%\n\x04name\x18\x01 \x01(\tB\x17\xe0\x41\x02\xfa\x41\x11\n\x0fgrafeas.io/Note\x12#\n\x04note\x18\x02 \x01(\x0b\x32\x10.grafeas.v1.NoteB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"z\n\x1aListNoteOccurrencesRequest\x12%\n\x04name\x18\x01 \x01(\tB\x17\xe0\x41\x02\xfa\x41\x11\n\x0fgrafeas.io/Note\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"c\n\x1bListNoteOccurrencesResponse\x12+\n\x0boccurrences\x18\x01 \x03(\x0b\x32\x16.grafeas.v1.Occurrence\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\xc9\x01\n\x17\x42\x61tchCreateNotesRequest\x12*\n\x06parent\x18\x01 \x01(\tB\x1a\xe0\x41\x02\xfa\x41\x14\n\x12grafeas.io/Project\x12\x42\n\x05notes\x18\x02 \x03(\x0b\x32..grafeas.v1.BatchCreateNotesRequest.NotesEntryB\x03\xe0\x41\x02\x1a>\n\nNotesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1f\n\x05value\x18\x02 \x01(\x0b\x32\x10.grafeas.v1.Note:\x02\x38\x01";\n\x18\x42\x61tchCreateNotesResponse\x12\x1f\n\x05notes\x18\x01 \x03(\x0b\x32\x10.grafeas.v1.Note"}\n\x1d\x42\x61tchCreateOccurrencesRequest\x12*\n\x06parent\x18\x01 \x01(\tB\x1a\xe0\x41\x02\xfa\x41\x14\n\x12grafeas.io/Project\x12\x30\n\x0boccurrences\x18\x02 \x03(\x0b\x32\x16.grafeas.v1.OccurrenceB\x03\xe0\x41\x02"M\n\x1e\x42\x61tchCreateOccurrencesResponse\x12+\n\x0boccurrences\x18\x01 \x03(\x0b\x32\x16.grafeas.v1.Occurrence2\x92\x10\n\x07Grafeas\x12}\n\rGetOccurrence\x12 .grafeas.v1.GetOccurrenceRequest\x1a\x16.grafeas.v1.Occurrence"2\x82\xd3\xe4\x93\x02%\x12#/v1/{name=projects/*/occurrences/*}\xda\x41\x04name\x12\x97\x01\n\x0fListOccurrences\x12".grafeas.v1.ListOccurrencesRequest\x1a#.grafeas.v1.ListOccurrencesResponse";\x82\xd3\xe4\x93\x02%\x12#/v1/{parent=projects/*}/occurrences\xda\x41\rparent,filter\x12\x83\x01\n\x10\x44\x65leteOccurrence\x12#.grafeas.v1.DeleteOccurrenceRequest\x1a\x16.google.protobuf.Empty"2\x82\xd3\xe4\x93\x02%*#/v1/{name=projects/*/occurrences/*}\xda\x41\x04name\x12\x9c\x01\n\x10\x43reateOccurrence\x12#.grafeas.v1.CreateOccurrenceRequest\x1a\x16.grafeas.v1.Occurrence"K\x82\xd3\xe4\x93\x02\x31"#/v1/{parent=projects/*}/occurrences:\noccurrence\xda\x41\x11parent,occurrence\x12\xc0\x01\n\x16\x42\x61tchCreateOccurrences\x12).grafeas.v1.BatchCreateOccurrencesRequest\x1a*.grafeas.v1.BatchCreateOccurrencesResponse"O\x82\xd3\xe4\x93\x02\x34"//v1/{parent=projects/*}/occurrences:batchCreate:\x01*\xda\x41\x12parent,occurrences\x12\xa6\x01\n\x10UpdateOccurrence\x12#.grafeas.v1.UpdateOccurrenceRequest\x1a\x16.grafeas.v1.Occurrence"U\x82\xd3\xe4\x93\x02\x31\x32#/v1/{name=projects/*/occurrences/*}:\noccurrence\xda\x41\x1bname,occurrence,update_mask\x12\x85\x01\n\x11GetOccurrenceNote\x12$.grafeas.v1.GetOccurrenceNoteRequest\x1a\x10.grafeas.v1.Note"8\x82\xd3\xe4\x93\x02+\x12)/v1/{name=projects/*/occurrences/*}/notes\xda\x41\x04name\x12\x65\n\x07GetNote\x12\x1a.grafeas.v1.GetNoteRequest\x1a\x10.grafeas.v1.Note",\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=projects/*/notes/*}\xda\x41\x04name\x12\x7f\n\tListNotes\x12\x1c.grafeas.v1.ListNotesRequest\x1a\x1d.grafeas.v1.ListNotesResponse"5\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=projects/*}/notes\xda\x41\rparent,filter\x12q\n\nDeleteNote\x12\x1d.grafeas.v1.DeleteNoteRequest\x1a\x16.google.protobuf.Empty",\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=projects/*/notes/*}\xda\x41\x04name\x12\x80\x01\n\nCreateNote\x12\x1d.grafeas.v1.CreateNoteRequest\x1a\x10.grafeas.v1.Note"A\x82\xd3\xe4\x93\x02%"\x1d/v1/{parent=projects/*}/notes:\x04note\xda\x41\x13parent,note_id,note\x12\xa2\x01\n\x10\x42\x61tchCreateNotes\x12#.grafeas.v1.BatchCreateNotesRequest\x1a$.grafeas.v1.BatchCreateNotesResponse"C\x82\xd3\xe4\x93\x02.")/v1/{parent=projects/*}/notes:batchCreate:\x01*\xda\x41\x0cparent,notes\x12\x82\x01\n\nUpdateNote\x12\x1d.grafeas.v1.UpdateNoteRequest\x1a\x10.grafeas.v1.Note"C\x82\xd3\xe4\x93\x02%2\x1d/v1/{name=projects/*/notes/*}:\x04note\xda\x41\x15name,note,update_mask\x12\xa7\x01\n\x13ListNoteOccurrences\x12&.grafeas.v1.ListNoteOccurrencesRequest\x1a\'.grafeas.v1.ListNoteOccurrencesResponse"?\x82\xd3\xe4\x93\x02+\x12)/v1/{name=projects/*/notes/*}/occurrences\xda\x41\x0bname,filter\x1a#\xca\x41 containeranalysis.googleapis.comB\x8a\x01\n\rio.grafeas.v1P\x01ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\xa2\x02\x03GRA\xea\x41(\n\x12grafeas.io/Project\x12\x12projects/{project}b\x06proto3', dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, @@ -63,15 +63,15 @@ google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_attestation__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_build__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_common__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_deployment__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_discovery__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_image__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_package__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_upgrade__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_vulnerability__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_attestation__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_build__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_deployment__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_discovery__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_image__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_upgrade__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_vulnerability__pb2.DESCRIPTOR, ], ) @@ -82,6 +82,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -92,7 +93,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -100,6 +101,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="resource_uri", @@ -110,7 +112,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, @@ -118,6 +120,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="note_name", @@ -128,7 +131,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, @@ -136,6 +139,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="kind", @@ -154,6 +158,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="remediation", @@ -164,7 +169,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -172,6 +177,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -190,6 +196,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_time", @@ -208,6 +215,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="vulnerability", @@ -226,6 +234,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="build", @@ -244,6 +253,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image", @@ -262,6 +272,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="package", @@ -280,6 +291,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="deployment", @@ -298,6 +310,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="discovery", @@ -316,6 +329,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="attestation", @@ -334,6 +348,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="upgrade", @@ -352,14 +367,13 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352AD\n\025grafeas.io/Occurrence\022+projects/{project}/occurrences/{occurrence}" - ), + serialized_options=b"\352AD\n\025grafeas.io/Occurrence\022+projects/{project}/occurrences/{occurrence}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -369,11 +383,12 @@ full_name="grafeas.v1.Occurrence.details", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], - serialized_start=556, - serialized_end=1284, + serialized_start=636, + serialized_end=1364, ) @@ -383,6 +398,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -393,7 +409,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, @@ -401,6 +417,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="short_description", @@ -411,7 +428,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, @@ -419,6 +436,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="long_description", @@ -429,7 +447,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, @@ -437,6 +455,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="kind", @@ -455,6 +474,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="related_url", @@ -473,6 +493,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="expiration_time", @@ -491,6 +512,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -509,6 +531,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_time", @@ -527,6 +550,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="related_note_names", @@ -545,6 +569,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="vulnerability", @@ -563,6 +588,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="build", @@ -581,6 +607,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="image", @@ -599,6 +626,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="package", @@ -617,6 +645,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="deployment", @@ -635,6 +664,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="discovery", @@ -653,6 +683,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="attestation", @@ -671,6 +702,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="upgrade", @@ -689,14 +721,13 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], - serialized_options=_b( - "\352A2\n\017grafeas.io/Note\022\037projects/{project}/notes/{note}" - ), + serialized_options=b"\352A2\n\017grafeas.io/Note\022\037projects/{project}/notes/{note}", is_extendable=False, syntax="proto3", extension_ranges=[], @@ -706,11 +737,12 @@ full_name="grafeas.v1.Note.type", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], - serialized_start=1287, - serialized_end=2057, + serialized_start=1367, + serialized_end=2137, ) @@ -720,6 +752,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -730,14 +763,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\027\n\025grafeas.io/Occurrence"), + serialized_options=b"\340A\002\372A\027\n\025grafeas.io/Occurrence", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -748,8 +782,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2059, - serialized_end=2126, + serialized_start=2139, + serialized_end=2206, ) @@ -759,6 +793,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -769,14 +804,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\024\n\022grafeas.io/Project"), + serialized_options=b"\340A\002\372A\024\n\022grafeas.io/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -787,7 +823,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, @@ -795,6 +831,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -813,6 +850,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -823,7 +861,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, @@ -831,6 +869,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -841,8 +880,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2128, - serialized_end=2251, + serialized_start=2208, + serialized_end=2331, ) @@ -852,6 +891,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="occurrences", @@ -870,6 +910,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -880,7 +921,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, @@ -888,6 +929,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -898,8 +940,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2253, - serialized_end=2348, + serialized_start=2333, + serialized_end=2428, ) @@ -909,6 +951,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -919,14 +962,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\027\n\025grafeas.io/Occurrence"), + serialized_options=b"\340A\002\372A\027\n\025grafeas.io/Occurrence", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -937,8 +981,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2350, - serialized_end=2420, + serialized_start=2430, + serialized_end=2500, ) @@ -948,6 +992,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -958,14 +1003,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\024\n\022grafeas.io/Project"), + serialized_options=b"\340A\002\372A\024\n\022grafeas.io/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="occurrence", @@ -982,8 +1028,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=[], @@ -994,8 +1041,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2422, - serialized_end=2540, + serialized_start=2502, + serialized_end=2620, ) @@ -1005,6 +1052,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1015,14 +1063,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\027\n\025grafeas.io/Occurrence"), + serialized_options=b"\340A\002\372A\027\n\025grafeas.io/Occurrence", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="occurrence", @@ -1039,8 +1088,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_mask", @@ -1059,6 +1109,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1069,8 +1120,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2543, - serialized_end=2711, + serialized_start=2623, + serialized_end=2791, ) @@ -1080,6 +1131,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1090,14 +1142,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\021\n\017grafeas.io/Note"), + serialized_options=b"\340A\002\372A\021\n\017grafeas.io/Note", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1108,8 +1161,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2713, - serialized_end=2768, + serialized_start=2793, + serialized_end=2848, ) @@ -1119,6 +1172,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1129,14 +1183,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\027\n\025grafeas.io/Occurrence"), + serialized_options=b"\340A\002\372A\027\n\025grafeas.io/Occurrence", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1147,8 +1202,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2770, - serialized_end=2841, + serialized_start=2850, + serialized_end=2921, ) @@ -1158,6 +1213,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1168,14 +1224,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\024\n\022grafeas.io/Project"), + serialized_options=b"\340A\002\372A\024\n\022grafeas.io/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -1186,7 +1243,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, @@ -1194,6 +1251,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -1212,6 +1270,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -1222,7 +1281,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, @@ -1230,6 +1289,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1240,8 +1300,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2843, - serialized_end=2960, + serialized_start=2923, + serialized_end=3040, ) @@ -1251,6 +1311,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="notes", @@ -1269,6 +1330,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -1279,7 +1341,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, @@ -1287,6 +1349,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1297,8 +1360,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2962, - serialized_end=3039, + serialized_start=3042, + serialized_end=3119, ) @@ -1308,6 +1371,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1318,14 +1382,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\021\n\017grafeas.io/Note"), + serialized_options=b"\340A\002\372A\021\n\017grafeas.io/Note", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1336,8 +1401,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3041, - serialized_end=3099, + serialized_start=3121, + serialized_end=3179, ) @@ -1347,6 +1412,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1357,14 +1423,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\024\n\022grafeas.io/Project"), + serialized_options=b"\340A\002\372A\024\n\022grafeas.io/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="note_id", @@ -1375,14 +1442,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="note", @@ -1399,8 +1467,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1411,8 +1480,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3101, - serialized_end=3223, + serialized_start=3181, + serialized_end=3303, ) @@ -1422,6 +1491,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1432,14 +1502,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\021\n\017grafeas.io/Note"), + serialized_options=b"\340A\002\372A\021\n\017grafeas.io/Note", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="note", @@ -1456,8 +1527,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=b"\340A\002", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="update_mask", @@ -1476,6 +1548,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1486,8 +1559,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3226, - serialized_end=3370, + serialized_start=3306, + serialized_end=3450, ) @@ -1497,6 +1570,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -1507,14 +1581,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\021\n\017grafeas.io/Note"), + serialized_options=b"\340A\002\372A\021\n\017grafeas.io/Note", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="filter", @@ -1525,7 +1600,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1533,6 +1608,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_size", @@ -1551,6 +1627,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="page_token", @@ -1561,7 +1638,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, @@ -1569,6 +1646,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1579,8 +1657,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3372, - serialized_end=3494, + serialized_start=3452, + serialized_end=3574, ) @@ -1590,6 +1668,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="occurrences", @@ -1608,6 +1687,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="next_page_token", @@ -1618,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, @@ -1626,6 +1706,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1636,8 +1717,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3496, - serialized_end=3595, + serialized_start=3576, + serialized_end=3675, ) @@ -1647,6 +1728,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -1657,7 +1739,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1665,6 +1747,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -1683,18 +1766,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=3737, - serialized_end=3799, + serialized_start=3817, + serialized_end=3879, ) _BATCHCREATENOTESREQUEST = _descriptor.Descriptor( @@ -1703,6 +1787,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1713,14 +1798,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\024\n\022grafeas.io/Project"), + serialized_options=b"\340A\002\372A\024\n\022grafeas.io/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="notes", @@ -1737,8 +1823,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=[], @@ -1749,8 +1836,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3598, - serialized_end=3799, + serialized_start=3678, + serialized_end=3879, ) @@ -1760,6 +1847,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="notes", @@ -1778,6 +1866,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1788,8 +1877,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3801, - serialized_end=3860, + serialized_start=3881, + serialized_end=3940, ) @@ -1799,6 +1888,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="parent", @@ -1809,14 +1899,15 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002\372A\024\n\022grafeas.io/Project"), + serialized_options=b"\340A\002\372A\024\n\022grafeas.io/Project", file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="occurrences", @@ -1833,8 +1924,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=[], @@ -1845,8 +1937,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3862, - serialized_end=3987, + serialized_start=3942, + serialized_end=4067, ) @@ -1856,6 +1948,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="occurrences", @@ -1874,6 +1967,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1884,13 +1978,13 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3989, - serialized_end=4066, + serialized_start=4069, + serialized_end=4146, ) _OCCURRENCE.fields_by_name[ "kind" -].enum_type = grafeas__v1_dot_proto_dot_common__pb2._NOTEKIND +].enum_type = grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2._NOTEKIND _OCCURRENCE.fields_by_name[ "create_time" ].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP @@ -1899,28 +1993,36 @@ ].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _OCCURRENCE.fields_by_name[ "vulnerability" -].message_type = grafeas__v1_dot_proto_dot_vulnerability__pb2._VULNERABILITYOCCURRENCE +].message_type = ( + grafeas_dot_grafeas__v1_dot_proto_dot_vulnerability__pb2._VULNERABILITYOCCURRENCE +) _OCCURRENCE.fields_by_name[ "build" -].message_type = grafeas__v1_dot_proto_dot_build__pb2._BUILDOCCURRENCE +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_build__pb2._BUILDOCCURRENCE _OCCURRENCE.fields_by_name[ "image" -].message_type = grafeas__v1_dot_proto_dot_image__pb2._IMAGEOCCURRENCE +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_image__pb2._IMAGEOCCURRENCE _OCCURRENCE.fields_by_name[ "package" -].message_type = grafeas__v1_dot_proto_dot_package__pb2._PACKAGEOCCURRENCE +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2._PACKAGEOCCURRENCE _OCCURRENCE.fields_by_name[ "deployment" -].message_type = grafeas__v1_dot_proto_dot_deployment__pb2._DEPLOYMENTOCCURRENCE +].message_type = ( + grafeas_dot_grafeas__v1_dot_proto_dot_deployment__pb2._DEPLOYMENTOCCURRENCE +) _OCCURRENCE.fields_by_name[ "discovery" -].message_type = grafeas__v1_dot_proto_dot_discovery__pb2._DISCOVERYOCCURRENCE +].message_type = ( + grafeas_dot_grafeas__v1_dot_proto_dot_discovery__pb2._DISCOVERYOCCURRENCE +) _OCCURRENCE.fields_by_name[ "attestation" -].message_type = grafeas__v1_dot_proto_dot_attestation__pb2._ATTESTATIONOCCURRENCE +].message_type = ( + grafeas_dot_grafeas__v1_dot_proto_dot_attestation__pb2._ATTESTATIONOCCURRENCE +) _OCCURRENCE.fields_by_name[ "upgrade" -].message_type = grafeas__v1_dot_proto_dot_upgrade__pb2._UPGRADEOCCURRENCE +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_upgrade__pb2._UPGRADEOCCURRENCE _OCCURRENCE.oneofs_by_name["details"].fields.append( _OCCURRENCE.fields_by_name["vulnerability"] ) @@ -1965,10 +2067,12 @@ _OCCURRENCE.fields_by_name["upgrade"].containing_oneof = _OCCURRENCE.oneofs_by_name[ "details" ] -_NOTE.fields_by_name["kind"].enum_type = grafeas__v1_dot_proto_dot_common__pb2._NOTEKIND +_NOTE.fields_by_name[ + "kind" +].enum_type = grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2._NOTEKIND _NOTE.fields_by_name[ "related_url" -].message_type = grafeas__v1_dot_proto_dot_common__pb2._RELATEDURL +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2._RELATEDURL _NOTE.fields_by_name[ "expiration_time" ].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP @@ -1980,28 +2084,30 @@ ].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _NOTE.fields_by_name[ "vulnerability" -].message_type = grafeas__v1_dot_proto_dot_vulnerability__pb2._VULNERABILITYNOTE +].message_type = ( + grafeas_dot_grafeas__v1_dot_proto_dot_vulnerability__pb2._VULNERABILITYNOTE +) _NOTE.fields_by_name[ "build" -].message_type = grafeas__v1_dot_proto_dot_build__pb2._BUILDNOTE +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_build__pb2._BUILDNOTE _NOTE.fields_by_name[ "image" -].message_type = grafeas__v1_dot_proto_dot_image__pb2._IMAGENOTE +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_image__pb2._IMAGENOTE _NOTE.fields_by_name[ "package" -].message_type = grafeas__v1_dot_proto_dot_package__pb2._PACKAGENOTE +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2._PACKAGENOTE _NOTE.fields_by_name[ "deployment" -].message_type = grafeas__v1_dot_proto_dot_deployment__pb2._DEPLOYMENTNOTE +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_deployment__pb2._DEPLOYMENTNOTE _NOTE.fields_by_name[ "discovery" -].message_type = grafeas__v1_dot_proto_dot_discovery__pb2._DISCOVERYNOTE +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_discovery__pb2._DISCOVERYNOTE _NOTE.fields_by_name[ "attestation" -].message_type = grafeas__v1_dot_proto_dot_attestation__pb2._ATTESTATIONNOTE +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_attestation__pb2._ATTESTATIONNOTE _NOTE.fields_by_name[ "upgrade" -].message_type = grafeas__v1_dot_proto_dot_upgrade__pb2._UPGRADENOTE +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_upgrade__pb2._UPGRADENOTE _NOTE.oneofs_by_name["type"].fields.append(_NOTE.fields_by_name["vulnerability"]) _NOTE.fields_by_name["vulnerability"].containing_oneof = _NOTE.oneofs_by_name["type"] _NOTE.oneofs_by_name["type"].fields.append(_NOTE.fields_by_name["build"]) @@ -2073,10 +2179,11 @@ Occurrence = _reflection.GeneratedProtocolMessageType( "Occurrence", (_message.Message,), - dict( - DESCRIPTOR=_OCCURRENCE, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""An instance of an analysis type that has been found on a resource. + { + "DESCRIPTOR": _OCCURRENCE, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """An instance of an analysis type that has been found on a resource. + Attributes: name: Output only. The name of the occurrence in the form of @@ -2124,17 +2231,18 @@ Describes an available package upgrade on the linked resource. """, # @@protoc_insertion_point(class_scope:grafeas.v1.Occurrence) - ), + }, ) _sym_db.RegisterMessage(Occurrence) Note = _reflection.GeneratedProtocolMessageType( "Note", (_message.Message,), - dict( - DESCRIPTOR=_NOTE, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""A type of analysis that can be done for a resource. + { + "DESCRIPTOR": _NOTE, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """A type of analysis that can be done for a resource. + Attributes: name: Output only. The name of the note in the form of @@ -2181,34 +2289,36 @@ A note describing available package upgrades. """, # @@protoc_insertion_point(class_scope:grafeas.v1.Note) - ), + }, ) _sym_db.RegisterMessage(Note) GetOccurrenceRequest = _reflection.GeneratedProtocolMessageType( "GetOccurrenceRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETOCCURRENCEREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to get an occurrence. + { + "DESCRIPTOR": _GETOCCURRENCEREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to get an occurrence. + Attributes: name: The name of the occurrence in the form of ``projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]``. """, # @@protoc_insertion_point(class_scope:grafeas.v1.GetOccurrenceRequest) - ), + }, ) _sym_db.RegisterMessage(GetOccurrenceRequest) ListOccurrencesRequest = _reflection.GeneratedProtocolMessageType( "ListOccurrencesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTOCCURRENCESREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to list occurrences. + { + "DESCRIPTOR": _LISTOCCURRENCESREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to list occurrences. + Attributes: parent: The name of the project to list occurrences for in the form of @@ -2223,17 +2333,18 @@ Token to provide to skip to a particular spot in the list. """, # @@protoc_insertion_point(class_scope:grafeas.v1.ListOccurrencesRequest) - ), + }, ) _sym_db.RegisterMessage(ListOccurrencesRequest) ListOccurrencesResponse = _reflection.GeneratedProtocolMessageType( "ListOccurrencesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTOCCURRENCESRESPONSE, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Response for listing occurrences. + { + "DESCRIPTOR": _LISTOCCURRENCESRESPONSE, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Response for listing occurrences. + Attributes: occurrences: The occurrences requested. @@ -2243,34 +2354,36 @@ value means no more results. """, # @@protoc_insertion_point(class_scope:grafeas.v1.ListOccurrencesResponse) - ), + }, ) _sym_db.RegisterMessage(ListOccurrencesResponse) DeleteOccurrenceRequest = _reflection.GeneratedProtocolMessageType( "DeleteOccurrenceRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETEOCCURRENCEREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to delete an occurrence. + { + "DESCRIPTOR": _DELETEOCCURRENCEREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to delete an occurrence. + Attributes: name: The name of the occurrence in the form of ``projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]``. """, # @@protoc_insertion_point(class_scope:grafeas.v1.DeleteOccurrenceRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteOccurrenceRequest) CreateOccurrenceRequest = _reflection.GeneratedProtocolMessageType( "CreateOccurrenceRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATEOCCURRENCEREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to create a new occurrence. + { + "DESCRIPTOR": _CREATEOCCURRENCEREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to create a new occurrence. + Attributes: parent: The name of the project in the form of @@ -2280,17 +2393,18 @@ The occurrence to create. """, # @@protoc_insertion_point(class_scope:grafeas.v1.CreateOccurrenceRequest) - ), + }, ) _sym_db.RegisterMessage(CreateOccurrenceRequest) UpdateOccurrenceRequest = _reflection.GeneratedProtocolMessageType( "UpdateOccurrenceRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATEOCCURRENCEREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to update an occurrence. + { + "DESCRIPTOR": _UPDATEOCCURRENCEREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to update an occurrence. + Attributes: name: The name of the occurrence in the form of @@ -2301,51 +2415,54 @@ The fields to update. """, # @@protoc_insertion_point(class_scope:grafeas.v1.UpdateOccurrenceRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateOccurrenceRequest) GetNoteRequest = _reflection.GeneratedProtocolMessageType( "GetNoteRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETNOTEREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to get a note. + { + "DESCRIPTOR": _GETNOTEREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to get a note. + Attributes: name: The name of the note in the form of ``projects/[PROVIDER_ID]/notes/[NOTE_ID]``. """, # @@protoc_insertion_point(class_scope:grafeas.v1.GetNoteRequest) - ), + }, ) _sym_db.RegisterMessage(GetNoteRequest) GetOccurrenceNoteRequest = _reflection.GeneratedProtocolMessageType( "GetOccurrenceNoteRequest", (_message.Message,), - dict( - DESCRIPTOR=_GETOCCURRENCENOTEREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to get the note to which the specified occurrence is attached. + { + "DESCRIPTOR": _GETOCCURRENCENOTEREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to get the note to which the specified occurrence is attached. + Attributes: name: The name of the occurrence in the form of ``projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]``. """, # @@protoc_insertion_point(class_scope:grafeas.v1.GetOccurrenceNoteRequest) - ), + }, ) _sym_db.RegisterMessage(GetOccurrenceNoteRequest) ListNotesRequest = _reflection.GeneratedProtocolMessageType( "ListNotesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTNOTESREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to list notes. + { + "DESCRIPTOR": _LISTNOTESREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to list notes. + Attributes: parent: The name of the project to list notes for in the form of @@ -2360,17 +2477,18 @@ Token to provide to skip to a particular spot in the list. """, # @@protoc_insertion_point(class_scope:grafeas.v1.ListNotesRequest) - ), + }, ) _sym_db.RegisterMessage(ListNotesRequest) ListNotesResponse = _reflection.GeneratedProtocolMessageType( "ListNotesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTNOTESRESPONSE, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Response for listing notes. + { + "DESCRIPTOR": _LISTNOTESRESPONSE, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Response for listing notes. + Attributes: notes: The notes requested. @@ -2380,34 +2498,36 @@ value means no more results. """, # @@protoc_insertion_point(class_scope:grafeas.v1.ListNotesResponse) - ), + }, ) _sym_db.RegisterMessage(ListNotesResponse) DeleteNoteRequest = _reflection.GeneratedProtocolMessageType( "DeleteNoteRequest", (_message.Message,), - dict( - DESCRIPTOR=_DELETENOTEREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to delete a note. + { + "DESCRIPTOR": _DELETENOTEREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to delete a note. + Attributes: name: The name of the note in the form of ``projects/[PROVIDER_ID]/notes/[NOTE_ID]``. """, # @@protoc_insertion_point(class_scope:grafeas.v1.DeleteNoteRequest) - ), + }, ) _sym_db.RegisterMessage(DeleteNoteRequest) CreateNoteRequest = _reflection.GeneratedProtocolMessageType( "CreateNoteRequest", (_message.Message,), - dict( - DESCRIPTOR=_CREATENOTEREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to create a new note. + { + "DESCRIPTOR": _CREATENOTEREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to create a new note. + Attributes: parent: The name of the project in the form of @@ -2419,17 +2539,18 @@ The note to create. """, # @@protoc_insertion_point(class_scope:grafeas.v1.CreateNoteRequest) - ), + }, ) _sym_db.RegisterMessage(CreateNoteRequest) UpdateNoteRequest = _reflection.GeneratedProtocolMessageType( "UpdateNoteRequest", (_message.Message,), - dict( - DESCRIPTOR=_UPDATENOTEREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to update a note. + { + "DESCRIPTOR": _UPDATENOTEREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to update a note. + Attributes: name: The name of the note in the form of @@ -2440,17 +2561,18 @@ The fields to update. """, # @@protoc_insertion_point(class_scope:grafeas.v1.UpdateNoteRequest) - ), + }, ) _sym_db.RegisterMessage(UpdateNoteRequest) ListNoteOccurrencesRequest = _reflection.GeneratedProtocolMessageType( "ListNoteOccurrencesRequest", (_message.Message,), - dict( - DESCRIPTOR=_LISTNOTEOCCURRENCESREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to list occurrences for a note. + { + "DESCRIPTOR": _LISTNOTEOCCURRENCESREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to list occurrences for a note. + Attributes: name: The name of the note to list occurrences for in the form of @@ -2463,17 +2585,18 @@ Token to provide to skip to a particular spot in the list. """, # @@protoc_insertion_point(class_scope:grafeas.v1.ListNoteOccurrencesRequest) - ), + }, ) _sym_db.RegisterMessage(ListNoteOccurrencesRequest) ListNoteOccurrencesResponse = _reflection.GeneratedProtocolMessageType( "ListNoteOccurrencesResponse", (_message.Message,), - dict( - DESCRIPTOR=_LISTNOTEOCCURRENCESRESPONSE, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Response for listing occurrences for a note. + { + "DESCRIPTOR": _LISTNOTEOCCURRENCESRESPONSE, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Response for listing occurrences for a note. + Attributes: occurrences: The occurrences attached to the specified note. @@ -2481,26 +2604,27 @@ Token to provide to skip to a particular spot in the list. """, # @@protoc_insertion_point(class_scope:grafeas.v1.ListNoteOccurrencesResponse) - ), + }, ) _sym_db.RegisterMessage(ListNoteOccurrencesResponse) BatchCreateNotesRequest = _reflection.GeneratedProtocolMessageType( "BatchCreateNotesRequest", (_message.Message,), - dict( - NotesEntry=_reflection.GeneratedProtocolMessageType( + { + "NotesEntry": _reflection.GeneratedProtocolMessageType( "NotesEntry", (_message.Message,), - dict( - DESCRIPTOR=_BATCHCREATENOTESREQUEST_NOTESENTRY, - __module__="grafeas_v1.proto.grafeas_pb2" + { + "DESCRIPTOR": _BATCHCREATENOTESREQUEST_NOTESENTRY, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2" # @@protoc_insertion_point(class_scope:grafeas.v1.BatchCreateNotesRequest.NotesEntry) - ), + }, ), - DESCRIPTOR=_BATCHCREATENOTESREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to create notes in batch. + "DESCRIPTOR": _BATCHCREATENOTESREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to create notes in batch. + Attributes: parent: The name of the project in the form of @@ -2510,7 +2634,7 @@ The notes to create. Max allowed length is 1000. """, # @@protoc_insertion_point(class_scope:grafeas.v1.BatchCreateNotesRequest) - ), + }, ) _sym_db.RegisterMessage(BatchCreateNotesRequest) _sym_db.RegisterMessage(BatchCreateNotesRequest.NotesEntry) @@ -2518,26 +2642,28 @@ BatchCreateNotesResponse = _reflection.GeneratedProtocolMessageType( "BatchCreateNotesResponse", (_message.Message,), - dict( - DESCRIPTOR=_BATCHCREATENOTESRESPONSE, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Response for creating notes in batch. + { + "DESCRIPTOR": _BATCHCREATENOTESRESPONSE, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Response for creating notes in batch. + Attributes: notes: The notes that were created. """, # @@protoc_insertion_point(class_scope:grafeas.v1.BatchCreateNotesResponse) - ), + }, ) _sym_db.RegisterMessage(BatchCreateNotesResponse) BatchCreateOccurrencesRequest = _reflection.GeneratedProtocolMessageType( "BatchCreateOccurrencesRequest", (_message.Message,), - dict( - DESCRIPTOR=_BATCHCREATEOCCURRENCESREQUEST, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Request to create occurrences in batch. + { + "DESCRIPTOR": _BATCHCREATEOCCURRENCESREQUEST, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Request to create occurrences in batch. + Attributes: parent: The name of the project in the form of @@ -2547,23 +2673,24 @@ The occurrences to create. Max allowed length is 1000. """, # @@protoc_insertion_point(class_scope:grafeas.v1.BatchCreateOccurrencesRequest) - ), + }, ) _sym_db.RegisterMessage(BatchCreateOccurrencesRequest) BatchCreateOccurrencesResponse = _reflection.GeneratedProtocolMessageType( "BatchCreateOccurrencesResponse", (_message.Message,), - dict( - DESCRIPTOR=_BATCHCREATEOCCURRENCESRESPONSE, - __module__="grafeas_v1.proto.grafeas_pb2", - __doc__="""Response for creating occurrences in batch. + { + "DESCRIPTOR": _BATCHCREATEOCCURRENCESRESPONSE, + "__module__": "grafeas.grafeas_v1.proto.grafeas_pb2", + "__doc__": """Response for creating occurrences in batch. + Attributes: occurrences: The occurrences that were created. """, # @@protoc_insertion_point(class_scope:grafeas.v1.BatchCreateOccurrencesResponse) - ), + }, ) _sym_db.RegisterMessage(BatchCreateOccurrencesResponse) @@ -2599,9 +2726,10 @@ full_name="grafeas.v1.Grafeas", file=DESCRIPTOR, index=0, - serialized_options=_b("\312A containeranalysis.googleapis.com"), - serialized_start=4069, - serialized_end=6135, + serialized_options=b"\312A containeranalysis.googleapis.com", + create_key=_descriptor._internal_create_key, + serialized_start=4149, + serialized_end=6215, methods=[ _descriptor.MethodDescriptor( name="GetOccurrence", @@ -2610,9 +2738,8 @@ containing_service=None, input_type=_GETOCCURRENCEREQUEST, output_type=_OCCURRENCE, - serialized_options=_b( - "\202\323\344\223\002%\022#/v1/{name=projects/*/occurrences/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002%\022#/v1/{name=projects/*/occurrences/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListOccurrences", @@ -2621,9 +2748,8 @@ containing_service=None, input_type=_LISTOCCURRENCESREQUEST, output_type=_LISTOCCURRENCESRESPONSE, - serialized_options=_b( - "\202\323\344\223\002%\022#/v1/{parent=projects/*}/occurrences\332A\rparent,filter" - ), + serialized_options=b"\202\323\344\223\002%\022#/v1/{parent=projects/*}/occurrences\332A\rparent,filter", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteOccurrence", @@ -2632,9 +2758,8 @@ containing_service=None, input_type=_DELETEOCCURRENCEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002%*#/v1/{name=projects/*/occurrences/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002%*#/v1/{name=projects/*/occurrences/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateOccurrence", @@ -2643,9 +2768,8 @@ containing_service=None, input_type=_CREATEOCCURRENCEREQUEST, output_type=_OCCURRENCE, - serialized_options=_b( - '\202\323\344\223\0021"#/v1/{parent=projects/*}/occurrences:\noccurrence\332A\021parent,occurrence' - ), + serialized_options=b'\202\323\344\223\0021"#/v1/{parent=projects/*}/occurrences:\noccurrence\332A\021parent,occurrence', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="BatchCreateOccurrences", @@ -2654,9 +2778,8 @@ containing_service=None, input_type=_BATCHCREATEOCCURRENCESREQUEST, output_type=_BATCHCREATEOCCURRENCESRESPONSE, - serialized_options=_b( - '\202\323\344\223\0024"//v1/{parent=projects/*}/occurrences:batchCreate:\001*\332A\022parent,occurrences' - ), + serialized_options=b'\202\323\344\223\0024"//v1/{parent=projects/*}/occurrences:batchCreate:\001*\332A\022parent,occurrences', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateOccurrence", @@ -2665,9 +2788,8 @@ containing_service=None, input_type=_UPDATEOCCURRENCEREQUEST, output_type=_OCCURRENCE, - serialized_options=_b( - "\202\323\344\223\00212#/v1/{name=projects/*/occurrences/*}:\noccurrence\332A\033name,occurrence,update_mask" - ), + serialized_options=b"\202\323\344\223\00212#/v1/{name=projects/*/occurrences/*}:\noccurrence\332A\033name,occurrence,update_mask", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetOccurrenceNote", @@ -2676,9 +2798,8 @@ containing_service=None, input_type=_GETOCCURRENCENOTEREQUEST, output_type=_NOTE, - serialized_options=_b( - "\202\323\344\223\002+\022)/v1/{name=projects/*/occurrences/*}/notes\332A\004name" - ), + serialized_options=b"\202\323\344\223\002+\022)/v1/{name=projects/*/occurrences/*}/notes\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="GetNote", @@ -2687,9 +2808,8 @@ containing_service=None, input_type=_GETNOTEREQUEST, output_type=_NOTE, - serialized_options=_b( - "\202\323\344\223\002\037\022\035/v1/{name=projects/*/notes/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002\037\022\035/v1/{name=projects/*/notes/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListNotes", @@ -2698,9 +2818,8 @@ containing_service=None, input_type=_LISTNOTESREQUEST, output_type=_LISTNOTESRESPONSE, - serialized_options=_b( - "\202\323\344\223\002\037\022\035/v1/{parent=projects/*}/notes\332A\rparent,filter" - ), + serialized_options=b"\202\323\344\223\002\037\022\035/v1/{parent=projects/*}/notes\332A\rparent,filter", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="DeleteNote", @@ -2709,9 +2828,8 @@ containing_service=None, input_type=_DELETENOTEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002\037*\035/v1/{name=projects/*/notes/*}\332A\004name" - ), + serialized_options=b"\202\323\344\223\002\037*\035/v1/{name=projects/*/notes/*}\332A\004name", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="CreateNote", @@ -2720,9 +2838,8 @@ containing_service=None, input_type=_CREATENOTEREQUEST, output_type=_NOTE, - serialized_options=_b( - '\202\323\344\223\002%"\035/v1/{parent=projects/*}/notes:\004note\332A\023parent,note_id,note' - ), + serialized_options=b'\202\323\344\223\002%"\035/v1/{parent=projects/*}/notes:\004note\332A\023parent,note_id,note', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="BatchCreateNotes", @@ -2731,9 +2848,8 @@ containing_service=None, input_type=_BATCHCREATENOTESREQUEST, output_type=_BATCHCREATENOTESRESPONSE, - serialized_options=_b( - '\202\323\344\223\002.")/v1/{parent=projects/*}/notes:batchCreate:\001*\332A\014parent,notes' - ), + serialized_options=b'\202\323\344\223\002.")/v1/{parent=projects/*}/notes:batchCreate:\001*\332A\014parent,notes', + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="UpdateNote", @@ -2742,9 +2858,8 @@ containing_service=None, input_type=_UPDATENOTEREQUEST, output_type=_NOTE, - serialized_options=_b( - "\202\323\344\223\002%2\035/v1/{name=projects/*/notes/*}:\004note\332A\025name,note,update_mask" - ), + serialized_options=b"\202\323\344\223\002%2\035/v1/{name=projects/*/notes/*}:\004note\332A\025name,note,update_mask", + create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name="ListNoteOccurrences", @@ -2753,9 +2868,8 @@ containing_service=None, input_type=_LISTNOTEOCCURRENCESREQUEST, output_type=_LISTNOTEOCCURRENCESRESPONSE, - serialized_options=_b( - "\202\323\344\223\002+\022)/v1/{name=projects/*/notes/*}/occurrences\332A\013name,filter" - ), + serialized_options=b"\202\323\344\223\002+\022)/v1/{name=projects/*/notes/*}/occurrences\332A\013name,filter", + create_key=_descriptor._internal_create_key, ), ], ) diff --git a/packages/grafeas/grafeas/grafeas_v1/proto/grafeas_pb2_grpc.py b/packages/grafeas/grafeas/grafeas_v1/proto/grafeas_pb2_grpc.py index 70057e822c51..02d45a656f29 100644 --- a/packages/grafeas/grafeas/grafeas_v1/proto/grafeas_pb2_grpc.py +++ b/packages/grafeas/grafeas/grafeas_v1/proto/grafeas_pb2_grpc.py @@ -3,7 +3,7 @@ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from grafeas.grafeas_v1.proto import ( - grafeas_pb2 as grafeas__v1_dot_proto_dot_grafeas__pb2, + grafeas_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2, ) @@ -32,73 +32,73 @@ def __init__(self, channel): """ self.GetOccurrence = channel.unary_unary( "/grafeas.v1.Grafeas/GetOccurrence", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.GetOccurrenceRequest.SerializeToString, - response_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Occurrence.FromString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.GetOccurrenceRequest.SerializeToString, + response_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Occurrence.FromString, ) self.ListOccurrences = channel.unary_unary( "/grafeas.v1.Grafeas/ListOccurrences", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.ListOccurrencesRequest.SerializeToString, - response_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.ListOccurrencesResponse.FromString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.ListOccurrencesRequest.SerializeToString, + response_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.ListOccurrencesResponse.FromString, ) self.DeleteOccurrence = channel.unary_unary( "/grafeas.v1.Grafeas/DeleteOccurrence", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.DeleteOccurrenceRequest.SerializeToString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.DeleteOccurrenceRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.CreateOccurrence = channel.unary_unary( "/grafeas.v1.Grafeas/CreateOccurrence", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.CreateOccurrenceRequest.SerializeToString, - response_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Occurrence.FromString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.CreateOccurrenceRequest.SerializeToString, + response_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Occurrence.FromString, ) self.BatchCreateOccurrences = channel.unary_unary( "/grafeas.v1.Grafeas/BatchCreateOccurrences", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateOccurrencesRequest.SerializeToString, - response_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateOccurrencesResponse.FromString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateOccurrencesRequest.SerializeToString, + response_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateOccurrencesResponse.FromString, ) self.UpdateOccurrence = channel.unary_unary( "/grafeas.v1.Grafeas/UpdateOccurrence", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.UpdateOccurrenceRequest.SerializeToString, - response_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Occurrence.FromString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.UpdateOccurrenceRequest.SerializeToString, + response_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Occurrence.FromString, ) self.GetOccurrenceNote = channel.unary_unary( "/grafeas.v1.Grafeas/GetOccurrenceNote", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.GetOccurrenceNoteRequest.SerializeToString, - response_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Note.FromString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.GetOccurrenceNoteRequest.SerializeToString, + response_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Note.FromString, ) self.GetNote = channel.unary_unary( "/grafeas.v1.Grafeas/GetNote", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.GetNoteRequest.SerializeToString, - response_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Note.FromString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.GetNoteRequest.SerializeToString, + response_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Note.FromString, ) self.ListNotes = channel.unary_unary( "/grafeas.v1.Grafeas/ListNotes", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.ListNotesRequest.SerializeToString, - response_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.ListNotesResponse.FromString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.ListNotesRequest.SerializeToString, + response_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.ListNotesResponse.FromString, ) self.DeleteNote = channel.unary_unary( "/grafeas.v1.Grafeas/DeleteNote", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.DeleteNoteRequest.SerializeToString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.DeleteNoteRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.CreateNote = channel.unary_unary( "/grafeas.v1.Grafeas/CreateNote", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.CreateNoteRequest.SerializeToString, - response_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Note.FromString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.CreateNoteRequest.SerializeToString, + response_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Note.FromString, ) self.BatchCreateNotes = channel.unary_unary( "/grafeas.v1.Grafeas/BatchCreateNotes", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateNotesRequest.SerializeToString, - response_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateNotesResponse.FromString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateNotesRequest.SerializeToString, + response_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateNotesResponse.FromString, ) self.UpdateNote = channel.unary_unary( "/grafeas.v1.Grafeas/UpdateNote", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.UpdateNoteRequest.SerializeToString, - response_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Note.FromString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.UpdateNoteRequest.SerializeToString, + response_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Note.FromString, ) self.ListNoteOccurrences = channel.unary_unary( "/grafeas.v1.Grafeas/ListNoteOccurrences", - request_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.ListNoteOccurrencesRequest.SerializeToString, - response_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.ListNoteOccurrencesResponse.FromString, + request_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.ListNoteOccurrencesRequest.SerializeToString, + response_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.ListNoteOccurrencesResponse.FromString, ) @@ -227,73 +227,73 @@ def add_GrafeasServicer_to_server(servicer, server): rpc_method_handlers = { "GetOccurrence": grpc.unary_unary_rpc_method_handler( servicer.GetOccurrence, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.GetOccurrenceRequest.FromString, - response_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Occurrence.SerializeToString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.GetOccurrenceRequest.FromString, + response_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Occurrence.SerializeToString, ), "ListOccurrences": grpc.unary_unary_rpc_method_handler( servicer.ListOccurrences, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.ListOccurrencesRequest.FromString, - response_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.ListOccurrencesResponse.SerializeToString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.ListOccurrencesRequest.FromString, + response_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.ListOccurrencesResponse.SerializeToString, ), "DeleteOccurrence": grpc.unary_unary_rpc_method_handler( servicer.DeleteOccurrence, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.DeleteOccurrenceRequest.FromString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.DeleteOccurrenceRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), "CreateOccurrence": grpc.unary_unary_rpc_method_handler( servicer.CreateOccurrence, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.CreateOccurrenceRequest.FromString, - response_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Occurrence.SerializeToString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.CreateOccurrenceRequest.FromString, + response_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Occurrence.SerializeToString, ), "BatchCreateOccurrences": grpc.unary_unary_rpc_method_handler( servicer.BatchCreateOccurrences, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateOccurrencesRequest.FromString, - response_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateOccurrencesResponse.SerializeToString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateOccurrencesRequest.FromString, + response_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateOccurrencesResponse.SerializeToString, ), "UpdateOccurrence": grpc.unary_unary_rpc_method_handler( servicer.UpdateOccurrence, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.UpdateOccurrenceRequest.FromString, - response_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Occurrence.SerializeToString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.UpdateOccurrenceRequest.FromString, + response_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Occurrence.SerializeToString, ), "GetOccurrenceNote": grpc.unary_unary_rpc_method_handler( servicer.GetOccurrenceNote, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.GetOccurrenceNoteRequest.FromString, - response_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Note.SerializeToString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.GetOccurrenceNoteRequest.FromString, + response_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Note.SerializeToString, ), "GetNote": grpc.unary_unary_rpc_method_handler( servicer.GetNote, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.GetNoteRequest.FromString, - response_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Note.SerializeToString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.GetNoteRequest.FromString, + response_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Note.SerializeToString, ), "ListNotes": grpc.unary_unary_rpc_method_handler( servicer.ListNotes, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.ListNotesRequest.FromString, - response_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.ListNotesResponse.SerializeToString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.ListNotesRequest.FromString, + response_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.ListNotesResponse.SerializeToString, ), "DeleteNote": grpc.unary_unary_rpc_method_handler( servicer.DeleteNote, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.DeleteNoteRequest.FromString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.DeleteNoteRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), "CreateNote": grpc.unary_unary_rpc_method_handler( servicer.CreateNote, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.CreateNoteRequest.FromString, - response_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Note.SerializeToString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.CreateNoteRequest.FromString, + response_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Note.SerializeToString, ), "BatchCreateNotes": grpc.unary_unary_rpc_method_handler( servicer.BatchCreateNotes, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateNotesRequest.FromString, - response_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateNotesResponse.SerializeToString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateNotesRequest.FromString, + response_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.BatchCreateNotesResponse.SerializeToString, ), "UpdateNote": grpc.unary_unary_rpc_method_handler( servicer.UpdateNote, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.UpdateNoteRequest.FromString, - response_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.Note.SerializeToString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.UpdateNoteRequest.FromString, + response_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.Note.SerializeToString, ), "ListNoteOccurrences": grpc.unary_unary_rpc_method_handler( servicer.ListNoteOccurrences, - request_deserializer=grafeas__v1_dot_proto_dot_grafeas__pb2.ListNoteOccurrencesRequest.FromString, - response_serializer=grafeas__v1_dot_proto_dot_grafeas__pb2.ListNoteOccurrencesResponse.SerializeToString, + request_deserializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.ListNoteOccurrencesRequest.FromString, + response_serializer=grafeas_dot_grafeas__v1_dot_proto_dot_grafeas__pb2.ListNoteOccurrencesResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( diff --git a/packages/grafeas/grafeas/grafeas_v1/proto/image_pb2.py b/packages/grafeas/grafeas/grafeas_v1/proto/image_pb2.py index fe3ff55b32b2..c13a20a04fc0 100644 --- a/packages/grafeas/grafeas/grafeas_v1/proto/image_pb2.py +++ b/packages/grafeas/grafeas/grafeas_v1/proto/image_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: grafeas_v1/proto/image.proto +# source: grafeas/grafeas_v1/proto/image.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 @@ -16,15 +13,12 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name="grafeas_v1/proto/image.proto", + name="grafeas/grafeas_v1/proto/image.proto", package="grafeas.v1", syntax="proto3", - serialized_options=_b( - "\n\rio.grafeas.v1P\001Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\242\002\003GRA" - ), - serialized_pb=_b( - '\n\x1cgrafeas_v1/proto/image.proto\x12\ngrafeas.v1"-\n\x05Layer\x12\x11\n\tdirective\x18\x01 \x01(\t\x12\x11\n\targuments\x18\x02 \x01(\t"@\n\x0b\x46ingerprint\x12\x0f\n\x07v1_name\x18\x01 \x01(\t\x12\x0f\n\x07v2_blob\x18\x02 \x03(\t\x12\x0f\n\x07v2_name\x18\x03 \x01(\t"O\n\tImageNote\x12\x14\n\x0cresource_url\x18\x01 \x01(\t\x12,\n\x0b\x66ingerprint\x18\x02 \x01(\x0b\x32\x17.grafeas.v1.Fingerprint"\x93\x01\n\x0fImageOccurrence\x12,\n\x0b\x66ingerprint\x18\x01 \x01(\x0b\x32\x17.grafeas.v1.Fingerprint\x12\x10\n\x08\x64istance\x18\x02 \x01(\x05\x12%\n\nlayer_info\x18\x03 \x03(\x0b\x32\x11.grafeas.v1.Layer\x12\x19\n\x11\x62\x61se_resource_url\x18\x04 \x01(\tBQ\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3' - ), + serialized_options=b"\n\rio.grafeas.v1P\001ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\242\002\003GRA", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n$grafeas/grafeas_v1/proto/image.proto\x12\ngrafeas.v1"-\n\x05Layer\x12\x11\n\tdirective\x18\x01 \x01(\t\x12\x11\n\targuments\x18\x02 \x01(\t"@\n\x0b\x46ingerprint\x12\x0f\n\x07v1_name\x18\x01 \x01(\t\x12\x0f\n\x07v2_blob\x18\x02 \x03(\t\x12\x0f\n\x07v2_name\x18\x03 \x01(\t"O\n\tImageNote\x12\x14\n\x0cresource_url\x18\x01 \x01(\t\x12,\n\x0b\x66ingerprint\x18\x02 \x01(\x0b\x32\x17.grafeas.v1.Fingerprint"\x93\x01\n\x0fImageOccurrence\x12,\n\x0b\x66ingerprint\x18\x01 \x01(\x0b\x32\x17.grafeas.v1.Fingerprint\x12\x10\n\x08\x64istance\x18\x02 \x01(\x05\x12%\n\nlayer_info\x18\x03 \x03(\x0b\x32\x11.grafeas.v1.Layer\x12\x19\n\x11\x62\x61se_resource_url\x18\x04 \x01(\tB_\n\rio.grafeas.v1P\x01ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\xa2\x02\x03GRAb\x06proto3', ) @@ -34,6 +28,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="directive", @@ -44,7 +39,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, @@ -52,6 +47,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="arguments", @@ -62,7 +58,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -70,6 +66,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -80,8 +77,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=44, - serialized_end=89, + serialized_start=52, + serialized_end=97, ) @@ -91,6 +88,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="v1_name", @@ -101,7 +99,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, @@ -109,6 +107,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="v2_blob", @@ -127,6 +126,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="v2_name", @@ -137,7 +137,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, @@ -145,6 +145,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -155,8 +156,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=91, - serialized_end=155, + serialized_start=99, + serialized_end=163, ) @@ -166,6 +167,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="resource_url", @@ -176,7 +178,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, @@ -184,6 +186,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fingerprint", @@ -202,6 +205,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -212,8 +216,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=157, - serialized_end=236, + serialized_start=165, + serialized_end=244, ) @@ -223,6 +227,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="fingerprint", @@ -241,6 +246,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="distance", @@ -259,6 +265,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="layer_info", @@ -277,6 +284,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="base_resource_url", @@ -287,7 +295,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -295,6 +303,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -305,8 +314,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=239, - serialized_end=386, + serialized_start=247, + serialized_end=394, ) _IMAGENOTE.fields_by_name["fingerprint"].message_type = _FINGERPRINT @@ -321,10 +330,11 @@ Layer = _reflection.GeneratedProtocolMessageType( "Layer", (_message.Message,), - dict( - DESCRIPTOR=_LAYER, - __module__="grafeas_v1.proto.image_pb2", - __doc__="""Layer holds metadata specific to a layer of a Docker image. + { + "DESCRIPTOR": _LAYER, + "__module__": "grafeas.grafeas_v1.proto.image_pb2", + "__doc__": """Layer holds metadata specific to a layer of a Docker image. + Attributes: directive: Required. The recovered Dockerfile directive used to construct @@ -335,64 +345,68 @@ The recovered arguments to the Dockerfile directive. """, # @@protoc_insertion_point(class_scope:grafeas.v1.Layer) - ), + }, ) _sym_db.RegisterMessage(Layer) Fingerprint = _reflection.GeneratedProtocolMessageType( "Fingerprint", (_message.Message,), - dict( - DESCRIPTOR=_FINGERPRINT, - __module__="grafeas_v1.proto.image_pb2", - __doc__="""A set of properties that uniquely identify a given Docker image. + { + "DESCRIPTOR": _FINGERPRINT, + "__module__": "grafeas.grafeas_v1.proto.image_pb2", + "__doc__": """A set of properties that uniquely identify a given Docker image. + Attributes: v1_name: Required. The layer ID of the final layer in the Docker - image's v1 representation. + image’s v1 representation. v2_blob: Required. The ordered list of v2 blobs that represent a given image. v2_name: - Output only. The name of the image's v2 blobs computed via: - [bottom] := v2\_blob[bottom][N] := sha256(v2\_blob[N] + " " + - v2\_name[N+1]) Only the name of the final blob is kept. + Output only. The name of the image’s v2 blobs computed via: + [bottom] := v2_blob[bottom] [N] := sha256(v2_blob[N] + " " + + v2_name[N+1]) Only the name of the final blob is kept. """, # @@protoc_insertion_point(class_scope:grafeas.v1.Fingerprint) - ), + }, ) _sym_db.RegisterMessage(Fingerprint) ImageNote = _reflection.GeneratedProtocolMessageType( "ImageNote", (_message.Message,), - dict( - DESCRIPTOR=_IMAGENOTE, - __module__="grafeas_v1.proto.image_pb2", - __doc__="""Basis describes the base image portion (Note) of the DockerImage + { + "DESCRIPTOR": _IMAGENOTE, + "__module__": "grafeas.grafeas_v1.proto.image_pb2", + "__doc__": """Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an - equivalent image via: FROM Or an equivalent reference, e.g., a tag of - the resource\_url. + equivalent image via: FROM Or an equivalent + reference, e.g., a tag of the resource_url. + Attributes: resource_url: - Required. Immutable. The resource\_url for the resource + Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images. fingerprint: Required. Immutable. The fingerprint of the base image. """, # @@protoc_insertion_point(class_scope:grafeas.v1.ImageNote) - ), + }, ) _sym_db.RegisterMessage(ImageNote) ImageOccurrence = _reflection.GeneratedProtocolMessageType( "ImageOccurrence", (_message.Message,), - dict( - DESCRIPTOR=_IMAGEOCCURRENCE, - __module__="grafeas_v1.proto.image_pb2", - __doc__="""Details of the derived image portion of the DockerImage relationship. - This image would be produced from a Dockerfile with FROM . + { + "DESCRIPTOR": _IMAGEOCCURRENCE, + "__module__": "grafeas.grafeas_v1.proto.image_pb2", + "__doc__": """Details of the derived image portion of the DockerImage relationship. + This image would be produced from a Dockerfile with FROM + . + Attributes: fingerprint: Required. The fingerprint of the derived image. @@ -401,7 +415,7 @@ from the associated image basis. layer_info: This contains layer-specific metadata, if populated it has - length "distance" and is ordered with [distance] being the + length “distance” and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. base_resource_url: @@ -409,7 +423,7 @@ image occurrence. """, # @@protoc_insertion_point(class_scope:grafeas.v1.ImageOccurrence) - ), + }, ) _sym_db.RegisterMessage(ImageOccurrence) diff --git a/packages/grafeas/grafeas/grafeas_v1/proto/package_pb2.py b/packages/grafeas/grafeas/grafeas_v1/proto/package_pb2.py index 292539737667..a3a564037fda 100644 --- a/packages/grafeas/grafeas/grafeas_v1/proto/package_pb2.py +++ b/packages/grafeas/grafeas/grafeas_v1/proto/package_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: grafeas_v1/proto/package.proto +# source: grafeas/grafeas_v1/proto/package.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -17,15 +14,12 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name="grafeas_v1/proto/package.proto", + name="grafeas/grafeas_v1/proto/package.proto", package="grafeas.v1", syntax="proto3", - serialized_options=_b( - "\n\rio.grafeas.v1P\001Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\242\002\003GRA" - ), - serialized_pb=_b( - '\n\x1egrafeas_v1/proto/package.proto\x12\ngrafeas.v1"\xb2\x01\n\x0c\x44istribution\x12\x0f\n\x07\x63pe_uri\x18\x01 \x01(\t\x12.\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x18.grafeas.v1.Architecture\x12+\n\x0elatest_version\x18\x03 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x12\n\nmaintainer\x18\x04 \x01(\t\x12\x0b\n\x03url\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t"O\n\x08Location\x12\x0f\n\x07\x63pe_uri\x18\x01 \x01(\t\x12$\n\x07version\x18\x02 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x0c\n\x04path\x18\x03 \x01(\t"K\n\x0bPackageNote\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\x0c\x64istribution\x18\n \x03(\x0b\x32\x18.grafeas.v1.Distribution"I\n\x11PackageOccurrence\x12\x0c\n\x04name\x18\x01 \x01(\t\x12&\n\x08location\x18\x02 \x03(\x0b\x32\x14.grafeas.v1.Location"\xcd\x01\n\x07Version\x12\r\n\x05\x65poch\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08revision\x18\x03 \x01(\t\x12-\n\x04kind\x18\x04 \x01(\x0e\x32\x1f.grafeas.v1.Version.VersionKind\x12\x11\n\tfull_name\x18\x05 \x01(\t"Q\n\x0bVersionKind\x12\x1c\n\x18VERSION_KIND_UNSPECIFIED\x10\x00\x12\n\n\x06NORMAL\x10\x01\x12\x0b\n\x07MINIMUM\x10\x02\x12\x0b\n\x07MAXIMUM\x10\x03*>\n\x0c\x41rchitecture\x12\x1c\n\x18\x41RCHITECTURE_UNSPECIFIED\x10\x00\x12\x07\n\x03X86\x10\x01\x12\x07\n\x03X64\x10\x02\x42Q\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3' - ), + serialized_options=b"\n\rio.grafeas.v1P\001ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\242\002\003GRA", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n&grafeas/grafeas_v1/proto/package.proto\x12\ngrafeas.v1"\xb2\x01\n\x0c\x44istribution\x12\x0f\n\x07\x63pe_uri\x18\x01 \x01(\t\x12.\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x18.grafeas.v1.Architecture\x12+\n\x0elatest_version\x18\x03 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x12\n\nmaintainer\x18\x04 \x01(\t\x12\x0b\n\x03url\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t"O\n\x08Location\x12\x0f\n\x07\x63pe_uri\x18\x01 \x01(\t\x12$\n\x07version\x18\x02 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x0c\n\x04path\x18\x03 \x01(\t"K\n\x0bPackageNote\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\x0c\x64istribution\x18\n \x03(\x0b\x32\x18.grafeas.v1.Distribution"I\n\x11PackageOccurrence\x12\x0c\n\x04name\x18\x01 \x01(\t\x12&\n\x08location\x18\x02 \x03(\x0b\x32\x14.grafeas.v1.Location"\xcd\x01\n\x07Version\x12\r\n\x05\x65poch\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08revision\x18\x03 \x01(\t\x12-\n\x04kind\x18\x04 \x01(\x0e\x32\x1f.grafeas.v1.Version.VersionKind\x12\x11\n\tfull_name\x18\x05 \x01(\t"Q\n\x0bVersionKind\x12\x1c\n\x18VERSION_KIND_UNSPECIFIED\x10\x00\x12\n\n\x06NORMAL\x10\x01\x12\x0b\n\x07MINIMUM\x10\x02\x12\x0b\n\x07MAXIMUM\x10\x03*>\n\x0c\x41rchitecture\x12\x1c\n\x18\x41RCHITECTURE_UNSPECIFIED\x10\x00\x12\x07\n\x03X86\x10\x01\x12\x07\n\x03X64\x10\x02\x42_\n\rio.grafeas.v1P\x01ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\xa2\x02\x03GRAb\x06proto3', ) _ARCHITECTURE = _descriptor.EnumDescriptor( @@ -33,6 +27,7 @@ full_name="grafeas.v1.Architecture", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="ARCHITECTURE_UNSPECIFIED", @@ -40,18 +35,29 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="X86", index=1, number=1, serialized_options=None, type=None + name="X86", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="X64", index=2, number=2, serialized_options=None, type=None + name="X64", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=668, - serialized_end=730, + serialized_start=676, + serialized_end=738, ) _sym_db.RegisterEnumDescriptor(_ARCHITECTURE) @@ -66,6 +72,7 @@ full_name="grafeas.v1.Version.VersionKind", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="VERSION_KIND_UNSPECIFIED", @@ -73,21 +80,37 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="NORMAL", index=1, number=1, serialized_options=None, type=None + name="NORMAL", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MINIMUM", index=2, number=2, serialized_options=None, type=None + name="MINIMUM", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MAXIMUM", index=3, number=3, serialized_options=None, type=None + name="MAXIMUM", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=585, - serialized_end=666, + serialized_start=593, + serialized_end=674, ) _sym_db.RegisterEnumDescriptor(_VERSION_VERSIONKIND) @@ -98,6 +121,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="cpe_uri", @@ -108,7 +132,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -116,6 +140,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="architecture", @@ -134,6 +159,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="latest_version", @@ -152,6 +178,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="maintainer", @@ -162,7 +189,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, @@ -170,6 +197,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="url", @@ -180,7 +208,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, @@ -188,6 +216,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -198,7 +227,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, @@ -206,6 +235,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -216,8 +246,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=47, - serialized_end=225, + serialized_start=55, + serialized_end=233, ) @@ -227,6 +257,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="cpe_uri", @@ -237,7 +268,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, @@ -245,6 +276,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="version", @@ -263,6 +295,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="path", @@ -273,7 +306,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -281,6 +314,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -291,8 +325,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=227, - serialized_end=306, + serialized_start=235, + serialized_end=314, ) @@ -302,6 +336,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -312,7 +347,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, @@ -320,6 +355,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="distribution", @@ -338,6 +374,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -348,8 +385,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=308, - serialized_end=383, + serialized_start=316, + serialized_end=391, ) @@ -359,6 +396,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -369,7 +407,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, @@ -377,6 +415,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="location", @@ -395,6 +434,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -405,8 +445,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=385, - serialized_end=458, + serialized_start=393, + serialized_end=466, ) @@ -416,6 +456,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="epoch", @@ -434,6 +475,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="name", @@ -444,7 +486,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, @@ -452,6 +494,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="revision", @@ -462,7 +505,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, @@ -470,6 +513,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="kind", @@ -488,6 +532,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="full_name", @@ -498,7 +543,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, @@ -506,6 +551,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -516,8 +562,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=461, - serialized_end=666, + serialized_start=469, + serialized_end=674, ) _DISTRIBUTION.fields_by_name["architecture"].enum_type = _ARCHITECTURE @@ -538,14 +584,15 @@ Distribution = _reflection.GeneratedProtocolMessageType( "Distribution", (_message.Message,), - dict( - DESCRIPTOR=_DISTRIBUTION, - __module__="grafeas_v1.proto.package_pb2", - __doc__="""This represents a particular channel of distribution for a given - package. E.g., Debian's jessie-backports dpkg mirror. + { + "DESCRIPTOR": _DISTRIBUTION, + "__module__": "grafeas.grafeas_v1.proto.package_pb2", + "__doc__": """This represents a particular channel of distribution for a given + package. E.g., Debian’s jessie-backports dpkg mirror. + Attributes: cpe_uri: - Required. The cpe\_uri in `CPE format + Required. The cpe_uri in `CPE format `__ denoting the package manager version distributing a package. architecture: @@ -562,19 +609,20 @@ The distribution channel-specific description of this package. """, # @@protoc_insertion_point(class_scope:grafeas.v1.Distribution) - ), + }, ) _sym_db.RegisterMessage(Distribution) Location = _reflection.GeneratedProtocolMessageType( "Location", (_message.Message,), - dict( - DESCRIPTOR=_LOCATION, - __module__="grafeas_v1.proto.package_pb2", - __doc__="""An occurrence of a particular package installation found within a - system's filesystem. E.g., glibc was found in + { + "DESCRIPTOR": _LOCATION, + "__module__": "grafeas.grafeas_v1.proto.package_pb2", + "__doc__": """An occurrence of a particular package installation found within a + system’s filesystem. E.g., glibc was found in ``/var/lib/dpkg/status``. + Attributes: cpe_uri: Required. The CPE URI in `CPE format @@ -587,19 +635,20 @@ installed. """, # @@protoc_insertion_point(class_scope:grafeas.v1.Location) - ), + }, ) _sym_db.RegisterMessage(Location) PackageNote = _reflection.GeneratedProtocolMessageType( "PackageNote", (_message.Message,), - dict( - DESCRIPTOR=_PACKAGENOTE, - __module__="grafeas_v1.proto.package_pb2", - __doc__="""This represents a particular package that is distributed over various + { + "DESCRIPTOR": _PACKAGENOTE, + "__module__": "grafeas.grafeas_v1.proto.package_pb2", + "__doc__": """This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. + Attributes: name: Required. Immutable. The name of the package. @@ -607,18 +656,19 @@ The various channels by which a package is distributed. """, # @@protoc_insertion_point(class_scope:grafeas.v1.PackageNote) - ), + }, ) _sym_db.RegisterMessage(PackageNote) PackageOccurrence = _reflection.GeneratedProtocolMessageType( "PackageOccurrence", (_message.Message,), - dict( - DESCRIPTOR=_PACKAGEOCCURRENCE, - __module__="grafeas_v1.proto.package_pb2", - __doc__="""Details on how a particular software package was installed on a + { + "DESCRIPTOR": _PACKAGEOCCURRENCE, + "__module__": "grafeas.grafeas_v1.proto.package_pb2", + "__doc__": """Details on how a particular software package was installed on a system. + Attributes: name: Output only. The name of the installed package. @@ -627,18 +677,19 @@ this package have been found. """, # @@protoc_insertion_point(class_scope:grafeas.v1.PackageOccurrence) - ), + }, ) _sym_db.RegisterMessage(PackageOccurrence) Version = _reflection.GeneratedProtocolMessageType( "Version", (_message.Message,), - dict( - DESCRIPTOR=_VERSION, - __module__="grafeas_v1.proto.package_pb2", - __doc__="""Version contains structured information about the version of a + { + "DESCRIPTOR": _VERSION, + "__module__": "grafeas.grafeas_v1.proto.package_pb2", + "__doc__": """Version contains structured information about the version of a package. + Attributes: epoch: Used to correct mistakes in the version numbering scheme. @@ -655,7 +706,7 @@ and is only set when kind is NORMAL. """, # @@protoc_insertion_point(class_scope:grafeas.v1.Version) - ), + }, ) _sym_db.RegisterMessage(Version) diff --git a/packages/grafeas/grafeas/grafeas_v1/proto/provenance_pb2.py b/packages/grafeas/grafeas/grafeas_v1/proto/provenance_pb2.py index fc186e025812..35f3f88095bc 100644 --- a/packages/grafeas/grafeas/grafeas_v1/proto/provenance_pb2.py +++ b/packages/grafeas/grafeas/grafeas_v1/proto/provenance_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: grafeas_v1/proto/provenance.proto +# source: grafeas/grafeas_v1/proto/provenance.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 @@ -19,15 +16,12 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name="grafeas_v1/proto/provenance.proto", + name="grafeas/grafeas_v1/proto/provenance.proto", package="grafeas.v1", syntax="proto3", - serialized_options=_b( - "\n\rio.grafeas.v1P\001Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\242\002\003GRA" - ), - serialized_pb=_b( - '\n!grafeas_v1/proto/provenance.proto\x12\ngrafeas.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x90\x04\n\x0f\x42uildProvenance\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12%\n\x08\x63ommands\x18\x03 \x03(\x0b\x32\x13.grafeas.v1.Command\x12-\n\x0f\x62uilt_artifacts\x18\x04 \x03(\x0b\x32\x14.grafeas.v1.Artifact\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x63reator\x18\x08 \x01(\t\x12\x10\n\x08logs_uri\x18\t \x01(\t\x12-\n\x11source_provenance\x18\n \x01(\x0b\x32\x12.grafeas.v1.Source\x12\x12\n\ntrigger_id\x18\x0b \x01(\t\x12\x44\n\rbuild_options\x18\x0c \x03(\x0b\x32-.grafeas.v1.BuildProvenance.BuildOptionsEntry\x12\x17\n\x0f\x62uilder_version\x18\r \x01(\t\x1a\x33\n\x11\x42uildOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x95\x02\n\x06Source\x12#\n\x1b\x61rtifact_storage_source_uri\x18\x01 \x01(\t\x12\x37\n\x0b\x66ile_hashes\x18\x02 \x03(\x0b\x32".grafeas.v1.Source.FileHashesEntry\x12*\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x19.grafeas.v1.SourceContext\x12\x36\n\x13\x61\x64\x64itional_contexts\x18\x04 \x03(\x0b\x32\x19.grafeas.v1.SourceContext\x1aI\n\x0f\x46ileHashesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.grafeas.v1.FileHashes:\x02\x38\x01"1\n\nFileHashes\x12#\n\tfile_hash\x18\x01 \x03(\x0b\x32\x10.grafeas.v1.Hash"#\n\x04Hash\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c"]\n\x07\x43ommand\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"7\n\x08\x41rtifact\x12\x10\n\x08\x63hecksum\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\r\n\x05names\x18\x03 \x03(\t"\x9a\x02\n\rSourceContext\x12\x38\n\ncloud_repo\x18\x01 \x01(\x0b\x32".grafeas.v1.CloudRepoSourceContextH\x00\x12\x31\n\x06gerrit\x18\x02 \x01(\x0b\x32\x1f.grafeas.v1.GerritSourceContextH\x00\x12+\n\x03git\x18\x03 \x01(\x0b\x32\x1c.grafeas.v1.GitSourceContextH\x00\x12\x35\n\x06labels\x18\x04 \x03(\x0b\x32%.grafeas.v1.SourceContext.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07\x63ontext"\x8a\x01\n\x0c\x41liasContext\x12+\n\x04kind\x18\x01 \x01(\x0e\x32\x1d.grafeas.v1.AliasContext.Kind\x12\x0c\n\x04name\x18\x02 \x01(\t"?\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\t\n\x05\x46IXED\x10\x01\x12\x0b\n\x07MOVABLE\x10\x02\x12\t\n\x05OTHER\x10\x04"\x93\x01\n\x16\x43loudRepoSourceContext\x12#\n\x07repo_id\x18\x01 \x01(\x0b\x32\x12.grafeas.v1.RepoId\x12\x15\n\x0brevision_id\x18\x02 \x01(\tH\x00\x12\x31\n\ralias_context\x18\x03 \x01(\x0b\x32\x18.grafeas.v1.AliasContextH\x00\x42\n\n\x08revision"\x95\x01\n\x13GerritSourceContext\x12\x10\n\x08host_uri\x18\x01 \x01(\t\x12\x16\n\x0egerrit_project\x18\x02 \x01(\t\x12\x15\n\x0brevision_id\x18\x03 \x01(\tH\x00\x12\x31\n\ralias_context\x18\x04 \x01(\x0b\x32\x18.grafeas.v1.AliasContextH\x00\x42\n\n\x08revision"4\n\x10GitSourceContext\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x13\n\x0brevision_id\x18\x02 \x01(\t"S\n\x06RepoId\x12\x34\n\x0fproject_repo_id\x18\x01 \x01(\x0b\x32\x19.grafeas.v1.ProjectRepoIdH\x00\x12\r\n\x03uid\x18\x02 \x01(\tH\x00\x42\x04\n\x02id"6\n\rProjectRepoId\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x11\n\trepo_name\x18\x02 \x01(\tBQ\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3' - ), + serialized_options=b"\n\rio.grafeas.v1P\001ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\242\002\003GRA", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n)grafeas/grafeas_v1/proto/provenance.proto\x12\ngrafeas.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x90\x04\n\x0f\x42uildProvenance\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12%\n\x08\x63ommands\x18\x03 \x03(\x0b\x32\x13.grafeas.v1.Command\x12-\n\x0f\x62uilt_artifacts\x18\x04 \x03(\x0b\x32\x14.grafeas.v1.Artifact\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x63reator\x18\x08 \x01(\t\x12\x10\n\x08logs_uri\x18\t \x01(\t\x12-\n\x11source_provenance\x18\n \x01(\x0b\x32\x12.grafeas.v1.Source\x12\x12\n\ntrigger_id\x18\x0b \x01(\t\x12\x44\n\rbuild_options\x18\x0c \x03(\x0b\x32-.grafeas.v1.BuildProvenance.BuildOptionsEntry\x12\x17\n\x0f\x62uilder_version\x18\r \x01(\t\x1a\x33\n\x11\x42uildOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x95\x02\n\x06Source\x12#\n\x1b\x61rtifact_storage_source_uri\x18\x01 \x01(\t\x12\x37\n\x0b\x66ile_hashes\x18\x02 \x03(\x0b\x32".grafeas.v1.Source.FileHashesEntry\x12*\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x19.grafeas.v1.SourceContext\x12\x36\n\x13\x61\x64\x64itional_contexts\x18\x04 \x03(\x0b\x32\x19.grafeas.v1.SourceContext\x1aI\n\x0f\x46ileHashesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.grafeas.v1.FileHashes:\x02\x38\x01"1\n\nFileHashes\x12#\n\tfile_hash\x18\x01 \x03(\x0b\x32\x10.grafeas.v1.Hash"#\n\x04Hash\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c"]\n\x07\x43ommand\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"7\n\x08\x41rtifact\x12\x10\n\x08\x63hecksum\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\r\n\x05names\x18\x03 \x03(\t"\x9a\x02\n\rSourceContext\x12\x38\n\ncloud_repo\x18\x01 \x01(\x0b\x32".grafeas.v1.CloudRepoSourceContextH\x00\x12\x31\n\x06gerrit\x18\x02 \x01(\x0b\x32\x1f.grafeas.v1.GerritSourceContextH\x00\x12+\n\x03git\x18\x03 \x01(\x0b\x32\x1c.grafeas.v1.GitSourceContextH\x00\x12\x35\n\x06labels\x18\x04 \x03(\x0b\x32%.grafeas.v1.SourceContext.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07\x63ontext"\x8a\x01\n\x0c\x41liasContext\x12+\n\x04kind\x18\x01 \x01(\x0e\x32\x1d.grafeas.v1.AliasContext.Kind\x12\x0c\n\x04name\x18\x02 \x01(\t"?\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\t\n\x05\x46IXED\x10\x01\x12\x0b\n\x07MOVABLE\x10\x02\x12\t\n\x05OTHER\x10\x04"\x93\x01\n\x16\x43loudRepoSourceContext\x12#\n\x07repo_id\x18\x01 \x01(\x0b\x32\x12.grafeas.v1.RepoId\x12\x15\n\x0brevision_id\x18\x02 \x01(\tH\x00\x12\x31\n\ralias_context\x18\x03 \x01(\x0b\x32\x18.grafeas.v1.AliasContextH\x00\x42\n\n\x08revision"\x95\x01\n\x13GerritSourceContext\x12\x10\n\x08host_uri\x18\x01 \x01(\t\x12\x16\n\x0egerrit_project\x18\x02 \x01(\t\x12\x15\n\x0brevision_id\x18\x03 \x01(\tH\x00\x12\x31\n\ralias_context\x18\x04 \x01(\x0b\x32\x18.grafeas.v1.AliasContextH\x00\x42\n\n\x08revision"4\n\x10GitSourceContext\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x13\n\x0brevision_id\x18\x02 \x01(\t"S\n\x06RepoId\x12\x34\n\x0fproject_repo_id\x18\x01 \x01(\x0b\x32\x19.grafeas.v1.ProjectRepoIdH\x00\x12\r\n\x03uid\x18\x02 \x01(\tH\x00\x42\x04\n\x02id"6\n\rProjectRepoId\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x11\n\trepo_name\x18\x02 \x01(\tB_\n\rio.grafeas.v1P\x01ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\xa2\x02\x03GRAb\x06proto3', dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,], ) @@ -37,6 +31,7 @@ full_name="grafeas.v1.AliasContext.Kind", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="KIND_UNSPECIFIED", @@ -44,21 +39,37 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="FIXED", index=1, number=1, serialized_options=None, type=None + name="FIXED", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MOVABLE", index=2, number=2, serialized_options=None, type=None + name="MOVABLE", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="OTHER", index=3, number=4, serialized_options=None, type=None + name="OTHER", + index=3, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=1494, - serialized_end=1557, + serialized_start=1502, + serialized_end=1565, ) _sym_db.RegisterEnumDescriptor(_ALIASCONTEXT_KIND) @@ -69,6 +80,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -79,7 +91,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -87,6 +99,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -97,7 +110,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, @@ -105,18 +118,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=560, - serialized_end=611, + serialized_start=568, + serialized_end=619, ) _BUILDPROVENANCE = _descriptor.Descriptor( @@ -125,6 +139,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="id", @@ -135,7 +150,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, @@ -143,6 +158,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="project_id", @@ -153,7 +169,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -161,6 +177,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="commands", @@ -179,6 +196,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="built_artifacts", @@ -197,6 +215,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="create_time", @@ -215,6 +234,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="start_time", @@ -233,6 +253,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="end_time", @@ -251,6 +272,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="creator", @@ -261,7 +283,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -269,6 +291,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="logs_uri", @@ -279,7 +302,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, @@ -287,6 +310,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="source_provenance", @@ -305,6 +329,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="trigger_id", @@ -315,7 +340,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -323,6 +348,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="build_options", @@ -341,6 +367,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="builder_version", @@ -351,7 +378,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, @@ -359,6 +386,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -369,8 +397,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=83, - serialized_end=611, + serialized_start=91, + serialized_end=619, ) @@ -380,6 +408,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -390,7 +419,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, @@ -398,6 +427,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -416,18 +446,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=818, - serialized_end=891, + serialized_start=826, + serialized_end=899, ) _SOURCE = _descriptor.Descriptor( @@ -436,6 +467,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="artifact_storage_source_uri", @@ -446,7 +478,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, @@ -454,6 +486,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="file_hashes", @@ -472,6 +505,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="context", @@ -490,6 +524,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="additional_contexts", @@ -508,6 +543,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -518,8 +554,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=614, - serialized_end=891, + serialized_start=622, + serialized_end=899, ) @@ -529,6 +565,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="file_hash", @@ -547,6 +584,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -557,8 +595,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=893, - serialized_end=942, + serialized_start=901, + serialized_end=950, ) @@ -568,6 +606,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -578,7 +617,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, @@ -586,6 +625,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -596,7 +636,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, @@ -604,6 +644,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -614,8 +655,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=944, - serialized_end=979, + serialized_start=952, + serialized_end=987, ) @@ -625,6 +666,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -635,7 +677,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, @@ -643,6 +685,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="env", @@ -661,6 +704,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="args", @@ -679,6 +723,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="dir", @@ -689,7 +734,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, @@ -697,6 +742,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="id", @@ -707,7 +753,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, @@ -715,6 +761,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="wait_for", @@ -733,6 +780,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -743,8 +791,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=981, - serialized_end=1074, + serialized_start=989, + serialized_end=1082, ) @@ -754,6 +802,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="checksum", @@ -764,7 +813,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, @@ -772,6 +821,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="id", @@ -782,7 +832,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, @@ -790,6 +840,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="names", @@ -808,6 +859,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -818,8 +870,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1076, - serialized_end=1131, + serialized_start=1084, + serialized_end=1139, ) @@ -829,6 +881,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="key", @@ -839,7 +892,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, @@ -847,6 +900,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="value", @@ -857,7 +911,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, @@ -865,18 +919,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=1360, - serialized_end=1405, + serialized_start=1368, + serialized_end=1413, ) _SOURCECONTEXT = _descriptor.Descriptor( @@ -885,6 +940,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="cloud_repo", @@ -903,6 +959,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="gerrit", @@ -921,6 +978,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="git", @@ -939,6 +997,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="labels", @@ -957,6 +1016,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -972,11 +1032,12 @@ full_name="grafeas.v1.SourceContext.context", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], - serialized_start=1134, - serialized_end=1416, + serialized_start=1142, + serialized_end=1424, ) @@ -986,6 +1047,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="kind", @@ -1004,6 +1066,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="name", @@ -1014,7 +1077,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, @@ -1022,6 +1085,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1032,8 +1096,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1419, - serialized_end=1557, + serialized_start=1427, + serialized_end=1565, ) @@ -1043,6 +1107,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="repo_id", @@ -1061,6 +1126,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="revision_id", @@ -1071,7 +1137,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, @@ -1079,6 +1145,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="alias_context", @@ -1097,6 +1164,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1112,11 +1180,12 @@ full_name="grafeas.v1.CloudRepoSourceContext.revision", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], - serialized_start=1560, - serialized_end=1707, + serialized_start=1568, + serialized_end=1715, ) @@ -1126,6 +1195,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="host_uri", @@ -1136,7 +1206,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, @@ -1144,6 +1214,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="gerrit_project", @@ -1154,7 +1225,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, @@ -1162,6 +1233,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="revision_id", @@ -1172,7 +1244,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, @@ -1180,6 +1252,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="alias_context", @@ -1198,6 +1271,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1213,11 +1287,12 @@ full_name="grafeas.v1.GerritSourceContext.revision", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], - serialized_start=1710, - serialized_end=1859, + serialized_start=1718, + serialized_end=1867, ) @@ -1227,6 +1302,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="url", @@ -1237,7 +1313,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, @@ -1245,6 +1321,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="revision_id", @@ -1255,7 +1332,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, @@ -1263,6 +1340,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1273,8 +1351,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1861, - serialized_end=1913, + serialized_start=1869, + serialized_end=1921, ) @@ -1284,6 +1362,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_repo_id", @@ -1302,6 +1381,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="uid", @@ -1312,7 +1392,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, @@ -1320,6 +1400,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1335,11 +1416,12 @@ full_name="grafeas.v1.RepoId.id", index=0, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[], ), ], - serialized_start=1915, - serialized_end=1998, + serialized_start=1923, + serialized_end=2006, ) @@ -1349,6 +1431,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="project_id", @@ -1359,7 +1442,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, @@ -1367,6 +1450,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="repo_name", @@ -1377,7 +1461,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -1385,6 +1469,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -1395,8 +1480,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2000, - serialized_end=2054, + serialized_start=2008, + serialized_end=2062, ) _BUILDPROVENANCE_BUILDOPTIONSENTRY.containing_type = _BUILDPROVENANCE @@ -1498,20 +1583,21 @@ BuildProvenance = _reflection.GeneratedProtocolMessageType( "BuildProvenance", (_message.Message,), - dict( - BuildOptionsEntry=_reflection.GeneratedProtocolMessageType( + { + "BuildOptionsEntry": _reflection.GeneratedProtocolMessageType( "BuildOptionsEntry", (_message.Message,), - dict( - DESCRIPTOR=_BUILDPROVENANCE_BUILDOPTIONSENTRY, - __module__="grafeas_v1.proto.provenance_pb2" + { + "DESCRIPTOR": _BUILDPROVENANCE_BUILDOPTIONSENTRY, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2" # @@protoc_insertion_point(class_scope:grafeas.v1.BuildProvenance.BuildOptionsEntry) - ), + }, ), - DESCRIPTOR=_BUILDPROVENANCE, - __module__="grafeas_v1.proto.provenance_pb2", - __doc__="""Provenance of a build. Contains all information needed to verify the + "DESCRIPTOR": _BUILDPROVENANCE, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2", + "__doc__": """Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. + Attributes: id: Required. Unique identifier of the build. @@ -1529,7 +1615,7 @@ Time at which execution of the build was finished. creator: E-mail address of the user who initiated this build. Note that - this was the user's e-mail address at the time the build was + this was the user’s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time. logs_uri: @@ -1548,7 +1634,7 @@ executed. """, # @@protoc_insertion_point(class_scope:grafeas.v1.BuildProvenance) - ), + }, ) _sym_db.RegisterMessage(BuildProvenance) _sym_db.RegisterMessage(BuildProvenance.BuildOptionsEntry) @@ -1556,19 +1642,20 @@ Source = _reflection.GeneratedProtocolMessageType( "Source", (_message.Message,), - dict( - FileHashesEntry=_reflection.GeneratedProtocolMessageType( + { + "FileHashesEntry": _reflection.GeneratedProtocolMessageType( "FileHashesEntry", (_message.Message,), - dict( - DESCRIPTOR=_SOURCE_FILEHASHESENTRY, - __module__="grafeas_v1.proto.provenance_pb2" + { + "DESCRIPTOR": _SOURCE_FILEHASHESENTRY, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2" # @@protoc_insertion_point(class_scope:grafeas.v1.Source.FileHashesEntry) - ), + }, ), - DESCRIPTOR=_SOURCE, - __module__="grafeas_v1.proto.provenance_pb2", - __doc__="""Source describes the location of the source used for the build. + "DESCRIPTOR": _SOURCE, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2", + "__doc__": """Source describes the location of the source used for the build. + Attributes: artifact_storage_source_uri: If provided, the input binary artifacts for the build came @@ -1591,7 +1678,7 @@ not include the context specified in the context field. """, # @@protoc_insertion_point(class_scope:grafeas.v1.Source) - ), + }, ) _sym_db.RegisterMessage(Source) _sym_db.RegisterMessage(Source.FileHashesEntry) @@ -1599,45 +1686,48 @@ FileHashes = _reflection.GeneratedProtocolMessageType( "FileHashes", (_message.Message,), - dict( - DESCRIPTOR=_FILEHASHES, - __module__="grafeas_v1.proto.provenance_pb2", - __doc__="""Container message for hashes of byte content of files, used in source + { + "DESCRIPTOR": _FILEHASHES, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2", + "__doc__": """Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. + Attributes: file_hash: Required. Collection of file hashes. """, # @@protoc_insertion_point(class_scope:grafeas.v1.FileHashes) - ), + }, ) _sym_db.RegisterMessage(FileHashes) Hash = _reflection.GeneratedProtocolMessageType( "Hash", (_message.Message,), - dict( - DESCRIPTOR=_HASH, - __module__="grafeas_v1.proto.provenance_pb2", - __doc__="""Container message for hash values. + { + "DESCRIPTOR": _HASH, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2", + "__doc__": """Container message for hash values. + Attributes: type: - Required. The type of hash that was performed, e.g. "SHA-256". + Required. The type of hash that was performed, e.g. “SHA-256”. value: Required. The hash value. """, # @@protoc_insertion_point(class_scope:grafeas.v1.Hash) - ), + }, ) _sym_db.RegisterMessage(Hash) Command = _reflection.GeneratedProtocolMessageType( "Command", (_message.Message,), - dict( - DESCRIPTOR=_COMMAND, - __module__="grafeas_v1.proto.provenance_pb2", - __doc__="""Command describes a step performed as part of the build pipeline. + { + "DESCRIPTOR": _COMMAND, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2", + "__doc__": """Command describes a step performed as part of the build pipeline. + Attributes: name: Required. Name of the command, as presented on the command @@ -1651,23 +1741,24 @@ Working directory (relative to project source root) used when running this command. id: - Optional unique identifier for this command, used in wait\_for + Optional unique identifier for this command, used in wait_for to reference this command as a dependency. wait_for: The ID(s) of the command(s) that this command depends on. """, # @@protoc_insertion_point(class_scope:grafeas.v1.Command) - ), + }, ) _sym_db.RegisterMessage(Command) Artifact = _reflection.GeneratedProtocolMessageType( "Artifact", (_message.Message,), - dict( - DESCRIPTOR=_ARTIFACT, - __module__="grafeas_v1.proto.provenance_pb2", - __doc__="""Artifact describes a build product. + { + "DESCRIPTOR": _ARTIFACT, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2", + "__doc__": """Artifact describes a build product. + Attributes: checksum: Hash or checksum value of a binary, or Docker Registry 2.0 @@ -1684,28 +1775,29 @@ to one image. """, # @@protoc_insertion_point(class_scope:grafeas.v1.Artifact) - ), + }, ) _sym_db.RegisterMessage(Artifact) SourceContext = _reflection.GeneratedProtocolMessageType( "SourceContext", (_message.Message,), - dict( - LabelsEntry=_reflection.GeneratedProtocolMessageType( + { + "LabelsEntry": _reflection.GeneratedProtocolMessageType( "LabelsEntry", (_message.Message,), - dict( - DESCRIPTOR=_SOURCECONTEXT_LABELSENTRY, - __module__="grafeas_v1.proto.provenance_pb2" + { + "DESCRIPTOR": _SOURCECONTEXT_LABELSENTRY, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2" # @@protoc_insertion_point(class_scope:grafeas.v1.SourceContext.LabelsEntry) - ), + }, ), - DESCRIPTOR=_SOURCECONTEXT, - __module__="grafeas_v1.proto.provenance_pb2", - __doc__="""A SourceContext is a reference to a tree of files. A SourceContext + "DESCRIPTOR": _SOURCECONTEXT, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2", + "__doc__": """A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. + Attributes: context: A SourceContext can refer any one of the following types of @@ -1722,7 +1814,7 @@ Labels with user defined metadata. """, # @@protoc_insertion_point(class_scope:grafeas.v1.SourceContext) - ), + }, ) _sym_db.RegisterMessage(SourceContext) _sym_db.RegisterMessage(SourceContext.LabelsEntry) @@ -1730,10 +1822,11 @@ AliasContext = _reflection.GeneratedProtocolMessageType( "AliasContext", (_message.Message,), - dict( - DESCRIPTOR=_ALIASCONTEXT, - __module__="grafeas_v1.proto.provenance_pb2", - __doc__="""An alias to a repo revision. + { + "DESCRIPTOR": _ALIASCONTEXT, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2", + "__doc__": """An alias to a repo revision. + Attributes: kind: The alias kind. @@ -1741,18 +1834,19 @@ The alias name. """, # @@protoc_insertion_point(class_scope:grafeas.v1.AliasContext) - ), + }, ) _sym_db.RegisterMessage(AliasContext) CloudRepoSourceContext = _reflection.GeneratedProtocolMessageType( "CloudRepoSourceContext", (_message.Message,), - dict( - DESCRIPTOR=_CLOUDREPOSOURCECONTEXT, - __module__="grafeas_v1.proto.provenance_pb2", - __doc__="""A CloudRepoSourceContext denotes a particular revision in a Google + { + "DESCRIPTOR": _CLOUDREPOSOURCECONTEXT, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2", + "__doc__": """A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. + Attributes: repo_id: The ID of the repo. @@ -1765,24 +1859,25 @@ An alias, which may be a branch or tag. """, # @@protoc_insertion_point(class_scope:grafeas.v1.CloudRepoSourceContext) - ), + }, ) _sym_db.RegisterMessage(CloudRepoSourceContext) GerritSourceContext = _reflection.GeneratedProtocolMessageType( "GerritSourceContext", (_message.Message,), - dict( - DESCRIPTOR=_GERRITSOURCECONTEXT, - __module__="grafeas_v1.proto.provenance_pb2", - __doc__="""A SourceContext referring to a Gerrit project. + { + "DESCRIPTOR": _GERRITSOURCECONTEXT, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2", + "__doc__": """A SourceContext referring to a Gerrit project. + Attributes: host_uri: The URI of a running Gerrit instance. gerrit_project: The full project name within the host. Projects may be nested, - so "project/subproject" is a valid project name. The "repo - name" is the hostURI/project. + so “project/subproject” is a valid project name. The “repo + name” is the hostURI/project. revision: A revision in a Gerrit project can be identified by either its revision ID or its alias. @@ -1792,18 +1887,19 @@ An alias, which may be a branch or tag. """, # @@protoc_insertion_point(class_scope:grafeas.v1.GerritSourceContext) - ), + }, ) _sym_db.RegisterMessage(GerritSourceContext) GitSourceContext = _reflection.GeneratedProtocolMessageType( "GitSourceContext", (_message.Message,), - dict( - DESCRIPTOR=_GITSOURCECONTEXT, - __module__="grafeas_v1.proto.provenance_pb2", - __doc__="""A GitSourceContext denotes a particular revision in a third party Git + { + "DESCRIPTOR": _GITSOURCECONTEXT, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2", + "__doc__": """A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). + Attributes: url: Git repository URL. @@ -1811,17 +1907,18 @@ Git commit hash. """, # @@protoc_insertion_point(class_scope:grafeas.v1.GitSourceContext) - ), + }, ) _sym_db.RegisterMessage(GitSourceContext) RepoId = _reflection.GeneratedProtocolMessageType( "RepoId", (_message.Message,), - dict( - DESCRIPTOR=_REPOID, - __module__="grafeas_v1.proto.provenance_pb2", - __doc__="""A unique identifier for a Cloud Repo. + { + "DESCRIPTOR": _REPOID, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2", + "__doc__": """A unique identifier for a Cloud Repo. + Attributes: id: A cloud repo can be identified by either its project ID and @@ -1833,18 +1930,19 @@ A server-assigned, globally unique identifier. """, # @@protoc_insertion_point(class_scope:grafeas.v1.RepoId) - ), + }, ) _sym_db.RegisterMessage(RepoId) ProjectRepoId = _reflection.GeneratedProtocolMessageType( "ProjectRepoId", (_message.Message,), - dict( - DESCRIPTOR=_PROJECTREPOID, - __module__="grafeas_v1.proto.provenance_pb2", - __doc__="""Selects a repo using a Google Cloud Platform project ID (e.g., winged- + { + "DESCRIPTOR": _PROJECTREPOID, + "__module__": "grafeas.grafeas_v1.proto.provenance_pb2", + "__doc__": """Selects a repo using a Google Cloud Platform project ID (e.g., winged- cargo-31) and a repo name within that project. + Attributes: project_id: The ID of the project. @@ -1852,7 +1950,7 @@ The name of the repo. Leave empty for the default repo. """, # @@protoc_insertion_point(class_scope:grafeas.v1.ProjectRepoId) - ), + }, ) _sym_db.RegisterMessage(ProjectRepoId) diff --git a/packages/grafeas/grafeas/grafeas_v1/proto/upgrade_pb2.py b/packages/grafeas/grafeas/grafeas_v1/proto/upgrade_pb2.py index 6efbb9144666..9d7ed0116e68 100644 --- a/packages/grafeas/grafeas/grafeas_v1/proto/upgrade_pb2.py +++ b/packages/grafeas/grafeas/grafeas_v1/proto/upgrade_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: grafeas_v1/proto/upgrade.proto +# source: grafeas/grafeas_v1/proto/upgrade.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 @@ -17,23 +14,20 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from grafeas.grafeas_v1.proto import ( - package_pb2 as grafeas__v1_dot_proto_dot_package__pb2, + package_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2, ) DESCRIPTOR = _descriptor.FileDescriptor( - name="grafeas_v1/proto/upgrade.proto", + name="grafeas/grafeas_v1/proto/upgrade.proto", package="grafeas.v1", syntax="proto3", - serialized_options=_b( - "\n\rio.grafeas.v1P\001Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\242\002\003GRA" - ), - serialized_pb=_b( - '\n\x1egrafeas_v1/proto/upgrade.proto\x12\ngrafeas.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egrafeas_v1/proto/package.proto"\xaf\x01\n\x0bUpgradeNote\x12\x0f\n\x07package\x18\x01 \x01(\t\x12$\n\x07version\x18\x02 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x36\n\rdistributions\x18\x03 \x03(\x0b\x32\x1f.grafeas.v1.UpgradeDistribution\x12\x31\n\x0ewindows_update\x18\x04 \x01(\x0b\x32\x19.grafeas.v1.WindowsUpdate"]\n\x13UpgradeDistribution\x12\x0f\n\x07\x63pe_uri\x18\x01 \x01(\t\x12\x16\n\x0e\x63lassification\x18\x02 \x01(\t\x12\x10\n\x08severity\x18\x03 \x01(\t\x12\x0b\n\x03\x63ve\x18\x04 \x03(\t"\xec\x02\n\rWindowsUpdate\x12\x34\n\x08identity\x18\x01 \x01(\x0b\x32".grafeas.v1.WindowsUpdate.Identity\x12\r\n\x05title\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x36\n\ncategories\x18\x04 \x03(\x0b\x32".grafeas.v1.WindowsUpdate.Category\x12\x16\n\x0ekb_article_ids\x18\x05 \x03(\t\x12\x13\n\x0bsupport_url\x18\x06 \x01(\t\x12<\n\x18last_published_timestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a/\n\x08Identity\x12\x11\n\tupdate_id\x18\x01 \x01(\t\x12\x10\n\x08revision\x18\x02 \x01(\x05\x1a-\n\x08\x43\x61tegory\x12\x13\n\x0b\x63\x61tegory_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t"\xbb\x01\n\x11UpgradeOccurrence\x12\x0f\n\x07package\x18\x01 \x01(\t\x12+\n\x0eparsed_version\x18\x03 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x35\n\x0c\x64istribution\x18\x04 \x01(\x0b\x32\x1f.grafeas.v1.UpgradeDistribution\x12\x31\n\x0ewindows_update\x18\x05 \x01(\x0b\x32\x19.grafeas.v1.WindowsUpdateBQ\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3' - ), + serialized_options=b"\n\rio.grafeas.v1P\001ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\242\002\003GRA", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n&grafeas/grafeas_v1/proto/upgrade.proto\x12\ngrafeas.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&grafeas/grafeas_v1/proto/package.proto"\xaf\x01\n\x0bUpgradeNote\x12\x0f\n\x07package\x18\x01 \x01(\t\x12$\n\x07version\x18\x02 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x36\n\rdistributions\x18\x03 \x03(\x0b\x32\x1f.grafeas.v1.UpgradeDistribution\x12\x31\n\x0ewindows_update\x18\x04 \x01(\x0b\x32\x19.grafeas.v1.WindowsUpdate"]\n\x13UpgradeDistribution\x12\x0f\n\x07\x63pe_uri\x18\x01 \x01(\t\x12\x16\n\x0e\x63lassification\x18\x02 \x01(\t\x12\x10\n\x08severity\x18\x03 \x01(\t\x12\x0b\n\x03\x63ve\x18\x04 \x03(\t"\xec\x02\n\rWindowsUpdate\x12\x34\n\x08identity\x18\x01 \x01(\x0b\x32".grafeas.v1.WindowsUpdate.Identity\x12\r\n\x05title\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x36\n\ncategories\x18\x04 \x03(\x0b\x32".grafeas.v1.WindowsUpdate.Category\x12\x16\n\x0ekb_article_ids\x18\x05 \x03(\t\x12\x13\n\x0bsupport_url\x18\x06 \x01(\t\x12<\n\x18last_published_timestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a/\n\x08Identity\x12\x11\n\tupdate_id\x18\x01 \x01(\t\x12\x10\n\x08revision\x18\x02 \x01(\x05\x1a-\n\x08\x43\x61tegory\x12\x13\n\x0b\x63\x61tegory_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t"\xbb\x01\n\x11UpgradeOccurrence\x12\x0f\n\x07package\x18\x01 \x01(\t\x12+\n\x0eparsed_version\x18\x03 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x35\n\x0c\x64istribution\x18\x04 \x01(\x0b\x32\x1f.grafeas.v1.UpgradeDistribution\x12\x31\n\x0ewindows_update\x18\x05 \x01(\x0b\x32\x19.grafeas.v1.WindowsUpdateB_\n\rio.grafeas.v1P\x01ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\xa2\x02\x03GRAb\x06proto3', dependencies=[ google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_package__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2.DESCRIPTOR, ], ) @@ -44,6 +38,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="package", @@ -54,7 +49,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -62,6 +57,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="version", @@ -80,6 +76,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="distributions", @@ -98,6 +95,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="windows_update", @@ -116,6 +114,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -126,8 +125,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=112, - serialized_end=287, + serialized_start=128, + serialized_end=303, ) @@ -137,6 +136,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="cpe_uri", @@ -147,7 +147,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -155,6 +155,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="classification", @@ -165,7 +166,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -173,6 +174,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="severity", @@ -183,7 +185,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -191,6 +193,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="cve", @@ -209,6 +212,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -219,8 +223,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=289, - serialized_end=382, + serialized_start=305, + serialized_end=398, ) @@ -230,6 +234,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="update_id", @@ -240,7 +245,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -248,6 +253,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="revision", @@ -266,6 +272,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -276,8 +283,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=655, - serialized_end=702, + serialized_start=671, + serialized_end=718, ) _WINDOWSUPDATE_CATEGORY = _descriptor.Descriptor( @@ -286,6 +293,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="category_id", @@ -296,7 +304,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -304,6 +312,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="name", @@ -314,7 +323,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, @@ -322,6 +331,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -332,8 +342,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=704, - serialized_end=749, + serialized_start=720, + serialized_end=765, ) _WINDOWSUPDATE = _descriptor.Descriptor( @@ -342,6 +352,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="identity", @@ -360,6 +371,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="title", @@ -370,7 +382,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -378,6 +390,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -388,7 +401,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, @@ -396,6 +409,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="categories", @@ -414,6 +428,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="kb_article_ids", @@ -432,6 +447,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="support_url", @@ -442,7 +458,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, @@ -450,6 +466,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="last_published_timestamp", @@ -468,6 +485,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -478,8 +496,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=385, - serialized_end=749, + serialized_start=401, + serialized_end=765, ) @@ -489,6 +507,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="package", @@ -499,7 +518,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -507,6 +526,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="parsed_version", @@ -525,6 +545,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="distribution", @@ -543,6 +564,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="windows_update", @@ -561,6 +583,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -571,13 +594,13 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=752, - serialized_end=939, + serialized_start=768, + serialized_end=955, ) _UPGRADENOTE.fields_by_name[ "version" -].message_type = grafeas__v1_dot_proto_dot_package__pb2._VERSION +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2._VERSION _UPGRADENOTE.fields_by_name["distributions"].message_type = _UPGRADEDISTRIBUTION _UPGRADENOTE.fields_by_name["windows_update"].message_type = _WINDOWSUPDATE _WINDOWSUPDATE_IDENTITY.containing_type = _WINDOWSUPDATE @@ -589,7 +612,7 @@ ].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _UPGRADEOCCURRENCE.fields_by_name[ "parsed_version" -].message_type = grafeas__v1_dot_proto_dot_package__pb2._VERSION +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2._VERSION _UPGRADEOCCURRENCE.fields_by_name["distribution"].message_type = _UPGRADEDISTRIBUTION _UPGRADEOCCURRENCE.fields_by_name["windows_update"].message_type = _WINDOWSUPDATE DESCRIPTOR.message_types_by_name["UpgradeNote"] = _UPGRADENOTE @@ -601,14 +624,14 @@ UpgradeNote = _reflection.GeneratedProtocolMessageType( "UpgradeNote", (_message.Message,), - dict( - DESCRIPTOR=_UPGRADENOTE, - __module__="grafeas_v1.proto.upgrade_pb2", - __doc__="""An Upgrade Note represents a potential upgrade of a package to a given - version. For each package version combination (i.e. bash 4.0, bash + { + "DESCRIPTOR": _UPGRADENOTE, + "__module__": "grafeas.grafeas_v1.proto.upgrade_pb2", + "__doc__": """An Upgrade Note represents a potential upgrade of a package to a given + version. For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), there will be an Upgrade Note. For Windows, - windows\_update field represents the information related to the - update. + windows_update field represents the information related to the update. + Attributes: package: Required for non-Windows OS. The package this Upgrade is for. @@ -622,20 +645,21 @@ Windows update. """, # @@protoc_insertion_point(class_scope:grafeas.v1.UpgradeNote) - ), + }, ) _sym_db.RegisterMessage(UpgradeNote) UpgradeDistribution = _reflection.GeneratedProtocolMessageType( "UpgradeDistribution", (_message.Message,), - dict( - DESCRIPTOR=_UPGRADEDISTRIBUTION, - __module__="grafeas_v1.proto.upgrade_pb2", - __doc__="""The Upgrade Distribution represents metadata about the Upgrade for + { + "DESCRIPTOR": _UPGRADEDISTRIBUTION, + "__module__": "grafeas.grafeas_v1.proto.upgrade_pb2", + "__doc__": """The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. + Attributes: cpe_uri: Required - The specific operating system this metadata applies @@ -643,7 +667,7 @@ classification: The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For - Windows the classification is one of the category\_ids listed + Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous- versions/windows/desktop/ff357803(v=vs.85) severity: @@ -652,21 +676,22 @@ The cve tied to this Upgrade. """, # @@protoc_insertion_point(class_scope:grafeas.v1.UpgradeDistribution) - ), + }, ) _sym_db.RegisterMessage(UpgradeDistribution) WindowsUpdate = _reflection.GeneratedProtocolMessageType( "WindowsUpdate", (_message.Message,), - dict( - Identity=_reflection.GeneratedProtocolMessageType( + { + "Identity": _reflection.GeneratedProtocolMessageType( "Identity", (_message.Message,), - dict( - DESCRIPTOR=_WINDOWSUPDATE_IDENTITY, - __module__="grafeas_v1.proto.upgrade_pb2", - __doc__="""The unique identifier of the update. + { + "DESCRIPTOR": _WINDOWSUPDATE_IDENTITY, + "__module__": "grafeas.grafeas_v1.proto.upgrade_pb2", + "__doc__": """The unique identifier of the update. + Attributes: update_id: The revision independent identifier of the update. @@ -674,15 +699,16 @@ The revision number of the update. """, # @@protoc_insertion_point(class_scope:grafeas.v1.WindowsUpdate.Identity) - ), + }, ), - Category=_reflection.GeneratedProtocolMessageType( + "Category": _reflection.GeneratedProtocolMessageType( "Category", (_message.Message,), - dict( - DESCRIPTOR=_WINDOWSUPDATE_CATEGORY, - __module__="grafeas_v1.proto.upgrade_pb2", - __doc__="""The category to which the update belongs. + { + "DESCRIPTOR": _WINDOWSUPDATE_CATEGORY, + "__module__": "grafeas.grafeas_v1.proto.upgrade_pb2", + "__doc__": """The category to which the update belongs. + Attributes: category_id: The identifier of the category. @@ -690,14 +716,15 @@ The localized name of the category. """, # @@protoc_insertion_point(class_scope:grafeas.v1.WindowsUpdate.Category) - ), + }, ), - DESCRIPTOR=_WINDOWSUPDATE, - __module__="grafeas_v1.proto.upgrade_pb2", - __doc__="""Windows Update represents the metadata about the update for the + "DESCRIPTOR": _WINDOWSUPDATE, + "__module__": "grafeas.grafeas_v1.proto.upgrade_pb2", + "__doc__": """Windows Update represents the metadata about the update for the Windows operating system. The fields in this message come from the Windows Update API documented at https://docs.microsoft.com/en- us/windows/win32/api/wuapi/nn-wuapi-iupdate. + Attributes: identity: Required - The unique identifier for the update. @@ -716,7 +743,7 @@ The last published timestamp of the update. """, # @@protoc_insertion_point(class_scope:grafeas.v1.WindowsUpdate) - ), + }, ) _sym_db.RegisterMessage(WindowsUpdate) _sym_db.RegisterMessage(WindowsUpdate.Identity) @@ -725,14 +752,15 @@ UpgradeOccurrence = _reflection.GeneratedProtocolMessageType( "UpgradeOccurrence", (_message.Message,), - dict( - DESCRIPTOR=_UPGRADEOCCURRENCE, - __module__="grafeas_v1.proto.upgrade_pb2", - __doc__="""An Upgrade Occurrence represents that a specific resource\_url could + { + "DESCRIPTOR": _UPGRADEOCCURRENCE, + "__module__": "grafeas.grafeas_v1.proto.upgrade_pb2", + "__doc__": """An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local - sources (i.e. it is present in the mirror and the running system has + sources (i.e. it is present in the mirror and the running system has noticed its availability). For Windows, both distribution and - windows\_update contain information for the Windows update. + windows_update contain information for the Windows update. + Attributes: package: Required for non-Windows OS. The package this Upgrade is for. @@ -741,14 +769,14 @@ machine + human readable form. distribution: Metadata about the upgrade for available for the specific - operating system for the resource\_url. This allows efficient + operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence. windows_update: Required for Windows OS. Represents the metadata about the Windows update. """, # @@protoc_insertion_point(class_scope:grafeas.v1.UpgradeOccurrence) - ), + }, ) _sym_db.RegisterMessage(UpgradeOccurrence) diff --git a/packages/grafeas/grafeas/grafeas_v1/proto/vulnerability_pb2.py b/packages/grafeas/grafeas/grafeas_v1/proto/vulnerability_pb2.py index edac175955e9..03199dab2d4a 100644 --- a/packages/grafeas/grafeas/grafeas_v1/proto/vulnerability_pb2.py +++ b/packages/grafeas/grafeas/grafeas_v1/proto/vulnerability_pb2.py @@ -1,10 +1,7 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: grafeas_v1/proto/vulnerability.proto +# source: grafeas/grafeas_v1/proto/vulnerability.proto -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -17,28 +14,29 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from grafeas.grafeas_v1.proto import common_pb2 as grafeas__v1_dot_proto_dot_common__pb2 -from grafeas.grafeas_v1.proto import cvss_pb2 as grafeas__v1_dot_proto_dot_cvss__pb2 from grafeas.grafeas_v1.proto import ( - package_pb2 as grafeas__v1_dot_proto_dot_package__pb2, + common_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2, +) +from grafeas.grafeas_v1.proto import ( + cvss_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_cvss__pb2, +) +from grafeas.grafeas_v1.proto import ( + package_pb2 as grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2, ) DESCRIPTOR = _descriptor.FileDescriptor( - name="grafeas_v1/proto/vulnerability.proto", + name="grafeas/grafeas_v1/proto/vulnerability.proto", package="grafeas.v1", syntax="proto3", - serialized_options=_b( - "\n\rio.grafeas.v1P\001Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\242\002\003GRA" - ), - serialized_pb=_b( - '\n$grafeas_v1/proto/vulnerability.proto\x12\ngrafeas.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dgrafeas_v1/proto/common.proto\x1a\x1bgrafeas_v1/proto/cvss.proto\x1a\x1egrafeas_v1/proto/package.proto"\xfa\x06\n\x11VulnerabilityNote\x12\x12\n\ncvss_score\x18\x01 \x01(\x02\x12&\n\x08severity\x18\x02 \x01(\x0e\x32\x14.grafeas.v1.Severity\x12\x35\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32$.grafeas.v1.VulnerabilityNote.Detail\x12#\n\x07\x63vss_v3\x18\x04 \x01(\x0b\x32\x12.grafeas.v1.CVSSv3\x12\x44\n\x0fwindows_details\x18\x05 \x03(\x0b\x32+.grafeas.v1.VulnerabilityNote.WindowsDetail\x12\x36\n\x12source_update_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x8d\x03\n\x06\x44\x65tail\x12\x15\n\rseverity_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpackage_type\x18\x03 \x01(\t\x12\x18\n\x10\x61\x66\x66\x65\x63ted_cpe_uri\x18\x04 \x01(\t\x12\x18\n\x10\x61\x66\x66\x65\x63ted_package\x18\x05 \x01(\t\x12\x33\n\x16\x61\x66\x66\x65\x63ted_version_start\x18\x06 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x31\n\x14\x61\x66\x66\x65\x63ted_version_end\x18\x07 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x15\n\rfixed_cpe_uri\x18\x08 \x01(\t\x12\x15\n\rfixed_package\x18\t \x01(\t\x12*\n\rfixed_version\x18\n \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x13\n\x0bis_obsolete\x18\x0b \x01(\x08\x12\x36\n\x12source_update_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\xbe\x01\n\rWindowsDetail\x12\x0f\n\x07\x63pe_uri\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12M\n\nfixing_kbs\x18\x04 \x03(\x0b\x32\x39.grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase\x1a*\n\rKnowledgeBase\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t"\xbd\x04\n\x17VulnerabilityOccurrence\x12\x0c\n\x04type\x18\x01 \x01(\t\x12&\n\x08severity\x18\x02 \x01(\x0e\x32\x14.grafeas.v1.Severity\x12\x12\n\ncvss_score\x18\x03 \x01(\x02\x12G\n\rpackage_issue\x18\x04 \x03(\x0b\x32\x30.grafeas.v1.VulnerabilityOccurrence.PackageIssue\x12\x19\n\x11short_description\x18\x05 \x01(\t\x12\x18\n\x10long_description\x18\x06 \x01(\t\x12,\n\x0crelated_urls\x18\x07 \x03(\x0b\x32\x16.grafeas.v1.RelatedUrl\x12\x30\n\x12\x65\x66\x66\x65\x63tive_severity\x18\x08 \x01(\x0e\x32\x14.grafeas.v1.Severity\x12\x15\n\rfix_available\x18\t \x01(\x08\x1a\xe2\x01\n\x0cPackageIssue\x12\x18\n\x10\x61\x66\x66\x65\x63ted_cpe_uri\x18\x01 \x01(\t\x12\x18\n\x10\x61\x66\x66\x65\x63ted_package\x18\x02 \x01(\t\x12-\n\x10\x61\x66\x66\x65\x63ted_version\x18\x03 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x15\n\rfixed_cpe_uri\x18\x04 \x01(\t\x12\x15\n\rfixed_package\x18\x05 \x01(\t\x12*\n\rfixed_version\x18\x06 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x15\n\rfix_available\x18\x07 \x01(\x08*^\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0b\n\x07MINIMAL\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x08\n\x04HIGH\x10\x04\x12\x0c\n\x08\x43RITICAL\x10\x05\x42Q\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3' - ), + serialized_options=b"\n\rio.grafeas.v1P\001ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\242\002\003GRA", + create_key=_descriptor._internal_create_key, + serialized_pb=b'\n,grafeas/grafeas_v1/proto/vulnerability.proto\x12\ngrafeas.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a%grafeas/grafeas_v1/proto/common.proto\x1a#grafeas/grafeas_v1/proto/cvss.proto\x1a&grafeas/grafeas_v1/proto/package.proto"\xfa\x06\n\x11VulnerabilityNote\x12\x12\n\ncvss_score\x18\x01 \x01(\x02\x12&\n\x08severity\x18\x02 \x01(\x0e\x32\x14.grafeas.v1.Severity\x12\x35\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32$.grafeas.v1.VulnerabilityNote.Detail\x12#\n\x07\x63vss_v3\x18\x04 \x01(\x0b\x32\x12.grafeas.v1.CVSSv3\x12\x44\n\x0fwindows_details\x18\x05 \x03(\x0b\x32+.grafeas.v1.VulnerabilityNote.WindowsDetail\x12\x36\n\x12source_update_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x8d\x03\n\x06\x44\x65tail\x12\x15\n\rseverity_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpackage_type\x18\x03 \x01(\t\x12\x18\n\x10\x61\x66\x66\x65\x63ted_cpe_uri\x18\x04 \x01(\t\x12\x18\n\x10\x61\x66\x66\x65\x63ted_package\x18\x05 \x01(\t\x12\x33\n\x16\x61\x66\x66\x65\x63ted_version_start\x18\x06 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x31\n\x14\x61\x66\x66\x65\x63ted_version_end\x18\x07 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x15\n\rfixed_cpe_uri\x18\x08 \x01(\t\x12\x15\n\rfixed_package\x18\t \x01(\t\x12*\n\rfixed_version\x18\n \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x13\n\x0bis_obsolete\x18\x0b \x01(\x08\x12\x36\n\x12source_update_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\xbe\x01\n\rWindowsDetail\x12\x0f\n\x07\x63pe_uri\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12M\n\nfixing_kbs\x18\x04 \x03(\x0b\x32\x39.grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase\x1a*\n\rKnowledgeBase\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t"\xbd\x04\n\x17VulnerabilityOccurrence\x12\x0c\n\x04type\x18\x01 \x01(\t\x12&\n\x08severity\x18\x02 \x01(\x0e\x32\x14.grafeas.v1.Severity\x12\x12\n\ncvss_score\x18\x03 \x01(\x02\x12G\n\rpackage_issue\x18\x04 \x03(\x0b\x32\x30.grafeas.v1.VulnerabilityOccurrence.PackageIssue\x12\x19\n\x11short_description\x18\x05 \x01(\t\x12\x18\n\x10long_description\x18\x06 \x01(\t\x12,\n\x0crelated_urls\x18\x07 \x03(\x0b\x32\x16.grafeas.v1.RelatedUrl\x12\x30\n\x12\x65\x66\x66\x65\x63tive_severity\x18\x08 \x01(\x0e\x32\x14.grafeas.v1.Severity\x12\x15\n\rfix_available\x18\t \x01(\x08\x1a\xe2\x01\n\x0cPackageIssue\x12\x18\n\x10\x61\x66\x66\x65\x63ted_cpe_uri\x18\x01 \x01(\t\x12\x18\n\x10\x61\x66\x66\x65\x63ted_package\x18\x02 \x01(\t\x12-\n\x10\x61\x66\x66\x65\x63ted_version\x18\x03 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x15\n\rfixed_cpe_uri\x18\x04 \x01(\t\x12\x15\n\rfixed_package\x18\x05 \x01(\t\x12*\n\rfixed_version\x18\x06 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x15\n\rfix_available\x18\x07 \x01(\x08*^\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0b\n\x07MINIMAL\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x08\n\x04HIGH\x10\x04\x12\x0c\n\x08\x43RITICAL\x10\x05\x42_\n\rio.grafeas.v1P\x01ZFgoogle.golang.org/genproto/googleapis/grafeas/grafeas_v1/proto;grafeas\xa2\x02\x03GRAb\x06proto3', dependencies=[ google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_common__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_cvss__pb2.DESCRIPTOR, - grafeas__v1_dot_proto_dot_package__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_cvss__pb2.DESCRIPTOR, + grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2.DESCRIPTOR, ], ) @@ -47,6 +45,7 @@ full_name="grafeas.v1.Severity", filename=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name="SEVERITY_UNSPECIFIED", @@ -54,27 +53,53 @@ number=0, serialized_options=None, type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MINIMAL", index=1, number=1, serialized_options=None, type=None + name="MINIMAL", + index=1, + number=1, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="LOW", index=2, number=2, serialized_options=None, type=None + name="LOW", + index=2, + number=2, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="MEDIUM", index=3, number=3, serialized_options=None, type=None + name="MEDIUM", + index=3, + number=3, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="HIGH", index=4, number=4, serialized_options=None, type=None + name="HIGH", + index=4, + number=4, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), _descriptor.EnumValueDescriptor( - name="CRITICAL", index=5, number=5, serialized_options=None, type=None + name="CRITICAL", + index=5, + number=5, + serialized_options=None, + type=None, + create_key=_descriptor._internal_create_key, ), ], containing_type=None, serialized_options=None, - serialized_start=1646, - serialized_end=1740, + serialized_start=1678, + serialized_end=1772, ) _sym_db.RegisterEnumDescriptor(_SEVERITY) @@ -93,6 +118,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="severity_name", @@ -103,7 +129,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, @@ -111,6 +137,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -121,7 +148,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, @@ -129,6 +156,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="package_type", @@ -139,7 +167,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -147,6 +175,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="affected_cpe_uri", @@ -157,7 +186,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, @@ -165,6 +194,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="affected_package", @@ -175,7 +205,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, @@ -183,6 +213,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="affected_version_start", @@ -201,6 +232,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="affected_version_end", @@ -219,6 +251,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fixed_cpe_uri", @@ -229,7 +262,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, @@ -237,6 +270,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fixed_package", @@ -247,7 +281,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -255,6 +289,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fixed_version", @@ -273,6 +308,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="is_obsolete", @@ -291,6 +327,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="source_update_time", @@ -309,6 +346,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -319,8 +357,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=478, - serialized_end=875, + serialized_start=510, + serialized_end=907, ) _VULNERABILITYNOTE_WINDOWSDETAIL_KNOWLEDGEBASE = _descriptor.Descriptor( @@ -329,6 +367,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="name", @@ -339,7 +378,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, @@ -347,6 +386,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="url", @@ -357,7 +397,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -365,6 +405,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -375,8 +416,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1026, - serialized_end=1068, + serialized_start=1058, + serialized_end=1100, ) _VULNERABILITYNOTE_WINDOWSDETAIL = _descriptor.Descriptor( @@ -385,6 +426,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="cpe_uri", @@ -395,7 +437,7 @@ cpp_type=9, label=1, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, @@ -403,6 +445,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="name", @@ -413,7 +456,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, @@ -421,6 +464,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="description", @@ -431,7 +475,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, @@ -439,6 +483,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fixing_kbs", @@ -457,6 +502,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -467,8 +513,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=878, - serialized_end=1068, + serialized_start=910, + serialized_end=1100, ) _VULNERABILITYNOTE = _descriptor.Descriptor( @@ -477,6 +523,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="cvss_score", @@ -495,6 +542,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="severity", @@ -513,6 +561,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="details", @@ -531,6 +580,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="cvss_v3", @@ -549,6 +599,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="windows_details", @@ -567,6 +618,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="source_update_time", @@ -585,6 +637,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -595,8 +648,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=178, - serialized_end=1068, + serialized_start=210, + serialized_end=1100, ) @@ -606,6 +659,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="affected_cpe_uri", @@ -616,7 +670,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, @@ -624,6 +678,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="affected_package", @@ -634,7 +689,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, @@ -642,6 +697,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="affected_version", @@ -660,6 +716,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fixed_cpe_uri", @@ -670,7 +727,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, @@ -678,6 +735,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fixed_package", @@ -688,7 +746,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, @@ -696,6 +754,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fixed_version", @@ -714,6 +773,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fix_available", @@ -732,6 +792,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -742,8 +803,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1418, - serialized_end=1644, + serialized_start=1450, + serialized_end=1676, ) _VULNERABILITYOCCURRENCE = _descriptor.Descriptor( @@ -752,6 +813,7 @@ filename=None, file=DESCRIPTOR, containing_type=None, + create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="type", @@ -762,7 +824,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, @@ -770,6 +832,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="severity", @@ -788,6 +851,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="cvss_score", @@ -806,6 +870,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="package_issue", @@ -824,6 +889,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="short_description", @@ -834,7 +900,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, @@ -842,6 +908,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="long_description", @@ -852,7 +919,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, @@ -860,6 +927,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="related_urls", @@ -878,6 +946,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="effective_severity", @@ -896,6 +965,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="fix_available", @@ -914,6 +984,7 @@ extension_scope=None, serialized_options=None, file=DESCRIPTOR, + create_key=_descriptor._internal_create_key, ), ], extensions=[], @@ -924,19 +995,19 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1071, - serialized_end=1644, + serialized_start=1103, + serialized_end=1676, ) _VULNERABILITYNOTE_DETAIL.fields_by_name[ "affected_version_start" -].message_type = grafeas__v1_dot_proto_dot_package__pb2._VERSION +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2._VERSION _VULNERABILITYNOTE_DETAIL.fields_by_name[ "affected_version_end" -].message_type = grafeas__v1_dot_proto_dot_package__pb2._VERSION +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2._VERSION _VULNERABILITYNOTE_DETAIL.fields_by_name[ "fixed_version" -].message_type = grafeas__v1_dot_proto_dot_package__pb2._VERSION +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2._VERSION _VULNERABILITYNOTE_DETAIL.fields_by_name[ "source_update_time" ].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP @@ -952,7 +1023,7 @@ _VULNERABILITYNOTE.fields_by_name["details"].message_type = _VULNERABILITYNOTE_DETAIL _VULNERABILITYNOTE.fields_by_name[ "cvss_v3" -].message_type = grafeas__v1_dot_proto_dot_cvss__pb2._CVSSV3 +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_cvss__pb2._CVSSV3 _VULNERABILITYNOTE.fields_by_name[ "windows_details" ].message_type = _VULNERABILITYNOTE_WINDOWSDETAIL @@ -961,10 +1032,10 @@ ].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _VULNERABILITYOCCURRENCE_PACKAGEISSUE.fields_by_name[ "affected_version" -].message_type = grafeas__v1_dot_proto_dot_package__pb2._VERSION +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2._VERSION _VULNERABILITYOCCURRENCE_PACKAGEISSUE.fields_by_name[ "fixed_version" -].message_type = grafeas__v1_dot_proto_dot_package__pb2._VERSION +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_package__pb2._VERSION _VULNERABILITYOCCURRENCE_PACKAGEISSUE.containing_type = _VULNERABILITYOCCURRENCE _VULNERABILITYOCCURRENCE.fields_by_name["severity"].enum_type = _SEVERITY _VULNERABILITYOCCURRENCE.fields_by_name[ @@ -972,7 +1043,7 @@ ].message_type = _VULNERABILITYOCCURRENCE_PACKAGEISSUE _VULNERABILITYOCCURRENCE.fields_by_name[ "related_urls" -].message_type = grafeas__v1_dot_proto_dot_common__pb2._RELATEDURL +].message_type = grafeas_dot_grafeas__v1_dot_proto_dot_common__pb2._RELATEDURL _VULNERABILITYOCCURRENCE.fields_by_name["effective_severity"].enum_type = _SEVERITY DESCRIPTOR.message_types_by_name["VulnerabilityNote"] = _VULNERABILITYNOTE DESCRIPTOR.message_types_by_name["VulnerabilityOccurrence"] = _VULNERABILITYOCCURRENCE @@ -982,15 +1053,16 @@ VulnerabilityNote = _reflection.GeneratedProtocolMessageType( "VulnerabilityNote", (_message.Message,), - dict( - Detail=_reflection.GeneratedProtocolMessageType( + { + "Detail": _reflection.GeneratedProtocolMessageType( "Detail", (_message.Message,), - dict( - DESCRIPTOR=_VULNERABILITYNOTE_DETAIL, - __module__="grafeas_v1.proto.vulnerability_pb2", - __doc__="""A detail for a distro and package affected by this vulnerability and + { + "DESCRIPTOR": _VULNERABILITYNOTE_DETAIL, + "__module__": "grafeas.grafeas_v1.proto.vulnerability_pb2", + "__doc__": """A detail for a distro and package affected by this vulnerability and its associated fix (if one is available). + Attributes: severity_name: The distro assigned severity of this vulnerability. @@ -1012,8 +1084,8 @@ (example: [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability database, - affected\_version\_start and affected\_version\_end will be - the same in that Detail. + affected_version_start and affected_version_end will be the + same in that Detail. affected_version_end: The version number at the end of an interval in which this vulnerability exists. A vulnerability can affect a package @@ -1021,17 +1093,17 @@ (example: [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability database, - affected\_version\_start and affected\_version\_end will be - the same in that Detail. + affected_version_start and affected_version_end will be the + same in that Detail. fixed_cpe_uri: The distro recommended `CPE URI `__ to update to that contains a fix for this vulnerability. It is possible for this - to be different from the affected\_cpe\_uri. + to be different from the affected_cpe_uri. fixed_package: The distro recommended package to update to that contains a fix for this vulnerability. It is possible for this to be - different from the affected\_package. + different from the affected_package. fixed_version: The distro recommended version to update to that contains a fix for this vulnerability. Setting this to @@ -1042,22 +1114,22 @@ source_update_time: The time this information was last changed at the source. This is an upstream timestamp from the underlying information - source - e.g. Ubuntu security tracker. + source - e.g. Ubuntu security tracker. """, # @@protoc_insertion_point(class_scope:grafeas.v1.VulnerabilityNote.Detail) - ), + }, ), - WindowsDetail=_reflection.GeneratedProtocolMessageType( + "WindowsDetail": _reflection.GeneratedProtocolMessageType( "WindowsDetail", (_message.Message,), - dict( - KnowledgeBase=_reflection.GeneratedProtocolMessageType( + { + "KnowledgeBase": _reflection.GeneratedProtocolMessageType( "KnowledgeBase", (_message.Message,), - dict( - DESCRIPTOR=_VULNERABILITYNOTE_WINDOWSDETAIL_KNOWLEDGEBASE, - __module__="grafeas_v1.proto.vulnerability_pb2", - __doc__=""" + { + "DESCRIPTOR": _VULNERABILITYNOTE_WINDOWSDETAIL_KNOWLEDGEBASE, + "__module__": "grafeas.grafeas_v1.proto.vulnerability_pb2", + "__doc__": """ Attributes: name: The KB name (generally of the form KB[0-9]+ (e.g., KB123456)). @@ -1066,11 +1138,11 @@ (https://www.catalog.update.microsoft.com/). """, # @@protoc_insertion_point(class_scope:grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase) - ), + }, ), - DESCRIPTOR=_VULNERABILITYNOTE_WINDOWSDETAIL, - __module__="grafeas_v1.proto.vulnerability_pb2", - __doc__=""" + "DESCRIPTOR": _VULNERABILITYNOTE_WINDOWSDETAIL, + "__module__": "grafeas.grafeas_v1.proto.vulnerability_pb2", + "__doc__": """ Attributes: cpe_uri: Required. The `CPE URI @@ -1087,11 +1159,12 @@ Currently any listed KBs presence is considered a fix. """, # @@protoc_insertion_point(class_scope:grafeas.v1.VulnerabilityNote.WindowsDetail) - ), + }, ), - DESCRIPTOR=_VULNERABILITYNOTE, - __module__="grafeas_v1.proto.vulnerability_pb2", - __doc__="""A security vulnerability that can be found in resources. + "DESCRIPTOR": _VULNERABILITYNOTE, + "__module__": "grafeas.grafeas_v1.proto.vulnerability_pb2", + "__doc__": """A security vulnerability that can be found in resources. + Attributes: cvss_score: The CVSS score of this vulnerability. CVSS score is on a scale @@ -1106,17 +1179,17 @@ The full description of the CVSSv3 for this vulnerability. windows_details: Windows details get their own format because the information - format and model don't match a normal detail. Specifically + format and model don’t match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version. source_update_time: The time this information was last changed at the source. This is an upstream timestamp from the underlying information - source - e.g. Ubuntu security tracker. + source - e.g. Ubuntu security tracker. """, # @@protoc_insertion_point(class_scope:grafeas.v1.VulnerabilityNote) - ), + }, ) _sym_db.RegisterMessage(VulnerabilityNote) _sym_db.RegisterMessage(VulnerabilityNote.Detail) @@ -1126,15 +1199,16 @@ VulnerabilityOccurrence = _reflection.GeneratedProtocolMessageType( "VulnerabilityOccurrence", (_message.Message,), - dict( - PackageIssue=_reflection.GeneratedProtocolMessageType( + { + "PackageIssue": _reflection.GeneratedProtocolMessageType( "PackageIssue", (_message.Message,), - dict( - DESCRIPTOR=_VULNERABILITYOCCURRENCE_PACKAGEISSUE, - __module__="grafeas_v1.proto.vulnerability_pb2", - __doc__="""A detail for a distro and package this vulnerability occurrence was + { + "DESCRIPTOR": _VULNERABILITYOCCURRENCE_PACKAGEISSUE, + "__module__": "grafeas.grafeas_v1.proto.vulnerability_pb2", + "__doc__": """A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available). + Attributes: affected_cpe_uri: Required. The `CPE URI @@ -1148,10 +1222,10 @@ fixed_cpe_uri: The `CPE URI `__ this vulnerability was fixed in. It is possible for this to be - different from the affected\_cpe\_uri. + different from the affected_cpe_uri. fixed_package: The package this vulnerability was fixed in. It is possible - for this to be different from the affected\_package. + for this to be different from the affected_package. fixed_version: Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is @@ -1160,11 +1234,12 @@ Output only. Whether a fix is available for this package. """, # @@protoc_insertion_point(class_scope:grafeas.v1.VulnerabilityOccurrence.PackageIssue) - ), + }, ), - DESCRIPTOR=_VULNERABILITYOCCURRENCE, - __module__="grafeas_v1.proto.vulnerability_pb2", - __doc__="""An occurrence of a severity vulnerability on a resource. + "DESCRIPTOR": _VULNERABILITYOCCURRENCE, + "__module__": "grafeas.grafeas_v1.proto.vulnerability_pb2", + "__doc__": """An occurrence of a severity vulnerability on a resource. + Attributes: type: The type of package; whether native or non native (e.g., ruby @@ -1194,7 +1269,7 @@ a fix available. """, # @@protoc_insertion_point(class_scope:grafeas.v1.VulnerabilityOccurrence) - ), + }, ) _sym_db.RegisterMessage(VulnerabilityOccurrence) _sym_db.RegisterMessage(VulnerabilityOccurrence.PackageIssue) diff --git a/packages/grafeas/scripts/decrypt-secrets.sh b/packages/grafeas/scripts/decrypt-secrets.sh new file mode 100755 index 000000000000..ff599eb2af25 --- /dev/null +++ b/packages/grafeas/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/grafeas/scripts/readme-gen/readme_gen.py b/packages/grafeas/scripts/readme-gen/readme_gen.py new file mode 100644 index 000000000000..d309d6e97518 --- /dev/null +++ b/packages/grafeas/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/grafeas/scripts/readme-gen/templates/README.tmpl.rst b/packages/grafeas/scripts/readme-gen/templates/README.tmpl.rst new file mode 100644 index 000000000000..4fd239765b0a --- /dev/null +++ b/packages/grafeas/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/grafeas/scripts/readme-gen/templates/auth.tmpl.rst b/packages/grafeas/scripts/readme-gen/templates/auth.tmpl.rst new file mode 100644 index 000000000000..1446b94a5e3a --- /dev/null +++ b/packages/grafeas/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/grafeas/scripts/readme-gen/templates/auth_api_key.tmpl.rst b/packages/grafeas/scripts/readme-gen/templates/auth_api_key.tmpl.rst new file mode 100644 index 000000000000..11957ce2714a --- /dev/null +++ b/packages/grafeas/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/grafeas/scripts/readme-gen/templates/install_deps.tmpl.rst b/packages/grafeas/scripts/readme-gen/templates/install_deps.tmpl.rst new file mode 100644 index 000000000000..a0406dba8c84 --- /dev/null +++ b/packages/grafeas/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/grafeas/scripts/readme-gen/templates/install_portaudio.tmpl.rst b/packages/grafeas/scripts/readme-gen/templates/install_portaudio.tmpl.rst new file mode 100644 index 000000000000..5ea33d18c00c --- /dev/null +++ b/packages/grafeas/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/grafeas/synth.metadata b/packages/grafeas/synth.metadata index d3ec2280cf5b..307cd93937a5 100644 --- a/packages/grafeas/synth.metadata +++ b/packages/grafeas/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-grafeas", - "sha": "42638ee7fd79bc62dbc25a39975369839b4f83d4" + "remote": "https://github.com/googleapis/python-grafeas.git", + "sha": "5a085e3bcff42c1f7492656766b2f287078f1ed5" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "756b174de4a122461993c1c583345533d819936d", - "internalRef": "308824110" + "sha": "79a17b8c64efa7bafff0a16b467754c73d570b6e", + "internalRef": "317385359" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "01b6f23d24b27878b48667ce597876d66b59780e" + "sha": "483f18635c3af10031435535268abe001ad69e7c" } } ], @@ -37,8 +30,7 @@ "apiName": "grafeas", "apiVersion": "v1", "language": "python", - "generator": "gapic", - "config": "grafeas/artman_grafeas_v1.yaml" + "generator": "bazel" } } ] diff --git a/packages/grafeas/synth.py b/packages/grafeas/synth.py index 675919541fac..ec49e59d7cdb 100644 --- a/packages/grafeas/synth.py +++ b/packages/grafeas/synth.py @@ -72,8 +72,8 @@ # Fix docstrings with no summary lines s.replace( "grafeas/grafeas_v1/proto/vulnerability_pb2.py", - r"""(\s+)__doc__ = \"\"\"Attributes:""", - """\g<1>__doc__=\"\"\" + r"""(\s+)["']__doc__["']: \"\"\"Attributes:""", + """\g<1>"__doc__": \"\"\" Attributes:""", ) @@ -353,10 +353,14 @@ def from_service_account_file\(cls, filename, \*args, \*\*kwargs\): \g<1>client=grafeas_v1.GrafeasClient(transport)""", ) + # ---------------------------------------------------------------------------- # Add templated files # ---------------------------------------------------------------------------- templated_files = common.py_library(unit_cov_level=78, cov_level=78) -s.move(templated_files, excludes=["noxfile.py"]) +s.move(templated_files) + +# TODO(busunkim): Use latest sphinx after microgenerator transition +s.replace("noxfile.py", """['"]sphinx['"]""", '"sphinx<3.0.0"') s.shell.run(["nox", "-s", "blacken"], hide_output=False) diff --git a/packages/grafeas/testing/.gitignore b/packages/grafeas/testing/.gitignore new file mode 100644 index 000000000000..b05fbd630881 --- /dev/null +++ b/packages/grafeas/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/grafeas/tests/unit/gapic/v1/test_grafeas_client_v1.py b/packages/grafeas/tests/unit/gapic/v1/test_grafeas_client_v1.py index 1e7bce0944ae..5ac0efb61c95 100644 --- a/packages/grafeas/tests/unit/gapic/v1/test_grafeas_client_v1.py +++ b/packages/grafeas/tests/unit/gapic/v1/test_grafeas_client_v1.py @@ -62,92 +62,6 @@ class CustomException(Exception): class TestGrafeasClient(object): - def test_delete_occurrence(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - address = "[SERVICE_ADDRESS]" - - scopes = "SCOPE" - - transport = grafeas_grpc_transport.GrafeasGrpcTransport(address, scopes) - - client = grafeas_v1.GrafeasClient(transport) - - # Setup Request - name = client.occurrence_path("[PROJECT]", "[OCCURRENCE]") - - client.delete_occurrence(name) - - assert len(channel.requests) == 1 - expected_request = grafeas_pb2.DeleteOccurrenceRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_occurrence_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 - address = "[SERVICE_ADDRESS]" - - scopes = "SCOPE" - - transport = grafeas_grpc_transport.GrafeasGrpcTransport(address, scopes) - - client = grafeas_v1.GrafeasClient(transport) - - # Setup request - name = client.occurrence_path("[PROJECT]", "[OCCURRENCE]") - - with pytest.raises(CustomException): - client.delete_occurrence(name) - - def test_delete_note(self): - channel = ChannelStub() - patch = mock.patch("google.api_core.grpc_helpers.create_channel") - with patch as create_channel: - create_channel.return_value = channel - address = "[SERVICE_ADDRESS]" - - scopes = "SCOPE" - - transport = grafeas_grpc_transport.GrafeasGrpcTransport(address, scopes) - - client = grafeas_v1.GrafeasClient(transport) - - # Setup Request - name = client.note_path("[PROJECT]", "[NOTE]") - - client.delete_note(name) - - assert len(channel.requests) == 1 - expected_request = grafeas_pb2.DeleteNoteRequest(name=name) - actual_request = channel.requests[0][1] - assert expected_request == actual_request - - def test_delete_note_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 - address = "[SERVICE_ADDRESS]" - - scopes = "SCOPE" - - transport = grafeas_grpc_transport.GrafeasGrpcTransport(address, scopes) - - client = grafeas_v1.GrafeasClient(transport) - - # Setup request - name = client.note_path("[PROJECT]", "[NOTE]") - - with pytest.raises(CustomException): - client.delete_note(name) - def test_get_occurrence(self): # Setup Expected Response name_2 = "name2-1052831874" @@ -264,6 +178,49 @@ def test_list_occurrences_exception(self): with pytest.raises(CustomException): list(paged_list_response) + def test_delete_occurrence(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + address = "[SERVICE_ADDRESS]" + + scopes = "SCOPE" + + transport = grafeas_grpc_transport.GrafeasGrpcTransport(address, scopes) + + client = grafeas_v1.GrafeasClient(transport) + + # Setup Request + name = client.occurrence_path("[PROJECT]", "[OCCURRENCE]") + + client.delete_occurrence(name) + + assert len(channel.requests) == 1 + expected_request = grafeas_pb2.DeleteOccurrenceRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_occurrence_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 + address = "[SERVICE_ADDRESS]" + + scopes = "SCOPE" + + transport = grafeas_grpc_transport.GrafeasGrpcTransport(address, scopes) + + client = grafeas_v1.GrafeasClient(transport) + + # Setup request + name = client.occurrence_path("[PROJECT]", "[OCCURRENCE]") + + with pytest.raises(CustomException): + client.delete_occurrence(name) + def test_create_occurrence(self): # Setup Expected Response name = "name3373707" @@ -610,6 +567,49 @@ def test_list_notes_exception(self): with pytest.raises(CustomException): list(paged_list_response) + def test_delete_note(self): + channel = ChannelStub() + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + address = "[SERVICE_ADDRESS]" + + scopes = "SCOPE" + + transport = grafeas_grpc_transport.GrafeasGrpcTransport(address, scopes) + + client = grafeas_v1.GrafeasClient(transport) + + # Setup Request + name = client.note_path("[PROJECT]", "[NOTE]") + + client.delete_note(name) + + assert len(channel.requests) == 1 + expected_request = grafeas_pb2.DeleteNoteRequest(name=name) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_delete_note_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 + address = "[SERVICE_ADDRESS]" + + scopes = "SCOPE" + + transport = grafeas_grpc_transport.GrafeasGrpcTransport(address, scopes) + + client = grafeas_v1.GrafeasClient(transport) + + # Setup request + name = client.note_path("[PROJECT]", "[NOTE]") + + with pytest.raises(CustomException): + client.delete_note(name) + def test_create_note(self): # Setup Expected Response name = "name3373707"