From 36f1edd475a0de1a2a4f488d9740a6f3b2f64a8f Mon Sep 17 00:00:00 2001 From: kse3hi Date: Sun, 26 Nov 2023 11:51:35 +0000 Subject: [PATCH] Update license headers and fix pre-commit --- .dapr/components/pubsub.yaml | 2 +- .dapr/config.yaml | 2 +- .devcontainer/Dockerfile | 2 +- .devcontainer/scripts/configure-proxies.sh | 2 +- .devcontainer/scripts/container-set.sh | 2 +- .devcontainer/scripts/postCreateCommand.sh | 2 +- .github/ISSUE_TEMPLATE/bug-report.yml | 14 + .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/ISSUE_TEMPLATE/feature-request.yml | 14 + .github/ISSUE_TEMPLATE/question.yml | 14 + .github/actions/pre-commit-action/action.yml | 2 +- .github/dependabot.yml | 2 +- .github/workflows/check-licenses.yml | 2 +- .github/workflows/ci.yaml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/project-creation.yaml | 2 +- .github/workflows/release.yaml | 2 +- .gitignore | 2 +- .licensechecker.yml | 2 +- .ort.yml | 2 +- .pre-commit-config.yaml | 61 +++-- .project-creation/.skeleton/tests/__init__.py | 2 +- .project-creation/run.py | 16 +- .../automated_tests/requirements_test.py | 2 +- .../tests/automated_tests/runtime_test.py | 2 +- .project-creation/templates/requirements.in | 2 +- .project-creation/test/test_integration.py | 14 + .vscode/scripts/ensure-dapr.sh | 2 +- .vscode/scripts/exec-check.sh | 2 +- .../scripts/feeder_config/default/mapping.yml | 2 +- .../feeder_config/dogmode/mapping_DogMode.yml | 2 +- .vscode/scripts/run-feedercan.sh | 2 +- .vscode/scripts/run-hvacservice.sh | 2 +- .vscode/scripts/run-mosquitto.sh | 2 +- .vscode/scripts/run-seatservice.sh | 2 +- .vscode/scripts/run-vehicledatabroker-cli.sh | 2 +- .vscode/scripts/run-vehicledatabroker.sh | 2 +- CONTRIBUTING.md | 2 +- examples/__init__.py | 2 +- examples/array-datatype/src/__init__.py | 2 +- examples/array-datatype/src/main.py | 2 +- examples/array-datatype/tests/__init__.py | 2 +- .../tests/integration/__init__.py | 2 +- .../array-datatype/tests/unit/__init__.py | 2 +- examples/atomic-set/src/__init__.py | 2 +- examples/atomic-set/src/main.py | 2 +- examples/atomic-set/tests/__init__.py | 2 +- .../atomic-set/tests/integration/__init__.py | 2 +- examples/atomic-set/tests/unit/__init__.py | 2 +- examples/datapoint-set/src/__init__.py | 2 +- examples/datapoint-set/src/main.py | 2 +- examples/datapoint-set/tests/__init__.py | 2 +- .../tests/integration/__init__.py | 2 +- examples/datapoint-set/tests/unit/__init__.py | 2 +- examples/dog-mode/src/__init__.py | 2 +- examples/dog-mode/src/main.py | 2 +- .../dog-mode/src/vehicle_model/__init__.py | 2 +- .../src/vehicle_model/proto/hvac.proto | 2 +- .../src/vehicle_model/proto/hvac_pb2.py | 104 ++++---- .../src/vehicle_model/proto/hvac_pb2.pyi | 48 +++- .../src/vehicle_model/proto/hvac_pb2_grpc.py | 123 +++++---- examples/dog-mode/src/vehicle_model/sample.py | 2 +- examples/dog-mode/tests/__init__.py | 2 +- .../dog-mode/tests/integration/__init__.py | 2 +- examples/dog-mode/tests/unit/__init__.py | 2 +- examples/dynamic-rule/src/__init__.py | 2 +- examples/dynamic-rule/src/main.py | 2 +- examples/dynamic-rule/tests/__init__.py | 2 +- .../tests/integration/__init__.py | 2 +- examples/dynamic-rule/tests/unit/__init__.py | 2 +- examples/run-app.sh | 2 +- examples/seat-adjuster/Dockerfile | 2 +- examples/seat-adjuster/src/__init__.py | 2 +- examples/seat-adjuster/src/main.py | 2 +- examples/seat-adjuster/src/vapp.py | 2 +- examples/seat-adjuster/tests/__init__.py | 2 +- .../tests/integration/__init__.py | 2 +- .../tests/integration/integration_test.py | 2 +- examples/seat-adjuster/tests/unit/__init__.py | 2 +- examples/seat-adjuster/tests/unit/test_run.py | 2 +- examples/static-rule/src/__init__.py | 2 +- examples/static-rule/src/main.py | 2 +- examples/static-rule/tests/__init__.py | 2 +- .../static-rule/tests/integration/__init__.py | 2 +- examples/static-rule/tests/unit/__init__.py | 2 +- examples/vdb-queries/src/__init__.py | 2 +- examples/vdb-queries/src/main.py | 2 +- examples/vdb-queries/tests/__init__.py | 2 +- .../vdb-queries/tests/integration/__init__.py | 2 +- examples/vdb-queries/tests/unit/__init__.py | 2 +- generate-grpc-stubs.sh | 2 +- license_header.txt | 2 +- setup.py | 2 +- tests/__init__.py | 2 +- tests/integration/__init__.py | 2 +- tests/integration/databroker_test.py | 2 +- tests/integration/inttesthelper_test.py | 2 +- tests/integration/pubsub_test.py | 2 +- tests/unit/__init__.py | 2 +- tests/unit/client_test.py | 2 +- tests/unit/dapr_locator_test.py | 2 +- tests/unit/dapr_pusbub_client_test.py | 2 +- tests/unit/model_test.py | 2 +- tests/unit/mqtt_helper_test.py | 2 +- tests/unit/native_locator_test.py | 2 +- tests/unit/native_pusbub_client_test.py | 2 +- tests/unit/vehicle_app_test.py | 2 +- velocitas_sdk/__init__.py | 2 +- velocitas_sdk/base.py | 2 +- velocitas_sdk/config.py | 2 +- velocitas_sdk/dapr/__init__.py | 2 +- velocitas_sdk/dapr/_servicier.py | 2 +- velocitas_sdk/dapr/client.py | 2 +- velocitas_sdk/dapr/locator.py | 2 +- velocitas_sdk/dapr/middleware.py | 2 +- velocitas_sdk/dapr/pubsub.py | 2 +- velocitas_sdk/dapr/server.py | 2 +- velocitas_sdk/model.py | 2 +- velocitas_sdk/native/__init__.py | 2 +- velocitas_sdk/native/locator.py | 2 +- velocitas_sdk/native/middleware.py | 2 +- velocitas_sdk/native/mqtt.py | 2 +- velocitas_sdk/proto/broker_pb2.py | 14 + velocitas_sdk/proto/broker_pb2.pyi | 141 ++++++++-- velocitas_sdk/proto/broker_pb2_grpc.py | 14 + velocitas_sdk/proto/collector_pb2.py | 14 + velocitas_sdk/proto/collector_pb2.pyi | 141 ++++++++-- velocitas_sdk/proto/collector_pb2_grpc.py | 14 + .../proto/sdv/databroker/v1/broker.proto | 2 +- .../proto/sdv/databroker/v1/collector.proto | 2 +- .../proto/sdv/databroker/v1/types.proto | 2 +- velocitas_sdk/proto/types_pb2.py | 14 + velocitas_sdk/proto/types_pb2.pyi | 249 ++++++++++++++++-- velocitas_sdk/proto/types_pb2_grpc.py | 14 + velocitas_sdk/py.typed | 2 +- velocitas_sdk/test/__init__.py | 2 +- velocitas_sdk/test/databroker_testhelper.py | 2 +- velocitas_sdk/test/inttesthelper.py | 2 +- velocitas_sdk/test/mqtt_util.py | 2 +- velocitas_sdk/util/__init__.py | 2 +- velocitas_sdk/util/log.py | 2 +- velocitas_sdk/vdb/__init__.py | 2 +- velocitas_sdk/vdb/client.py | 2 +- velocitas_sdk/vdb/reply.py | 2 +- velocitas_sdk/vdb/subscriptions.py | 2 +- velocitas_sdk/vdb/types.py | 2 +- velocitas_sdk/vehicle_app.py | 2 +- whitelisted-licenses.txt | 2 +- 149 files changed, 943 insertions(+), 342 deletions(-) diff --git a/.dapr/components/pubsub.yaml b/.dapr/components/pubsub.yaml index 7d2a6f98..3ed5e5cf 100644 --- a/.dapr/components/pubsub.yaml +++ b/.dapr/components/pubsub.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.dapr/config.yaml b/.dapr/config.yaml index 94b0e973..23a4979e 100644 --- a/.dapr/config.yaml +++ b/.dapr/config.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 2b6f5ce0..4baacaeb 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.devcontainer/scripts/configure-proxies.sh b/.devcontainer/scripts/configure-proxies.sh index 8edcb2fa..f3573c18 100755 --- a/.devcontainer/scripts/configure-proxies.sh +++ b/.devcontainer/scripts/configure-proxies.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.devcontainer/scripts/container-set.sh b/.devcontainer/scripts/container-set.sh index 60f4372c..4f722a46 100755 --- a/.devcontainer/scripts/container-set.sh +++ b/.devcontainer/scripts/container-set.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.devcontainer/scripts/postCreateCommand.sh b/.devcontainer/scripts/postCreateCommand.sh index 31ad2ef1..787c45d1 100755 --- a/.devcontainer/scripts/postCreateCommand.sh +++ b/.devcontainer/scripts/postCreateCommand.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index 41ff5189..98004eb7 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + name: 🐞 Bug Report description: Provide a general summary of the bug in the title below. title: "[Bug]: " diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 69a919e5..7a309b62 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 8224d245..19b78bcc 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml index 3fb9bbb1..8ab665f6 100644 --- a/.github/ISSUE_TEMPLATE/feature-request.yml +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + name: 🛠️ Feature Request description: Suggest an idea to help us improve our product. title: "[Feature]: " diff --git a/.github/ISSUE_TEMPLATE/question.yml b/.github/ISSUE_TEMPLATE/question.yml index a15e4539..aa462800 100644 --- a/.github/ISSUE_TEMPLATE/question.yml +++ b/.github/ISSUE_TEMPLATE/question.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + name: ❓ Question or general issue description: Approach us with a question title: "[Q]: " diff --git a/.github/actions/pre-commit-action/action.yml b/.github/actions/pre-commit-action/action.yml index 0815fa8a..aaa84dd7 100644 --- a/.github/actions/pre-commit-action/action.yml +++ b/.github/actions/pre-commit-action/action.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.github/dependabot.yml b/.github/dependabot.yml index dc5fb175..61c8598c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.github/workflows/check-licenses.yml b/.github/workflows/check-licenses.yml index 631830d6..7a5bac66 100644 --- a/.github/workflows/check-licenses.yml +++ b/.github/workflows/check-licenses.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 955ca12d..2c37261d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e70cecdc..94a0f841 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.github/workflows/project-creation.yaml b/.github/workflows/project-creation.yaml index aca6d11b..30332678 100644 --- a/.github/workflows/project-creation.yaml +++ b/.github/workflows/project-creation.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Robert Bosch GmbH +# Copyright (c) 2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6384ebca..2a98fd22 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.gitignore b/.gitignore index 66f529f1..5fc09ae5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.licensechecker.yml b/.licensechecker.yml index 02acdf08..bf02d9cb 100644 --- a/.licensechecker.yml +++ b/.licensechecker.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.ort.yml b/.ort.yml index 1db32867..1baef0c9 100644 --- a/.ort.yml +++ b/.ort.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 842bdf80..02a16f17 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at @@ -116,27 +116,38 @@ repos: .*_pb2_grpc.py )$ - # - repo: https://github.com/Lucas-C/pre-commit-hooks - # rev: v1.3.1 - # hooks: - # - id: insert-license - # files: '.*\.(py|pyi|yaml|yml|sh|helmignore|dockerignore|gitignore)$' - # args: - # - --license-filepath - # - license_header.txt - # - --comment-style - # - "#" - # - id: insert-license - # files: '.*\.(proto)$' - # args: - # - --license-filepath - # - license_header.txt - # - --comment-style - # - // - # - id: insert-license - # files: "Dockerfile.*" - # args: - # - --license-filepath - # - license_header.txt - # - --comment-style - # - "#" + - repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.4 + hooks: + - id: insert-license + files: '.*\.(py|pyi|yaml|yml|sh|helmignore|dockerignore|gitignore)$' + exclude: .devcontainer/tests + args: + - --license-filepath + - license_header.txt + - --comment-style + - "#" + - --use-current-year + - --allow-past-years + - --skip-license-insertion-comment=This file is maintained by velocitas CLI, do not modify manually. + - id: insert-license + files: '.*\.(proto)$' + args: + - --license-filepath + - license_header.txt + - --comment-style + - // + - --use-current-year + - --allow-past-years + - --skip-license-insertion-comment=This file is maintained by velocitas CLI, do not modify manually. + - --skip-license-insertion-comment=!/bin/bash + - id: insert-license + files: "Dockerfile.*" + args: + - --license-filepath + - license_header.txt + - --comment-style + - "#" + - --use-current-year + - --allow-past-years + - --skip-license-insertion-comment=This file is maintained by velocitas CLI, do not modify manually. diff --git a/.project-creation/.skeleton/tests/__init__.py b/.project-creation/.skeleton/tests/__init__.py index b3251343..3666cf79 100644 --- a/.project-creation/.skeleton/tests/__init__.py +++ b/.project-creation/.skeleton/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.project-creation/run.py b/.project-creation/run.py index 5b5cb0b5..f86f1157 100644 --- a/.project-creation/run.py +++ b/.project-creation/run.py @@ -1,4 +1,18 @@ -# Copyright (c) 2023 Robert Bosch GmbH +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + +# Copyright (c) 2023 Contributors to the Eclipse Foundation # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.project-creation/templates/.devcontainer/tests/automated_tests/requirements_test.py b/.project-creation/templates/.devcontainer/tests/automated_tests/requirements_test.py index 32b975a4..a50ac4e3 100644 --- a/.project-creation/templates/.devcontainer/tests/automated_tests/requirements_test.py +++ b/.project-creation/templates/.devcontainer/tests/automated_tests/requirements_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Robert Bosch GmbH +# Copyright (c) 2023 Contributors to the Eclipse Foundation # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.project-creation/templates/.devcontainer/tests/automated_tests/runtime_test.py b/.project-creation/templates/.devcontainer/tests/automated_tests/runtime_test.py index 6dbb80ec..f66d4f11 100644 --- a/.project-creation/templates/.devcontainer/tests/automated_tests/runtime_test.py +++ b/.project-creation/templates/.devcontainer/tests/automated_tests/runtime_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Robert Bosch GmbH +# Copyright (c) 2023 Contributors to the Eclipse Foundation # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.project-creation/templates/requirements.in b/.project-creation/templates/requirements.in index 093774d6..fc32a75d 100644 --- a/.project-creation/templates/requirements.in +++ b/.project-creation/templates/requirements.in @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.project-creation/test/test_integration.py b/.project-creation/test/test_integration.py index d364e917..3e64752e 100644 --- a/.project-creation/test/test_integration.py +++ b/.project-creation/test/test_integration.py @@ -1,3 +1,17 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + import os from pytest_check import check diff --git a/.vscode/scripts/ensure-dapr.sh b/.vscode/scripts/ensure-dapr.sh index c9fbbd87..0a690619 100755 --- a/.vscode/scripts/ensure-dapr.sh +++ b/.vscode/scripts/ensure-dapr.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.vscode/scripts/exec-check.sh b/.vscode/scripts/exec-check.sh index 5f9cf3dc..f5156dfd 100755 --- a/.vscode/scripts/exec-check.sh +++ b/.vscode/scripts/exec-check.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.vscode/scripts/feeder_config/default/mapping.yml b/.vscode/scripts/feeder_config/default/mapping.yml index 3c5e4649..4d9bab8b 100644 --- a/.vscode/scripts/feeder_config/default/mapping.yml +++ b/.vscode/scripts/feeder_config/default/mapping.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.vscode/scripts/feeder_config/dogmode/mapping_DogMode.yml b/.vscode/scripts/feeder_config/dogmode/mapping_DogMode.yml index c0ba305f..9b6aeec6 100644 --- a/.vscode/scripts/feeder_config/dogmode/mapping_DogMode.yml +++ b/.vscode/scripts/feeder_config/dogmode/mapping_DogMode.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.vscode/scripts/run-feedercan.sh b/.vscode/scripts/run-feedercan.sh index 57437168..6c1f2789 100755 --- a/.vscode/scripts/run-feedercan.sh +++ b/.vscode/scripts/run-feedercan.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.vscode/scripts/run-hvacservice.sh b/.vscode/scripts/run-hvacservice.sh index 78d5a2c3..36804c96 100755 --- a/.vscode/scripts/run-hvacservice.sh +++ b/.vscode/scripts/run-hvacservice.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.vscode/scripts/run-mosquitto.sh b/.vscode/scripts/run-mosquitto.sh index 460b4844..cccfac21 100755 --- a/.vscode/scripts/run-mosquitto.sh +++ b/.vscode/scripts/run-mosquitto.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.vscode/scripts/run-seatservice.sh b/.vscode/scripts/run-seatservice.sh index c744b432..e819c872 100755 --- a/.vscode/scripts/run-seatservice.sh +++ b/.vscode/scripts/run-seatservice.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.vscode/scripts/run-vehicledatabroker-cli.sh b/.vscode/scripts/run-vehicledatabroker-cli.sh index b0d6e8ea..caaab6fe 100755 --- a/.vscode/scripts/run-vehicledatabroker-cli.sh +++ b/.vscode/scripts/run-vehicledatabroker-cli.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/.vscode/scripts/run-vehicledatabroker.sh b/.vscode/scripts/run-vehicledatabroker.sh index f8b0c8a3..997e2d6c 100755 --- a/.vscode/scripts/run-vehicledatabroker.sh +++ b/.vscode/scripts/run-vehicledatabroker.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b884020c..05fcab05 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -105,7 +105,7 @@ If there are any other `none public python dependencies` (E.g. GitHub links), th Please make sure any file you newly create contains a proper license header like this: ```python -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/__init__.py b/examples/__init__.py index b3251343..3666cf79 100644 --- a/examples/__init__.py +++ b/examples/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/array-datatype/src/__init__.py b/examples/array-datatype/src/__init__.py index b3251343..3666cf79 100644 --- a/examples/array-datatype/src/__init__.py +++ b/examples/array-datatype/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/array-datatype/src/main.py b/examples/array-datatype/src/main.py index bdeb7d37..1f418f83 100644 --- a/examples/array-datatype/src/main.py +++ b/examples/array-datatype/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/array-datatype/tests/__init__.py b/examples/array-datatype/tests/__init__.py index b3251343..3666cf79 100644 --- a/examples/array-datatype/tests/__init__.py +++ b/examples/array-datatype/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/array-datatype/tests/integration/__init__.py b/examples/array-datatype/tests/integration/__init__.py index b3251343..3666cf79 100644 --- a/examples/array-datatype/tests/integration/__init__.py +++ b/examples/array-datatype/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/array-datatype/tests/unit/__init__.py b/examples/array-datatype/tests/unit/__init__.py index b3251343..3666cf79 100644 --- a/examples/array-datatype/tests/unit/__init__.py +++ b/examples/array-datatype/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/atomic-set/src/__init__.py b/examples/atomic-set/src/__init__.py index b3251343..3666cf79 100644 --- a/examples/atomic-set/src/__init__.py +++ b/examples/atomic-set/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/atomic-set/src/main.py b/examples/atomic-set/src/main.py index 265afe9b..35fd0443 100644 --- a/examples/atomic-set/src/main.py +++ b/examples/atomic-set/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/atomic-set/tests/__init__.py b/examples/atomic-set/tests/__init__.py index b3251343..3666cf79 100644 --- a/examples/atomic-set/tests/__init__.py +++ b/examples/atomic-set/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/atomic-set/tests/integration/__init__.py b/examples/atomic-set/tests/integration/__init__.py index b3251343..3666cf79 100644 --- a/examples/atomic-set/tests/integration/__init__.py +++ b/examples/atomic-set/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/atomic-set/tests/unit/__init__.py b/examples/atomic-set/tests/unit/__init__.py index b3251343..3666cf79 100644 --- a/examples/atomic-set/tests/unit/__init__.py +++ b/examples/atomic-set/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/datapoint-set/src/__init__.py b/examples/datapoint-set/src/__init__.py index b3251343..3666cf79 100644 --- a/examples/datapoint-set/src/__init__.py +++ b/examples/datapoint-set/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/datapoint-set/src/main.py b/examples/datapoint-set/src/main.py index 4d1af76f..55716861 100644 --- a/examples/datapoint-set/src/main.py +++ b/examples/datapoint-set/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/datapoint-set/tests/__init__.py b/examples/datapoint-set/tests/__init__.py index b3251343..3666cf79 100644 --- a/examples/datapoint-set/tests/__init__.py +++ b/examples/datapoint-set/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/datapoint-set/tests/integration/__init__.py b/examples/datapoint-set/tests/integration/__init__.py index b3251343..3666cf79 100644 --- a/examples/datapoint-set/tests/integration/__init__.py +++ b/examples/datapoint-set/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/datapoint-set/tests/unit/__init__.py b/examples/datapoint-set/tests/unit/__init__.py index b3251343..3666cf79 100644 --- a/examples/datapoint-set/tests/unit/__init__.py +++ b/examples/datapoint-set/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/dog-mode/src/__init__.py b/examples/dog-mode/src/__init__.py index b3251343..3666cf79 100644 --- a/examples/dog-mode/src/__init__.py +++ b/examples/dog-mode/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/dog-mode/src/main.py b/examples/dog-mode/src/main.py index 8c845afe..1211facc 100644 --- a/examples/dog-mode/src/main.py +++ b/examples/dog-mode/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/dog-mode/src/vehicle_model/__init__.py b/examples/dog-mode/src/vehicle_model/__init__.py index b3251343..3666cf79 100644 --- a/examples/dog-mode/src/vehicle_model/__init__.py +++ b/examples/dog-mode/src/vehicle_model/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/dog-mode/src/vehicle_model/proto/hvac.proto b/examples/dog-mode/src/vehicle_model/proto/hvac.proto index 33c6f1fc..aeb0afc7 100644 --- a/examples/dog-mode/src/vehicle_model/proto/hvac.proto +++ b/examples/dog-mode/src/vehicle_model/proto/hvac.proto @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +// Copyright (c) 2022-2023 Contributors to the Eclipse Foundation // // This program and the accompanying materials are made available under the // terms of the Apache License, Version 2.0 which is available at diff --git a/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.py b/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.py index 84979b2b..2ed4f2d1 100644 --- a/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.py +++ b/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at @@ -22,67 +22,83 @@ from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n\nhvac.proto\x12\x18sdv.edge.comfort.hvac.v1"H\n\x12SetAcStatusRequest\x12\x32\n\x06status\x18\x01 \x01(\x0e\x32".sdv.edge.comfort.hvac.v1.AcStatus"\x12\n\x10SetAcStatusReply",\n\x15SetTemperatureRequest\x12\x13\n\x0btemperature\x18\x01 \x01(\x02"\x15\n\x13SetTemperatureReply*\x1b\n\x08\x41\x63Status\x12\x07\n\x03OFF\x10\x00\x12\x06\n\x02ON\x10\x01\x32\xe1\x01\n\x04Hvac\x12g\n\x0bSetAcStatus\x12,.sdv.edge.comfort.hvac.v1.SetAcStatusRequest\x1a*.sdv.edge.comfort.hvac.v1.SetAcStatusReply\x12p\n\x0eSetTemperature\x12/.sdv.edge.comfort.hvac.v1.SetTemperatureRequest\x1a-.sdv.edge.comfort.hvac.v1.SetTemperatureReplyb\x06proto3' +) - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nhvac.proto\x12\x18sdv.edge.comfort.hvac.v1\"H\n\x12SetAcStatusRequest\x12\x32\n\x06status\x18\x01 \x01(\x0e\x32\".sdv.edge.comfort.hvac.v1.AcStatus\"\x12\n\x10SetAcStatusReply\",\n\x15SetTemperatureRequest\x12\x13\n\x0btemperature\x18\x01 \x01(\x02\"\x15\n\x13SetTemperatureReply*\x1b\n\x08\x41\x63Status\x12\x07\n\x03OFF\x10\x00\x12\x06\n\x02ON\x10\x01\x32\xe1\x01\n\x04Hvac\x12g\n\x0bSetAcStatus\x12,.sdv.edge.comfort.hvac.v1.SetAcStatusRequest\x1a*.sdv.edge.comfort.hvac.v1.SetAcStatusReply\x12p\n\x0eSetTemperature\x12/.sdv.edge.comfort.hvac.v1.SetTemperatureRequest\x1a-.sdv.edge.comfort.hvac.v1.SetTemperatureReplyb\x06proto3') - -_ACSTATUS = DESCRIPTOR.enum_types_by_name['AcStatus'] +_ACSTATUS = DESCRIPTOR.enum_types_by_name["AcStatus"] AcStatus = enum_type_wrapper.EnumTypeWrapper(_ACSTATUS) OFF = 0 ON = 1 -_SETACSTATUSREQUEST = DESCRIPTOR.message_types_by_name['SetAcStatusRequest'] -_SETACSTATUSREPLY = DESCRIPTOR.message_types_by_name['SetAcStatusReply'] -_SETTEMPERATUREREQUEST = DESCRIPTOR.message_types_by_name['SetTemperatureRequest'] -_SETTEMPERATUREREPLY = DESCRIPTOR.message_types_by_name['SetTemperatureReply'] -SetAcStatusRequest = _reflection.GeneratedProtocolMessageType('SetAcStatusRequest', (_message.Message,), { - 'DESCRIPTOR' : _SETACSTATUSREQUEST, - '__module__' : 'hvac_pb2' - # @@protoc_insertion_point(class_scope:sdv.edge.comfort.hvac.v1.SetAcStatusRequest) - }) +_SETACSTATUSREQUEST = DESCRIPTOR.message_types_by_name["SetAcStatusRequest"] +_SETACSTATUSREPLY = DESCRIPTOR.message_types_by_name["SetAcStatusReply"] +_SETTEMPERATUREREQUEST = DESCRIPTOR.message_types_by_name["SetTemperatureRequest"] +_SETTEMPERATUREREPLY = DESCRIPTOR.message_types_by_name["SetTemperatureReply"] +SetAcStatusRequest = _reflection.GeneratedProtocolMessageType( + "SetAcStatusRequest", + (_message.Message,), + { + "DESCRIPTOR": _SETACSTATUSREQUEST, + "__module__": "hvac_pb2" + # @@protoc_insertion_point(class_scope:sdv.edge.comfort.hvac.v1.SetAcStatusRequest) + }, +) _sym_db.RegisterMessage(SetAcStatusRequest) -SetAcStatusReply = _reflection.GeneratedProtocolMessageType('SetAcStatusReply', (_message.Message,), { - 'DESCRIPTOR' : _SETACSTATUSREPLY, - '__module__' : 'hvac_pb2' - # @@protoc_insertion_point(class_scope:sdv.edge.comfort.hvac.v1.SetAcStatusReply) - }) +SetAcStatusReply = _reflection.GeneratedProtocolMessageType( + "SetAcStatusReply", + (_message.Message,), + { + "DESCRIPTOR": _SETACSTATUSREPLY, + "__module__": "hvac_pb2" + # @@protoc_insertion_point(class_scope:sdv.edge.comfort.hvac.v1.SetAcStatusReply) + }, +) _sym_db.RegisterMessage(SetAcStatusReply) -SetTemperatureRequest = _reflection.GeneratedProtocolMessageType('SetTemperatureRequest', (_message.Message,), { - 'DESCRIPTOR' : _SETTEMPERATUREREQUEST, - '__module__' : 'hvac_pb2' - # @@protoc_insertion_point(class_scope:sdv.edge.comfort.hvac.v1.SetTemperatureRequest) - }) +SetTemperatureRequest = _reflection.GeneratedProtocolMessageType( + "SetTemperatureRequest", + (_message.Message,), + { + "DESCRIPTOR": _SETTEMPERATUREREQUEST, + "__module__": "hvac_pb2" + # @@protoc_insertion_point(class_scope:sdv.edge.comfort.hvac.v1.SetTemperatureRequest) + }, +) _sym_db.RegisterMessage(SetTemperatureRequest) -SetTemperatureReply = _reflection.GeneratedProtocolMessageType('SetTemperatureReply', (_message.Message,), { - 'DESCRIPTOR' : _SETTEMPERATUREREPLY, - '__module__' : 'hvac_pb2' - # @@protoc_insertion_point(class_scope:sdv.edge.comfort.hvac.v1.SetTemperatureReply) - }) +SetTemperatureReply = _reflection.GeneratedProtocolMessageType( + "SetTemperatureReply", + (_message.Message,), + { + "DESCRIPTOR": _SETTEMPERATUREREPLY, + "__module__": "hvac_pb2" + # @@protoc_insertion_point(class_scope:sdv.edge.comfort.hvac.v1.SetTemperatureReply) + }, +) _sym_db.RegisterMessage(SetTemperatureReply) -_HVAC = DESCRIPTOR.services_by_name['Hvac'] +_HVAC = DESCRIPTOR.services_by_name["Hvac"] if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - _ACSTATUS._serialized_start=203 - _ACSTATUS._serialized_end=230 - _SETACSTATUSREQUEST._serialized_start=40 - _SETACSTATUSREQUEST._serialized_end=112 - _SETACSTATUSREPLY._serialized_start=114 - _SETACSTATUSREPLY._serialized_end=132 - _SETTEMPERATUREREQUEST._serialized_start=134 - _SETTEMPERATUREREQUEST._serialized_end=178 - _SETTEMPERATUREREPLY._serialized_start=180 - _SETTEMPERATUREREPLY._serialized_end=201 - _HVAC._serialized_start=233 - _HVAC._serialized_end=458 + DESCRIPTOR._options = None + _ACSTATUS._serialized_start = 203 + _ACSTATUS._serialized_end = 230 + _SETACSTATUSREQUEST._serialized_start = 40 + _SETACSTATUSREQUEST._serialized_end = 112 + _SETACSTATUSREPLY._serialized_start = 114 + _SETACSTATUSREPLY._serialized_end = 132 + _SETTEMPERATUREREQUEST._serialized_start = 134 + _SETTEMPERATUREREQUEST._serialized_end = 178 + _SETTEMPERATUREREPLY._serialized_start = 180 + _SETTEMPERATUREREPLY._serialized_end = 201 + _HVAC._serialized_start = 233 + _HVAC._serialized_end = 458 # @@protoc_insertion_point(module_scope) diff --git a/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.pyi b/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.pyi index 99116e5e..a7e508dd 100644 --- a/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.pyi +++ b/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.pyi @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at @@ -26,12 +26,17 @@ import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _AcStatus: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType -class _AcStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AcStatus.ValueType], builtins.type): + +class _AcStatusEnumTypeWrapper( + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AcStatus.ValueType], + builtins.type, +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor OFF: _AcStatus.ValueType # 0 ON: _AcStatus.ValueType # 1 + class AcStatus(_AcStatus, metaclass=_AcStatusEnumTypeWrapper): pass @@ -39,53 +44,68 @@ OFF: AcStatus.ValueType # 0 ON: AcStatus.ValueType # 1 global___AcStatus = AcStatus - class SetAcStatusRequest(google.protobuf.message.Message): """* @brief """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor STATUS_FIELD_NUMBER: builtins.int status: global___AcStatus.ValueType """The desired status of A/C""" - def __init__(self, + def __init__( + self, *, status: global___AcStatus.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["status",b"status"]) -> None: ... + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["status", b"status"] + ) -> None: ... + global___SetAcStatusRequest = SetAcStatusRequest class SetAcStatusReply(google.protobuf.message.Message): """* @brief """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___SetAcStatusReply = SetAcStatusReply class SetTemperatureRequest(google.protobuf.message.Message): """* @brief """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor TEMPERATURE_FIELD_NUMBER: builtins.int temperature: builtins.float """The desired cabin temperature in degree Celsius""" - def __init__(self, + def __init__( + self, *, temperature: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["temperature",b"temperature"]) -> None: ... + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["temperature", b"temperature"] + ) -> None: ... + global___SetTemperatureRequest = SetTemperatureRequest class SetTemperatureReply(google.protobuf.message.Message): """* @brief """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self, - ) -> None: ... + def __init__( + self, + ) -> None: ... + global___SetTemperatureReply = SetTemperatureReply diff --git a/examples/dog-mode/src/vehicle_model/proto/hvac_pb2_grpc.py b/examples/dog-mode/src/vehicle_model/proto/hvac_pb2_grpc.py index b7ff2f8a..ebc3a2d0 100644 --- a/examples/dog-mode/src/vehicle_model/proto/hvac_pb2_grpc.py +++ b/examples/dog-mode/src/vehicle_model/proto/hvac_pb2_grpc.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at @@ -36,15 +36,15 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.SetAcStatus = channel.unary_unary( - '/sdv.edge.comfort.hvac.v1.Hvac/SetAcStatus', - request_serializer=hvac__pb2.SetAcStatusRequest.SerializeToString, - response_deserializer=hvac__pb2.SetAcStatusReply.FromString, - ) + "/sdv.edge.comfort.hvac.v1.Hvac/SetAcStatus", + request_serializer=hvac__pb2.SetAcStatusRequest.SerializeToString, + response_deserializer=hvac__pb2.SetAcStatusReply.FromString, + ) self.SetTemperature = channel.unary_unary( - '/sdv.edge.comfort.hvac.v1.Hvac/SetTemperature', - request_serializer=hvac__pb2.SetTemperatureRequest.SerializeToString, - response_deserializer=hvac__pb2.SetTemperatureReply.FromString, - ) + "/sdv.edge.comfort.hvac.v1.Hvac/SetTemperature", + request_serializer=hvac__pb2.SetTemperatureRequest.SerializeToString, + response_deserializer=hvac__pb2.SetTemperatureReply.FromString, + ) class HvacServicer(object): @@ -67,8 +67,8 @@ def SetAcStatus(self, request, context): * INTERNAL - A HVAC service internal error happened - see error message for details """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def SetTemperature(self, request, context): """* Set the desired cabin temparature @@ -81,29 +81,30 @@ def SetTemperature(self, request, context): * INTERNAL - A seat service internal error happened - see error message for details """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_HvacServicer_to_server(servicer, server): rpc_method_handlers = { - 'SetAcStatus': grpc.unary_unary_rpc_method_handler( - servicer.SetAcStatus, - request_deserializer=hvac__pb2.SetAcStatusRequest.FromString, - response_serializer=hvac__pb2.SetAcStatusReply.SerializeToString, - ), - 'SetTemperature': grpc.unary_unary_rpc_method_handler( - servicer.SetTemperature, - request_deserializer=hvac__pb2.SetTemperatureRequest.FromString, - response_serializer=hvac__pb2.SetTemperatureReply.SerializeToString, - ), + "SetAcStatus": grpc.unary_unary_rpc_method_handler( + servicer.SetAcStatus, + request_deserializer=hvac__pb2.SetAcStatusRequest.FromString, + response_serializer=hvac__pb2.SetAcStatusReply.SerializeToString, + ), + "SetTemperature": grpc.unary_unary_rpc_method_handler( + servicer.SetTemperature, + request_deserializer=hvac__pb2.SetTemperatureRequest.FromString, + response_serializer=hvac__pb2.SetTemperatureReply.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( - 'sdv.edge.comfort.hvac.v1.Hvac', rpc_method_handlers) + "sdv.edge.comfort.hvac.v1.Hvac", rpc_method_handlers + ) server.add_generic_rpc_handlers((generic_handler,)) - # This class is part of an EXPERIMENTAL API. +# This class is part of an EXPERIMENTAL API. class Hvac(object): """* @brief Example HVAC service for controlling the heating, ventilation, and air @@ -115,35 +116,59 @@ class Hvac(object): """ @staticmethod - def SetAcStatus(request, + def SetAcStatus( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/sdv.edge.comfort.hvac.v1.Hvac/SetAcStatus', + "/sdv.edge.comfort.hvac.v1.Hvac/SetAcStatus", hvac__pb2.SetAcStatusRequest.SerializeToString, hvac__pb2.SetAcStatusReply.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) @staticmethod - def SetTemperature(request, + def SetTemperature( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/sdv.edge.comfort.hvac.v1.Hvac/SetTemperature', + "/sdv.edge.comfort.hvac.v1.Hvac/SetTemperature", hvac__pb2.SetTemperatureRequest.SerializeToString, hvac__pb2.SetTemperatureReply.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/examples/dog-mode/src/vehicle_model/sample.py b/examples/dog-mode/src/vehicle_model/sample.py index e459b353..3c16cfae 100644 --- a/examples/dog-mode/src/vehicle_model/sample.py +++ b/examples/dog-mode/src/vehicle_model/sample.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/dog-mode/tests/__init__.py b/examples/dog-mode/tests/__init__.py index b3251343..3666cf79 100644 --- a/examples/dog-mode/tests/__init__.py +++ b/examples/dog-mode/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/dog-mode/tests/integration/__init__.py b/examples/dog-mode/tests/integration/__init__.py index b3251343..3666cf79 100644 --- a/examples/dog-mode/tests/integration/__init__.py +++ b/examples/dog-mode/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/dog-mode/tests/unit/__init__.py b/examples/dog-mode/tests/unit/__init__.py index b3251343..3666cf79 100644 --- a/examples/dog-mode/tests/unit/__init__.py +++ b/examples/dog-mode/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/dynamic-rule/src/__init__.py b/examples/dynamic-rule/src/__init__.py index b3251343..3666cf79 100644 --- a/examples/dynamic-rule/src/__init__.py +++ b/examples/dynamic-rule/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/dynamic-rule/src/main.py b/examples/dynamic-rule/src/main.py index 9ac76271..f655dea4 100644 --- a/examples/dynamic-rule/src/main.py +++ b/examples/dynamic-rule/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/dynamic-rule/tests/__init__.py b/examples/dynamic-rule/tests/__init__.py index b3251343..3666cf79 100644 --- a/examples/dynamic-rule/tests/__init__.py +++ b/examples/dynamic-rule/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/dynamic-rule/tests/integration/__init__.py b/examples/dynamic-rule/tests/integration/__init__.py index b3251343..3666cf79 100644 --- a/examples/dynamic-rule/tests/integration/__init__.py +++ b/examples/dynamic-rule/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/dynamic-rule/tests/unit/__init__.py b/examples/dynamic-rule/tests/unit/__init__.py index b3251343..3666cf79 100644 --- a/examples/dynamic-rule/tests/unit/__init__.py +++ b/examples/dynamic-rule/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/run-app.sh b/examples/run-app.sh index 3faae67c..0bbd2cb2 100755 --- a/examples/run-app.sh +++ b/examples/run-app.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/seat-adjuster/Dockerfile b/examples/seat-adjuster/Dockerfile index 33870e1f..03ebe4c2 100644 --- a/examples/seat-adjuster/Dockerfile +++ b/examples/seat-adjuster/Dockerfile @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/seat-adjuster/src/__init__.py b/examples/seat-adjuster/src/__init__.py index b3251343..3666cf79 100644 --- a/examples/seat-adjuster/src/__init__.py +++ b/examples/seat-adjuster/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/seat-adjuster/src/main.py b/examples/seat-adjuster/src/main.py index f4975394..7e3752dc 100644 --- a/examples/seat-adjuster/src/main.py +++ b/examples/seat-adjuster/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/seat-adjuster/src/vapp.py b/examples/seat-adjuster/src/vapp.py index f92d1f43..b2f99e7c 100644 --- a/examples/seat-adjuster/src/vapp.py +++ b/examples/seat-adjuster/src/vapp.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/seat-adjuster/tests/__init__.py b/examples/seat-adjuster/tests/__init__.py index b3251343..3666cf79 100644 --- a/examples/seat-adjuster/tests/__init__.py +++ b/examples/seat-adjuster/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/seat-adjuster/tests/integration/__init__.py b/examples/seat-adjuster/tests/integration/__init__.py index b3251343..3666cf79 100644 --- a/examples/seat-adjuster/tests/integration/__init__.py +++ b/examples/seat-adjuster/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/seat-adjuster/tests/integration/integration_test.py b/examples/seat-adjuster/tests/integration/integration_test.py index c694ce38..8083e0dd 100644 --- a/examples/seat-adjuster/tests/integration/integration_test.py +++ b/examples/seat-adjuster/tests/integration/integration_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/seat-adjuster/tests/unit/__init__.py b/examples/seat-adjuster/tests/unit/__init__.py index b3251343..3666cf79 100644 --- a/examples/seat-adjuster/tests/unit/__init__.py +++ b/examples/seat-adjuster/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/seat-adjuster/tests/unit/test_run.py b/examples/seat-adjuster/tests/unit/test_run.py index 649edcfd..80bd7174 100644 --- a/examples/seat-adjuster/tests/unit/test_run.py +++ b/examples/seat-adjuster/tests/unit/test_run.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/static-rule/src/__init__.py b/examples/static-rule/src/__init__.py index b3251343..3666cf79 100644 --- a/examples/static-rule/src/__init__.py +++ b/examples/static-rule/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/static-rule/src/main.py b/examples/static-rule/src/main.py index 9b0cbc21..7a9b5d02 100644 --- a/examples/static-rule/src/main.py +++ b/examples/static-rule/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/static-rule/tests/__init__.py b/examples/static-rule/tests/__init__.py index b3251343..3666cf79 100644 --- a/examples/static-rule/tests/__init__.py +++ b/examples/static-rule/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/static-rule/tests/integration/__init__.py b/examples/static-rule/tests/integration/__init__.py index b3251343..3666cf79 100644 --- a/examples/static-rule/tests/integration/__init__.py +++ b/examples/static-rule/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/static-rule/tests/unit/__init__.py b/examples/static-rule/tests/unit/__init__.py index b3251343..3666cf79 100644 --- a/examples/static-rule/tests/unit/__init__.py +++ b/examples/static-rule/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/vdb-queries/src/__init__.py b/examples/vdb-queries/src/__init__.py index b3251343..3666cf79 100644 --- a/examples/vdb-queries/src/__init__.py +++ b/examples/vdb-queries/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/vdb-queries/src/main.py b/examples/vdb-queries/src/main.py index cfdb8462..eda527fc 100755 --- a/examples/vdb-queries/src/main.py +++ b/examples/vdb-queries/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/vdb-queries/tests/__init__.py b/examples/vdb-queries/tests/__init__.py index b3251343..3666cf79 100644 --- a/examples/vdb-queries/tests/__init__.py +++ b/examples/vdb-queries/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/vdb-queries/tests/integration/__init__.py b/examples/vdb-queries/tests/integration/__init__.py index b3251343..3666cf79 100644 --- a/examples/vdb-queries/tests/integration/__init__.py +++ b/examples/vdb-queries/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/examples/vdb-queries/tests/unit/__init__.py b/examples/vdb-queries/tests/unit/__init__.py index b3251343..3666cf79 100644 --- a/examples/vdb-queries/tests/unit/__init__.py +++ b/examples/vdb-queries/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/generate-grpc-stubs.sh b/generate-grpc-stubs.sh index bdfad329..df464ad5 100755 --- a/generate-grpc-stubs.sh +++ b/generate-grpc-stubs.sh @@ -1,5 +1,5 @@ #!/bin/zsh -# Copyright (c) 2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/license_header.txt b/license_header.txt index e3295bc8..c5a7a692 100644 --- a/license_header.txt +++ b/license_header.txt @@ -1,4 +1,4 @@ -Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +Copyright (c) 2023 Contributors to the Eclipse Foundation This program and the accompanying materials are made available under the terms of the Apache License, Version 2.0 which is available at diff --git a/setup.py b/setup.py index c09703b0..143ff86b 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/__init__.py b/tests/__init__.py index b3251343..3666cf79 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py index b3251343..3666cf79 100644 --- a/tests/integration/__init__.py +++ b/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/integration/databroker_test.py b/tests/integration/databroker_test.py index 83b4e368..44509e1c 100755 --- a/tests/integration/databroker_test.py +++ b/tests/integration/databroker_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/integration/inttesthelper_test.py b/tests/integration/inttesthelper_test.py index 5e828b66..3a3a526b 100644 --- a/tests/integration/inttesthelper_test.py +++ b/tests/integration/inttesthelper_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/integration/pubsub_test.py b/tests/integration/pubsub_test.py index f46d83b4..5f7b9b71 100644 --- a/tests/integration/pubsub_test.py +++ b/tests/integration/pubsub_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index b3251343..3666cf79 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/unit/client_test.py b/tests/unit/client_test.py index c21a44ae..347f9233 100644 --- a/tests/unit/client_test.py +++ b/tests/unit/client_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/unit/dapr_locator_test.py b/tests/unit/dapr_locator_test.py index 5918411b..374f10c3 100644 --- a/tests/unit/dapr_locator_test.py +++ b/tests/unit/dapr_locator_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/unit/dapr_pusbub_client_test.py b/tests/unit/dapr_pusbub_client_test.py index 6e4a301f..4ae5e7f1 100644 --- a/tests/unit/dapr_pusbub_client_test.py +++ b/tests/unit/dapr_pusbub_client_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/unit/model_test.py b/tests/unit/model_test.py index 580f7c24..d124a384 100755 --- a/tests/unit/model_test.py +++ b/tests/unit/model_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/unit/mqtt_helper_test.py b/tests/unit/mqtt_helper_test.py index ab64e094..12dcb15f 100644 --- a/tests/unit/mqtt_helper_test.py +++ b/tests/unit/mqtt_helper_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/unit/native_locator_test.py b/tests/unit/native_locator_test.py index 03252936..8fa05995 100644 --- a/tests/unit/native_locator_test.py +++ b/tests/unit/native_locator_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/unit/native_pusbub_client_test.py b/tests/unit/native_pusbub_client_test.py index 660810c6..7c50de1f 100644 --- a/tests/unit/native_pusbub_client_test.py +++ b/tests/unit/native_pusbub_client_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/tests/unit/vehicle_app_test.py b/tests/unit/vehicle_app_test.py index 1fa911ed..6674b013 100644 --- a/tests/unit/vehicle_app_test.py +++ b/tests/unit/vehicle_app_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/__init__.py b/velocitas_sdk/__init__.py index b3251343..3666cf79 100644 --- a/velocitas_sdk/__init__.py +++ b/velocitas_sdk/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/base.py b/velocitas_sdk/base.py index 2c0e54fb..008bece8 100644 --- a/velocitas_sdk/base.py +++ b/velocitas_sdk/base.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/config.py b/velocitas_sdk/config.py index 817b8581..b6f4dc7e 100644 --- a/velocitas_sdk/config.py +++ b/velocitas_sdk/config.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/dapr/__init__.py b/velocitas_sdk/dapr/__init__.py index b3251343..3666cf79 100644 --- a/velocitas_sdk/dapr/__init__.py +++ b/velocitas_sdk/dapr/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/dapr/_servicier.py b/velocitas_sdk/dapr/_servicier.py index 0f6cbe2d..f4b18431 100644 --- a/velocitas_sdk/dapr/_servicier.py +++ b/velocitas_sdk/dapr/_servicier.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/dapr/client.py b/velocitas_sdk/dapr/client.py index 614479b2..a28d4438 100644 --- a/velocitas_sdk/dapr/client.py +++ b/velocitas_sdk/dapr/client.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/dapr/locator.py b/velocitas_sdk/dapr/locator.py index d54d5f92..ca37b47d 100644 --- a/velocitas_sdk/dapr/locator.py +++ b/velocitas_sdk/dapr/locator.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/dapr/middleware.py b/velocitas_sdk/dapr/middleware.py index 4644ac47..357ded84 100644 --- a/velocitas_sdk/dapr/middleware.py +++ b/velocitas_sdk/dapr/middleware.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/dapr/pubsub.py b/velocitas_sdk/dapr/pubsub.py index 8a049065..c4809b22 100644 --- a/velocitas_sdk/dapr/pubsub.py +++ b/velocitas_sdk/dapr/pubsub.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/dapr/server.py b/velocitas_sdk/dapr/server.py index 1bf1ffe5..bef1afc5 100644 --- a/velocitas_sdk/dapr/server.py +++ b/velocitas_sdk/dapr/server.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/model.py b/velocitas_sdk/model.py index b18a6c14..15e4b2b8 100755 --- a/velocitas_sdk/model.py +++ b/velocitas_sdk/model.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/native/__init__.py b/velocitas_sdk/native/__init__.py index b3251343..3666cf79 100644 --- a/velocitas_sdk/native/__init__.py +++ b/velocitas_sdk/native/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/native/locator.py b/velocitas_sdk/native/locator.py index 421f71e1..fd4a1c34 100644 --- a/velocitas_sdk/native/locator.py +++ b/velocitas_sdk/native/locator.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/native/middleware.py b/velocitas_sdk/native/middleware.py index bb0265f8..76ca5fc3 100644 --- a/velocitas_sdk/native/middleware.py +++ b/velocitas_sdk/native/middleware.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/native/mqtt.py b/velocitas_sdk/native/mqtt.py index d0dae4a6..17308a94 100644 --- a/velocitas_sdk/native/mqtt.py +++ b/velocitas_sdk/native/mqtt.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/proto/broker_pb2.py b/velocitas_sdk/proto/broker_pb2.py index af05ed2d..01a96c38 100644 --- a/velocitas_sdk/proto/broker_pb2.py +++ b/velocitas_sdk/proto/broker_pb2.py @@ -1,4 +1,18 @@ # -*- coding: utf-8 -*- +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sdv/databroker/v1/broker.proto """Generated protocol buffer code.""" diff --git a/velocitas_sdk/proto/broker_pb2.pyi b/velocitas_sdk/proto/broker_pb2.pyi index 34baeb5b..d5adfead 100644 --- a/velocitas_sdk/proto/broker_pb2.pyi +++ b/velocitas_sdk/proto/broker_pb2.pyi @@ -1,7 +1,21 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file -Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +Copyright (c) 2022 Contributors to the Eclipse Foundation This program and the accompanying materials are made available under the terms of the Apache License, Version 2.0 which is available at @@ -36,14 +50,18 @@ class GetDatapointsRequest(google.protobuf.message.Message): DATAPOINTS_FIELD_NUMBER: builtins.int @property - def datapoints(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + def datapoints( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """A list of requested data points.""" def __init__( self, *, datapoints: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["datapoints", b"datapoints"]) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["datapoints", b"datapoints"] + ) -> None: ... global___GetDatapointsRequest = GetDatapointsRequest @@ -66,12 +84,21 @@ class GetDatapointsReply(google.protobuf.message.Message): key: builtins.str = ..., value: sdv.databroker.v1.types_pb2.Datapoint | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["value", b"value"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... DATAPOINTS_FIELD_NUMBER: builtins.int @property - def datapoints(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, sdv.databroker.v1.types_pb2.Datapoint]: + def datapoints( + self, + ) -> google.protobuf.internal.containers.MessageMap[ + builtins.str, sdv.databroker.v1.types_pb2.Datapoint + ]: """Contains the values of the requested data points. If a requested data point is not available, the corresponding Datapoint will have the respective failure value set. @@ -79,9 +106,14 @@ class GetDatapointsReply(google.protobuf.message.Message): def __init__( self, *, - datapoints: collections.abc.Mapping[builtins.str, sdv.databroker.v1.types_pb2.Datapoint] | None = ..., + datapoints: collections.abc.Mapping[ + builtins.str, sdv.databroker.v1.types_pb2.Datapoint + ] + | None = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["datapoints", b"datapoints"] ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["datapoints", b"datapoints"]) -> None: ... global___GetDatapointsReply = GetDatapointsReply @@ -104,19 +136,33 @@ class SetDatapointsRequest(google.protobuf.message.Message): key: builtins.str = ..., value: sdv.databroker.v1.types_pb2.Datapoint | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["value", b"value"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... DATAPOINTS_FIELD_NUMBER: builtins.int @property - def datapoints(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, sdv.databroker.v1.types_pb2.Datapoint]: + def datapoints( + self, + ) -> google.protobuf.internal.containers.MessageMap[ + builtins.str, sdv.databroker.v1.types_pb2.Datapoint + ]: """A map of data points to set""" def __init__( self, *, - datapoints: collections.abc.Mapping[builtins.str, sdv.databroker.v1.types_pb2.Datapoint] | None = ..., + datapoints: collections.abc.Mapping[ + builtins.str, sdv.databroker.v1.types_pb2.Datapoint + ] + | None = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["datapoints", b"datapoints"] ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["datapoints", b"datapoints"]) -> None: ... global___SetDatapointsRequest = SetDatapointsRequest @@ -138,18 +184,30 @@ class SetDatapointsReply(google.protobuf.message.Message): key: builtins.str = ..., value: sdv.databroker.v1.types_pb2.DatapointError.ValueType = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... ERRORS_FIELD_NUMBER: builtins.int @property - def errors(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, sdv.databroker.v1.types_pb2.DatapointError.ValueType]: + def errors( + self, + ) -> google.protobuf.internal.containers.ScalarMap[ + builtins.str, sdv.databroker.v1.types_pb2.DatapointError.ValueType + ]: """A map of errors (if any)""" def __init__( self, *, - errors: collections.abc.Mapping[builtins.str, sdv.databroker.v1.types_pb2.DatapointError.ValueType] | None = ..., + errors: collections.abc.Mapping[ + builtins.str, sdv.databroker.v1.types_pb2.DatapointError.ValueType + ] + | None = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["errors", b"errors"] ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["errors", b"errors"]) -> None: ... global___SetDatapointsReply = SetDatapointsReply @@ -169,7 +227,9 @@ class SubscribeRequest(google.protobuf.message.Message): *, query: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["query", b"query"]) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["query", b"query"] + ) -> None: ... global___SubscribeRequest = SubscribeRequest @@ -192,12 +252,21 @@ class SubscribeReply(google.protobuf.message.Message): key: builtins.str = ..., value: sdv.databroker.v1.types_pb2.Datapoint | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["value", b"value"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... FIELDS_FIELD_NUMBER: builtins.int @property - def fields(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, sdv.databroker.v1.types_pb2.Datapoint]: + def fields( + self, + ) -> google.protobuf.internal.containers.MessageMap[ + builtins.str, sdv.databroker.v1.types_pb2.Datapoint + ]: """Contains the fields specified by the query. If a requested data point value is not available, the corresponding Datapoint will have it's respective failure value set. @@ -205,9 +274,14 @@ class SubscribeReply(google.protobuf.message.Message): def __init__( self, *, - fields: collections.abc.Mapping[builtins.str, sdv.databroker.v1.types_pb2.Datapoint] | None = ..., + fields: collections.abc.Mapping[ + builtins.str, sdv.databroker.v1.types_pb2.Datapoint + ] + | None = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["fields", b"fields"] ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["fields", b"fields"]) -> None: ... global___SubscribeReply = SubscribeReply @@ -217,7 +291,9 @@ class GetMetadataRequest(google.protobuf.message.Message): NAMES_FIELD_NUMBER: builtins.int @property - def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + def names( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """Request metadata for a list of data points referenced by their names. e.g. "Vehicle.Cabin.Seat.Row1.Pos1.Position" or "Vehicle.Speed". @@ -229,7 +305,9 @@ class GetMetadataRequest(google.protobuf.message.Message): *, names: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["names", b"names"]) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["names", b"names"] + ) -> None: ... global___GetMetadataRequest = GetMetadataRequest @@ -239,7 +317,11 @@ class GetMetadataReply(google.protobuf.message.Message): LIST_FIELD_NUMBER: builtins.int @property - def list(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[sdv.databroker.v1.types_pb2.Metadata]: + def list( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + sdv.databroker.v1.types_pb2.Metadata + ]: """Contains metadata of the requested data points. If a data point doesn't exist (i.e. not known to the Data Broker) the corresponding Metadata isn't part of the returned list. @@ -247,8 +329,11 @@ class GetMetadataReply(google.protobuf.message.Message): def __init__( self, *, - list: collections.abc.Iterable[sdv.databroker.v1.types_pb2.Metadata] | None = ..., + list: collections.abc.Iterable[sdv.databroker.v1.types_pb2.Metadata] + | None = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["list", b"list"] ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["list", b"list"]) -> None: ... global___GetMetadataReply = GetMetadataReply diff --git a/velocitas_sdk/proto/broker_pb2_grpc.py b/velocitas_sdk/proto/broker_pb2_grpc.py index 9bb7ba84..242ac22a 100644 --- a/velocitas_sdk/proto/broker_pb2_grpc.py +++ b/velocitas_sdk/proto/broker_pb2_grpc.py @@ -1,3 +1,17 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/velocitas_sdk/proto/collector_pb2.py b/velocitas_sdk/proto/collector_pb2.py index 2b49adee..c6123ddf 100644 --- a/velocitas_sdk/proto/collector_pb2.py +++ b/velocitas_sdk/proto/collector_pb2.py @@ -1,4 +1,18 @@ # -*- coding: utf-8 -*- +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sdv/databroker/v1/collector.proto """Generated protocol buffer code.""" diff --git a/velocitas_sdk/proto/collector_pb2.pyi b/velocitas_sdk/proto/collector_pb2.pyi index af09dd22..bfcfe2be 100644 --- a/velocitas_sdk/proto/collector_pb2.pyi +++ b/velocitas_sdk/proto/collector_pb2.pyi @@ -1,7 +1,21 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file -Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +Copyright (c) 2022 Contributors to the Eclipse Foundation This program and the accompanying materials are made available under the terms of the Apache License, Version 2.0 which is available at @@ -49,18 +63,32 @@ class UpdateDatapointsRequest(google.protobuf.message.Message): key: builtins.int = ..., value: sdv.databroker.v1.types_pb2.Datapoint | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["value", b"value"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... DATAPOINTS_FIELD_NUMBER: builtins.int @property - def datapoints(self) -> google.protobuf.internal.containers.MessageMap[builtins.int, sdv.databroker.v1.types_pb2.Datapoint]: ... + def datapoints( + self, + ) -> google.protobuf.internal.containers.MessageMap[ + builtins.int, sdv.databroker.v1.types_pb2.Datapoint + ]: ... def __init__( self, *, - datapoints: collections.abc.Mapping[builtins.int, sdv.databroker.v1.types_pb2.Datapoint] | None = ..., + datapoints: collections.abc.Mapping[ + builtins.int, sdv.databroker.v1.types_pb2.Datapoint + ] + | None = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["datapoints", b"datapoints"] ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["datapoints", b"datapoints"]) -> None: ... global___UpdateDatapointsRequest = UpdateDatapointsRequest @@ -82,18 +110,30 @@ class UpdateDatapointsReply(google.protobuf.message.Message): key: builtins.int = ..., value: sdv.databroker.v1.types_pb2.DatapointError.ValueType = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... ERRORS_FIELD_NUMBER: builtins.int @property - def errors(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, sdv.databroker.v1.types_pb2.DatapointError.ValueType]: + def errors( + self, + ) -> google.protobuf.internal.containers.ScalarMap[ + builtins.int, sdv.databroker.v1.types_pb2.DatapointError.ValueType + ]: """If empty, everything went well""" def __init__( self, *, - errors: collections.abc.Mapping[builtins.int, sdv.databroker.v1.types_pb2.DatapointError.ValueType] | None = ..., + errors: collections.abc.Mapping[ + builtins.int, sdv.databroker.v1.types_pb2.DatapointError.ValueType + ] + | None = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["errors", b"errors"] ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["errors", b"errors"]) -> None: ... global___UpdateDatapointsReply = UpdateDatapointsReply @@ -116,18 +156,32 @@ class StreamDatapointsRequest(google.protobuf.message.Message): key: builtins.int = ..., value: sdv.databroker.v1.types_pb2.Datapoint | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["value", b"value"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... DATAPOINTS_FIELD_NUMBER: builtins.int @property - def datapoints(self) -> google.protobuf.internal.containers.MessageMap[builtins.int, sdv.databroker.v1.types_pb2.Datapoint]: ... + def datapoints( + self, + ) -> google.protobuf.internal.containers.MessageMap[ + builtins.int, sdv.databroker.v1.types_pb2.Datapoint + ]: ... def __init__( self, *, - datapoints: collections.abc.Mapping[builtins.int, sdv.databroker.v1.types_pb2.Datapoint] | None = ..., + datapoints: collections.abc.Mapping[ + builtins.int, sdv.databroker.v1.types_pb2.Datapoint + ] + | None = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["datapoints", b"datapoints"] ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["datapoints", b"datapoints"]) -> None: ... global___StreamDatapointsRequest = StreamDatapointsRequest @@ -149,18 +203,30 @@ class StreamDatapointsReply(google.protobuf.message.Message): key: builtins.int = ..., value: sdv.databroker.v1.types_pb2.DatapointError.ValueType = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... ERRORS_FIELD_NUMBER: builtins.int @property - def errors(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, sdv.databroker.v1.types_pb2.DatapointError.ValueType]: + def errors( + self, + ) -> google.protobuf.internal.containers.ScalarMap[ + builtins.int, sdv.databroker.v1.types_pb2.DatapointError.ValueType + ]: """If empty, everything went well""" def __init__( self, *, - errors: collections.abc.Mapping[builtins.int, sdv.databroker.v1.types_pb2.DatapointError.ValueType] | None = ..., + errors: collections.abc.Mapping[ + builtins.int, sdv.databroker.v1.types_pb2.DatapointError.ValueType + ] + | None = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["errors", b"errors"] ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["errors", b"errors"]) -> None: ... global___StreamDatapointsReply = StreamDatapointsReply @@ -170,13 +236,19 @@ class RegisterDatapointsRequest(google.protobuf.message.Message): LIST_FIELD_NUMBER: builtins.int @property - def list(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RegistrationMetadata]: ... + def list( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___RegistrationMetadata + ]: ... def __init__( self, *, list: collections.abc.Iterable[global___RegistrationMetadata] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["list", b"list"]) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["list", b"list"] + ) -> None: ... global___RegisterDatapointsRequest = RegisterDatapointsRequest @@ -203,7 +275,19 @@ class RegistrationMetadata(google.protobuf.message.Message): description: builtins.str = ..., change_type: sdv.databroker.v1.types_pb2.ChangeType.ValueType = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["change_type", b"change_type", "data_type", b"data_type", "description", b"description", "name", b"name"]) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "change_type", + b"change_type", + "data_type", + b"data_type", + "description", + b"description", + "name", + b"name", + ], + ) -> None: ... global___RegistrationMetadata = RegistrationMetadata @@ -225,17 +309,24 @@ class RegisterDatapointsReply(google.protobuf.message.Message): key: builtins.str = ..., value: builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... RESULTS_FIELD_NUMBER: builtins.int @property - def results(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.int]: + def results( + self, + ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.int]: """Maps each data point name passed in RegisterDatapointsRequest to a data point id""" def __init__( self, *, results: collections.abc.Mapping[builtins.str, builtins.int] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["results", b"results"]) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["results", b"results"] + ) -> None: ... global___RegisterDatapointsReply = RegisterDatapointsReply diff --git a/velocitas_sdk/proto/collector_pb2_grpc.py b/velocitas_sdk/proto/collector_pb2_grpc.py index c4e62298..07f11693 100644 --- a/velocitas_sdk/proto/collector_pb2_grpc.py +++ b/velocitas_sdk/proto/collector_pb2_grpc.py @@ -1,3 +1,17 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/velocitas_sdk/proto/sdv/databroker/v1/broker.proto b/velocitas_sdk/proto/sdv/databroker/v1/broker.proto index 19023a7b..04f6148f 100644 --- a/velocitas_sdk/proto/sdv/databroker/v1/broker.proto +++ b/velocitas_sdk/proto/sdv/databroker/v1/broker.proto @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +// Copyright (c) 2022-2023 Contributors to the Eclipse Foundation // // This program and the accompanying materials are made available under the // terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/proto/sdv/databroker/v1/collector.proto b/velocitas_sdk/proto/sdv/databroker/v1/collector.proto index 220a57c3..cd4603a9 100644 --- a/velocitas_sdk/proto/sdv/databroker/v1/collector.proto +++ b/velocitas_sdk/proto/sdv/databroker/v1/collector.proto @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +// Copyright (c) 2022-2023 Contributors to the Eclipse Foundation // // This program and the accompanying materials are made available under the // terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/proto/sdv/databroker/v1/types.proto b/velocitas_sdk/proto/sdv/databroker/v1/types.proto index e103bb67..acc3ec09 100644 --- a/velocitas_sdk/proto/sdv/databroker/v1/types.proto +++ b/velocitas_sdk/proto/sdv/databroker/v1/types.proto @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +// Copyright (c) 2022-2023 Contributors to the Eclipse Foundation // // This program and the accompanying materials are made available under the // terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/proto/types_pb2.py b/velocitas_sdk/proto/types_pb2.py index 8412f296..ec20694a 100644 --- a/velocitas_sdk/proto/types_pb2.py +++ b/velocitas_sdk/proto/types_pb2.py @@ -1,4 +1,18 @@ # -*- coding: utf-8 -*- +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sdv/databroker/v1/types.proto """Generated protocol buffer code.""" diff --git a/velocitas_sdk/proto/types_pb2.pyi b/velocitas_sdk/proto/types_pb2.pyi index f8bde0b3..ceebe4e5 100644 --- a/velocitas_sdk/proto/types_pb2.pyi +++ b/velocitas_sdk/proto/types_pb2.pyi @@ -1,7 +1,21 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file -Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +Copyright (c) 2022 Contributors to the Eclipse Foundation This program and the accompanying materials are made available under the terms of the Apache License, Version 2.0 which is available at @@ -36,7 +50,10 @@ class _DataType: ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType -class _DataTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataType.ValueType], builtins.type): +class _DataTypeEnumTypeWrapper( + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataType.ValueType], + builtins.type, +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor STRING: _DataType.ValueType # 0 BOOL: _DataType.ValueType # 1 @@ -104,7 +121,12 @@ class _DatapointError: ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType -class _DatapointErrorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DatapointError.ValueType], builtins.type): +class _DatapointErrorEnumTypeWrapper( + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _DatapointError.ValueType + ], + builtins.type, +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor UNKNOWN_DATAPOINT: _DatapointError.ValueType # 0 INVALID_TYPE: _DatapointError.ValueType # 1 @@ -125,7 +147,10 @@ class _ChangeType: ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType -class _ChangeTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ChangeType.ValueType], builtins.type): +class _ChangeTypeEnumTypeWrapper( + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ChangeType.ValueType], + builtins.type, +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor STATIC: _ChangeType.ValueType # 0 """Value never changes""" @@ -154,13 +179,19 @@ class StringArray(google.protobuf.message.Message): VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def values( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + builtins.str + ]: ... def __init__( self, *, values: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["values", b"values"] + ) -> None: ... global___StringArray = StringArray @@ -170,13 +201,19 @@ class BoolArray(google.protobuf.message.Message): VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: ... + def values( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + builtins.bool + ]: ... def __init__( self, *, values: collections.abc.Iterable[builtins.bool] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["values", b"values"] + ) -> None: ... global___BoolArray = BoolArray @@ -186,13 +223,19 @@ class Int32Array(google.protobuf.message.Message): VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def values( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + builtins.int + ]: ... def __init__( self, *, values: collections.abc.Iterable[builtins.int] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["values", b"values"] + ) -> None: ... global___Int32Array = Int32Array @@ -202,13 +245,19 @@ class Int64Array(google.protobuf.message.Message): VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def values( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + builtins.int + ]: ... def __init__( self, *, values: collections.abc.Iterable[builtins.int] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["values", b"values"] + ) -> None: ... global___Int64Array = Int64Array @@ -218,13 +267,19 @@ class Uint32Array(google.protobuf.message.Message): VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def values( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + builtins.int + ]: ... def __init__( self, *, values: collections.abc.Iterable[builtins.int] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["values", b"values"] + ) -> None: ... global___Uint32Array = Uint32Array @@ -234,13 +289,19 @@ class Uint64Array(google.protobuf.message.Message): VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def values( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + builtins.int + ]: ... def __init__( self, *, values: collections.abc.Iterable[builtins.int] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["values", b"values"] + ) -> None: ... global___Uint64Array = Uint64Array @@ -250,13 +311,19 @@ class FloatArray(google.protobuf.message.Message): VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... + def values( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + builtins.float + ]: ... def __init__( self, *, values: collections.abc.Iterable[builtins.float] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["values", b"values"] + ) -> None: ... global___FloatArray = FloatArray @@ -266,13 +333,19 @@ class DoubleArray(google.protobuf.message.Message): VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ... + def values( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + builtins.float + ]: ... def __init__( self, *, values: collections.abc.Iterable[builtins.float] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["values", b"values"] + ) -> None: ... global___DoubleArray = DoubleArray @@ -284,7 +357,12 @@ class Datapoint(google.protobuf.message.Message): ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType - class _FailureEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Datapoint._Failure.ValueType], builtins.type): # noqa: F821 + class _FailureEnumTypeWrapper( + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + Datapoint._Failure.ValueType + ], + builtins.type, + ): # noqa: F821 DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor INVALID_VALUE: Datapoint._Failure.ValueType # 0 """The data point is known, but doesn't have a valid value""" @@ -377,9 +455,116 @@ class Datapoint(google.protobuf.message.Message): float_array: global___FloatArray | None = ..., double_array: global___DoubleArray | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["bool_array", b"bool_array", "bool_value", b"bool_value", "double_array", b"double_array", "double_value", b"double_value", "failure_value", b"failure_value", "float_array", b"float_array", "float_value", b"float_value", "int32_array", b"int32_array", "int32_value", b"int32_value", "int64_array", b"int64_array", "int64_value", b"int64_value", "string_array", b"string_array", "string_value", b"string_value", "timestamp", b"timestamp", "uint32_array", b"uint32_array", "uint32_value", b"uint32_value", "uint64_array", b"uint64_array", "uint64_value", b"uint64_value", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["bool_array", b"bool_array", "bool_value", b"bool_value", "double_array", b"double_array", "double_value", b"double_value", "failure_value", b"failure_value", "float_array", b"float_array", "float_value", b"float_value", "int32_array", b"int32_array", "int32_value", b"int32_value", "int64_array", b"int64_array", "int64_value", b"int64_value", "string_array", b"string_array", "string_value", b"string_value", "timestamp", b"timestamp", "uint32_array", b"uint32_array", "uint32_value", b"uint32_value", "uint64_array", b"uint64_array", "uint64_value", b"uint64_value", "value", b"value"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["failure_value", "string_value", "bool_value", "int32_value", "int64_value", "uint32_value", "uint64_value", "float_value", "double_value", "string_array", "bool_array", "int32_array", "int64_array", "uint32_array", "uint64_array", "float_array", "double_array"] | None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "bool_array", + b"bool_array", + "bool_value", + b"bool_value", + "double_array", + b"double_array", + "double_value", + b"double_value", + "failure_value", + b"failure_value", + "float_array", + b"float_array", + "float_value", + b"float_value", + "int32_array", + b"int32_array", + "int32_value", + b"int32_value", + "int64_array", + b"int64_array", + "int64_value", + b"int64_value", + "string_array", + b"string_array", + "string_value", + b"string_value", + "timestamp", + b"timestamp", + "uint32_array", + b"uint32_array", + "uint32_value", + b"uint32_value", + "uint64_array", + b"uint64_array", + "uint64_value", + b"uint64_value", + "value", + b"value", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "bool_array", + b"bool_array", + "bool_value", + b"bool_value", + "double_array", + b"double_array", + "double_value", + b"double_value", + "failure_value", + b"failure_value", + "float_array", + b"float_array", + "float_value", + b"float_value", + "int32_array", + b"int32_array", + "int32_value", + b"int32_value", + "int64_array", + b"int64_array", + "int64_value", + b"int64_value", + "string_array", + b"string_array", + "string_value", + b"string_value", + "timestamp", + b"timestamp", + "uint32_array", + b"uint32_array", + "uint32_value", + b"uint32_value", + "uint64_array", + b"uint64_array", + "uint64_value", + b"uint64_value", + "value", + b"value", + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["value", b"value"] + ) -> ( + typing_extensions.Literal[ + "failure_value", + "string_value", + "bool_value", + "int32_value", + "int64_value", + "uint32_value", + "uint64_value", + "float_value", + "double_value", + "string_array", + "bool_array", + "int32_array", + "int64_array", + "uint32_array", + "uint64_array", + "float_array", + "double_array", + ] + | None + ): ... global___Datapoint = Datapoint @@ -410,6 +595,20 @@ class Metadata(google.protobuf.message.Message): change_type: global___ChangeType.ValueType = ..., description: builtins.str = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["change_type", b"change_type", "data_type", b"data_type", "description", b"description", "id", b"id", "name", b"name"]) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "change_type", + b"change_type", + "data_type", + b"data_type", + "description", + b"description", + "id", + b"id", + "name", + b"name", + ], + ) -> None: ... global___Metadata = Metadata diff --git a/velocitas_sdk/proto/types_pb2_grpc.py b/velocitas_sdk/proto/types_pb2_grpc.py index 2daafffe..27a7224b 100644 --- a/velocitas_sdk/proto/types_pb2_grpc.py +++ b/velocitas_sdk/proto/types_pb2_grpc.py @@ -1,3 +1,17 @@ +# Copyright (c) 2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available 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. +# +# SPDX-License-Identifier: Apache-2.0 + # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/velocitas_sdk/py.typed b/velocitas_sdk/py.typed index 5c47f0e5..ef1b6721 100644 --- a/velocitas_sdk/py.typed +++ b/velocitas_sdk/py.typed @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +// Copyright (c) 2022 Contributors to the Eclipse Foundation // // This program and the accompanying materials are made available under the // terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/test/__init__.py b/velocitas_sdk/test/__init__.py index b3251343..3666cf79 100644 --- a/velocitas_sdk/test/__init__.py +++ b/velocitas_sdk/test/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/test/databroker_testhelper.py b/velocitas_sdk/test/databroker_testhelper.py index 7b176d83..b841e5c9 100644 --- a/velocitas_sdk/test/databroker_testhelper.py +++ b/velocitas_sdk/test/databroker_testhelper.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/test/inttesthelper.py b/velocitas_sdk/test/inttesthelper.py index 52d58125..710124ab 100644 --- a/velocitas_sdk/test/inttesthelper.py +++ b/velocitas_sdk/test/inttesthelper.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/test/mqtt_util.py b/velocitas_sdk/test/mqtt_util.py index e185e5c1..147b0fde 100644 --- a/velocitas_sdk/test/mqtt_util.py +++ b/velocitas_sdk/test/mqtt_util.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/util/__init__.py b/velocitas_sdk/util/__init__.py index b3251343..3666cf79 100644 --- a/velocitas_sdk/util/__init__.py +++ b/velocitas_sdk/util/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/util/log.py b/velocitas_sdk/util/log.py index c5396c6d..5faeacbb 100644 --- a/velocitas_sdk/util/log.py +++ b/velocitas_sdk/util/log.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/vdb/__init__.py b/velocitas_sdk/vdb/__init__.py index b3251343..3666cf79 100644 --- a/velocitas_sdk/vdb/__init__.py +++ b/velocitas_sdk/vdb/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/vdb/client.py b/velocitas_sdk/vdb/client.py index 9d270540..4349fac2 100644 --- a/velocitas_sdk/vdb/client.py +++ b/velocitas_sdk/vdb/client.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/vdb/reply.py b/velocitas_sdk/vdb/reply.py index f956a567..62d230b6 100644 --- a/velocitas_sdk/vdb/reply.py +++ b/velocitas_sdk/vdb/reply.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/vdb/subscriptions.py b/velocitas_sdk/vdb/subscriptions.py index b56da297..0e7d9238 100644 --- a/velocitas_sdk/vdb/subscriptions.py +++ b/velocitas_sdk/vdb/subscriptions.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/vdb/types.py b/velocitas_sdk/vdb/types.py index 49f0a334..9c13ccf6 100644 --- a/velocitas_sdk/vdb/types.py +++ b/velocitas_sdk/vdb/types.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/velocitas_sdk/vehicle_app.py b/velocitas_sdk/vehicle_app.py index 51057670..9c543adc 100644 --- a/velocitas_sdk/vehicle_app.py +++ b/velocitas_sdk/vehicle_app.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at diff --git a/whitelisted-licenses.txt b/whitelisted-licenses.txt index 5c47f0e5..0e2e80de 100644 --- a/whitelisted-licenses.txt +++ b/whitelisted-licenses.txt @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +// Copyright (c) 2023 Contributors to the Eclipse Foundation // // This program and the accompanying materials are made available under the // terms of the Apache License, Version 2.0 which is available at