From 36f1edd475a0de1a2a4f488d9740a6f3b2f64a8f Mon Sep 17 00:00:00 2001 From: kse3hi Date: Sun, 26 Nov 2023 11:51:35 +0000 Subject: [PATCH 01/11] 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 From 76aa480fd307c91cd78e095aa94b9afd0faf47cd Mon Sep 17 00:00:00 2001 From: kse3hi Date: Sun, 26 Nov 2023 12:44:33 +0000 Subject: [PATCH 02/11] Revert proto.py and added in files --- .pre-commit-config.yaml | 15 +- .project-creation/.skeleton/requirements.in | 14 + .../.skeleton/tests/requirements.in | 14 + .../automated_tests/requirements_test.py | 6 +- .../tests/automated_tests/runtime_test.py | 6 +- .project-creation/templates/requirements.in | 2 +- MANIFEST.in | 14 + examples/seat-adjuster/requirements.in | 14 + examples/seat-adjuster/tests/requirements.in | 14 + velocitas_sdk/proto/broker_pb2.py | 94 ++- velocitas_sdk/proto/broker_pb2.pyi | 143 +--- velocitas_sdk/proto/broker_pb2_grpc.py | 16 +- velocitas_sdk/proto/collector_pb2.py | 98 ++- velocitas_sdk/proto/collector_pb2.pyi | 16 +- velocitas_sdk/proto/collector_pb2_grpc.py | 197 +++--- velocitas_sdk/proto/types_pb2.py | 82 +-- velocitas_sdk/proto/types_pb2.pyi | 669 ++---------------- velocitas_sdk/proto/types_pb2_grpc.py | 15 - 18 files changed, 409 insertions(+), 1020 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 02a16f17..82b2c949 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -88,6 +88,12 @@ repos: rev: 1.7.5 hooks: - id: bandit + exclude: > + (?x)^( + .*_pb2.py| + .*_pb2.pyi| + .*_pb2_grpc.py + )$ args: ["--skip=B101"] types_or: [python] @@ -120,8 +126,13 @@ repos: rev: v1.5.4 hooks: - id: insert-license - files: '.*\.(py|pyi|yaml|yml|sh|helmignore|dockerignore|gitignore)$' - exclude: .devcontainer/tests + files: '.*\.(py|pyi|yaml|yml|sh|helmignore|dockerignore|gitignore|in)$' + exclude: > + (?x)^( + .*_pb2.py| + .*_pb2.pyi| + .*_pb2_grpc.py + )$ args: - --license-filepath - license_header.txt diff --git a/.project-creation/.skeleton/requirements.in b/.project-creation/.skeleton/requirements.in index 419da81d..66462282 100644 --- a/.project-creation/.skeleton/requirements.in +++ b/.project-creation/.skeleton/requirements.in @@ -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 + grpcio==1.59.0 protobuf==4.24.4 dapr==1.11.0 diff --git a/.project-creation/.skeleton/tests/requirements.in b/.project-creation/.skeleton/tests/requirements.in index ce969732..3acbc529 100644 --- a/.project-creation/.skeleton/tests/requirements.in +++ b/.project-creation/.skeleton/tests/requirements.in @@ -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 + pytest pytest-ordering pytest-asyncio 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 a50ac4e3..a8451a28 100644 --- a/.project-creation/templates/.devcontainer/tests/automated_tests/requirements_test.py +++ b/.project-creation/templates/.devcontainer/tests/automated_tests/requirements_test.py @@ -1,15 +1,15 @@ # 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 unittest 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 f66d4f11..63fbd0f6 100644 --- a/.project-creation/templates/.devcontainer/tests/automated_tests/runtime_test.py +++ b/.project-creation/templates/.devcontainer/tests/automated_tests/runtime_test.py @@ -1,15 +1,15 @@ # 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 diff --git a/.project-creation/templates/requirements.in b/.project-creation/templates/requirements.in index fc32a75d..8ca986cf 100644 --- a/.project-creation/templates/requirements.in +++ b/.project-creation/templates/requirements.in @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Contributors to the Eclipse Foundation +# 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/MANIFEST.in b/MANIFEST.in index a01e8ce7..54783537 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,16 @@ +# 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 + global-include *.md LICENSE recursive-include examples * diff --git a/examples/seat-adjuster/requirements.in b/examples/seat-adjuster/requirements.in index 419da81d..66462282 100644 --- a/examples/seat-adjuster/requirements.in +++ b/examples/seat-adjuster/requirements.in @@ -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 + grpcio==1.59.0 protobuf==4.24.4 dapr==1.11.0 diff --git a/examples/seat-adjuster/tests/requirements.in b/examples/seat-adjuster/tests/requirements.in index ce969732..3acbc529 100644 --- a/examples/seat-adjuster/tests/requirements.in +++ b/examples/seat-adjuster/tests/requirements.in @@ -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 + pytest pytest-ordering pytest-asyncio diff --git a/velocitas_sdk/proto/broker_pb2.py b/velocitas_sdk/proto/broker_pb2.py index 01a96c38..08a59925 100644 --- a/velocitas_sdk/proto/broker_pb2.py +++ b/velocitas_sdk/proto/broker_pb2.py @@ -1,18 +1,4 @@ # -*- 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.""" @@ -20,6 +6,7 @@ from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -28,46 +15,49 @@ from velocitas_sdk.proto import types_pb2 as sdv_dot_databroker_dot_v1_dot_types__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1esdv/databroker/v1/broker.proto\x12\x11sdv.databroker.v1\x1a\x1dsdv/databroker/v1/types.proto\"*\n\x14GetDatapointsRequest\x12\x12\n\ndatapoints\x18\x01 \x03(\t\"\xb0\x01\n\x12GetDatapointsReply\x12I\n\ndatapoints\x18\x01 \x03(\x0b\x32\x35.sdv.databroker.v1.GetDatapointsReply.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01\"\xb4\x01\n\x14SetDatapointsRequest\x12K\n\ndatapoints\x18\x01 \x03(\x0b\x32\x37.sdv.databroker.v1.SetDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01\"\xa9\x01\n\x12SetDatapointsReply\x12\x41\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x31.sdv.databroker.v1.SetDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01\"!\n\x10SubscribeRequest\x12\r\n\x05query\x18\x02 \x01(\t\"\x9c\x01\n\x0eSubscribeReply\x12=\n\x06\x66ields\x18\x01 \x03(\x0b\x32-.sdv.databroker.v1.SubscribeReply.FieldsEntry\x1aK\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01\"#\n\x12GetMetadataRequest\x12\r\n\x05names\x18\x01 \x03(\t\"=\n\x10GetMetadataReply\x12)\n\x04list\x18\x01 \x03(\x0b\x32\x1b.sdv.databroker.v1.Metadata2\xfc\x02\n\x06\x42roker\x12_\n\rGetDatapoints\x12\'.sdv.databroker.v1.GetDatapointsRequest\x1a%.sdv.databroker.v1.GetDatapointsReply\x12_\n\rSetDatapoints\x12\'.sdv.databroker.v1.SetDatapointsRequest\x1a%.sdv.databroker.v1.SetDatapointsReply\x12U\n\tSubscribe\x12#.sdv.databroker.v1.SubscribeRequest\x1a!.sdv.databroker.v1.SubscribeReply0\x01\x12Y\n\x0bGetMetadata\x12%.sdv.databroker.v1.GetMetadataRequest\x1a#.sdv.databroker.v1.GetMetadataReplyb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n\x1esdv/databroker/v1/broker.proto\x12\x11sdv.databroker.v1\x1a\x1dsdv/databroker/v1/types.proto"*\n\x14GetDatapointsRequest\x12\x12\n\ndatapoints\x18\x01 \x03(\t"\xb0\x01\n\x12GetDatapointsReply\x12I\n\ndatapoints\x18\x01 \x03(\x0b\x32\x35.sdv.databroker.v1.GetDatapointsReply.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"\xb4\x01\n\x14SetDatapointsRequest\x12K\n\ndatapoints\x18\x01 \x03(\x0b\x32\x37.sdv.databroker.v1.SetDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"\xa9\x01\n\x12SetDatapointsReply\x12\x41\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x31.sdv.databroker.v1.SetDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01"!\n\x10SubscribeRequest\x12\r\n\x05query\x18\x02 \x01(\t"\x9c\x01\n\x0eSubscribeReply\x12=\n\x06\x66ields\x18\x01 \x03(\x0b\x32-.sdv.databroker.v1.SubscribeReply.FieldsEntry\x1aK\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"#\n\x12GetMetadataRequest\x12\r\n\x05names\x18\x01 \x03(\t"=\n\x10GetMetadataReply\x12)\n\x04list\x18\x01 \x03(\x0b\x32\x1b.sdv.databroker.v1.Metadata2\xfc\x02\n\x06\x42roker\x12_\n\rGetDatapoints\x12\'.sdv.databroker.v1.GetDatapointsRequest\x1a%.sdv.databroker.v1.GetDatapointsReply\x12_\n\rSetDatapoints\x12\'.sdv.databroker.v1.SetDatapointsRequest\x1a%.sdv.databroker.v1.SetDatapointsReply\x12U\n\tSubscribe\x12#.sdv.databroker.v1.SubscribeRequest\x1a!.sdv.databroker.v1.SubscribeReply0\x01\x12Y\n\x0bGetMetadata\x12%.sdv.databroker.v1.GetMetadataRequest\x1a#.sdv.databroker.v1.GetMetadataReplyb\x06proto3' +) _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sdv.databroker.v1.broker_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages( + DESCRIPTOR, "sdv.databroker.v1.broker_pb2", _globals +) if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - _GETDATAPOINTSREPLY_DATAPOINTSENTRY._options = None - _GETDATAPOINTSREPLY_DATAPOINTSENTRY._serialized_options = b'8\001' - _SETDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None - _SETDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b'8\001' - _SETDATAPOINTSREPLY_ERRORSENTRY._options = None - _SETDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b'8\001' - _SUBSCRIBEREPLY_FIELDSENTRY._options = None - _SUBSCRIBEREPLY_FIELDSENTRY._serialized_options = b'8\001' - _globals['_GETDATAPOINTSREQUEST']._serialized_start=84 - _globals['_GETDATAPOINTSREQUEST']._serialized_end=126 - _globals['_GETDATAPOINTSREPLY']._serialized_start=129 - _globals['_GETDATAPOINTSREPLY']._serialized_end=305 - _globals['_GETDATAPOINTSREPLY_DATAPOINTSENTRY']._serialized_start=226 - _globals['_GETDATAPOINTSREPLY_DATAPOINTSENTRY']._serialized_end=305 - _globals['_SETDATAPOINTSREQUEST']._serialized_start=308 - _globals['_SETDATAPOINTSREQUEST']._serialized_end=488 - _globals['_SETDATAPOINTSREQUEST_DATAPOINTSENTRY']._serialized_start=226 - _globals['_SETDATAPOINTSREQUEST_DATAPOINTSENTRY']._serialized_end=305 - _globals['_SETDATAPOINTSREPLY']._serialized_start=491 - _globals['_SETDATAPOINTSREPLY']._serialized_end=660 - _globals['_SETDATAPOINTSREPLY_ERRORSENTRY']._serialized_start=580 - _globals['_SETDATAPOINTSREPLY_ERRORSENTRY']._serialized_end=660 - _globals['_SUBSCRIBEREQUEST']._serialized_start=662 - _globals['_SUBSCRIBEREQUEST']._serialized_end=695 - _globals['_SUBSCRIBEREPLY']._serialized_start=698 - _globals['_SUBSCRIBEREPLY']._serialized_end=854 - _globals['_SUBSCRIBEREPLY_FIELDSENTRY']._serialized_start=779 - _globals['_SUBSCRIBEREPLY_FIELDSENTRY']._serialized_end=854 - _globals['_GETMETADATAREQUEST']._serialized_start=856 - _globals['_GETMETADATAREQUEST']._serialized_end=891 - _globals['_GETMETADATAREPLY']._serialized_start=893 - _globals['_GETMETADATAREPLY']._serialized_end=954 - _globals['_BROKER']._serialized_start=957 - _globals['_BROKER']._serialized_end=1337 + DESCRIPTOR._options = None + _GETDATAPOINTSREPLY_DATAPOINTSENTRY._options = None + _GETDATAPOINTSREPLY_DATAPOINTSENTRY._serialized_options = b"8\001" + _SETDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None + _SETDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b"8\001" + _SETDATAPOINTSREPLY_ERRORSENTRY._options = None + _SETDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b"8\001" + _SUBSCRIBEREPLY_FIELDSENTRY._options = None + _SUBSCRIBEREPLY_FIELDSENTRY._serialized_options = b"8\001" + _globals["_GETDATAPOINTSREQUEST"]._serialized_start = 84 + _globals["_GETDATAPOINTSREQUEST"]._serialized_end = 126 + _globals["_GETDATAPOINTSREPLY"]._serialized_start = 129 + _globals["_GETDATAPOINTSREPLY"]._serialized_end = 305 + _globals["_GETDATAPOINTSREPLY_DATAPOINTSENTRY"]._serialized_start = 226 + _globals["_GETDATAPOINTSREPLY_DATAPOINTSENTRY"]._serialized_end = 305 + _globals["_SETDATAPOINTSREQUEST"]._serialized_start = 308 + _globals["_SETDATAPOINTSREQUEST"]._serialized_end = 488 + _globals["_SETDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_start = 226 + _globals["_SETDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_end = 305 + _globals["_SETDATAPOINTSREPLY"]._serialized_start = 491 + _globals["_SETDATAPOINTSREPLY"]._serialized_end = 660 + _globals["_SETDATAPOINTSREPLY_ERRORSENTRY"]._serialized_start = 580 + _globals["_SETDATAPOINTSREPLY_ERRORSENTRY"]._serialized_end = 660 + _globals["_SUBSCRIBEREQUEST"]._serialized_start = 662 + _globals["_SUBSCRIBEREQUEST"]._serialized_end = 695 + _globals["_SUBSCRIBEREPLY"]._serialized_start = 698 + _globals["_SUBSCRIBEREPLY"]._serialized_end = 854 + _globals["_SUBSCRIBEREPLY_FIELDSENTRY"]._serialized_start = 779 + _globals["_SUBSCRIBEREPLY_FIELDSENTRY"]._serialized_end = 854 + _globals["_GETMETADATAREQUEST"]._serialized_start = 856 + _globals["_GETMETADATAREQUEST"]._serialized_end = 891 + _globals["_GETMETADATAREPLY"]._serialized_start = 893 + _globals["_GETMETADATAREPLY"]._serialized_end = 954 + _globals["_BROKER"]._serialized_start = 957 + _globals["_BROKER"]._serialized_end = 1337 # @@protoc_insertion_point(module_scope) diff --git a/velocitas_sdk/proto/broker_pb2.pyi b/velocitas_sdk/proto/broker_pb2.pyi index d5adfead..d16e8807 100644 --- a/velocitas_sdk/proto/broker_pb2.pyi +++ b/velocitas_sdk/proto/broker_pb2.pyi @@ -1,21 +1,7 @@ -# 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 Contributors to the Eclipse Foundation +Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation This program and the accompanying materials are made available under the terms of the Apache License, Version 2.0 which is available at @@ -50,18 +36,14 @@ 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 @@ -84,21 +66,12 @@ 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. @@ -106,14 +79,9 @@ class GetDatapointsReply(google.protobuf.message.Message): def __init__( self, *, - 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"] + 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: ... global___GetDatapointsReply = GetDatapointsReply @@ -136,33 +104,19 @@ 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 = ..., - ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["datapoints", b"datapoints"] + 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: ... global___SetDatapointsRequest = SetDatapointsRequest @@ -184,30 +138,18 @@ 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 = ..., - ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["errors", b"errors"] + 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: ... global___SetDatapointsReply = SetDatapointsReply @@ -227,9 +169,7 @@ 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 @@ -252,21 +192,12 @@ 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. @@ -274,14 +205,9 @@ class SubscribeReply(google.protobuf.message.Message): def __init__( self, *, - 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"] + 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: ... global___SubscribeReply = SubscribeReply @@ -291,9 +217,7 @@ 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". @@ -305,9 +229,7 @@ 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 @@ -317,11 +239,7 @@ 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. @@ -329,11 +247,8 @@ class GetMetadataReply(google.protobuf.message.Message): def __init__( self, *, - list: collections.abc.Iterable[sdv.databroker.v1.types_pb2.Metadata] - | None = ..., - ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["list", b"list"] + list: collections.abc.Iterable[sdv.databroker.v1.types_pb2.Metadata] | None = ..., ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["list", b"list"]) -> None: ... -global___GetMetadataReply = GetMetadataReply +global___GetMetadataReply = GetMetadataReply \ No newline at end of file diff --git a/velocitas_sdk/proto/broker_pb2_grpc.py b/velocitas_sdk/proto/broker_pb2_grpc.py index 242ac22a..b243b086 100644 --- a/velocitas_sdk/proto/broker_pb2_grpc.py +++ b/velocitas_sdk/proto/broker_pb2_grpc.py @@ -1,17 +1,3 @@ -# 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 @@ -191,4 +177,4 @@ def GetMetadata(request, sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataRequest.SerializeToString, sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataReply.FromString, options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) \ No newline at end of file diff --git a/velocitas_sdk/proto/collector_pb2.py b/velocitas_sdk/proto/collector_pb2.py index c6123ddf..9da6f553 100644 --- a/velocitas_sdk/proto/collector_pb2.py +++ b/velocitas_sdk/proto/collector_pb2.py @@ -1,18 +1,4 @@ # -*- 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.""" @@ -20,6 +6,7 @@ from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -28,48 +15,51 @@ from velocitas_sdk.proto import types_pb2 as sdv_dot_databroker_dot_v1_dot_types__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!sdv/databroker/v1/collector.proto\x12\x11sdv.databroker.v1\x1a\x1dsdv/databroker/v1/types.proto\"\xba\x01\n\x17UpdateDatapointsRequest\x12N\n\ndatapoints\x18\x01 \x03(\x0b\x32:.sdv.databroker.v1.UpdateDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01\"\xaf\x01\n\x15UpdateDatapointsReply\x12\x44\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x34.sdv.databroker.v1.UpdateDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01\"\xba\x01\n\x17StreamDatapointsRequest\x12N\n\ndatapoints\x18\x01 \x03(\x0b\x32:.sdv.databroker.v1.StreamDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01\"\xaf\x01\n\x15StreamDatapointsReply\x12\x44\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x34.sdv.databroker.v1.StreamDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01\"R\n\x19RegisterDatapointsRequest\x12\x35\n\x04list\x18\x01 \x03(\x0b\x32\'.sdv.databroker.v1.RegistrationMetadata\"\x9d\x01\n\x14RegistrationMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\tdata_type\x18\x02 \x01(\x0e\x32\x1b.sdv.databroker.v1.DataType\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x32\n\x0b\x63hange_type\x18\x04 \x01(\x0e\x32\x1d.sdv.databroker.v1.ChangeType\"\x93\x01\n\x17RegisterDatapointsReply\x12H\n\x07results\x18\x01 \x03(\x0b\x32\x37.sdv.databroker.v1.RegisterDatapointsReply.ResultsEntry\x1a.\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\x32\xd3\x02\n\tCollector\x12n\n\x12RegisterDatapoints\x12,.sdv.databroker.v1.RegisterDatapointsRequest\x1a*.sdv.databroker.v1.RegisterDatapointsReply\x12h\n\x10UpdateDatapoints\x12*.sdv.databroker.v1.UpdateDatapointsRequest\x1a(.sdv.databroker.v1.UpdateDatapointsReply\x12l\n\x10StreamDatapoints\x12*.sdv.databroker.v1.StreamDatapointsRequest\x1a(.sdv.databroker.v1.StreamDatapointsReply(\x01\x30\x01\x62\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n!sdv/databroker/v1/collector.proto\x12\x11sdv.databroker.v1\x1a\x1dsdv/databroker/v1/types.proto"\xba\x01\n\x17UpdateDatapointsRequest\x12N\n\ndatapoints\x18\x01 \x03(\x0b\x32:.sdv.databroker.v1.UpdateDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"\xaf\x01\n\x15UpdateDatapointsReply\x12\x44\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x34.sdv.databroker.v1.UpdateDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01"\xba\x01\n\x17StreamDatapointsRequest\x12N\n\ndatapoints\x18\x01 \x03(\x0b\x32:.sdv.databroker.v1.StreamDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"\xaf\x01\n\x15StreamDatapointsReply\x12\x44\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x34.sdv.databroker.v1.StreamDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01"R\n\x19RegisterDatapointsRequest\x12\x35\n\x04list\x18\x01 \x03(\x0b\x32\'.sdv.databroker.v1.RegistrationMetadata"\x9d\x01\n\x14RegistrationMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\tdata_type\x18\x02 \x01(\x0e\x32\x1b.sdv.databroker.v1.DataType\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x32\n\x0b\x63hange_type\x18\x04 \x01(\x0e\x32\x1d.sdv.databroker.v1.ChangeType"\x93\x01\n\x17RegisterDatapointsReply\x12H\n\x07results\x18\x01 \x03(\x0b\x32\x37.sdv.databroker.v1.RegisterDatapointsReply.ResultsEntry\x1a.\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\x32\xd3\x02\n\tCollector\x12n\n\x12RegisterDatapoints\x12,.sdv.databroker.v1.RegisterDatapointsRequest\x1a*.sdv.databroker.v1.RegisterDatapointsReply\x12h\n\x10UpdateDatapoints\x12*.sdv.databroker.v1.UpdateDatapointsRequest\x1a(.sdv.databroker.v1.UpdateDatapointsReply\x12l\n\x10StreamDatapoints\x12*.sdv.databroker.v1.StreamDatapointsRequest\x1a(.sdv.databroker.v1.StreamDatapointsReply(\x01\x30\x01\x62\x06proto3' +) _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sdv.databroker.v1.collector_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages( + DESCRIPTOR, "sdv.databroker.v1.collector_pb2", _globals +) if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - _UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None - _UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b'8\001' - _UPDATEDATAPOINTSREPLY_ERRORSENTRY._options = None - _UPDATEDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b'8\001' - _STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None - _STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b'8\001' - _STREAMDATAPOINTSREPLY_ERRORSENTRY._options = None - _STREAMDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b'8\001' - _REGISTERDATAPOINTSREPLY_RESULTSENTRY._options = None - _REGISTERDATAPOINTSREPLY_RESULTSENTRY._serialized_options = b'8\001' - _globals['_UPDATEDATAPOINTSREQUEST']._serialized_start=88 - _globals['_UPDATEDATAPOINTSREQUEST']._serialized_end=274 - _globals['_UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY']._serialized_start=195 - _globals['_UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY']._serialized_end=274 - _globals['_UPDATEDATAPOINTSREPLY']._serialized_start=277 - _globals['_UPDATEDATAPOINTSREPLY']._serialized_end=452 - _globals['_UPDATEDATAPOINTSREPLY_ERRORSENTRY']._serialized_start=372 - _globals['_UPDATEDATAPOINTSREPLY_ERRORSENTRY']._serialized_end=452 - _globals['_STREAMDATAPOINTSREQUEST']._serialized_start=455 - _globals['_STREAMDATAPOINTSREQUEST']._serialized_end=641 - _globals['_STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY']._serialized_start=195 - _globals['_STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY']._serialized_end=274 - _globals['_STREAMDATAPOINTSREPLY']._serialized_start=644 - _globals['_STREAMDATAPOINTSREPLY']._serialized_end=819 - _globals['_STREAMDATAPOINTSREPLY_ERRORSENTRY']._serialized_start=372 - _globals['_STREAMDATAPOINTSREPLY_ERRORSENTRY']._serialized_end=452 - _globals['_REGISTERDATAPOINTSREQUEST']._serialized_start=821 - _globals['_REGISTERDATAPOINTSREQUEST']._serialized_end=903 - _globals['_REGISTRATIONMETADATA']._serialized_start=906 - _globals['_REGISTRATIONMETADATA']._serialized_end=1063 - _globals['_REGISTERDATAPOINTSREPLY']._serialized_start=1066 - _globals['_REGISTERDATAPOINTSREPLY']._serialized_end=1213 - _globals['_REGISTERDATAPOINTSREPLY_RESULTSENTRY']._serialized_start=1167 - _globals['_REGISTERDATAPOINTSREPLY_RESULTSENTRY']._serialized_end=1213 - _globals['_COLLECTOR']._serialized_start=1216 - _globals['_COLLECTOR']._serialized_end=1555 + DESCRIPTOR._options = None + _UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None + _UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b"8\001" + _UPDATEDATAPOINTSREPLY_ERRORSENTRY._options = None + _UPDATEDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b"8\001" + _STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None + _STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b"8\001" + _STREAMDATAPOINTSREPLY_ERRORSENTRY._options = None + _STREAMDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b"8\001" + _REGISTERDATAPOINTSREPLY_RESULTSENTRY._options = None + _REGISTERDATAPOINTSREPLY_RESULTSENTRY._serialized_options = b"8\001" + _globals["_UPDATEDATAPOINTSREQUEST"]._serialized_start = 88 + _globals["_UPDATEDATAPOINTSREQUEST"]._serialized_end = 274 + _globals["_UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_start = 195 + _globals["_UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_end = 274 + _globals["_UPDATEDATAPOINTSREPLY"]._serialized_start = 277 + _globals["_UPDATEDATAPOINTSREPLY"]._serialized_end = 452 + _globals["_UPDATEDATAPOINTSREPLY_ERRORSENTRY"]._serialized_start = 372 + _globals["_UPDATEDATAPOINTSREPLY_ERRORSENTRY"]._serialized_end = 452 + _globals["_STREAMDATAPOINTSREQUEST"]._serialized_start = 455 + _globals["_STREAMDATAPOINTSREQUEST"]._serialized_end = 641 + _globals["_STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_start = 195 + _globals["_STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_end = 274 + _globals["_STREAMDATAPOINTSREPLY"]._serialized_start = 644 + _globals["_STREAMDATAPOINTSREPLY"]._serialized_end = 819 + _globals["_STREAMDATAPOINTSREPLY_ERRORSENTRY"]._serialized_start = 372 + _globals["_STREAMDATAPOINTSREPLY_ERRORSENTRY"]._serialized_end = 452 + _globals["_REGISTERDATAPOINTSREQUEST"]._serialized_start = 821 + _globals["_REGISTERDATAPOINTSREQUEST"]._serialized_end = 903 + _globals["_REGISTRATIONMETADATA"]._serialized_start = 906 + _globals["_REGISTRATIONMETADATA"]._serialized_end = 1063 + _globals["_REGISTERDATAPOINTSREPLY"]._serialized_start = 1066 + _globals["_REGISTERDATAPOINTSREPLY"]._serialized_end = 1213 + _globals["_REGISTERDATAPOINTSREPLY_RESULTSENTRY"]._serialized_start = 1167 + _globals["_REGISTERDATAPOINTSREPLY_RESULTSENTRY"]._serialized_end = 1213 + _globals["_COLLECTOR"]._serialized_start = 1216 + _globals["_COLLECTOR"]._serialized_end = 1555 # @@protoc_insertion_point(module_scope) diff --git a/velocitas_sdk/proto/collector_pb2.pyi b/velocitas_sdk/proto/collector_pb2.pyi index bfcfe2be..6c60dc2d 100644 --- a/velocitas_sdk/proto/collector_pb2.pyi +++ b/velocitas_sdk/proto/collector_pb2.pyi @@ -1,21 +1,7 @@ -# 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 Contributors to the Eclipse Foundation +Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation 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/collector_pb2_grpc.py b/velocitas_sdk/proto/collector_pb2_grpc.py index 07f11693..89f5f848 100644 --- a/velocitas_sdk/proto/collector_pb2_grpc.py +++ b/velocitas_sdk/proto/collector_pb2_grpc.py @@ -1,22 +1,10 @@ -# 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 -from velocitas_sdk.proto import collector_pb2 as sdv_dot_databroker_dot_v1_dot_collector__pb2 +from velocitas_sdk.proto import ( + collector_pb2 as sdv_dot_databroker_dot_v1_dot_collector__pb2, +) class CollectorStub(object): @@ -29,20 +17,20 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.RegisterDatapoints = channel.unary_unary( - '/sdv.databroker.v1.Collector/RegisterDatapoints', - request_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsRequest.SerializeToString, - response_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsReply.FromString, - ) + "/sdv.databroker.v1.Collector/RegisterDatapoints", + request_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsRequest.SerializeToString, + response_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsReply.FromString, + ) self.UpdateDatapoints = channel.unary_unary( - '/sdv.databroker.v1.Collector/UpdateDatapoints', - request_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsRequest.SerializeToString, - response_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsReply.FromString, - ) + "/sdv.databroker.v1.Collector/UpdateDatapoints", + request_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsRequest.SerializeToString, + response_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsReply.FromString, + ) self.StreamDatapoints = channel.stream_stream( - '/sdv.databroker.v1.Collector/StreamDatapoints', - request_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsRequest.SerializeToString, - response_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsReply.FromString, - ) + "/sdv.databroker.v1.Collector/StreamDatapoints", + request_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsRequest.SerializeToString, + response_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsReply.FromString, + ) class CollectorServicer(object): @@ -63,8 +51,8 @@ def RegisterDatapoints(self, request, context): * INVALID_CHANGE_TYPE - The passed ChangeType is not supported """ 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 UpdateDatapoints(self, request, context): """Provide a set of updated datapoint values to the broker. @@ -80,8 +68,8 @@ def UpdateDatapoints(self, request, context): """ 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 StreamDatapoints(self, request_iterator, context): """Provide a stream with updated datapoint values to the broker. @@ -97,84 +85,121 @@ def StreamDatapoints(self, request_iterator, context): """ 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_CollectorServicer_to_server(servicer, server): rpc_method_handlers = { - 'RegisterDatapoints': grpc.unary_unary_rpc_method_handler( - servicer.RegisterDatapoints, - request_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsRequest.FromString, - response_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsReply.SerializeToString, - ), - 'UpdateDatapoints': grpc.unary_unary_rpc_method_handler( - servicer.UpdateDatapoints, - request_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsRequest.FromString, - response_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsReply.SerializeToString, - ), - 'StreamDatapoints': grpc.stream_stream_rpc_method_handler( - servicer.StreamDatapoints, - request_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsRequest.FromString, - response_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsReply.SerializeToString, - ), + "RegisterDatapoints": grpc.unary_unary_rpc_method_handler( + servicer.RegisterDatapoints, + request_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsRequest.FromString, + response_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsReply.SerializeToString, + ), + "UpdateDatapoints": grpc.unary_unary_rpc_method_handler( + servicer.UpdateDatapoints, + request_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsRequest.FromString, + response_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsReply.SerializeToString, + ), + "StreamDatapoints": grpc.stream_stream_rpc_method_handler( + servicer.StreamDatapoints, + request_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsRequest.FromString, + response_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsReply.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( - 'sdv.databroker.v1.Collector', rpc_method_handlers) + "sdv.databroker.v1.Collector", 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 Collector(object): """Missing associated documentation comment in .proto file.""" @staticmethod - def RegisterDatapoints(request, + def RegisterDatapoints( + 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.databroker.v1.Collector/RegisterDatapoints', + "/sdv.databroker.v1.Collector/RegisterDatapoints", sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsRequest.SerializeToString, sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsReply.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 UpdateDatapoints(request, + def UpdateDatapoints( + 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.databroker.v1.Collector/UpdateDatapoints', + "/sdv.databroker.v1.Collector/UpdateDatapoints", sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsRequest.SerializeToString, sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsReply.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 StreamDatapoints(request_iterator, + def StreamDatapoints( + request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.stream_stream( + request_iterator, target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.stream_stream(request_iterator, target, '/sdv.databroker.v1.Collector/StreamDatapoints', + "/sdv.databroker.v1.Collector/StreamDatapoints", sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsRequest.SerializeToString, sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsReply.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/velocitas_sdk/proto/types_pb2.py b/velocitas_sdk/proto/types_pb2.py index ec20694a..57eff12f 100644 --- a/velocitas_sdk/proto/types_pb2.py +++ b/velocitas_sdk/proto/types_pb2.py @@ -1,18 +1,4 @@ # -*- 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.""" @@ -20,6 +6,7 @@ from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -28,40 +15,43 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dsdv/databroker/v1/types.proto\x12\x11sdv.databroker.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x1d\n\x0bStringArray\x12\x0e\n\x06values\x18\x01 \x03(\t\"\x1b\n\tBoolArray\x12\x0e\n\x06values\x18\x01 \x03(\x08\"\x1c\n\nInt32Array\x12\x0e\n\x06values\x18\x01 \x03(\x11\"\x1c\n\nInt64Array\x12\x0e\n\x06values\x18\x01 \x03(\x12\"\x1d\n\x0bUint32Array\x12\x0e\n\x06values\x18\x01 \x03(\r\"\x1d\n\x0bUint64Array\x12\x0e\n\x06values\x18\x01 \x03(\x04\"\x1c\n\nFloatArray\x12\x0e\n\x06values\x18\x01 \x03(\x02\"\x1d\n\x0b\x44oubleArray\x12\x0e\n\x06values\x18\x01 \x03(\x01\"\xe2\x06\n\tDatapoint\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\rfailure_value\x18\n \x01(\x0e\x32$.sdv.databroker.v1.Datapoint.FailureH\x00\x12\x16\n\x0cstring_value\x18\x0b \x01(\tH\x00\x12\x14\n\nbool_value\x18\x0c \x01(\x08H\x00\x12\x15\n\x0bint32_value\x18\r \x01(\x11H\x00\x12\x15\n\x0bint64_value\x18\x0e \x01(\x12H\x00\x12\x16\n\x0cuint32_value\x18\x0f \x01(\rH\x00\x12\x16\n\x0cuint64_value\x18\x10 \x01(\x04H\x00\x12\x15\n\x0b\x66loat_value\x18\x11 \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\x12 \x01(\x01H\x00\x12\x36\n\x0cstring_array\x18\x15 \x01(\x0b\x32\x1e.sdv.databroker.v1.StringArrayH\x00\x12\x32\n\nbool_array\x18\x16 \x01(\x0b\x32\x1c.sdv.databroker.v1.BoolArrayH\x00\x12\x34\n\x0bint32_array\x18\x17 \x01(\x0b\x32\x1d.sdv.databroker.v1.Int32ArrayH\x00\x12\x34\n\x0bint64_array\x18\x18 \x01(\x0b\x32\x1d.sdv.databroker.v1.Int64ArrayH\x00\x12\x36\n\x0cuint32_array\x18\x19 \x01(\x0b\x32\x1e.sdv.databroker.v1.Uint32ArrayH\x00\x12\x36\n\x0cuint64_array\x18\x1a \x01(\x0b\x32\x1e.sdv.databroker.v1.Uint64ArrayH\x00\x12\x34\n\x0b\x66loat_array\x18\x1b \x01(\x0b\x32\x1d.sdv.databroker.v1.FloatArrayH\x00\x12\x36\n\x0c\x64ouble_array\x18\x1c \x01(\x0b\x32\x1e.sdv.databroker.v1.DoubleArrayH\x00\"m\n\x07\x46\x61ilure\x12\x11\n\rINVALID_VALUE\x10\x00\x12\x11\n\rNOT_AVAILABLE\x10\x01\x12\x15\n\x11UNKNOWN_DATAPOINT\x10\x02\x12\x11\n\rACCESS_DENIED\x10\x03\x12\x12\n\x0eINTERNAL_ERROR\x10\x04\x42\x07\n\x05value\"\x9d\x01\n\x08Metadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x04 \x01(\t\x12.\n\tdata_type\x18\x05 \x01(\x0e\x32\x1b.sdv.databroker.v1.DataType\x12\x32\n\x0b\x63hange_type\x18\x06 \x01(\x0e\x32\x1d.sdv.databroker.v1.ChangeType\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t*\x84\x03\n\x08\x44\x61taType\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\x08\n\x04INT8\x10\x02\x12\t\n\x05INT16\x10\x03\x12\t\n\x05INT32\x10\x04\x12\t\n\x05INT64\x10\x05\x12\t\n\x05UINT8\x10\x06\x12\n\n\x06UINT16\x10\x07\x12\n\n\x06UINT32\x10\x08\x12\n\n\x06UINT64\x10\t\x12\t\n\x05\x46LOAT\x10\n\x12\n\n\x06\x44OUBLE\x10\x0b\x12\r\n\tTIMESTAMP\x10\x0c\x12\x10\n\x0cSTRING_ARRAY\x10\x14\x12\x0e\n\nBOOL_ARRAY\x10\x15\x12\x0e\n\nINT8_ARRAY\x10\x16\x12\x0f\n\x0bINT16_ARRAY\x10\x17\x12\x0f\n\x0bINT32_ARRAY\x10\x18\x12\x0f\n\x0bINT64_ARRAY\x10\x19\x12\x0f\n\x0bUINT8_ARRAY\x10\x1a\x12\x10\n\x0cUINT16_ARRAY\x10\x1b\x12\x10\n\x0cUINT32_ARRAY\x10\x1c\x12\x10\n\x0cUINT64_ARRAY\x10\x1d\x12\x0f\n\x0b\x46LOAT_ARRAY\x10\x1e\x12\x10\n\x0c\x44OUBLE_ARRAY\x10\x1f\x12\x13\n\x0fTIMESTAMP_ARRAY\x10 *s\n\x0e\x44\x61tapointError\x12\x15\n\x11UNKNOWN_DATAPOINT\x10\x00\x12\x10\n\x0cINVALID_TYPE\x10\x01\x12\x11\n\rACCESS_DENIED\x10\x02\x12\x12\n\x0eINTERNAL_ERROR\x10\x03\x12\x11\n\rOUT_OF_BOUNDS\x10\x04*7\n\nChangeType\x12\n\n\x06STATIC\x10\x00\x12\r\n\tON_CHANGE\x10\x01\x12\x0e\n\nCONTINUOUS\x10\x02\x62\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n\x1dsdv/databroker/v1/types.proto\x12\x11sdv.databroker.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x1d\n\x0bStringArray\x12\x0e\n\x06values\x18\x01 \x03(\t"\x1b\n\tBoolArray\x12\x0e\n\x06values\x18\x01 \x03(\x08"\x1c\n\nInt32Array\x12\x0e\n\x06values\x18\x01 \x03(\x11"\x1c\n\nInt64Array\x12\x0e\n\x06values\x18\x01 \x03(\x12"\x1d\n\x0bUint32Array\x12\x0e\n\x06values\x18\x01 \x03(\r"\x1d\n\x0bUint64Array\x12\x0e\n\x06values\x18\x01 \x03(\x04"\x1c\n\nFloatArray\x12\x0e\n\x06values\x18\x01 \x03(\x02"\x1d\n\x0b\x44oubleArray\x12\x0e\n\x06values\x18\x01 \x03(\x01"\xe2\x06\n\tDatapoint\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\rfailure_value\x18\n \x01(\x0e\x32$.sdv.databroker.v1.Datapoint.FailureH\x00\x12\x16\n\x0cstring_value\x18\x0b \x01(\tH\x00\x12\x14\n\nbool_value\x18\x0c \x01(\x08H\x00\x12\x15\n\x0bint32_value\x18\r \x01(\x11H\x00\x12\x15\n\x0bint64_value\x18\x0e \x01(\x12H\x00\x12\x16\n\x0cuint32_value\x18\x0f \x01(\rH\x00\x12\x16\n\x0cuint64_value\x18\x10 \x01(\x04H\x00\x12\x15\n\x0b\x66loat_value\x18\x11 \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\x12 \x01(\x01H\x00\x12\x36\n\x0cstring_array\x18\x15 \x01(\x0b\x32\x1e.sdv.databroker.v1.StringArrayH\x00\x12\x32\n\nbool_array\x18\x16 \x01(\x0b\x32\x1c.sdv.databroker.v1.BoolArrayH\x00\x12\x34\n\x0bint32_array\x18\x17 \x01(\x0b\x32\x1d.sdv.databroker.v1.Int32ArrayH\x00\x12\x34\n\x0bint64_array\x18\x18 \x01(\x0b\x32\x1d.sdv.databroker.v1.Int64ArrayH\x00\x12\x36\n\x0cuint32_array\x18\x19 \x01(\x0b\x32\x1e.sdv.databroker.v1.Uint32ArrayH\x00\x12\x36\n\x0cuint64_array\x18\x1a \x01(\x0b\x32\x1e.sdv.databroker.v1.Uint64ArrayH\x00\x12\x34\n\x0b\x66loat_array\x18\x1b \x01(\x0b\x32\x1d.sdv.databroker.v1.FloatArrayH\x00\x12\x36\n\x0c\x64ouble_array\x18\x1c \x01(\x0b\x32\x1e.sdv.databroker.v1.DoubleArrayH\x00"m\n\x07\x46\x61ilure\x12\x11\n\rINVALID_VALUE\x10\x00\x12\x11\n\rNOT_AVAILABLE\x10\x01\x12\x15\n\x11UNKNOWN_DATAPOINT\x10\x02\x12\x11\n\rACCESS_DENIED\x10\x03\x12\x12\n\x0eINTERNAL_ERROR\x10\x04\x42\x07\n\x05value"\x9d\x01\n\x08Metadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x04 \x01(\t\x12.\n\tdata_type\x18\x05 \x01(\x0e\x32\x1b.sdv.databroker.v1.DataType\x12\x32\n\x0b\x63hange_type\x18\x06 \x01(\x0e\x32\x1d.sdv.databroker.v1.ChangeType\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t*\x84\x03\n\x08\x44\x61taType\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\x08\n\x04INT8\x10\x02\x12\t\n\x05INT16\x10\x03\x12\t\n\x05INT32\x10\x04\x12\t\n\x05INT64\x10\x05\x12\t\n\x05UINT8\x10\x06\x12\n\n\x06UINT16\x10\x07\x12\n\n\x06UINT32\x10\x08\x12\n\n\x06UINT64\x10\t\x12\t\n\x05\x46LOAT\x10\n\x12\n\n\x06\x44OUBLE\x10\x0b\x12\r\n\tTIMESTAMP\x10\x0c\x12\x10\n\x0cSTRING_ARRAY\x10\x14\x12\x0e\n\nBOOL_ARRAY\x10\x15\x12\x0e\n\nINT8_ARRAY\x10\x16\x12\x0f\n\x0bINT16_ARRAY\x10\x17\x12\x0f\n\x0bINT32_ARRAY\x10\x18\x12\x0f\n\x0bINT64_ARRAY\x10\x19\x12\x0f\n\x0bUINT8_ARRAY\x10\x1a\x12\x10\n\x0cUINT16_ARRAY\x10\x1b\x12\x10\n\x0cUINT32_ARRAY\x10\x1c\x12\x10\n\x0cUINT64_ARRAY\x10\x1d\x12\x0f\n\x0b\x46LOAT_ARRAY\x10\x1e\x12\x10\n\x0c\x44OUBLE_ARRAY\x10\x1f\x12\x13\n\x0fTIMESTAMP_ARRAY\x10 *s\n\x0e\x44\x61tapointError\x12\x15\n\x11UNKNOWN_DATAPOINT\x10\x00\x12\x10\n\x0cINVALID_TYPE\x10\x01\x12\x11\n\rACCESS_DENIED\x10\x02\x12\x12\n\x0eINTERNAL_ERROR\x10\x03\x12\x11\n\rOUT_OF_BOUNDS\x10\x04*7\n\nChangeType\x12\n\n\x06STATIC\x10\x00\x12\r\n\tON_CHANGE\x10\x01\x12\x0e\n\nCONTINUOUS\x10\x02\x62\x06proto3' +) _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sdv.databroker.v1.types_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages( + DESCRIPTOR, "sdv.databroker.v1.types_pb2", _globals +) if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - _globals['_DATATYPE']._serialized_start=1358 - _globals['_DATATYPE']._serialized_end=1746 - _globals['_DATAPOINTERROR']._serialized_start=1748 - _globals['_DATAPOINTERROR']._serialized_end=1863 - _globals['_CHANGETYPE']._serialized_start=1865 - _globals['_CHANGETYPE']._serialized_end=1920 - _globals['_STRINGARRAY']._serialized_start=85 - _globals['_STRINGARRAY']._serialized_end=114 - _globals['_BOOLARRAY']._serialized_start=116 - _globals['_BOOLARRAY']._serialized_end=143 - _globals['_INT32ARRAY']._serialized_start=145 - _globals['_INT32ARRAY']._serialized_end=173 - _globals['_INT64ARRAY']._serialized_start=175 - _globals['_INT64ARRAY']._serialized_end=203 - _globals['_UINT32ARRAY']._serialized_start=205 - _globals['_UINT32ARRAY']._serialized_end=234 - _globals['_UINT64ARRAY']._serialized_start=236 - _globals['_UINT64ARRAY']._serialized_end=265 - _globals['_FLOATARRAY']._serialized_start=267 - _globals['_FLOATARRAY']._serialized_end=295 - _globals['_DOUBLEARRAY']._serialized_start=297 - _globals['_DOUBLEARRAY']._serialized_end=326 - _globals['_DATAPOINT']._serialized_start=329 - _globals['_DATAPOINT']._serialized_end=1195 - _globals['_DATAPOINT_FAILURE']._serialized_start=1077 - _globals['_DATAPOINT_FAILURE']._serialized_end=1186 - _globals['_METADATA']._serialized_start=1198 - _globals['_METADATA']._serialized_end=1355 + DESCRIPTOR._options = None + _globals["_DATATYPE"]._serialized_start = 1358 + _globals["_DATATYPE"]._serialized_end = 1746 + _globals["_DATAPOINTERROR"]._serialized_start = 1748 + _globals["_DATAPOINTERROR"]._serialized_end = 1863 + _globals["_CHANGETYPE"]._serialized_start = 1865 + _globals["_CHANGETYPE"]._serialized_end = 1920 + _globals["_STRINGARRAY"]._serialized_start = 85 + _globals["_STRINGARRAY"]._serialized_end = 114 + _globals["_BOOLARRAY"]._serialized_start = 116 + _globals["_BOOLARRAY"]._serialized_end = 143 + _globals["_INT32ARRAY"]._serialized_start = 145 + _globals["_INT32ARRAY"]._serialized_end = 173 + _globals["_INT64ARRAY"]._serialized_start = 175 + _globals["_INT64ARRAY"]._serialized_end = 203 + _globals["_UINT32ARRAY"]._serialized_start = 205 + _globals["_UINT32ARRAY"]._serialized_end = 234 + _globals["_UINT64ARRAY"]._serialized_start = 236 + _globals["_UINT64ARRAY"]._serialized_end = 265 + _globals["_FLOATARRAY"]._serialized_start = 267 + _globals["_FLOATARRAY"]._serialized_end = 295 + _globals["_DOUBLEARRAY"]._serialized_start = 297 + _globals["_DOUBLEARRAY"]._serialized_end = 326 + _globals["_DATAPOINT"]._serialized_start = 329 + _globals["_DATAPOINT"]._serialized_end = 1195 + _globals["_DATAPOINT_FAILURE"]._serialized_start = 1077 + _globals["_DATAPOINT_FAILURE"]._serialized_end = 1186 + _globals["_METADATA"]._serialized_start = 1198 + _globals["_METADATA"]._serialized_end = 1355 # @@protoc_insertion_point(module_scope) diff --git a/velocitas_sdk/proto/types_pb2.pyi b/velocitas_sdk/proto/types_pb2.pyi index ceebe4e5..8ec1cf7f 100644 --- a/velocitas_sdk/proto/types_pb2.pyi +++ b/velocitas_sdk/proto/types_pb2.pyi @@ -1,614 +1,55 @@ -# 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 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 builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import google.protobuf.timestamp_pb2 -import sys -import typing - -if sys.version_info >= (3, 10): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -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, -): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - STRING: _DataType.ValueType # 0 - BOOL: _DataType.ValueType # 1 - INT8: _DataType.ValueType # 2 - INT16: _DataType.ValueType # 3 - INT32: _DataType.ValueType # 4 - INT64: _DataType.ValueType # 5 - UINT8: _DataType.ValueType # 6 - UINT16: _DataType.ValueType # 7 - UINT32: _DataType.ValueType # 8 - UINT64: _DataType.ValueType # 9 - FLOAT: _DataType.ValueType # 10 - DOUBLE: _DataType.ValueType # 11 - TIMESTAMP: _DataType.ValueType # 12 - STRING_ARRAY: _DataType.ValueType # 20 - BOOL_ARRAY: _DataType.ValueType # 21 - INT8_ARRAY: _DataType.ValueType # 22 - INT16_ARRAY: _DataType.ValueType # 23 - INT32_ARRAY: _DataType.ValueType # 24 - INT64_ARRAY: _DataType.ValueType # 25 - UINT8_ARRAY: _DataType.ValueType # 26 - UINT16_ARRAY: _DataType.ValueType # 27 - UINT32_ARRAY: _DataType.ValueType # 28 - UINT64_ARRAY: _DataType.ValueType # 29 - FLOAT_ARRAY: _DataType.ValueType # 30 - DOUBLE_ARRAY: _DataType.ValueType # 31 - TIMESTAMP_ARRAY: _DataType.ValueType # 32 - -class DataType(_DataType, metaclass=_DataTypeEnumTypeWrapper): - """Data type of a signal - - Protobuf doesn't support int8, int16, uint8 or uint16. - These are mapped to sint32 and uint32 respectively. - """ - -STRING: DataType.ValueType # 0 -BOOL: DataType.ValueType # 1 -INT8: DataType.ValueType # 2 -INT16: DataType.ValueType # 3 -INT32: DataType.ValueType # 4 -INT64: DataType.ValueType # 5 -UINT8: DataType.ValueType # 6 -UINT16: DataType.ValueType # 7 -UINT32: DataType.ValueType # 8 -UINT64: DataType.ValueType # 9 -FLOAT: DataType.ValueType # 10 -DOUBLE: DataType.ValueType # 11 -TIMESTAMP: DataType.ValueType # 12 -STRING_ARRAY: DataType.ValueType # 20 -BOOL_ARRAY: DataType.ValueType # 21 -INT8_ARRAY: DataType.ValueType # 22 -INT16_ARRAY: DataType.ValueType # 23 -INT32_ARRAY: DataType.ValueType # 24 -INT64_ARRAY: DataType.ValueType # 25 -UINT8_ARRAY: DataType.ValueType # 26 -UINT16_ARRAY: DataType.ValueType # 27 -UINT32_ARRAY: DataType.ValueType # 28 -UINT64_ARRAY: DataType.ValueType # 29 -FLOAT_ARRAY: DataType.ValueType # 30 -DOUBLE_ARRAY: DataType.ValueType # 31 -TIMESTAMP_ARRAY: DataType.ValueType # 32 -global___DataType = DataType - -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, -): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - UNKNOWN_DATAPOINT: _DatapointError.ValueType # 0 - INVALID_TYPE: _DatapointError.ValueType # 1 - ACCESS_DENIED: _DatapointError.ValueType # 2 - INTERNAL_ERROR: _DatapointError.ValueType # 3 - OUT_OF_BOUNDS: _DatapointError.ValueType # 4 - -class DatapointError(_DatapointError, metaclass=_DatapointErrorEnumTypeWrapper): ... - -UNKNOWN_DATAPOINT: DatapointError.ValueType # 0 -INVALID_TYPE: DatapointError.ValueType # 1 -ACCESS_DENIED: DatapointError.ValueType # 2 -INTERNAL_ERROR: DatapointError.ValueType # 3 -OUT_OF_BOUNDS: DatapointError.ValueType # 4 -global___DatapointError = DatapointError - -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, -): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - STATIC: _ChangeType.ValueType # 0 - """Value never changes""" - ON_CHANGE: _ChangeType.ValueType # 1 - """Updates are provided every time the value changes (i.e.""" - CONTINUOUS: _ChangeType.ValueType # 2 - """window is open / closed) - Value is updated continuously. Broker needs to tell - """ - -class ChangeType(_ChangeType, metaclass=_ChangeTypeEnumTypeWrapper): ... - -STATIC: ChangeType.ValueType # 0 -"""Value never changes""" -ON_CHANGE: ChangeType.ValueType # 1 -"""Updates are provided every time the value changes (i.e.""" -CONTINUOUS: ChangeType.ValueType # 2 -"""window is open / closed) -Value is updated continuously. Broker needs to tell -""" -global___ChangeType = ChangeType - -@typing_extensions.final -class StringArray(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VALUES_FIELD_NUMBER: builtins.int - @property - 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: ... - -global___StringArray = StringArray - -@typing_extensions.final -class BoolArray(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VALUES_FIELD_NUMBER: builtins.int - @property - 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: ... - -global___BoolArray = BoolArray - -@typing_extensions.final -class Int32Array(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VALUES_FIELD_NUMBER: builtins.int - @property - 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: ... - -global___Int32Array = Int32Array - -@typing_extensions.final -class Int64Array(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VALUES_FIELD_NUMBER: builtins.int - @property - 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: ... - -global___Int64Array = Int64Array - -@typing_extensions.final -class Uint32Array(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VALUES_FIELD_NUMBER: builtins.int - @property - 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: ... - -global___Uint32Array = Uint32Array - -@typing_extensions.final -class Uint64Array(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VALUES_FIELD_NUMBER: builtins.int - @property - 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: ... - -global___Uint64Array = Uint64Array - -@typing_extensions.final -class FloatArray(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VALUES_FIELD_NUMBER: builtins.int - @property - 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: ... - -global___FloatArray = FloatArray - -@typing_extensions.final -class DoubleArray(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VALUES_FIELD_NUMBER: builtins.int - @property - 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: ... - -global___DoubleArray = DoubleArray - -@typing_extensions.final -class Datapoint(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class _Failure: - 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 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - INVALID_VALUE: Datapoint._Failure.ValueType # 0 - """The data point is known, but doesn't have a valid value""" - NOT_AVAILABLE: Datapoint._Failure.ValueType # 1 - """The data point is known, but no value is available""" - UNKNOWN_DATAPOINT: Datapoint._Failure.ValueType # 2 - """Unknown datapoint""" - ACCESS_DENIED: Datapoint._Failure.ValueType # 3 - """Access denied""" - INTERNAL_ERROR: Datapoint._Failure.ValueType # 4 - """Unexpected internal error""" - - class Failure(_Failure, metaclass=_FailureEnumTypeWrapper): ... - INVALID_VALUE: Datapoint.Failure.ValueType # 0 - """The data point is known, but doesn't have a valid value""" - NOT_AVAILABLE: Datapoint.Failure.ValueType # 1 - """The data point is known, but no value is available""" - UNKNOWN_DATAPOINT: Datapoint.Failure.ValueType # 2 - """Unknown datapoint""" - ACCESS_DENIED: Datapoint.Failure.ValueType # 3 - """Access denied""" - INTERNAL_ERROR: Datapoint.Failure.ValueType # 4 - """Unexpected internal error""" - - TIMESTAMP_FIELD_NUMBER: builtins.int - FAILURE_VALUE_FIELD_NUMBER: builtins.int - STRING_VALUE_FIELD_NUMBER: builtins.int - BOOL_VALUE_FIELD_NUMBER: builtins.int - INT32_VALUE_FIELD_NUMBER: builtins.int - INT64_VALUE_FIELD_NUMBER: builtins.int - UINT32_VALUE_FIELD_NUMBER: builtins.int - UINT64_VALUE_FIELD_NUMBER: builtins.int - FLOAT_VALUE_FIELD_NUMBER: builtins.int - DOUBLE_VALUE_FIELD_NUMBER: builtins.int - STRING_ARRAY_FIELD_NUMBER: builtins.int - BOOL_ARRAY_FIELD_NUMBER: builtins.int - INT32_ARRAY_FIELD_NUMBER: builtins.int - INT64_ARRAY_FIELD_NUMBER: builtins.int - UINT32_ARRAY_FIELD_NUMBER: builtins.int - UINT64_ARRAY_FIELD_NUMBER: builtins.int - FLOAT_ARRAY_FIELD_NUMBER: builtins.int - DOUBLE_ARRAY_FIELD_NUMBER: builtins.int - @property - def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Timestamp of the value""" - failure_value: global___Datapoint.Failure.ValueType - string_value: builtins.str - bool_value: builtins.bool - int32_value: builtins.int - int64_value: builtins.int - uint32_value: builtins.int - uint64_value: builtins.int - float_value: builtins.float - double_value: builtins.float - @property - def string_array(self) -> global___StringArray: ... - @property - def bool_array(self) -> global___BoolArray: ... - @property - def int32_array(self) -> global___Int32Array: ... - @property - def int64_array(self) -> global___Int64Array: ... - @property - def uint32_array(self) -> global___Uint32Array: ... - @property - def uint64_array(self) -> global___Uint64Array: ... - @property - def float_array(self) -> global___FloatArray: ... - @property - def double_array(self) -> global___DoubleArray: ... - def __init__( - self, - *, - timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., - failure_value: global___Datapoint.Failure.ValueType = ..., - string_value: builtins.str = ..., - bool_value: builtins.bool = ..., - int32_value: builtins.int = ..., - int64_value: builtins.int = ..., - uint32_value: builtins.int = ..., - uint64_value: builtins.int = ..., - float_value: builtins.float = ..., - double_value: builtins.float = ..., - string_array: global___StringArray | None = ..., - bool_array: global___BoolArray | None = ..., - int32_array: global___Int32Array | None = ..., - int64_array: global___Int64Array | None = ..., - uint32_array: global___Uint32Array | None = ..., - uint64_array: global___Uint64Array | None = ..., - 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 - ): ... - -global___Datapoint = Datapoint - -@typing_extensions.final -class Metadata(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - DATA_TYPE_FIELD_NUMBER: builtins.int - CHANGE_TYPE_FIELD_NUMBER: builtins.int - DESCRIPTION_FIELD_NUMBER: builtins.int - id: builtins.int - """Id to be used in "get" and "subscribe" requests. Ids stay valid during - one power cycle, only. - """ - name: builtins.str - data_type: global___DataType.ValueType - change_type: global___ChangeType.ValueType - """CONTINUOUS or STATIC or ON_CHANGE""" - description: builtins.str - def __init__( - self, - *, - id: builtins.int = ..., - name: builtins.str = ..., - data_type: global___DataType.ValueType = ..., - 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: ... - -global___Metadata = Metadata +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: sdv/databroker/v1/types.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder + +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n\x1dsdv/databroker/v1/types.proto\x12\x11sdv.databroker.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x1d\n\x0bStringArray\x12\x0e\n\x06values\x18\x01 \x03(\t"\x1b\n\tBoolArray\x12\x0e\n\x06values\x18\x01 \x03(\x08"\x1c\n\nInt32Array\x12\x0e\n\x06values\x18\x01 \x03(\x11"\x1c\n\nInt64Array\x12\x0e\n\x06values\x18\x01 \x03(\x12"\x1d\n\x0bUint32Array\x12\x0e\n\x06values\x18\x01 \x03(\r"\x1d\n\x0bUint64Array\x12\x0e\n\x06values\x18\x01 \x03(\x04"\x1c\n\nFloatArray\x12\x0e\n\x06values\x18\x01 \x03(\x02"\x1d\n\x0b\x44oubleArray\x12\x0e\n\x06values\x18\x01 \x03(\x01"\xe2\x06\n\tDatapoint\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\rfailure_value\x18\n \x01(\x0e\x32$.sdv.databroker.v1.Datapoint.FailureH\x00\x12\x16\n\x0cstring_value\x18\x0b \x01(\tH\x00\x12\x14\n\nbool_value\x18\x0c \x01(\x08H\x00\x12\x15\n\x0bint32_value\x18\r \x01(\x11H\x00\x12\x15\n\x0bint64_value\x18\x0e \x01(\x12H\x00\x12\x16\n\x0cuint32_value\x18\x0f \x01(\rH\x00\x12\x16\n\x0cuint64_value\x18\x10 \x01(\x04H\x00\x12\x15\n\x0b\x66loat_value\x18\x11 \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\x12 \x01(\x01H\x00\x12\x36\n\x0cstring_array\x18\x15 \x01(\x0b\x32\x1e.sdv.databroker.v1.StringArrayH\x00\x12\x32\n\nbool_array\x18\x16 \x01(\x0b\x32\x1c.sdv.databroker.v1.BoolArrayH\x00\x12\x34\n\x0bint32_array\x18\x17 \x01(\x0b\x32\x1d.sdv.databroker.v1.Int32ArrayH\x00\x12\x34\n\x0bint64_array\x18\x18 \x01(\x0b\x32\x1d.sdv.databroker.v1.Int64ArrayH\x00\x12\x36\n\x0cuint32_array\x18\x19 \x01(\x0b\x32\x1e.sdv.databroker.v1.Uint32ArrayH\x00\x12\x36\n\x0cuint64_array\x18\x1a \x01(\x0b\x32\x1e.sdv.databroker.v1.Uint64ArrayH\x00\x12\x34\n\x0b\x66loat_array\x18\x1b \x01(\x0b\x32\x1d.sdv.databroker.v1.FloatArrayH\x00\x12\x36\n\x0c\x64ouble_array\x18\x1c \x01(\x0b\x32\x1e.sdv.databroker.v1.DoubleArrayH\x00"m\n\x07\x46\x61ilure\x12\x11\n\rINVALID_VALUE\x10\x00\x12\x11\n\rNOT_AVAILABLE\x10\x01\x12\x15\n\x11UNKNOWN_DATAPOINT\x10\x02\x12\x11\n\rACCESS_DENIED\x10\x03\x12\x12\n\x0eINTERNAL_ERROR\x10\x04\x42\x07\n\x05value"\x9d\x01\n\x08Metadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x04 \x01(\t\x12.\n\tdata_type\x18\x05 \x01(\x0e\x32\x1b.sdv.databroker.v1.DataType\x12\x32\n\x0b\x63hange_type\x18\x06 \x01(\x0e\x32\x1d.sdv.databroker.v1.ChangeType\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t*\x84\x03\n\x08\x44\x61taType\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\x08\n\x04INT8\x10\x02\x12\t\n\x05INT16\x10\x03\x12\t\n\x05INT32\x10\x04\x12\t\n\x05INT64\x10\x05\x12\t\n\x05UINT8\x10\x06\x12\n\n\x06UINT16\x10\x07\x12\n\n\x06UINT32\x10\x08\x12\n\n\x06UINT64\x10\t\x12\t\n\x05\x46LOAT\x10\n\x12\n\n\x06\x44OUBLE\x10\x0b\x12\r\n\tTIMESTAMP\x10\x0c\x12\x10\n\x0cSTRING_ARRAY\x10\x14\x12\x0e\n\nBOOL_ARRAY\x10\x15\x12\x0e\n\nINT8_ARRAY\x10\x16\x12\x0f\n\x0bINT16_ARRAY\x10\x17\x12\x0f\n\x0bINT32_ARRAY\x10\x18\x12\x0f\n\x0bINT64_ARRAY\x10\x19\x12\x0f\n\x0bUINT8_ARRAY\x10\x1a\x12\x10\n\x0cUINT16_ARRAY\x10\x1b\x12\x10\n\x0cUINT32_ARRAY\x10\x1c\x12\x10\n\x0cUINT64_ARRAY\x10\x1d\x12\x0f\n\x0b\x46LOAT_ARRAY\x10\x1e\x12\x10\n\x0c\x44OUBLE_ARRAY\x10\x1f\x12\x13\n\x0fTIMESTAMP_ARRAY\x10 *s\n\x0e\x44\x61tapointError\x12\x15\n\x11UNKNOWN_DATAPOINT\x10\x00\x12\x10\n\x0cINVALID_TYPE\x10\x01\x12\x11\n\rACCESS_DENIED\x10\x02\x12\x12\n\x0eINTERNAL_ERROR\x10\x03\x12\x11\n\rOUT_OF_BOUNDS\x10\x04*7\n\nChangeType\x12\n\n\x06STATIC\x10\x00\x12\r\n\tON_CHANGE\x10\x01\x12\x0e\n\nCONTINUOUS\x10\x02\x62\x06proto3' +) + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages( + DESCRIPTOR, "sdv.databroker.v1.types_pb2", _globals +) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + _globals["_DATATYPE"]._serialized_start = 1358 + _globals["_DATATYPE"]._serialized_end = 1746 + _globals["_DATAPOINTERROR"]._serialized_start = 1748 + _globals["_DATAPOINTERROR"]._serialized_end = 1863 + _globals["_CHANGETYPE"]._serialized_start = 1865 + _globals["_CHANGETYPE"]._serialized_end = 1920 + _globals["_STRINGARRAY"]._serialized_start = 85 + _globals["_STRINGARRAY"]._serialized_end = 114 + _globals["_BOOLARRAY"]._serialized_start = 116 + _globals["_BOOLARRAY"]._serialized_end = 143 + _globals["_INT32ARRAY"]._serialized_start = 145 + _globals["_INT32ARRAY"]._serialized_end = 173 + _globals["_INT64ARRAY"]._serialized_start = 175 + _globals["_INT64ARRAY"]._serialized_end = 203 + _globals["_UINT32ARRAY"]._serialized_start = 205 + _globals["_UINT32ARRAY"]._serialized_end = 234 + _globals["_UINT64ARRAY"]._serialized_start = 236 + _globals["_UINT64ARRAY"]._serialized_end = 265 + _globals["_FLOATARRAY"]._serialized_start = 267 + _globals["_FLOATARRAY"]._serialized_end = 295 + _globals["_DOUBLEARRAY"]._serialized_start = 297 + _globals["_DOUBLEARRAY"]._serialized_end = 326 + _globals["_DATAPOINT"]._serialized_start = 329 + _globals["_DATAPOINT"]._serialized_end = 1195 + _globals["_DATAPOINT_FAILURE"]._serialized_start = 1077 + _globals["_DATAPOINT_FAILURE"]._serialized_end = 1186 + _globals["_METADATA"]._serialized_start = 1198 + _globals["_METADATA"]._serialized_end = 1355 +# @@protoc_insertion_point(module_scope) diff --git a/velocitas_sdk/proto/types_pb2_grpc.py b/velocitas_sdk/proto/types_pb2_grpc.py index 27a7224b..8a939394 100644 --- a/velocitas_sdk/proto/types_pb2_grpc.py +++ b/velocitas_sdk/proto/types_pb2_grpc.py @@ -1,18 +1,3 @@ -# 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 - From 67756ca64c14f763a7a782604dbd63de02a486b3 Mon Sep 17 00:00:00 2001 From: kse3hi Date: Sun, 26 Nov 2023 12:52:17 +0000 Subject: [PATCH 03/11] Fix self review findings --- velocitas_sdk/proto/broker_pb2.pyi | 2 +- velocitas_sdk/proto/broker_pb2_grpc.py | 243 ++++--------- velocitas_sdk/proto/types_pb2.pyi | 470 ++++++++++++++++++++++--- 3 files changed, 479 insertions(+), 236 deletions(-) diff --git a/velocitas_sdk/proto/broker_pb2.pyi b/velocitas_sdk/proto/broker_pb2.pyi index d16e8807..34baeb5b 100644 --- a/velocitas_sdk/proto/broker_pb2.pyi +++ b/velocitas_sdk/proto/broker_pb2.pyi @@ -251,4 +251,4 @@ class GetMetadataReply(google.protobuf.message.Message): ) -> None: ... def ClearField(self, field_name: typing_extensions.Literal["list", b"list"]) -> None: ... -global___GetMetadataReply = GetMetadataReply \ No newline at end of file +global___GetMetadataReply = GetMetadataReply diff --git a/velocitas_sdk/proto/broker_pb2_grpc.py b/velocitas_sdk/proto/broker_pb2_grpc.py index b243b086..08a59925 100644 --- a/velocitas_sdk/proto/broker_pb2_grpc.py +++ b/velocitas_sdk/proto/broker_pb2_grpc.py @@ -1,180 +1,63 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from velocitas_sdk.proto import broker_pb2 as sdv_dot_databroker_dot_v1_dot_broker__pb2 - - -class BrokerStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetDatapoints = channel.unary_unary( - '/sdv.databroker.v1.Broker/GetDatapoints', - request_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetDatapointsRequest.SerializeToString, - response_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetDatapointsReply.FromString, - ) - self.SetDatapoints = channel.unary_unary( - '/sdv.databroker.v1.Broker/SetDatapoints', - request_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SetDatapointsRequest.SerializeToString, - response_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SetDatapointsReply.FromString, - ) - self.Subscribe = channel.unary_stream( - '/sdv.databroker.v1.Broker/Subscribe', - request_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SubscribeRequest.SerializeToString, - response_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SubscribeReply.FromString, - ) - self.GetMetadata = channel.unary_unary( - '/sdv.databroker.v1.Broker/GetMetadata', - request_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataRequest.SerializeToString, - response_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataReply.FromString, - ) - - -class BrokerServicer(object): - """Missing associated documentation comment in .proto file.""" - - def GetDatapoints(self, request, context): - """Request a set of datapoints (values) - - Returns a list of requested data points. - - InvalidArgument is returned if the request is malformed. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetDatapoints(self, request, context): - """Set a datapoint (values) - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Subscribe(self, request, context): - """Subscribe to a set of data points or conditional expressions - using the Data Broker Query Syntax (described in QUERY.md) - - Returns a stream of replies. - - InvalidArgument is returned if the request is malformed. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetMetadata(self, request, context): - """Request the metadata of a set of datapoints - - Returns metadata of the requested data points that exist. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_BrokerServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetDatapoints': grpc.unary_unary_rpc_method_handler( - servicer.GetDatapoints, - request_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetDatapointsRequest.FromString, - response_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetDatapointsReply.SerializeToString, - ), - 'SetDatapoints': grpc.unary_unary_rpc_method_handler( - servicer.SetDatapoints, - request_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SetDatapointsRequest.FromString, - response_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SetDatapointsReply.SerializeToString, - ), - 'Subscribe': grpc.unary_stream_rpc_method_handler( - servicer.Subscribe, - request_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SubscribeRequest.FromString, - response_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SubscribeReply.SerializeToString, - ), - 'GetMetadata': grpc.unary_unary_rpc_method_handler( - servicer.GetMetadata, - request_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataRequest.FromString, - response_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataReply.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'sdv.databroker.v1.Broker', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class Broker(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def GetDatapoints(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.databroker.v1.Broker/GetDatapoints', - sdv_dot_databroker_dot_v1_dot_broker__pb2.GetDatapointsRequest.SerializeToString, - sdv_dot_databroker_dot_v1_dot_broker__pb2.GetDatapointsReply.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetDatapoints(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.databroker.v1.Broker/SetDatapoints', - sdv_dot_databroker_dot_v1_dot_broker__pb2.SetDatapointsRequest.SerializeToString, - sdv_dot_databroker_dot_v1_dot_broker__pb2.SetDatapointsReply.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Subscribe(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_stream(request, target, '/sdv.databroker.v1.Broker/Subscribe', - sdv_dot_databroker_dot_v1_dot_broker__pb2.SubscribeRequest.SerializeToString, - sdv_dot_databroker_dot_v1_dot_broker__pb2.SubscribeReply.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetMetadata(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.databroker.v1.Broker/GetMetadata', - sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataRequest.SerializeToString, - sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataReply.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) \ No newline at end of file +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: sdv/databroker/v1/broker.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder + +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from velocitas_sdk.proto import types_pb2 as sdv_dot_databroker_dot_v1_dot_types__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n\x1esdv/databroker/v1/broker.proto\x12\x11sdv.databroker.v1\x1a\x1dsdv/databroker/v1/types.proto"*\n\x14GetDatapointsRequest\x12\x12\n\ndatapoints\x18\x01 \x03(\t"\xb0\x01\n\x12GetDatapointsReply\x12I\n\ndatapoints\x18\x01 \x03(\x0b\x32\x35.sdv.databroker.v1.GetDatapointsReply.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"\xb4\x01\n\x14SetDatapointsRequest\x12K\n\ndatapoints\x18\x01 \x03(\x0b\x32\x37.sdv.databroker.v1.SetDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"\xa9\x01\n\x12SetDatapointsReply\x12\x41\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x31.sdv.databroker.v1.SetDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01"!\n\x10SubscribeRequest\x12\r\n\x05query\x18\x02 \x01(\t"\x9c\x01\n\x0eSubscribeReply\x12=\n\x06\x66ields\x18\x01 \x03(\x0b\x32-.sdv.databroker.v1.SubscribeReply.FieldsEntry\x1aK\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"#\n\x12GetMetadataRequest\x12\r\n\x05names\x18\x01 \x03(\t"=\n\x10GetMetadataReply\x12)\n\x04list\x18\x01 \x03(\x0b\x32\x1b.sdv.databroker.v1.Metadata2\xfc\x02\n\x06\x42roker\x12_\n\rGetDatapoints\x12\'.sdv.databroker.v1.GetDatapointsRequest\x1a%.sdv.databroker.v1.GetDatapointsReply\x12_\n\rSetDatapoints\x12\'.sdv.databroker.v1.SetDatapointsRequest\x1a%.sdv.databroker.v1.SetDatapointsReply\x12U\n\tSubscribe\x12#.sdv.databroker.v1.SubscribeRequest\x1a!.sdv.databroker.v1.SubscribeReply0\x01\x12Y\n\x0bGetMetadata\x12%.sdv.databroker.v1.GetMetadataRequest\x1a#.sdv.databroker.v1.GetMetadataReplyb\x06proto3' +) + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages( + DESCRIPTOR, "sdv.databroker.v1.broker_pb2", _globals +) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + _GETDATAPOINTSREPLY_DATAPOINTSENTRY._options = None + _GETDATAPOINTSREPLY_DATAPOINTSENTRY._serialized_options = b"8\001" + _SETDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None + _SETDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b"8\001" + _SETDATAPOINTSREPLY_ERRORSENTRY._options = None + _SETDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b"8\001" + _SUBSCRIBEREPLY_FIELDSENTRY._options = None + _SUBSCRIBEREPLY_FIELDSENTRY._serialized_options = b"8\001" + _globals["_GETDATAPOINTSREQUEST"]._serialized_start = 84 + _globals["_GETDATAPOINTSREQUEST"]._serialized_end = 126 + _globals["_GETDATAPOINTSREPLY"]._serialized_start = 129 + _globals["_GETDATAPOINTSREPLY"]._serialized_end = 305 + _globals["_GETDATAPOINTSREPLY_DATAPOINTSENTRY"]._serialized_start = 226 + _globals["_GETDATAPOINTSREPLY_DATAPOINTSENTRY"]._serialized_end = 305 + _globals["_SETDATAPOINTSREQUEST"]._serialized_start = 308 + _globals["_SETDATAPOINTSREQUEST"]._serialized_end = 488 + _globals["_SETDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_start = 226 + _globals["_SETDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_end = 305 + _globals["_SETDATAPOINTSREPLY"]._serialized_start = 491 + _globals["_SETDATAPOINTSREPLY"]._serialized_end = 660 + _globals["_SETDATAPOINTSREPLY_ERRORSENTRY"]._serialized_start = 580 + _globals["_SETDATAPOINTSREPLY_ERRORSENTRY"]._serialized_end = 660 + _globals["_SUBSCRIBEREQUEST"]._serialized_start = 662 + _globals["_SUBSCRIBEREQUEST"]._serialized_end = 695 + _globals["_SUBSCRIBEREPLY"]._serialized_start = 698 + _globals["_SUBSCRIBEREPLY"]._serialized_end = 854 + _globals["_SUBSCRIBEREPLY_FIELDSENTRY"]._serialized_start = 779 + _globals["_SUBSCRIBEREPLY_FIELDSENTRY"]._serialized_end = 854 + _globals["_GETMETADATAREQUEST"]._serialized_start = 856 + _globals["_GETMETADATAREQUEST"]._serialized_end = 891 + _globals["_GETMETADATAREPLY"]._serialized_start = 893 + _globals["_GETMETADATAREPLY"]._serialized_end = 954 + _globals["_BROKER"]._serialized_start = 957 + _globals["_BROKER"]._serialized_end = 1337 +# @@protoc_insertion_point(module_scope) diff --git a/velocitas_sdk/proto/types_pb2.pyi b/velocitas_sdk/proto/types_pb2.pyi index 8ec1cf7f..18b498cd 100644 --- a/velocitas_sdk/proto/types_pb2.pyi +++ b/velocitas_sdk/proto/types_pb2.pyi @@ -1,55 +1,415 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: sdv/databroker/v1/types.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder - -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\x1dsdv/databroker/v1/types.proto\x12\x11sdv.databroker.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x1d\n\x0bStringArray\x12\x0e\n\x06values\x18\x01 \x03(\t"\x1b\n\tBoolArray\x12\x0e\n\x06values\x18\x01 \x03(\x08"\x1c\n\nInt32Array\x12\x0e\n\x06values\x18\x01 \x03(\x11"\x1c\n\nInt64Array\x12\x0e\n\x06values\x18\x01 \x03(\x12"\x1d\n\x0bUint32Array\x12\x0e\n\x06values\x18\x01 \x03(\r"\x1d\n\x0bUint64Array\x12\x0e\n\x06values\x18\x01 \x03(\x04"\x1c\n\nFloatArray\x12\x0e\n\x06values\x18\x01 \x03(\x02"\x1d\n\x0b\x44oubleArray\x12\x0e\n\x06values\x18\x01 \x03(\x01"\xe2\x06\n\tDatapoint\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\rfailure_value\x18\n \x01(\x0e\x32$.sdv.databroker.v1.Datapoint.FailureH\x00\x12\x16\n\x0cstring_value\x18\x0b \x01(\tH\x00\x12\x14\n\nbool_value\x18\x0c \x01(\x08H\x00\x12\x15\n\x0bint32_value\x18\r \x01(\x11H\x00\x12\x15\n\x0bint64_value\x18\x0e \x01(\x12H\x00\x12\x16\n\x0cuint32_value\x18\x0f \x01(\rH\x00\x12\x16\n\x0cuint64_value\x18\x10 \x01(\x04H\x00\x12\x15\n\x0b\x66loat_value\x18\x11 \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\x12 \x01(\x01H\x00\x12\x36\n\x0cstring_array\x18\x15 \x01(\x0b\x32\x1e.sdv.databroker.v1.StringArrayH\x00\x12\x32\n\nbool_array\x18\x16 \x01(\x0b\x32\x1c.sdv.databroker.v1.BoolArrayH\x00\x12\x34\n\x0bint32_array\x18\x17 \x01(\x0b\x32\x1d.sdv.databroker.v1.Int32ArrayH\x00\x12\x34\n\x0bint64_array\x18\x18 \x01(\x0b\x32\x1d.sdv.databroker.v1.Int64ArrayH\x00\x12\x36\n\x0cuint32_array\x18\x19 \x01(\x0b\x32\x1e.sdv.databroker.v1.Uint32ArrayH\x00\x12\x36\n\x0cuint64_array\x18\x1a \x01(\x0b\x32\x1e.sdv.databroker.v1.Uint64ArrayH\x00\x12\x34\n\x0b\x66loat_array\x18\x1b \x01(\x0b\x32\x1d.sdv.databroker.v1.FloatArrayH\x00\x12\x36\n\x0c\x64ouble_array\x18\x1c \x01(\x0b\x32\x1e.sdv.databroker.v1.DoubleArrayH\x00"m\n\x07\x46\x61ilure\x12\x11\n\rINVALID_VALUE\x10\x00\x12\x11\n\rNOT_AVAILABLE\x10\x01\x12\x15\n\x11UNKNOWN_DATAPOINT\x10\x02\x12\x11\n\rACCESS_DENIED\x10\x03\x12\x12\n\x0eINTERNAL_ERROR\x10\x04\x42\x07\n\x05value"\x9d\x01\n\x08Metadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x04 \x01(\t\x12.\n\tdata_type\x18\x05 \x01(\x0e\x32\x1b.sdv.databroker.v1.DataType\x12\x32\n\x0b\x63hange_type\x18\x06 \x01(\x0e\x32\x1d.sdv.databroker.v1.ChangeType\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t*\x84\x03\n\x08\x44\x61taType\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\x08\n\x04INT8\x10\x02\x12\t\n\x05INT16\x10\x03\x12\t\n\x05INT32\x10\x04\x12\t\n\x05INT64\x10\x05\x12\t\n\x05UINT8\x10\x06\x12\n\n\x06UINT16\x10\x07\x12\n\n\x06UINT32\x10\x08\x12\n\n\x06UINT64\x10\t\x12\t\n\x05\x46LOAT\x10\n\x12\n\n\x06\x44OUBLE\x10\x0b\x12\r\n\tTIMESTAMP\x10\x0c\x12\x10\n\x0cSTRING_ARRAY\x10\x14\x12\x0e\n\nBOOL_ARRAY\x10\x15\x12\x0e\n\nINT8_ARRAY\x10\x16\x12\x0f\n\x0bINT16_ARRAY\x10\x17\x12\x0f\n\x0bINT32_ARRAY\x10\x18\x12\x0f\n\x0bINT64_ARRAY\x10\x19\x12\x0f\n\x0bUINT8_ARRAY\x10\x1a\x12\x10\n\x0cUINT16_ARRAY\x10\x1b\x12\x10\n\x0cUINT32_ARRAY\x10\x1c\x12\x10\n\x0cUINT64_ARRAY\x10\x1d\x12\x0f\n\x0b\x46LOAT_ARRAY\x10\x1e\x12\x10\n\x0c\x44OUBLE_ARRAY\x10\x1f\x12\x13\n\x0fTIMESTAMP_ARRAY\x10 *s\n\x0e\x44\x61tapointError\x12\x15\n\x11UNKNOWN_DATAPOINT\x10\x00\x12\x10\n\x0cINVALID_TYPE\x10\x01\x12\x11\n\rACCESS_DENIED\x10\x02\x12\x12\n\x0eINTERNAL_ERROR\x10\x03\x12\x11\n\rOUT_OF_BOUNDS\x10\x04*7\n\nChangeType\x12\n\n\x06STATIC\x10\x00\x12\r\n\tON_CHANGE\x10\x01\x12\x0e\n\nCONTINUOUS\x10\x02\x62\x06proto3' -) - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages( - DESCRIPTOR, "sdv.databroker.v1.types_pb2", _globals -) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _globals["_DATATYPE"]._serialized_start = 1358 - _globals["_DATATYPE"]._serialized_end = 1746 - _globals["_DATAPOINTERROR"]._serialized_start = 1748 - _globals["_DATAPOINTERROR"]._serialized_end = 1863 - _globals["_CHANGETYPE"]._serialized_start = 1865 - _globals["_CHANGETYPE"]._serialized_end = 1920 - _globals["_STRINGARRAY"]._serialized_start = 85 - _globals["_STRINGARRAY"]._serialized_end = 114 - _globals["_BOOLARRAY"]._serialized_start = 116 - _globals["_BOOLARRAY"]._serialized_end = 143 - _globals["_INT32ARRAY"]._serialized_start = 145 - _globals["_INT32ARRAY"]._serialized_end = 173 - _globals["_INT64ARRAY"]._serialized_start = 175 - _globals["_INT64ARRAY"]._serialized_end = 203 - _globals["_UINT32ARRAY"]._serialized_start = 205 - _globals["_UINT32ARRAY"]._serialized_end = 234 - _globals["_UINT64ARRAY"]._serialized_start = 236 - _globals["_UINT64ARRAY"]._serialized_end = 265 - _globals["_FLOATARRAY"]._serialized_start = 267 - _globals["_FLOATARRAY"]._serialized_end = 295 - _globals["_DOUBLEARRAY"]._serialized_start = 297 - _globals["_DOUBLEARRAY"]._serialized_end = 326 - _globals["_DATAPOINT"]._serialized_start = 329 - _globals["_DATAPOINT"]._serialized_end = 1195 - _globals["_DATAPOINT_FAILURE"]._serialized_start = 1077 - _globals["_DATAPOINT_FAILURE"]._serialized_end = 1186 - _globals["_METADATA"]._serialized_start = 1198 - _globals["_METADATA"]._serialized_end = 1355 -# @@protoc_insertion_point(module_scope) +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation + +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 builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +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): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + STRING: _DataType.ValueType # 0 + BOOL: _DataType.ValueType # 1 + INT8: _DataType.ValueType # 2 + INT16: _DataType.ValueType # 3 + INT32: _DataType.ValueType # 4 + INT64: _DataType.ValueType # 5 + UINT8: _DataType.ValueType # 6 + UINT16: _DataType.ValueType # 7 + UINT32: _DataType.ValueType # 8 + UINT64: _DataType.ValueType # 9 + FLOAT: _DataType.ValueType # 10 + DOUBLE: _DataType.ValueType # 11 + TIMESTAMP: _DataType.ValueType # 12 + STRING_ARRAY: _DataType.ValueType # 20 + BOOL_ARRAY: _DataType.ValueType # 21 + INT8_ARRAY: _DataType.ValueType # 22 + INT16_ARRAY: _DataType.ValueType # 23 + INT32_ARRAY: _DataType.ValueType # 24 + INT64_ARRAY: _DataType.ValueType # 25 + UINT8_ARRAY: _DataType.ValueType # 26 + UINT16_ARRAY: _DataType.ValueType # 27 + UINT32_ARRAY: _DataType.ValueType # 28 + UINT64_ARRAY: _DataType.ValueType # 29 + FLOAT_ARRAY: _DataType.ValueType # 30 + DOUBLE_ARRAY: _DataType.ValueType # 31 + TIMESTAMP_ARRAY: _DataType.ValueType # 32 + +class DataType(_DataType, metaclass=_DataTypeEnumTypeWrapper): + """Data type of a signal + + Protobuf doesn't support int8, int16, uint8 or uint16. + These are mapped to sint32 and uint32 respectively. + """ + +STRING: DataType.ValueType # 0 +BOOL: DataType.ValueType # 1 +INT8: DataType.ValueType # 2 +INT16: DataType.ValueType # 3 +INT32: DataType.ValueType # 4 +INT64: DataType.ValueType # 5 +UINT8: DataType.ValueType # 6 +UINT16: DataType.ValueType # 7 +UINT32: DataType.ValueType # 8 +UINT64: DataType.ValueType # 9 +FLOAT: DataType.ValueType # 10 +DOUBLE: DataType.ValueType # 11 +TIMESTAMP: DataType.ValueType # 12 +STRING_ARRAY: DataType.ValueType # 20 +BOOL_ARRAY: DataType.ValueType # 21 +INT8_ARRAY: DataType.ValueType # 22 +INT16_ARRAY: DataType.ValueType # 23 +INT32_ARRAY: DataType.ValueType # 24 +INT64_ARRAY: DataType.ValueType # 25 +UINT8_ARRAY: DataType.ValueType # 26 +UINT16_ARRAY: DataType.ValueType # 27 +UINT32_ARRAY: DataType.ValueType # 28 +UINT64_ARRAY: DataType.ValueType # 29 +FLOAT_ARRAY: DataType.ValueType # 30 +DOUBLE_ARRAY: DataType.ValueType # 31 +TIMESTAMP_ARRAY: DataType.ValueType # 32 +global___DataType = DataType + +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): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UNKNOWN_DATAPOINT: _DatapointError.ValueType # 0 + INVALID_TYPE: _DatapointError.ValueType # 1 + ACCESS_DENIED: _DatapointError.ValueType # 2 + INTERNAL_ERROR: _DatapointError.ValueType # 3 + OUT_OF_BOUNDS: _DatapointError.ValueType # 4 + +class DatapointError(_DatapointError, metaclass=_DatapointErrorEnumTypeWrapper): ... + +UNKNOWN_DATAPOINT: DatapointError.ValueType # 0 +INVALID_TYPE: DatapointError.ValueType # 1 +ACCESS_DENIED: DatapointError.ValueType # 2 +INTERNAL_ERROR: DatapointError.ValueType # 3 +OUT_OF_BOUNDS: DatapointError.ValueType # 4 +global___DatapointError = DatapointError + +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): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + STATIC: _ChangeType.ValueType # 0 + """Value never changes""" + ON_CHANGE: _ChangeType.ValueType # 1 + """Updates are provided every time the value changes (i.e.""" + CONTINUOUS: _ChangeType.ValueType # 2 + """window is open / closed) + Value is updated continuously. Broker needs to tell + """ + +class ChangeType(_ChangeType, metaclass=_ChangeTypeEnumTypeWrapper): ... + +STATIC: ChangeType.ValueType # 0 +"""Value never changes""" +ON_CHANGE: ChangeType.ValueType # 1 +"""Updates are provided every time the value changes (i.e.""" +CONTINUOUS: ChangeType.ValueType # 2 +"""window is open / closed) +Value is updated continuously. Broker needs to tell +""" +global___ChangeType = ChangeType + +@typing_extensions.final +class StringArray(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALUES_FIELD_NUMBER: builtins.int + @property + 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: ... + +global___StringArray = StringArray + +@typing_extensions.final +class BoolArray(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALUES_FIELD_NUMBER: builtins.int + @property + 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: ... + +global___BoolArray = BoolArray + +@typing_extensions.final +class Int32Array(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALUES_FIELD_NUMBER: builtins.int + @property + 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: ... + +global___Int32Array = Int32Array + +@typing_extensions.final +class Int64Array(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALUES_FIELD_NUMBER: builtins.int + @property + 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: ... + +global___Int64Array = Int64Array + +@typing_extensions.final +class Uint32Array(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALUES_FIELD_NUMBER: builtins.int + @property + 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: ... + +global___Uint32Array = Uint32Array + +@typing_extensions.final +class Uint64Array(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALUES_FIELD_NUMBER: builtins.int + @property + 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: ... + +global___Uint64Array = Uint64Array + +@typing_extensions.final +class FloatArray(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALUES_FIELD_NUMBER: builtins.int + @property + 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: ... + +global___FloatArray = FloatArray + +@typing_extensions.final +class DoubleArray(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VALUES_FIELD_NUMBER: builtins.int + @property + 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: ... + +global___DoubleArray = DoubleArray + +@typing_extensions.final +class Datapoint(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _Failure: + 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 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + INVALID_VALUE: Datapoint._Failure.ValueType # 0 + """The data point is known, but doesn't have a valid value""" + NOT_AVAILABLE: Datapoint._Failure.ValueType # 1 + """The data point is known, but no value is available""" + UNKNOWN_DATAPOINT: Datapoint._Failure.ValueType # 2 + """Unknown datapoint""" + ACCESS_DENIED: Datapoint._Failure.ValueType # 3 + """Access denied""" + INTERNAL_ERROR: Datapoint._Failure.ValueType # 4 + """Unexpected internal error""" + + class Failure(_Failure, metaclass=_FailureEnumTypeWrapper): ... + INVALID_VALUE: Datapoint.Failure.ValueType # 0 + """The data point is known, but doesn't have a valid value""" + NOT_AVAILABLE: Datapoint.Failure.ValueType # 1 + """The data point is known, but no value is available""" + UNKNOWN_DATAPOINT: Datapoint.Failure.ValueType # 2 + """Unknown datapoint""" + ACCESS_DENIED: Datapoint.Failure.ValueType # 3 + """Access denied""" + INTERNAL_ERROR: Datapoint.Failure.ValueType # 4 + """Unexpected internal error""" + + TIMESTAMP_FIELD_NUMBER: builtins.int + FAILURE_VALUE_FIELD_NUMBER: builtins.int + STRING_VALUE_FIELD_NUMBER: builtins.int + BOOL_VALUE_FIELD_NUMBER: builtins.int + INT32_VALUE_FIELD_NUMBER: builtins.int + INT64_VALUE_FIELD_NUMBER: builtins.int + UINT32_VALUE_FIELD_NUMBER: builtins.int + UINT64_VALUE_FIELD_NUMBER: builtins.int + FLOAT_VALUE_FIELD_NUMBER: builtins.int + DOUBLE_VALUE_FIELD_NUMBER: builtins.int + STRING_ARRAY_FIELD_NUMBER: builtins.int + BOOL_ARRAY_FIELD_NUMBER: builtins.int + INT32_ARRAY_FIELD_NUMBER: builtins.int + INT64_ARRAY_FIELD_NUMBER: builtins.int + UINT32_ARRAY_FIELD_NUMBER: builtins.int + UINT64_ARRAY_FIELD_NUMBER: builtins.int + FLOAT_ARRAY_FIELD_NUMBER: builtins.int + DOUBLE_ARRAY_FIELD_NUMBER: builtins.int + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Timestamp of the value""" + failure_value: global___Datapoint.Failure.ValueType + string_value: builtins.str + bool_value: builtins.bool + int32_value: builtins.int + int64_value: builtins.int + uint32_value: builtins.int + uint64_value: builtins.int + float_value: builtins.float + double_value: builtins.float + @property + def string_array(self) -> global___StringArray: ... + @property + def bool_array(self) -> global___BoolArray: ... + @property + def int32_array(self) -> global___Int32Array: ... + @property + def int64_array(self) -> global___Int64Array: ... + @property + def uint32_array(self) -> global___Uint32Array: ... + @property + def uint64_array(self) -> global___Uint64Array: ... + @property + def float_array(self) -> global___FloatArray: ... + @property + def double_array(self) -> global___DoubleArray: ... + def __init__( + self, + *, + timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + failure_value: global___Datapoint.Failure.ValueType = ..., + string_value: builtins.str = ..., + bool_value: builtins.bool = ..., + int32_value: builtins.int = ..., + int64_value: builtins.int = ..., + uint32_value: builtins.int = ..., + uint64_value: builtins.int = ..., + float_value: builtins.float = ..., + double_value: builtins.float = ..., + string_array: global___StringArray | None = ..., + bool_array: global___BoolArray | None = ..., + int32_array: global___Int32Array | None = ..., + int64_array: global___Int64Array | None = ..., + uint32_array: global___Uint32Array | None = ..., + uint64_array: global___Uint64Array | None = ..., + 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: ... + +global___Datapoint = Datapoint + +@typing_extensions.final +class Metadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DATA_TYPE_FIELD_NUMBER: builtins.int + CHANGE_TYPE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + id: builtins.int + """Id to be used in "get" and "subscribe" requests. Ids stay valid during + one power cycle, only. + """ + name: builtins.str + data_type: global___DataType.ValueType + change_type: global___ChangeType.ValueType + """CONTINUOUS or STATIC or ON_CHANGE""" + description: builtins.str + def __init__( + self, + *, + id: builtins.int = ..., + name: builtins.str = ..., + data_type: global___DataType.ValueType = ..., + 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: ... + +global___Metadata = Metadata \ No newline at end of file From c7b1ab4b2784d5bc6c27a545693f7a38ffd0f1c3 Mon Sep 17 00:00:00 2001 From: kse3hi Date: Sun, 26 Nov 2023 19:24:50 +0000 Subject: [PATCH 04/11] Fix self review findings --- .../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 ++-- velocitas_sdk/proto/broker_pb2.pyi | 125 +++- velocitas_sdk/proto/broker_pb2_grpc.py | 243 ++++++-- velocitas_sdk/proto/collector_pb2_grpc.py | 579 ++++++++++++------ velocitas_sdk/proto/types_pb2.pyi | 235 ++++++- 7 files changed, 986 insertions(+), 471 deletions(-) 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 2ed4f2d1..84979b2b 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-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at @@ -22,83 +22,67 @@ 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' -) -_ACSTATUS = DESCRIPTOR.enum_types_by_name["AcStatus"] + +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 = 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 a7e508dd..99116e5e 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-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation # # This program and the accompanying materials are made available under the # terms of the Apache License, Version 2.0 which is available at @@ -26,17 +26,12 @@ 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 @@ -44,68 +39,53 @@ 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 ebc3a2d0..b7ff2f8a 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-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation # # 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,30 +81,29 @@ 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 @@ -116,59 +115,35 @@ class Hvac(object): """ @staticmethod - 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, + def SetAcStatus(request, target, - "/sdv.edge.comfort.hvac.v1.Hvac/SetAcStatus", + 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', 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, - 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, + def SetTemperature(request, target, - "/sdv.edge.comfort.hvac.v1.Hvac/SetTemperature", + 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', 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/velocitas_sdk/proto/broker_pb2.pyi b/velocitas_sdk/proto/broker_pb2.pyi index 34baeb5b..a21d8fed 100644 --- a/velocitas_sdk/proto/broker_pb2.pyi +++ b/velocitas_sdk/proto/broker_pb2.pyi @@ -36,14 +36,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 +70,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 +92,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 +122,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 +170,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 +213,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 +238,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 +260,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 +277,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 +291,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 +303,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 +315,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 08a59925..9bb7ba84 100644 --- a/velocitas_sdk/proto/broker_pb2_grpc.py +++ b/velocitas_sdk/proto/broker_pb2_grpc.py @@ -1,63 +1,180 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: sdv/databroker/v1/broker.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder - -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from velocitas_sdk.proto import types_pb2 as sdv_dot_databroker_dot_v1_dot_types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\x1esdv/databroker/v1/broker.proto\x12\x11sdv.databroker.v1\x1a\x1dsdv/databroker/v1/types.proto"*\n\x14GetDatapointsRequest\x12\x12\n\ndatapoints\x18\x01 \x03(\t"\xb0\x01\n\x12GetDatapointsReply\x12I\n\ndatapoints\x18\x01 \x03(\x0b\x32\x35.sdv.databroker.v1.GetDatapointsReply.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"\xb4\x01\n\x14SetDatapointsRequest\x12K\n\ndatapoints\x18\x01 \x03(\x0b\x32\x37.sdv.databroker.v1.SetDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"\xa9\x01\n\x12SetDatapointsReply\x12\x41\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x31.sdv.databroker.v1.SetDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01"!\n\x10SubscribeRequest\x12\r\n\x05query\x18\x02 \x01(\t"\x9c\x01\n\x0eSubscribeReply\x12=\n\x06\x66ields\x18\x01 \x03(\x0b\x32-.sdv.databroker.v1.SubscribeReply.FieldsEntry\x1aK\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"#\n\x12GetMetadataRequest\x12\r\n\x05names\x18\x01 \x03(\t"=\n\x10GetMetadataReply\x12)\n\x04list\x18\x01 \x03(\x0b\x32\x1b.sdv.databroker.v1.Metadata2\xfc\x02\n\x06\x42roker\x12_\n\rGetDatapoints\x12\'.sdv.databroker.v1.GetDatapointsRequest\x1a%.sdv.databroker.v1.GetDatapointsReply\x12_\n\rSetDatapoints\x12\'.sdv.databroker.v1.SetDatapointsRequest\x1a%.sdv.databroker.v1.SetDatapointsReply\x12U\n\tSubscribe\x12#.sdv.databroker.v1.SubscribeRequest\x1a!.sdv.databroker.v1.SubscribeReply0\x01\x12Y\n\x0bGetMetadata\x12%.sdv.databroker.v1.GetMetadataRequest\x1a#.sdv.databroker.v1.GetMetadataReplyb\x06proto3' -) - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages( - DESCRIPTOR, "sdv.databroker.v1.broker_pb2", _globals -) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _GETDATAPOINTSREPLY_DATAPOINTSENTRY._options = None - _GETDATAPOINTSREPLY_DATAPOINTSENTRY._serialized_options = b"8\001" - _SETDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None - _SETDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b"8\001" - _SETDATAPOINTSREPLY_ERRORSENTRY._options = None - _SETDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b"8\001" - _SUBSCRIBEREPLY_FIELDSENTRY._options = None - _SUBSCRIBEREPLY_FIELDSENTRY._serialized_options = b"8\001" - _globals["_GETDATAPOINTSREQUEST"]._serialized_start = 84 - _globals["_GETDATAPOINTSREQUEST"]._serialized_end = 126 - _globals["_GETDATAPOINTSREPLY"]._serialized_start = 129 - _globals["_GETDATAPOINTSREPLY"]._serialized_end = 305 - _globals["_GETDATAPOINTSREPLY_DATAPOINTSENTRY"]._serialized_start = 226 - _globals["_GETDATAPOINTSREPLY_DATAPOINTSENTRY"]._serialized_end = 305 - _globals["_SETDATAPOINTSREQUEST"]._serialized_start = 308 - _globals["_SETDATAPOINTSREQUEST"]._serialized_end = 488 - _globals["_SETDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_start = 226 - _globals["_SETDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_end = 305 - _globals["_SETDATAPOINTSREPLY"]._serialized_start = 491 - _globals["_SETDATAPOINTSREPLY"]._serialized_end = 660 - _globals["_SETDATAPOINTSREPLY_ERRORSENTRY"]._serialized_start = 580 - _globals["_SETDATAPOINTSREPLY_ERRORSENTRY"]._serialized_end = 660 - _globals["_SUBSCRIBEREQUEST"]._serialized_start = 662 - _globals["_SUBSCRIBEREQUEST"]._serialized_end = 695 - _globals["_SUBSCRIBEREPLY"]._serialized_start = 698 - _globals["_SUBSCRIBEREPLY"]._serialized_end = 854 - _globals["_SUBSCRIBEREPLY_FIELDSENTRY"]._serialized_start = 779 - _globals["_SUBSCRIBEREPLY_FIELDSENTRY"]._serialized_end = 854 - _globals["_GETMETADATAREQUEST"]._serialized_start = 856 - _globals["_GETMETADATAREQUEST"]._serialized_end = 891 - _globals["_GETMETADATAREPLY"]._serialized_start = 893 - _globals["_GETMETADATAREPLY"]._serialized_end = 954 - _globals["_BROKER"]._serialized_start = 957 - _globals["_BROKER"]._serialized_end = 1337 -# @@protoc_insertion_point(module_scope) +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from velocitas_sdk.proto import broker_pb2 as sdv_dot_databroker_dot_v1_dot_broker__pb2 + + +class BrokerStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetDatapoints = channel.unary_unary( + '/sdv.databroker.v1.Broker/GetDatapoints', + request_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetDatapointsRequest.SerializeToString, + response_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetDatapointsReply.FromString, + ) + self.SetDatapoints = channel.unary_unary( + '/sdv.databroker.v1.Broker/SetDatapoints', + request_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SetDatapointsRequest.SerializeToString, + response_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SetDatapointsReply.FromString, + ) + self.Subscribe = channel.unary_stream( + '/sdv.databroker.v1.Broker/Subscribe', + request_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SubscribeRequest.SerializeToString, + response_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SubscribeReply.FromString, + ) + self.GetMetadata = channel.unary_unary( + '/sdv.databroker.v1.Broker/GetMetadata', + request_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataRequest.SerializeToString, + response_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataReply.FromString, + ) + + +class BrokerServicer(object): + """Missing associated documentation comment in .proto file.""" + + def GetDatapoints(self, request, context): + """Request a set of datapoints (values) + + Returns a list of requested data points. + + InvalidArgument is returned if the request is malformed. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetDatapoints(self, request, context): + """Set a datapoint (values) + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Subscribe(self, request, context): + """Subscribe to a set of data points or conditional expressions + using the Data Broker Query Syntax (described in QUERY.md) + + Returns a stream of replies. + + InvalidArgument is returned if the request is malformed. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetMetadata(self, request, context): + """Request the metadata of a set of datapoints + + Returns metadata of the requested data points that exist. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_BrokerServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetDatapoints': grpc.unary_unary_rpc_method_handler( + servicer.GetDatapoints, + request_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetDatapointsRequest.FromString, + response_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetDatapointsReply.SerializeToString, + ), + 'SetDatapoints': grpc.unary_unary_rpc_method_handler( + servicer.SetDatapoints, + request_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SetDatapointsRequest.FromString, + response_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SetDatapointsReply.SerializeToString, + ), + 'Subscribe': grpc.unary_stream_rpc_method_handler( + servicer.Subscribe, + request_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SubscribeRequest.FromString, + response_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.SubscribeReply.SerializeToString, + ), + 'GetMetadata': grpc.unary_unary_rpc_method_handler( + servicer.GetMetadata, + request_deserializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataRequest.FromString, + response_serializer=sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataReply.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'sdv.databroker.v1.Broker', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Broker(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def GetDatapoints(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.databroker.v1.Broker/GetDatapoints', + sdv_dot_databroker_dot_v1_dot_broker__pb2.GetDatapointsRequest.SerializeToString, + sdv_dot_databroker_dot_v1_dot_broker__pb2.GetDatapointsReply.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetDatapoints(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.databroker.v1.Broker/SetDatapoints', + sdv_dot_databroker_dot_v1_dot_broker__pb2.SetDatapointsRequest.SerializeToString, + sdv_dot_databroker_dot_v1_dot_broker__pb2.SetDatapointsReply.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Subscribe(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_stream(request, target, '/sdv.databroker.v1.Broker/Subscribe', + sdv_dot_databroker_dot_v1_dot_broker__pb2.SubscribeRequest.SerializeToString, + sdv_dot_databroker_dot_v1_dot_broker__pb2.SubscribeReply.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetMetadata(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.databroker.v1.Broker/GetMetadata', + sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataRequest.SerializeToString, + sdv_dot_databroker_dot_v1_dot_broker__pb2.GetMetadataReply.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/velocitas_sdk/proto/collector_pb2_grpc.py b/velocitas_sdk/proto/collector_pb2_grpc.py index 89f5f848..1e8be54e 100644 --- a/velocitas_sdk/proto/collector_pb2_grpc.py +++ b/velocitas_sdk/proto/collector_pb2_grpc.py @@ -1,205 +1,408 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation -from velocitas_sdk.proto import ( - collector_pb2 as sdv_dot_databroker_dot_v1_dot_collector__pb2, -) +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. -class CollectorStub(object): - """Missing associated documentation comment in .proto file.""" +SPDX-License-Identifier: Apache-2.0 +""" +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import velocitas_sdk.proto.types_pb2 +import sys - def __init__(self, channel): - """Constructor. +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions - Args: - channel: A grpc.Channel. +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + + +@typing_extensions.final +class GetDatapointsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DATAPOINTS_FIELD_NUMBER: builtins.int + + @property + 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: + ... + + +global___GetDatapointsRequest = GetDatapointsRequest + + +@typing_extensions.final +class GetDatapointsReply(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class DatapointsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + + @property + def value(self) -> sdv.databroker.v1.types_pb2.Datapoint: + ... + + def __init__( + self, + *, + 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: + ... + + DATAPOINTS_FIELD_NUMBER: builtins.int + + @property + 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. """ - self.RegisterDatapoints = channel.unary_unary( - "/sdv.databroker.v1.Collector/RegisterDatapoints", - request_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsRequest.SerializeToString, - response_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsReply.FromString, - ) - self.UpdateDatapoints = channel.unary_unary( - "/sdv.databroker.v1.Collector/UpdateDatapoints", - request_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsRequest.SerializeToString, - response_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsReply.FromString, - ) - self.StreamDatapoints = channel.stream_stream( - "/sdv.databroker.v1.Collector/StreamDatapoints", - request_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsRequest.SerializeToString, - response_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsReply.FromString, - ) - - -class CollectorServicer(object): - """Missing associated documentation comment in .proto file.""" - - def RegisterDatapoints(self, request, context): - """Register new datapoint (metadata) - - If the registration of at least one of the passed data point fails, the overall registration - is rejected and the gRPC status code ABORTED is returned (to indicate the "aborted" registration). - The details, which data point(s) caused the failure and the reason, is passed in back in human- - readable form in the status message. Possible failure resaons are: - * PERMISSION_DENIED - Not allowed to register this name - * ALREADY_REGISTERED - The data point is already registered by some other feeder - * RE_REGISTRATION_MISMATCH - Already registered by this feeder but with differing metadata - * INVALID_NAME - The passed name of the datapoint has an invalid structure - * INVALID_VALUE_TYPE - The passed ValueType is not supported - * INVALID_CHANGE_TYPE - The passed ChangeType is not supported + + def __init__( + self, + *, + 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: + ... + + +global___GetDatapointsReply = GetDatapointsReply + + +@typing_extensions.final +class SetDatapointsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class DatapointsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + + @property + def value(self) -> sdv.databroker.v1.types_pb2.Datapoint: + ... + + def __init__( + self, + *, + 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: + ... + + DATAPOINTS_FIELD_NUMBER: builtins.int + + @property + 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 = ..., + ) -> None: + ... + + def ClearField( + self, field_name: typing_extensions.Literal["datapoints", b"datapoints"] + ) -> None: + ... + + +global___SetDatapointsRequest = SetDatapointsRequest + + +@typing_extensions.final +class SetDatapointsReply(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class ErrorsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: sdv.databroker.v1.types_pb2.DatapointError.ValueType + + def __init__( + self, + *, + 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: + ... + + ERRORS_FIELD_NUMBER: builtins.int + + @property + 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 = ..., + ) -> None: + ... + + def ClearField( + self, field_name: typing_extensions.Literal["errors", b"errors"] + ) -> None: + ... + + +global___SetDatapointsReply = SetDatapointsReply + + +@typing_extensions.final +class SubscribeRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + QUERY_FIELD_NUMBER: builtins.int + query: builtins.str + """Subscribe to a set of data points (or expressions) described + by the provided query. + The query syntax is a subset of SQL and is described in more + detail in the QUERY.md file. + """ + + def __init__( + self, + *, + query: builtins.str = ..., + ) -> None: + ... + + def ClearField( + self, field_name: typing_extensions.Literal["query", b"query"] + ) -> None: + ... + + +global___SubscribeRequest = SubscribeRequest + + +@typing_extensions.final +class SubscribeReply(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class FieldsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + + @property + def value(self) -> sdv.databroker.v1.types_pb2.Datapoint: + ... + + def __init__( + self, + *, + 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: + ... + + FIELDS_FIELD_NUMBER: builtins.int + + @property + 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. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - def UpdateDatapoints(self, request, context): - """Provide a set of updated datapoint values to the broker. - This is the unary equivalent of `StreamDatapoints` below and is better suited for cases - where the frequency of updates is rather low. + def __init__( + self, + *, + 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: + ... + + +global___SubscribeReply = SubscribeReply + - NOTE: The values provided in a single request are handled as a single update in the - data broker. This ensures that any clients requesting (or subscribing to) a set of - datapoints will get a consistent update, i.e. that either all values are updated or - none are. +@typing_extensions.final +class GetMetadataRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - Returns: any errors encountered updating the datapoints + NAMES_FIELD_NUMBER: builtins.int + @property + 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". + + If no names are provided, metadata for all known data points will be + returned. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - def StreamDatapoints(self, request_iterator, context): - """Provide a stream with updated datapoint values to the broker. - This is the streaming equivalent of `UpdateDatapoints` above and is better suited for - cases where the frequency of updates is high. + def __init__( + self, + *, + names: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: + ... + + def ClearField( + self, field_name: typing_extensions.Literal["names", b"names"] + ) -> None: + ... + + +global___GetMetadataRequest = GetMetadataRequest + - NOTE: The values provided in a single request are handled as a single update in the - data broker. This ensures that any clients requesting (or subscribing to) a set of - datapoints will get a consistent update, i.e. that either all values are updated or - none are. +@typing_extensions.final +class GetMetadataReply(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor - Returns: any errors encountered updating the datapoints + LIST_FIELD_NUMBER: builtins.int + @property + 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. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - -def add_CollectorServicer_to_server(servicer, server): - rpc_method_handlers = { - "RegisterDatapoints": grpc.unary_unary_rpc_method_handler( - servicer.RegisterDatapoints, - request_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsRequest.FromString, - response_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsReply.SerializeToString, - ), - "UpdateDatapoints": grpc.unary_unary_rpc_method_handler( - servicer.UpdateDatapoints, - request_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsRequest.FromString, - response_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsReply.SerializeToString, - ), - "StreamDatapoints": grpc.stream_stream_rpc_method_handler( - servicer.StreamDatapoints, - request_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsRequest.FromString, - response_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsReply.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - "sdv.databroker.v1.Collector", rpc_method_handlers - ) - server.add_generic_rpc_handlers((generic_handler,)) - - -# This class is part of an EXPERIMENTAL API. -class Collector(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def RegisterDatapoints( - 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.databroker.v1.Collector/RegisterDatapoints", - sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsRequest.SerializeToString, - sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsReply.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) - - @staticmethod - def UpdateDatapoints( - 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.databroker.v1.Collector/UpdateDatapoints", - sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsRequest.SerializeToString, - sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsReply.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) - - @staticmethod - def StreamDatapoints( - request_iterator, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None, - ): - return grpc.experimental.stream_stream( - request_iterator, - target, - "/sdv.databroker.v1.Collector/StreamDatapoints", - sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsRequest.SerializeToString, - sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsReply.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - ) + + def __init__( + self, + *, + list: collections.abc.Iterable[sdv.databroker.v1.types_pb2.Metadata] + | None = ..., + ) -> None: + ... + + def ClearField( + self, field_name: typing_extensions.Literal["list", b"list"] + ) -> None: + ... + + +global___GetMetadataReply = GetMetadataReply diff --git a/velocitas_sdk/proto/types_pb2.pyi b/velocitas_sdk/proto/types_pb2.pyi index 18b498cd..4739bb43 100644 --- a/velocitas_sdk/proto/types_pb2.pyi +++ b/velocitas_sdk/proto/types_pb2.pyi @@ -36,7 +36,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 +107,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 +133,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 +165,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 +187,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 +209,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 +231,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 +253,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 +275,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 +297,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 +319,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 +343,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 +441,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 +581,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 \ No newline at end of file +global___Metadata = Metadata From efcce5c56386d7b595b8793201b0cafdb66dc06d Mon Sep 17 00:00:00 2001 From: kse3hi Date: Sun, 26 Nov 2023 19:32:54 +0000 Subject: [PATCH 05/11] Fix self reveiw findings --- velocitas_sdk/proto/broker_pb2.py | 80 ++-- velocitas_sdk/proto/broker_pb2.pyi | 125 ++--- velocitas_sdk/proto/collector_pb2.py | 84 ++-- velocitas_sdk/proto/collector_pb2.pyi | 125 +---- velocitas_sdk/proto/collector_pb2_grpc.py | 540 ++++++---------------- velocitas_sdk/proto/types_pb2.py | 68 ++- velocitas_sdk/proto/types_pb2.pyi | 233 +--------- velocitas_sdk/proto/types_pb2_grpc.py | 1 + 8 files changed, 335 insertions(+), 921 deletions(-) diff --git a/velocitas_sdk/proto/broker_pb2.py b/velocitas_sdk/proto/broker_pb2.py index 08a59925..af05ed2d 100644 --- a/velocitas_sdk/proto/broker_pb2.py +++ b/velocitas_sdk/proto/broker_pb2.py @@ -6,7 +6,6 @@ from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder - # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,49 +14,46 @@ from velocitas_sdk.proto import types_pb2 as sdv_dot_databroker_dot_v1_dot_types__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\x1esdv/databroker/v1/broker.proto\x12\x11sdv.databroker.v1\x1a\x1dsdv/databroker/v1/types.proto"*\n\x14GetDatapointsRequest\x12\x12\n\ndatapoints\x18\x01 \x03(\t"\xb0\x01\n\x12GetDatapointsReply\x12I\n\ndatapoints\x18\x01 \x03(\x0b\x32\x35.sdv.databroker.v1.GetDatapointsReply.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"\xb4\x01\n\x14SetDatapointsRequest\x12K\n\ndatapoints\x18\x01 \x03(\x0b\x32\x37.sdv.databroker.v1.SetDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"\xa9\x01\n\x12SetDatapointsReply\x12\x41\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x31.sdv.databroker.v1.SetDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01"!\n\x10SubscribeRequest\x12\r\n\x05query\x18\x02 \x01(\t"\x9c\x01\n\x0eSubscribeReply\x12=\n\x06\x66ields\x18\x01 \x03(\x0b\x32-.sdv.databroker.v1.SubscribeReply.FieldsEntry\x1aK\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"#\n\x12GetMetadataRequest\x12\r\n\x05names\x18\x01 \x03(\t"=\n\x10GetMetadataReply\x12)\n\x04list\x18\x01 \x03(\x0b\x32\x1b.sdv.databroker.v1.Metadata2\xfc\x02\n\x06\x42roker\x12_\n\rGetDatapoints\x12\'.sdv.databroker.v1.GetDatapointsRequest\x1a%.sdv.databroker.v1.GetDatapointsReply\x12_\n\rSetDatapoints\x12\'.sdv.databroker.v1.SetDatapointsRequest\x1a%.sdv.databroker.v1.SetDatapointsReply\x12U\n\tSubscribe\x12#.sdv.databroker.v1.SubscribeRequest\x1a!.sdv.databroker.v1.SubscribeReply0\x01\x12Y\n\x0bGetMetadata\x12%.sdv.databroker.v1.GetMetadataRequest\x1a#.sdv.databroker.v1.GetMetadataReplyb\x06proto3' -) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1esdv/databroker/v1/broker.proto\x12\x11sdv.databroker.v1\x1a\x1dsdv/databroker/v1/types.proto\"*\n\x14GetDatapointsRequest\x12\x12\n\ndatapoints\x18\x01 \x03(\t\"\xb0\x01\n\x12GetDatapointsReply\x12I\n\ndatapoints\x18\x01 \x03(\x0b\x32\x35.sdv.databroker.v1.GetDatapointsReply.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01\"\xb4\x01\n\x14SetDatapointsRequest\x12K\n\ndatapoints\x18\x01 \x03(\x0b\x32\x37.sdv.databroker.v1.SetDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01\"\xa9\x01\n\x12SetDatapointsReply\x12\x41\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x31.sdv.databroker.v1.SetDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01\"!\n\x10SubscribeRequest\x12\r\n\x05query\x18\x02 \x01(\t\"\x9c\x01\n\x0eSubscribeReply\x12=\n\x06\x66ields\x18\x01 \x03(\x0b\x32-.sdv.databroker.v1.SubscribeReply.FieldsEntry\x1aK\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01\"#\n\x12GetMetadataRequest\x12\r\n\x05names\x18\x01 \x03(\t\"=\n\x10GetMetadataReply\x12)\n\x04list\x18\x01 \x03(\x0b\x32\x1b.sdv.databroker.v1.Metadata2\xfc\x02\n\x06\x42roker\x12_\n\rGetDatapoints\x12\'.sdv.databroker.v1.GetDatapointsRequest\x1a%.sdv.databroker.v1.GetDatapointsReply\x12_\n\rSetDatapoints\x12\'.sdv.databroker.v1.SetDatapointsRequest\x1a%.sdv.databroker.v1.SetDatapointsReply\x12U\n\tSubscribe\x12#.sdv.databroker.v1.SubscribeRequest\x1a!.sdv.databroker.v1.SubscribeReply0\x01\x12Y\n\x0bGetMetadata\x12%.sdv.databroker.v1.GetMetadataRequest\x1a#.sdv.databroker.v1.GetMetadataReplyb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages( - DESCRIPTOR, "sdv.databroker.v1.broker_pb2", _globals -) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sdv.databroker.v1.broker_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _GETDATAPOINTSREPLY_DATAPOINTSENTRY._options = None - _GETDATAPOINTSREPLY_DATAPOINTSENTRY._serialized_options = b"8\001" - _SETDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None - _SETDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b"8\001" - _SETDATAPOINTSREPLY_ERRORSENTRY._options = None - _SETDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b"8\001" - _SUBSCRIBEREPLY_FIELDSENTRY._options = None - _SUBSCRIBEREPLY_FIELDSENTRY._serialized_options = b"8\001" - _globals["_GETDATAPOINTSREQUEST"]._serialized_start = 84 - _globals["_GETDATAPOINTSREQUEST"]._serialized_end = 126 - _globals["_GETDATAPOINTSREPLY"]._serialized_start = 129 - _globals["_GETDATAPOINTSREPLY"]._serialized_end = 305 - _globals["_GETDATAPOINTSREPLY_DATAPOINTSENTRY"]._serialized_start = 226 - _globals["_GETDATAPOINTSREPLY_DATAPOINTSENTRY"]._serialized_end = 305 - _globals["_SETDATAPOINTSREQUEST"]._serialized_start = 308 - _globals["_SETDATAPOINTSREQUEST"]._serialized_end = 488 - _globals["_SETDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_start = 226 - _globals["_SETDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_end = 305 - _globals["_SETDATAPOINTSREPLY"]._serialized_start = 491 - _globals["_SETDATAPOINTSREPLY"]._serialized_end = 660 - _globals["_SETDATAPOINTSREPLY_ERRORSENTRY"]._serialized_start = 580 - _globals["_SETDATAPOINTSREPLY_ERRORSENTRY"]._serialized_end = 660 - _globals["_SUBSCRIBEREQUEST"]._serialized_start = 662 - _globals["_SUBSCRIBEREQUEST"]._serialized_end = 695 - _globals["_SUBSCRIBEREPLY"]._serialized_start = 698 - _globals["_SUBSCRIBEREPLY"]._serialized_end = 854 - _globals["_SUBSCRIBEREPLY_FIELDSENTRY"]._serialized_start = 779 - _globals["_SUBSCRIBEREPLY_FIELDSENTRY"]._serialized_end = 854 - _globals["_GETMETADATAREQUEST"]._serialized_start = 856 - _globals["_GETMETADATAREQUEST"]._serialized_end = 891 - _globals["_GETMETADATAREPLY"]._serialized_start = 893 - _globals["_GETMETADATAREPLY"]._serialized_end = 954 - _globals["_BROKER"]._serialized_start = 957 - _globals["_BROKER"]._serialized_end = 1337 + + DESCRIPTOR._options = None + _GETDATAPOINTSREPLY_DATAPOINTSENTRY._options = None + _GETDATAPOINTSREPLY_DATAPOINTSENTRY._serialized_options = b'8\001' + _SETDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None + _SETDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b'8\001' + _SETDATAPOINTSREPLY_ERRORSENTRY._options = None + _SETDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b'8\001' + _SUBSCRIBEREPLY_FIELDSENTRY._options = None + _SUBSCRIBEREPLY_FIELDSENTRY._serialized_options = b'8\001' + _globals['_GETDATAPOINTSREQUEST']._serialized_start=84 + _globals['_GETDATAPOINTSREQUEST']._serialized_end=126 + _globals['_GETDATAPOINTSREPLY']._serialized_start=129 + _globals['_GETDATAPOINTSREPLY']._serialized_end=305 + _globals['_GETDATAPOINTSREPLY_DATAPOINTSENTRY']._serialized_start=226 + _globals['_GETDATAPOINTSREPLY_DATAPOINTSENTRY']._serialized_end=305 + _globals['_SETDATAPOINTSREQUEST']._serialized_start=308 + _globals['_SETDATAPOINTSREQUEST']._serialized_end=488 + _globals['_SETDATAPOINTSREQUEST_DATAPOINTSENTRY']._serialized_start=226 + _globals['_SETDATAPOINTSREQUEST_DATAPOINTSENTRY']._serialized_end=305 + _globals['_SETDATAPOINTSREPLY']._serialized_start=491 + _globals['_SETDATAPOINTSREPLY']._serialized_end=660 + _globals['_SETDATAPOINTSREPLY_ERRORSENTRY']._serialized_start=580 + _globals['_SETDATAPOINTSREPLY_ERRORSENTRY']._serialized_end=660 + _globals['_SUBSCRIBEREQUEST']._serialized_start=662 + _globals['_SUBSCRIBEREQUEST']._serialized_end=695 + _globals['_SUBSCRIBEREPLY']._serialized_start=698 + _globals['_SUBSCRIBEREPLY']._serialized_end=854 + _globals['_SUBSCRIBEREPLY_FIELDSENTRY']._serialized_start=779 + _globals['_SUBSCRIBEREPLY_FIELDSENTRY']._serialized_end=854 + _globals['_GETMETADATAREQUEST']._serialized_start=856 + _globals['_GETMETADATAREQUEST']._serialized_end=891 + _globals['_GETMETADATAREPLY']._serialized_start=893 + _globals['_GETMETADATAREPLY']._serialized_end=954 + _globals['_BROKER']._serialized_start=957 + _globals['_BROKER']._serialized_end=1337 # @@protoc_insertion_point(module_scope) diff --git a/velocitas_sdk/proto/broker_pb2.pyi b/velocitas_sdk/proto/broker_pb2.pyi index a21d8fed..34baeb5b 100644 --- a/velocitas_sdk/proto/broker_pb2.pyi +++ b/velocitas_sdk/proto/broker_pb2.pyi @@ -36,18 +36,14 @@ 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 @@ -70,21 +66,12 @@ 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. @@ -92,14 +79,9 @@ class GetDatapointsReply(google.protobuf.message.Message): def __init__( self, *, - 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"] + 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: ... global___GetDatapointsReply = GetDatapointsReply @@ -122,33 +104,19 @@ 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 = ..., - ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["datapoints", b"datapoints"] + 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: ... global___SetDatapointsRequest = SetDatapointsRequest @@ -170,30 +138,18 @@ 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 = ..., - ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["errors", b"errors"] + 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: ... global___SetDatapointsReply = SetDatapointsReply @@ -213,9 +169,7 @@ 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 @@ -238,21 +192,12 @@ 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. @@ -260,14 +205,9 @@ class SubscribeReply(google.protobuf.message.Message): def __init__( self, *, - 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"] + 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: ... global___SubscribeReply = SubscribeReply @@ -277,9 +217,7 @@ 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". @@ -291,9 +229,7 @@ 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 @@ -303,11 +239,7 @@ 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. @@ -315,11 +247,8 @@ class GetMetadataReply(google.protobuf.message.Message): def __init__( self, *, - list: collections.abc.Iterable[sdv.databroker.v1.types_pb2.Metadata] - | None = ..., - ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["list", b"list"] + list: collections.abc.Iterable[sdv.databroker.v1.types_pb2.Metadata] | None = ..., ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["list", b"list"]) -> None: ... global___GetMetadataReply = GetMetadataReply diff --git a/velocitas_sdk/proto/collector_pb2.py b/velocitas_sdk/proto/collector_pb2.py index 9da6f553..2b49adee 100644 --- a/velocitas_sdk/proto/collector_pb2.py +++ b/velocitas_sdk/proto/collector_pb2.py @@ -6,7 +6,6 @@ from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder - # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,51 +14,48 @@ from velocitas_sdk.proto import types_pb2 as sdv_dot_databroker_dot_v1_dot_types__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n!sdv/databroker/v1/collector.proto\x12\x11sdv.databroker.v1\x1a\x1dsdv/databroker/v1/types.proto"\xba\x01\n\x17UpdateDatapointsRequest\x12N\n\ndatapoints\x18\x01 \x03(\x0b\x32:.sdv.databroker.v1.UpdateDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"\xaf\x01\n\x15UpdateDatapointsReply\x12\x44\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x34.sdv.databroker.v1.UpdateDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01"\xba\x01\n\x17StreamDatapointsRequest\x12N\n\ndatapoints\x18\x01 \x03(\x0b\x32:.sdv.databroker.v1.StreamDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01"\xaf\x01\n\x15StreamDatapointsReply\x12\x44\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x34.sdv.databroker.v1.StreamDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01"R\n\x19RegisterDatapointsRequest\x12\x35\n\x04list\x18\x01 \x03(\x0b\x32\'.sdv.databroker.v1.RegistrationMetadata"\x9d\x01\n\x14RegistrationMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\tdata_type\x18\x02 \x01(\x0e\x32\x1b.sdv.databroker.v1.DataType\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x32\n\x0b\x63hange_type\x18\x04 \x01(\x0e\x32\x1d.sdv.databroker.v1.ChangeType"\x93\x01\n\x17RegisterDatapointsReply\x12H\n\x07results\x18\x01 \x03(\x0b\x32\x37.sdv.databroker.v1.RegisterDatapointsReply.ResultsEntry\x1a.\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\x32\xd3\x02\n\tCollector\x12n\n\x12RegisterDatapoints\x12,.sdv.databroker.v1.RegisterDatapointsRequest\x1a*.sdv.databroker.v1.RegisterDatapointsReply\x12h\n\x10UpdateDatapoints\x12*.sdv.databroker.v1.UpdateDatapointsRequest\x1a(.sdv.databroker.v1.UpdateDatapointsReply\x12l\n\x10StreamDatapoints\x12*.sdv.databroker.v1.StreamDatapointsRequest\x1a(.sdv.databroker.v1.StreamDatapointsReply(\x01\x30\x01\x62\x06proto3' -) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!sdv/databroker/v1/collector.proto\x12\x11sdv.databroker.v1\x1a\x1dsdv/databroker/v1/types.proto\"\xba\x01\n\x17UpdateDatapointsRequest\x12N\n\ndatapoints\x18\x01 \x03(\x0b\x32:.sdv.databroker.v1.UpdateDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01\"\xaf\x01\n\x15UpdateDatapointsReply\x12\x44\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x34.sdv.databroker.v1.UpdateDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01\"\xba\x01\n\x17StreamDatapointsRequest\x12N\n\ndatapoints\x18\x01 \x03(\x0b\x32:.sdv.databroker.v1.StreamDatapointsRequest.DatapointsEntry\x1aO\n\x0f\x44\x61tapointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.sdv.databroker.v1.Datapoint:\x02\x38\x01\"\xaf\x01\n\x15StreamDatapointsReply\x12\x44\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x34.sdv.databroker.v1.StreamDatapointsReply.ErrorsEntry\x1aP\n\x0b\x45rrorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x30\n\x05value\x18\x02 \x01(\x0e\x32!.sdv.databroker.v1.DatapointError:\x02\x38\x01\"R\n\x19RegisterDatapointsRequest\x12\x35\n\x04list\x18\x01 \x03(\x0b\x32\'.sdv.databroker.v1.RegistrationMetadata\"\x9d\x01\n\x14RegistrationMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\tdata_type\x18\x02 \x01(\x0e\x32\x1b.sdv.databroker.v1.DataType\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x32\n\x0b\x63hange_type\x18\x04 \x01(\x0e\x32\x1d.sdv.databroker.v1.ChangeType\"\x93\x01\n\x17RegisterDatapointsReply\x12H\n\x07results\x18\x01 \x03(\x0b\x32\x37.sdv.databroker.v1.RegisterDatapointsReply.ResultsEntry\x1a.\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\x32\xd3\x02\n\tCollector\x12n\n\x12RegisterDatapoints\x12,.sdv.databroker.v1.RegisterDatapointsRequest\x1a*.sdv.databroker.v1.RegisterDatapointsReply\x12h\n\x10UpdateDatapoints\x12*.sdv.databroker.v1.UpdateDatapointsRequest\x1a(.sdv.databroker.v1.UpdateDatapointsReply\x12l\n\x10StreamDatapoints\x12*.sdv.databroker.v1.StreamDatapointsRequest\x1a(.sdv.databroker.v1.StreamDatapointsReply(\x01\x30\x01\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages( - DESCRIPTOR, "sdv.databroker.v1.collector_pb2", _globals -) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sdv.databroker.v1.collector_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None - _UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b"8\001" - _UPDATEDATAPOINTSREPLY_ERRORSENTRY._options = None - _UPDATEDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b"8\001" - _STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None - _STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b"8\001" - _STREAMDATAPOINTSREPLY_ERRORSENTRY._options = None - _STREAMDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b"8\001" - _REGISTERDATAPOINTSREPLY_RESULTSENTRY._options = None - _REGISTERDATAPOINTSREPLY_RESULTSENTRY._serialized_options = b"8\001" - _globals["_UPDATEDATAPOINTSREQUEST"]._serialized_start = 88 - _globals["_UPDATEDATAPOINTSREQUEST"]._serialized_end = 274 - _globals["_UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_start = 195 - _globals["_UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_end = 274 - _globals["_UPDATEDATAPOINTSREPLY"]._serialized_start = 277 - _globals["_UPDATEDATAPOINTSREPLY"]._serialized_end = 452 - _globals["_UPDATEDATAPOINTSREPLY_ERRORSENTRY"]._serialized_start = 372 - _globals["_UPDATEDATAPOINTSREPLY_ERRORSENTRY"]._serialized_end = 452 - _globals["_STREAMDATAPOINTSREQUEST"]._serialized_start = 455 - _globals["_STREAMDATAPOINTSREQUEST"]._serialized_end = 641 - _globals["_STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_start = 195 - _globals["_STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY"]._serialized_end = 274 - _globals["_STREAMDATAPOINTSREPLY"]._serialized_start = 644 - _globals["_STREAMDATAPOINTSREPLY"]._serialized_end = 819 - _globals["_STREAMDATAPOINTSREPLY_ERRORSENTRY"]._serialized_start = 372 - _globals["_STREAMDATAPOINTSREPLY_ERRORSENTRY"]._serialized_end = 452 - _globals["_REGISTERDATAPOINTSREQUEST"]._serialized_start = 821 - _globals["_REGISTERDATAPOINTSREQUEST"]._serialized_end = 903 - _globals["_REGISTRATIONMETADATA"]._serialized_start = 906 - _globals["_REGISTRATIONMETADATA"]._serialized_end = 1063 - _globals["_REGISTERDATAPOINTSREPLY"]._serialized_start = 1066 - _globals["_REGISTERDATAPOINTSREPLY"]._serialized_end = 1213 - _globals["_REGISTERDATAPOINTSREPLY_RESULTSENTRY"]._serialized_start = 1167 - _globals["_REGISTERDATAPOINTSREPLY_RESULTSENTRY"]._serialized_end = 1213 - _globals["_COLLECTOR"]._serialized_start = 1216 - _globals["_COLLECTOR"]._serialized_end = 1555 + + DESCRIPTOR._options = None + _UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None + _UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b'8\001' + _UPDATEDATAPOINTSREPLY_ERRORSENTRY._options = None + _UPDATEDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b'8\001' + _STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY._options = None + _STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY._serialized_options = b'8\001' + _STREAMDATAPOINTSREPLY_ERRORSENTRY._options = None + _STREAMDATAPOINTSREPLY_ERRORSENTRY._serialized_options = b'8\001' + _REGISTERDATAPOINTSREPLY_RESULTSENTRY._options = None + _REGISTERDATAPOINTSREPLY_RESULTSENTRY._serialized_options = b'8\001' + _globals['_UPDATEDATAPOINTSREQUEST']._serialized_start=88 + _globals['_UPDATEDATAPOINTSREQUEST']._serialized_end=274 + _globals['_UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY']._serialized_start=195 + _globals['_UPDATEDATAPOINTSREQUEST_DATAPOINTSENTRY']._serialized_end=274 + _globals['_UPDATEDATAPOINTSREPLY']._serialized_start=277 + _globals['_UPDATEDATAPOINTSREPLY']._serialized_end=452 + _globals['_UPDATEDATAPOINTSREPLY_ERRORSENTRY']._serialized_start=372 + _globals['_UPDATEDATAPOINTSREPLY_ERRORSENTRY']._serialized_end=452 + _globals['_STREAMDATAPOINTSREQUEST']._serialized_start=455 + _globals['_STREAMDATAPOINTSREQUEST']._serialized_end=641 + _globals['_STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY']._serialized_start=195 + _globals['_STREAMDATAPOINTSREQUEST_DATAPOINTSENTRY']._serialized_end=274 + _globals['_STREAMDATAPOINTSREPLY']._serialized_start=644 + _globals['_STREAMDATAPOINTSREPLY']._serialized_end=819 + _globals['_STREAMDATAPOINTSREPLY_ERRORSENTRY']._serialized_start=372 + _globals['_STREAMDATAPOINTSREPLY_ERRORSENTRY']._serialized_end=452 + _globals['_REGISTERDATAPOINTSREQUEST']._serialized_start=821 + _globals['_REGISTERDATAPOINTSREQUEST']._serialized_end=903 + _globals['_REGISTRATIONMETADATA']._serialized_start=906 + _globals['_REGISTRATIONMETADATA']._serialized_end=1063 + _globals['_REGISTERDATAPOINTSREPLY']._serialized_start=1066 + _globals['_REGISTERDATAPOINTSREPLY']._serialized_end=1213 + _globals['_REGISTERDATAPOINTSREPLY_RESULTSENTRY']._serialized_start=1167 + _globals['_REGISTERDATAPOINTSREPLY_RESULTSENTRY']._serialized_end=1213 + _globals['_COLLECTOR']._serialized_start=1216 + _globals['_COLLECTOR']._serialized_end=1555 # @@protoc_insertion_point(module_scope) diff --git a/velocitas_sdk/proto/collector_pb2.pyi b/velocitas_sdk/proto/collector_pb2.pyi index 6c60dc2d..af09dd22 100644 --- a/velocitas_sdk/proto/collector_pb2.pyi +++ b/velocitas_sdk/proto/collector_pb2.pyi @@ -49,32 +49,18 @@ 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 = ..., - ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["datapoints", b"datapoints"] + 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: ... global___UpdateDatapointsRequest = UpdateDatapointsRequest @@ -96,30 +82,18 @@ 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 = ..., - ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["errors", b"errors"] + 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: ... global___UpdateDatapointsReply = UpdateDatapointsReply @@ -142,32 +116,18 @@ 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 = ..., - ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["datapoints", b"datapoints"] + 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: ... global___StreamDatapointsRequest = StreamDatapointsRequest @@ -189,30 +149,18 @@ 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 = ..., - ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["errors", b"errors"] + 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: ... global___StreamDatapointsReply = StreamDatapointsReply @@ -222,19 +170,13 @@ 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 @@ -261,19 +203,7 @@ 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 @@ -295,24 +225,17 @@ 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 1e8be54e..c4e62298 100644 --- a/velocitas_sdk/proto/collector_pb2_grpc.py +++ b/velocitas_sdk/proto/collector_pb2_grpc.py @@ -1,408 +1,166 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright (c) 2022 Robert Bosch GmbH and Microsoft Corporation +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc -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. +from velocitas_sdk.proto import collector_pb2 as sdv_dot_databroker_dot_v1_dot_collector__pb2 -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 builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -import velocitas_sdk.proto.types_pb2 -import sys +class CollectorStub(object): + """Missing associated documentation comment in .proto file.""" -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions + def __init__(self, channel): + """Constructor. -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - - -@typing_extensions.final -class GetDatapointsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DATAPOINTS_FIELD_NUMBER: builtins.int - - @property - 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: - ... - - -global___GetDatapointsRequest = GetDatapointsRequest - - -@typing_extensions.final -class GetDatapointsReply(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing_extensions.final - class DatapointsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - - @property - def value(self) -> sdv.databroker.v1.types_pb2.Datapoint: - ... - - def __init__( - self, - *, - 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: - ... - - DATAPOINTS_FIELD_NUMBER: builtins.int - - @property - 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. + Args: + channel: A grpc.Channel. """ - - def __init__( - self, - *, - 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: - ... - - -global___GetDatapointsReply = GetDatapointsReply - - -@typing_extensions.final -class SetDatapointsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing_extensions.final - class DatapointsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - - @property - def value(self) -> sdv.databroker.v1.types_pb2.Datapoint: - ... - - def __init__( - self, - *, - 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: - ... - - DATAPOINTS_FIELD_NUMBER: builtins.int - - @property - 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 = ..., - ) -> None: - ... - - def ClearField( - self, field_name: typing_extensions.Literal["datapoints", b"datapoints"] - ) -> None: - ... - - -global___SetDatapointsRequest = SetDatapointsRequest - - -@typing_extensions.final -class SetDatapointsReply(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing_extensions.final - class ErrorsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: sdv.databroker.v1.types_pb2.DatapointError.ValueType - - def __init__( - self, - *, - 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: - ... - - ERRORS_FIELD_NUMBER: builtins.int - - @property - 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 = ..., - ) -> None: - ... - - def ClearField( - self, field_name: typing_extensions.Literal["errors", b"errors"] - ) -> None: - ... - - -global___SetDatapointsReply = SetDatapointsReply - - -@typing_extensions.final -class SubscribeRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - QUERY_FIELD_NUMBER: builtins.int - query: builtins.str - """Subscribe to a set of data points (or expressions) described - by the provided query. - The query syntax is a subset of SQL and is described in more - detail in the QUERY.md file. - """ - - def __init__( - self, - *, - query: builtins.str = ..., - ) -> None: - ... - - def ClearField( - self, field_name: typing_extensions.Literal["query", b"query"] - ) -> None: - ... - - -global___SubscribeRequest = SubscribeRequest - - -@typing_extensions.final -class SubscribeReply(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing_extensions.final - class FieldsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - - @property - def value(self) -> sdv.databroker.v1.types_pb2.Datapoint: - ... - - def __init__( - self, - *, - 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: - ... - - FIELDS_FIELD_NUMBER: builtins.int - - @property - 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. + self.RegisterDatapoints = channel.unary_unary( + '/sdv.databroker.v1.Collector/RegisterDatapoints', + request_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsRequest.SerializeToString, + response_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsReply.FromString, + ) + self.UpdateDatapoints = channel.unary_unary( + '/sdv.databroker.v1.Collector/UpdateDatapoints', + request_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsRequest.SerializeToString, + response_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsReply.FromString, + ) + self.StreamDatapoints = channel.stream_stream( + '/sdv.databroker.v1.Collector/StreamDatapoints', + request_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsRequest.SerializeToString, + response_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsReply.FromString, + ) + + +class CollectorServicer(object): + """Missing associated documentation comment in .proto file.""" + + def RegisterDatapoints(self, request, context): + """Register new datapoint (metadata) + + If the registration of at least one of the passed data point fails, the overall registration + is rejected and the gRPC status code ABORTED is returned (to indicate the "aborted" registration). + The details, which data point(s) caused the failure and the reason, is passed in back in human- + readable form in the status message. Possible failure resaons are: + * PERMISSION_DENIED - Not allowed to register this name + * ALREADY_REGISTERED - The data point is already registered by some other feeder + * RE_REGISTRATION_MISMATCH - Already registered by this feeder but with differing metadata + * INVALID_NAME - The passed name of the datapoint has an invalid structure + * INVALID_VALUE_TYPE - The passed ValueType is not supported + * INVALID_CHANGE_TYPE - The passed ChangeType is not supported """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') - def __init__( - self, - *, - 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: - ... - - -global___SubscribeReply = SubscribeReply - + def UpdateDatapoints(self, request, context): + """Provide a set of updated datapoint values to the broker. + This is the unary equivalent of `StreamDatapoints` below and is better suited for cases + where the frequency of updates is rather low. -@typing_extensions.final -class GetMetadataRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + NOTE: The values provided in a single request are handled as a single update in the + data broker. This ensures that any clients requesting (or subscribing to) a set of + datapoints will get a consistent update, i.e. that either all values are updated or + none are. - NAMES_FIELD_NUMBER: builtins.int + Returns: any errors encountered updating the datapoints - @property - 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". - - If no names are provided, metadata for all known data points will be - returned. """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') - def __init__( - self, - *, - names: collections.abc.Iterable[builtins.str] | None = ..., - ) -> None: - ... - - def ClearField( - self, field_name: typing_extensions.Literal["names", b"names"] - ) -> None: - ... - - -global___GetMetadataRequest = GetMetadataRequest - + def StreamDatapoints(self, request_iterator, context): + """Provide a stream with updated datapoint values to the broker. + This is the streaming equivalent of `UpdateDatapoints` above and is better suited for + cases where the frequency of updates is high. -@typing_extensions.final -class GetMetadataReply(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor + NOTE: The values provided in a single request are handled as a single update in the + data broker. This ensures that any clients requesting (or subscribing to) a set of + datapoints will get a consistent update, i.e. that either all values are updated or + none are. - LIST_FIELD_NUMBER: builtins.int + Returns: any errors encountered updating the datapoints - @property - 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. """ - - def __init__( - self, - *, - list: collections.abc.Iterable[sdv.databroker.v1.types_pb2.Metadata] - | None = ..., - ) -> None: - ... - - def ClearField( - self, field_name: typing_extensions.Literal["list", b"list"] - ) -> None: - ... - - -global___GetMetadataReply = GetMetadataReply + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CollectorServicer_to_server(servicer, server): + rpc_method_handlers = { + 'RegisterDatapoints': grpc.unary_unary_rpc_method_handler( + servicer.RegisterDatapoints, + request_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsRequest.FromString, + response_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsReply.SerializeToString, + ), + 'UpdateDatapoints': grpc.unary_unary_rpc_method_handler( + servicer.UpdateDatapoints, + request_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsRequest.FromString, + response_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsReply.SerializeToString, + ), + 'StreamDatapoints': grpc.stream_stream_rpc_method_handler( + servicer.StreamDatapoints, + request_deserializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsRequest.FromString, + response_serializer=sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsReply.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'sdv.databroker.v1.Collector', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class Collector(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def RegisterDatapoints(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.databroker.v1.Collector/RegisterDatapoints', + sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsRequest.SerializeToString, + sdv_dot_databroker_dot_v1_dot_collector__pb2.RegisterDatapointsReply.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateDatapoints(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.databroker.v1.Collector/UpdateDatapoints', + sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsRequest.SerializeToString, + sdv_dot_databroker_dot_v1_dot_collector__pb2.UpdateDatapointsReply.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StreamDatapoints(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/sdv.databroker.v1.Collector/StreamDatapoints', + sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsRequest.SerializeToString, + sdv_dot_databroker_dot_v1_dot_collector__pb2.StreamDatapointsReply.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/velocitas_sdk/proto/types_pb2.py b/velocitas_sdk/proto/types_pb2.py index 57eff12f..8412f296 100644 --- a/velocitas_sdk/proto/types_pb2.py +++ b/velocitas_sdk/proto/types_pb2.py @@ -6,7 +6,6 @@ from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder - # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,43 +14,40 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\x1dsdv/databroker/v1/types.proto\x12\x11sdv.databroker.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x1d\n\x0bStringArray\x12\x0e\n\x06values\x18\x01 \x03(\t"\x1b\n\tBoolArray\x12\x0e\n\x06values\x18\x01 \x03(\x08"\x1c\n\nInt32Array\x12\x0e\n\x06values\x18\x01 \x03(\x11"\x1c\n\nInt64Array\x12\x0e\n\x06values\x18\x01 \x03(\x12"\x1d\n\x0bUint32Array\x12\x0e\n\x06values\x18\x01 \x03(\r"\x1d\n\x0bUint64Array\x12\x0e\n\x06values\x18\x01 \x03(\x04"\x1c\n\nFloatArray\x12\x0e\n\x06values\x18\x01 \x03(\x02"\x1d\n\x0b\x44oubleArray\x12\x0e\n\x06values\x18\x01 \x03(\x01"\xe2\x06\n\tDatapoint\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\rfailure_value\x18\n \x01(\x0e\x32$.sdv.databroker.v1.Datapoint.FailureH\x00\x12\x16\n\x0cstring_value\x18\x0b \x01(\tH\x00\x12\x14\n\nbool_value\x18\x0c \x01(\x08H\x00\x12\x15\n\x0bint32_value\x18\r \x01(\x11H\x00\x12\x15\n\x0bint64_value\x18\x0e \x01(\x12H\x00\x12\x16\n\x0cuint32_value\x18\x0f \x01(\rH\x00\x12\x16\n\x0cuint64_value\x18\x10 \x01(\x04H\x00\x12\x15\n\x0b\x66loat_value\x18\x11 \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\x12 \x01(\x01H\x00\x12\x36\n\x0cstring_array\x18\x15 \x01(\x0b\x32\x1e.sdv.databroker.v1.StringArrayH\x00\x12\x32\n\nbool_array\x18\x16 \x01(\x0b\x32\x1c.sdv.databroker.v1.BoolArrayH\x00\x12\x34\n\x0bint32_array\x18\x17 \x01(\x0b\x32\x1d.sdv.databroker.v1.Int32ArrayH\x00\x12\x34\n\x0bint64_array\x18\x18 \x01(\x0b\x32\x1d.sdv.databroker.v1.Int64ArrayH\x00\x12\x36\n\x0cuint32_array\x18\x19 \x01(\x0b\x32\x1e.sdv.databroker.v1.Uint32ArrayH\x00\x12\x36\n\x0cuint64_array\x18\x1a \x01(\x0b\x32\x1e.sdv.databroker.v1.Uint64ArrayH\x00\x12\x34\n\x0b\x66loat_array\x18\x1b \x01(\x0b\x32\x1d.sdv.databroker.v1.FloatArrayH\x00\x12\x36\n\x0c\x64ouble_array\x18\x1c \x01(\x0b\x32\x1e.sdv.databroker.v1.DoubleArrayH\x00"m\n\x07\x46\x61ilure\x12\x11\n\rINVALID_VALUE\x10\x00\x12\x11\n\rNOT_AVAILABLE\x10\x01\x12\x15\n\x11UNKNOWN_DATAPOINT\x10\x02\x12\x11\n\rACCESS_DENIED\x10\x03\x12\x12\n\x0eINTERNAL_ERROR\x10\x04\x42\x07\n\x05value"\x9d\x01\n\x08Metadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x04 \x01(\t\x12.\n\tdata_type\x18\x05 \x01(\x0e\x32\x1b.sdv.databroker.v1.DataType\x12\x32\n\x0b\x63hange_type\x18\x06 \x01(\x0e\x32\x1d.sdv.databroker.v1.ChangeType\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t*\x84\x03\n\x08\x44\x61taType\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\x08\n\x04INT8\x10\x02\x12\t\n\x05INT16\x10\x03\x12\t\n\x05INT32\x10\x04\x12\t\n\x05INT64\x10\x05\x12\t\n\x05UINT8\x10\x06\x12\n\n\x06UINT16\x10\x07\x12\n\n\x06UINT32\x10\x08\x12\n\n\x06UINT64\x10\t\x12\t\n\x05\x46LOAT\x10\n\x12\n\n\x06\x44OUBLE\x10\x0b\x12\r\n\tTIMESTAMP\x10\x0c\x12\x10\n\x0cSTRING_ARRAY\x10\x14\x12\x0e\n\nBOOL_ARRAY\x10\x15\x12\x0e\n\nINT8_ARRAY\x10\x16\x12\x0f\n\x0bINT16_ARRAY\x10\x17\x12\x0f\n\x0bINT32_ARRAY\x10\x18\x12\x0f\n\x0bINT64_ARRAY\x10\x19\x12\x0f\n\x0bUINT8_ARRAY\x10\x1a\x12\x10\n\x0cUINT16_ARRAY\x10\x1b\x12\x10\n\x0cUINT32_ARRAY\x10\x1c\x12\x10\n\x0cUINT64_ARRAY\x10\x1d\x12\x0f\n\x0b\x46LOAT_ARRAY\x10\x1e\x12\x10\n\x0c\x44OUBLE_ARRAY\x10\x1f\x12\x13\n\x0fTIMESTAMP_ARRAY\x10 *s\n\x0e\x44\x61tapointError\x12\x15\n\x11UNKNOWN_DATAPOINT\x10\x00\x12\x10\n\x0cINVALID_TYPE\x10\x01\x12\x11\n\rACCESS_DENIED\x10\x02\x12\x12\n\x0eINTERNAL_ERROR\x10\x03\x12\x11\n\rOUT_OF_BOUNDS\x10\x04*7\n\nChangeType\x12\n\n\x06STATIC\x10\x00\x12\r\n\tON_CHANGE\x10\x01\x12\x0e\n\nCONTINUOUS\x10\x02\x62\x06proto3' -) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dsdv/databroker/v1/types.proto\x12\x11sdv.databroker.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x1d\n\x0bStringArray\x12\x0e\n\x06values\x18\x01 \x03(\t\"\x1b\n\tBoolArray\x12\x0e\n\x06values\x18\x01 \x03(\x08\"\x1c\n\nInt32Array\x12\x0e\n\x06values\x18\x01 \x03(\x11\"\x1c\n\nInt64Array\x12\x0e\n\x06values\x18\x01 \x03(\x12\"\x1d\n\x0bUint32Array\x12\x0e\n\x06values\x18\x01 \x03(\r\"\x1d\n\x0bUint64Array\x12\x0e\n\x06values\x18\x01 \x03(\x04\"\x1c\n\nFloatArray\x12\x0e\n\x06values\x18\x01 \x03(\x02\"\x1d\n\x0b\x44oubleArray\x12\x0e\n\x06values\x18\x01 \x03(\x01\"\xe2\x06\n\tDatapoint\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\rfailure_value\x18\n \x01(\x0e\x32$.sdv.databroker.v1.Datapoint.FailureH\x00\x12\x16\n\x0cstring_value\x18\x0b \x01(\tH\x00\x12\x14\n\nbool_value\x18\x0c \x01(\x08H\x00\x12\x15\n\x0bint32_value\x18\r \x01(\x11H\x00\x12\x15\n\x0bint64_value\x18\x0e \x01(\x12H\x00\x12\x16\n\x0cuint32_value\x18\x0f \x01(\rH\x00\x12\x16\n\x0cuint64_value\x18\x10 \x01(\x04H\x00\x12\x15\n\x0b\x66loat_value\x18\x11 \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\x12 \x01(\x01H\x00\x12\x36\n\x0cstring_array\x18\x15 \x01(\x0b\x32\x1e.sdv.databroker.v1.StringArrayH\x00\x12\x32\n\nbool_array\x18\x16 \x01(\x0b\x32\x1c.sdv.databroker.v1.BoolArrayH\x00\x12\x34\n\x0bint32_array\x18\x17 \x01(\x0b\x32\x1d.sdv.databroker.v1.Int32ArrayH\x00\x12\x34\n\x0bint64_array\x18\x18 \x01(\x0b\x32\x1d.sdv.databroker.v1.Int64ArrayH\x00\x12\x36\n\x0cuint32_array\x18\x19 \x01(\x0b\x32\x1e.sdv.databroker.v1.Uint32ArrayH\x00\x12\x36\n\x0cuint64_array\x18\x1a \x01(\x0b\x32\x1e.sdv.databroker.v1.Uint64ArrayH\x00\x12\x34\n\x0b\x66loat_array\x18\x1b \x01(\x0b\x32\x1d.sdv.databroker.v1.FloatArrayH\x00\x12\x36\n\x0c\x64ouble_array\x18\x1c \x01(\x0b\x32\x1e.sdv.databroker.v1.DoubleArrayH\x00\"m\n\x07\x46\x61ilure\x12\x11\n\rINVALID_VALUE\x10\x00\x12\x11\n\rNOT_AVAILABLE\x10\x01\x12\x15\n\x11UNKNOWN_DATAPOINT\x10\x02\x12\x11\n\rACCESS_DENIED\x10\x03\x12\x12\n\x0eINTERNAL_ERROR\x10\x04\x42\x07\n\x05value\"\x9d\x01\n\x08Metadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x04 \x01(\t\x12.\n\tdata_type\x18\x05 \x01(\x0e\x32\x1b.sdv.databroker.v1.DataType\x12\x32\n\x0b\x63hange_type\x18\x06 \x01(\x0e\x32\x1d.sdv.databroker.v1.ChangeType\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t*\x84\x03\n\x08\x44\x61taType\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\x08\n\x04INT8\x10\x02\x12\t\n\x05INT16\x10\x03\x12\t\n\x05INT32\x10\x04\x12\t\n\x05INT64\x10\x05\x12\t\n\x05UINT8\x10\x06\x12\n\n\x06UINT16\x10\x07\x12\n\n\x06UINT32\x10\x08\x12\n\n\x06UINT64\x10\t\x12\t\n\x05\x46LOAT\x10\n\x12\n\n\x06\x44OUBLE\x10\x0b\x12\r\n\tTIMESTAMP\x10\x0c\x12\x10\n\x0cSTRING_ARRAY\x10\x14\x12\x0e\n\nBOOL_ARRAY\x10\x15\x12\x0e\n\nINT8_ARRAY\x10\x16\x12\x0f\n\x0bINT16_ARRAY\x10\x17\x12\x0f\n\x0bINT32_ARRAY\x10\x18\x12\x0f\n\x0bINT64_ARRAY\x10\x19\x12\x0f\n\x0bUINT8_ARRAY\x10\x1a\x12\x10\n\x0cUINT16_ARRAY\x10\x1b\x12\x10\n\x0cUINT32_ARRAY\x10\x1c\x12\x10\n\x0cUINT64_ARRAY\x10\x1d\x12\x0f\n\x0b\x46LOAT_ARRAY\x10\x1e\x12\x10\n\x0c\x44OUBLE_ARRAY\x10\x1f\x12\x13\n\x0fTIMESTAMP_ARRAY\x10 *s\n\x0e\x44\x61tapointError\x12\x15\n\x11UNKNOWN_DATAPOINT\x10\x00\x12\x10\n\x0cINVALID_TYPE\x10\x01\x12\x11\n\rACCESS_DENIED\x10\x02\x12\x12\n\x0eINTERNAL_ERROR\x10\x03\x12\x11\n\rOUT_OF_BOUNDS\x10\x04*7\n\nChangeType\x12\n\n\x06STATIC\x10\x00\x12\r\n\tON_CHANGE\x10\x01\x12\x0e\n\nCONTINUOUS\x10\x02\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages( - DESCRIPTOR, "sdv.databroker.v1.types_pb2", _globals -) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sdv.databroker.v1.types_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _globals["_DATATYPE"]._serialized_start = 1358 - _globals["_DATATYPE"]._serialized_end = 1746 - _globals["_DATAPOINTERROR"]._serialized_start = 1748 - _globals["_DATAPOINTERROR"]._serialized_end = 1863 - _globals["_CHANGETYPE"]._serialized_start = 1865 - _globals["_CHANGETYPE"]._serialized_end = 1920 - _globals["_STRINGARRAY"]._serialized_start = 85 - _globals["_STRINGARRAY"]._serialized_end = 114 - _globals["_BOOLARRAY"]._serialized_start = 116 - _globals["_BOOLARRAY"]._serialized_end = 143 - _globals["_INT32ARRAY"]._serialized_start = 145 - _globals["_INT32ARRAY"]._serialized_end = 173 - _globals["_INT64ARRAY"]._serialized_start = 175 - _globals["_INT64ARRAY"]._serialized_end = 203 - _globals["_UINT32ARRAY"]._serialized_start = 205 - _globals["_UINT32ARRAY"]._serialized_end = 234 - _globals["_UINT64ARRAY"]._serialized_start = 236 - _globals["_UINT64ARRAY"]._serialized_end = 265 - _globals["_FLOATARRAY"]._serialized_start = 267 - _globals["_FLOATARRAY"]._serialized_end = 295 - _globals["_DOUBLEARRAY"]._serialized_start = 297 - _globals["_DOUBLEARRAY"]._serialized_end = 326 - _globals["_DATAPOINT"]._serialized_start = 329 - _globals["_DATAPOINT"]._serialized_end = 1195 - _globals["_DATAPOINT_FAILURE"]._serialized_start = 1077 - _globals["_DATAPOINT_FAILURE"]._serialized_end = 1186 - _globals["_METADATA"]._serialized_start = 1198 - _globals["_METADATA"]._serialized_end = 1355 + + DESCRIPTOR._options = None + _globals['_DATATYPE']._serialized_start=1358 + _globals['_DATATYPE']._serialized_end=1746 + _globals['_DATAPOINTERROR']._serialized_start=1748 + _globals['_DATAPOINTERROR']._serialized_end=1863 + _globals['_CHANGETYPE']._serialized_start=1865 + _globals['_CHANGETYPE']._serialized_end=1920 + _globals['_STRINGARRAY']._serialized_start=85 + _globals['_STRINGARRAY']._serialized_end=114 + _globals['_BOOLARRAY']._serialized_start=116 + _globals['_BOOLARRAY']._serialized_end=143 + _globals['_INT32ARRAY']._serialized_start=145 + _globals['_INT32ARRAY']._serialized_end=173 + _globals['_INT64ARRAY']._serialized_start=175 + _globals['_INT64ARRAY']._serialized_end=203 + _globals['_UINT32ARRAY']._serialized_start=205 + _globals['_UINT32ARRAY']._serialized_end=234 + _globals['_UINT64ARRAY']._serialized_start=236 + _globals['_UINT64ARRAY']._serialized_end=265 + _globals['_FLOATARRAY']._serialized_start=267 + _globals['_FLOATARRAY']._serialized_end=295 + _globals['_DOUBLEARRAY']._serialized_start=297 + _globals['_DOUBLEARRAY']._serialized_end=326 + _globals['_DATAPOINT']._serialized_start=329 + _globals['_DATAPOINT']._serialized_end=1195 + _globals['_DATAPOINT_FAILURE']._serialized_start=1077 + _globals['_DATAPOINT_FAILURE']._serialized_end=1186 + _globals['_METADATA']._serialized_start=1198 + _globals['_METADATA']._serialized_end=1355 # @@protoc_insertion_point(module_scope) diff --git a/velocitas_sdk/proto/types_pb2.pyi b/velocitas_sdk/proto/types_pb2.pyi index 4739bb43..f8bde0b3 100644 --- a/velocitas_sdk/proto/types_pb2.pyi +++ b/velocitas_sdk/proto/types_pb2.pyi @@ -36,10 +36,7 @@ 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 @@ -107,12 +104,7 @@ 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 @@ -133,10 +125,7 @@ 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""" @@ -165,19 +154,13 @@ 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 @@ -187,19 +170,13 @@ 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 @@ -209,19 +186,13 @@ 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 @@ -231,19 +202,13 @@ 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 @@ -253,19 +218,13 @@ 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 @@ -275,19 +234,13 @@ 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 @@ -297,19 +250,13 @@ 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 @@ -319,19 +266,13 @@ 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 @@ -343,12 +284,7 @@ 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""" @@ -441,116 +377,9 @@ 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 @@ -581,20 +410,6 @@ 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 8a939394..2daafffe 100644 --- a/velocitas_sdk/proto/types_pb2_grpc.py +++ b/velocitas_sdk/proto/types_pb2_grpc.py @@ -1,3 +1,4 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc + From e35fce76f885873d168ce1021c2721b0815bef40 Mon Sep 17 00:00:00 2001 From: kse3hi Date: Sun, 26 Nov 2023 19:37:45 +0000 Subject: [PATCH 06/11] Fix self review findings --- examples/dog-mode/src/vehicle_model/proto/hvac_pb2.py | 3 +-- examples/dog-mode/src/vehicle_model/proto/hvac_pb2.pyi | 2 +- examples/dog-mode/src/vehicle_model/proto/hvac_pb2_grpc.py | 2 +- velocitas_sdk/proto/broker_pb2.pyi | 2 +- velocitas_sdk/proto/collector_pb2.pyi | 2 +- velocitas_sdk/proto/types_pb2.pyi | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) 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..d7541477 100644 --- a/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.py +++ b/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- -# 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 # https://www.apache.org/licenses/LICENSE-2.0. 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..2fde1dbe 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) 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_grpc.py b/examples/dog-mode/src/vehicle_model/proto/hvac_pb2_grpc.py index b7ff2f8a..e3f4b8ee 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) 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.pyi b/velocitas_sdk/proto/broker_pb2.pyi index 34baeb5b..ce71364d 100644 --- a/velocitas_sdk/proto/broker_pb2.pyi +++ b/velocitas_sdk/proto/broker_pb2.pyi @@ -1,7 +1,7 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file -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/collector_pb2.pyi b/velocitas_sdk/proto/collector_pb2.pyi index af09dd22..5f2d682a 100644 --- a/velocitas_sdk/proto/collector_pb2.pyi +++ b/velocitas_sdk/proto/collector_pb2.pyi @@ -1,7 +1,7 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file -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.pyi b/velocitas_sdk/proto/types_pb2.pyi index f8bde0b3..4e343198 100644 --- a/velocitas_sdk/proto/types_pb2.pyi +++ b/velocitas_sdk/proto/types_pb2.pyi @@ -1,7 +1,7 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file -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 From 075d643443b6b2f09e4d09505042fd8812fe372a Mon Sep 17 00:00:00 2001 From: kse3hi Date: Thu, 7 Dec 2023 09:55:50 +0000 Subject: [PATCH 07/11] Gitignore, action version etc --- .github/workflows/check-licenses.yml | 4 ++-- .github/workflows/ci.yaml | 10 +++++----- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/project-creation.yaml | 2 +- .github/workflows/release.yaml | 4 ++-- .gitignore | 14 -------------- .pre-commit-config.yaml | 2 +- NOTICE.md | 4 ++-- 8 files changed, 14 insertions(+), 28 deletions(-) diff --git a/.github/workflows/check-licenses.yml b/.github/workflows/check-licenses.yml index 7a5bac66..f90c11f0 100644 --- a/.github/workflows/check-licenses.yml +++ b/.github/workflows/check-licenses.yml @@ -27,10 +27,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Clone License Check Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: eclipse-velocitas/license-check ref: v1.2.3 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2c37261d..faa9de1d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -39,10 +39,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: "pip" @@ -57,7 +57,7 @@ jobs: python3 -m pip install tox-gh-actions - name: Run Linters - uses: ./.github/actions/pre-commit-action + uses: pre-commit/action@v3.0.0 - name: Run the daparized databroker binary run: | @@ -70,7 +70,7 @@ jobs: run: tox - name: Publish Unit Test Results - uses: mikepenz/action-junit-report@v3 + uses: mikepenz/action-junit-report@v4 if: always() with: report_paths: ./results/UnitTest/junit.xml @@ -79,7 +79,7 @@ jobs: annotate_only: true - name: ReportGenerator - uses: danielpalme/ReportGenerator-GitHub-Action@5.1.23 + uses: danielpalme/ReportGenerator-GitHub-Action@5.2.0 with: reports: "./results/CodeCoverage/cobertura-coverage.xml" # REQUIRED # The coverage reports that should be parsed (separated by semicolon). Globbing is supported. targetdir: "." # REQUIRED # The directory where the generated report should be saved. diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 94a0f841..f054103f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -52,7 +52,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/project-creation.yaml b/.github/workflows/project-creation.yaml index 30332678..cc42a834 100644 --- a/.github/workflows/project-creation.yaml +++ b/.github/workflows/project-creation.yaml @@ -38,7 +38,7 @@ jobs: fail-fast: false steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2a98fd22..bdca0284 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,10 +25,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.10" diff --git a/.gitignore b/.gitignore index 5fc09ae5..fbd5dd9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,17 +1,3 @@ -# 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 -# 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 - # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 82b2c949..dbab8435 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -126,7 +126,7 @@ repos: rev: v1.5.4 hooks: - id: insert-license - files: '.*\.(py|pyi|yaml|yml|sh|helmignore|dockerignore|gitignore|in)$' + files: '.*\.(py|pyi|yaml|yml|sh|in)$' exclude: > (?x)^( .*_pb2.py| diff --git a/NOTICE.md b/NOTICE.md index 80a7bcbe..f3148844 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -5,8 +5,8 @@ This program and the accompanying materials are made available under the terms o SPDX-License-Identifier: Apache-2.0 ## Contributors: -* Robert Bosch GmbH - initial API and implementation -* Microsoft Corporation - initial API and implementation +* Robert Bosch GmbH +* Microsoft Corporation ## Third-party Content From 3ae9e9d43ee8ce19621c9c2308a0f75fba067781 Mon Sep 17 00:00:00 2001 From: kse3hi Date: Thu, 7 Dec 2023 10:15:14 +0000 Subject: [PATCH 08/11] Fix 3rd notice... --- NOTICE-3RD-PARTY-CONTENT.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NOTICE-3RD-PARTY-CONTENT.md b/NOTICE-3RD-PARTY-CONTENT.md index a7c47ad8..91d96802 100644 --- a/NOTICE-3RD-PARTY-CONTENT.md +++ b/NOTICE-3RD-PARTY-CONTENT.md @@ -93,14 +93,14 @@ ## Workflows | Dependency | Version | License | |:-----------|:-------:|--------:| -|actions/checkout|v3|MIT License| |actions/checkout|v4|MIT License| |actions/setup-java|v1.4.4|MIT License| -|actions/setup-node|v3|MIT License| -|actions/setup-python|v4|MIT License| +|actions/setup-node|v4|MIT License| +|actions/setup-python|v5|MIT License| |actions/upload-artifact|v3|MIT License| -|danielpalme/ReportGenerator-GitHub-Action|5.1.23|Apache License 2.0| +|danielpalme/ReportGenerator-GitHub-Action|5.2.0|Apache License 2.0| |devcontainers/ci|v0.3|MIT License| |github/codeql-action|v2|MIT License| -|mikepenz/action-junit-report|v3|Apache License 2.0| +|mikepenz/action-junit-report|v4|Apache License 2.0| +|pre-commit/action|v3.0.0|MIT License| |softprops/action-gh-release|v1|MIT License| From 41130bd477a964c4691e36065279149cbd145788 Mon Sep 17 00:00:00 2001 From: Dennis Meister Date: Wed, 10 Jan 2024 14:40:32 +0100 Subject: [PATCH 09/11] Update license header to 2024 Signed-off-by: Dennis Meister --- .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 | 2 +- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/ISSUE_TEMPLATE/feature-request.yml | 2 +- .github/ISSUE_TEMPLATE/question.yml | 2 +- .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 +- .licensechecker.yml | 2 +- .ort.yml | 2 +- .pre-commit-config.yaml | 2 +- .project-creation/.skeleton/Dockerfile | 2 +- .project-creation/.skeleton/requirements.in | 2 +- .project-creation/.skeleton/src/__init__.py | 2 +- .project-creation/.skeleton/src/main.py | 2 +- .project-creation/.skeleton/src/vapp.py | 2 +- .project-creation/.skeleton/tests/__init__.py | 2 +- .project-creation/.skeleton/tests/integration/__init__.py | 2 +- .../.skeleton/tests/integration/integration_test.py | 2 +- .project-creation/.skeleton/tests/requirements.in | 2 +- .project-creation/.skeleton/tests/unit/__init__.py | 2 +- .project-creation/.skeleton/tests/unit/test_placeholder.py | 2 +- .project-creation/run.py | 2 +- .../.devcontainer/tests/automated_tests/requirements_test.py | 2 +- .../.devcontainer/tests/automated_tests/runtime_test.py | 2 +- .project-creation/templates/requirements.in | 2 +- .project-creation/test/test_integration.py | 2 +- .vscode/scripts/ensure-dapr.sh | 2 +- .vscode/scripts/exec-check.sh | 2 +- .vscode/scripts/feeder_config/default/mapping.yml | 2 +- .vscode/scripts/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 +- MANIFEST.in | 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 +- examples/array-datatype/tests/integration/__init__.py | 2 +- examples/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 +- examples/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 +- examples/datapoint-set/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 +- examples/dog-mode/src/vehicle_model/__init__.py | 2 +- examples/dog-mode/src/vehicle_model/proto/hvac.proto | 2 +- examples/dog-mode/src/vehicle_model/sample.py | 2 +- examples/dog-mode/tests/__init__.py | 2 +- examples/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 +- examples/dynamic-rule/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/requirements.in | 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 +- examples/seat-adjuster/tests/integration/__init__.py | 2 +- examples/seat-adjuster/tests/integration/integration_test.py | 2 +- examples/seat-adjuster/tests/requirements.in | 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 +- examples/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 +- examples/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/sdv/databroker/v1/broker.proto | 2 +- velocitas_sdk/proto/sdv/databroker/v1/collector.proto | 2 +- velocitas_sdk/proto/sdv/databroker/v1/types.proto | 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 +- 146 files changed, 146 insertions(+), 146 deletions(-) diff --git a/.dapr/components/pubsub.yaml b/.dapr/components/pubsub.yaml index 3ed5e5cf..fb32dcdb 100644 --- a/.dapr/components/pubsub.yaml +++ b/.dapr/components/pubsub.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 23a4979e..e881bc33 100644 --- a/.dapr/config.yaml +++ b/.dapr/config.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 4baacaeb..3d695e7f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 f3573c18..6dd94aae 100755 --- a/.devcontainer/scripts/configure-proxies.sh +++ b/.devcontainer/scripts/configure-proxies.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 4f722a46..1bbec5eb 100755 --- a/.devcontainer/scripts/container-set.sh +++ b/.devcontainer/scripts/container-set.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 787c45d1..41528143 100755 --- a/.devcontainer/scripts/postCreateCommand.sh +++ b/.devcontainer/scripts/postCreateCommand.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 98004eb7..91813013 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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 7a309b62..65e4bd25 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 19b78bcc..4c99bbb3 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 8ab665f6..6ec9558e 100644 --- a/.github/ISSUE_TEMPLATE/feature-request.yml +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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/question.yml b/.github/ISSUE_TEMPLATE/question.yml index aa462800..063db90c 100644 --- a/.github/ISSUE_TEMPLATE/question.yml +++ b/.github/ISSUE_TEMPLATE/question.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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/actions/pre-commit-action/action.yml b/.github/actions/pre-commit-action/action.yml index aaa84dd7..b2abc981 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 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 61c8598c..ae7e3e57 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 f90c11f0..e27549b9 100644 --- a/.github/workflows/check-licenses.yml +++ b/.github/workflows/check-licenses.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 faa9de1d..77abb6b0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 f054103f..7fbd67a3 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 cc42a834..575368fa 100644 --- a/.github/workflows/project-creation.yaml +++ b/.github/workflows/project-creation.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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 bdca0284..51c44378 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 bf02d9cb..2c4eed7a 100644 --- a/.licensechecker.yml +++ b/.licensechecker.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 1baef0c9..36b33101 100644 --- a/.ort.yml +++ b/.ort.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 dbab8435..1a32f08d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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/.skeleton/Dockerfile b/.project-creation/.skeleton/Dockerfile index fd22fb8d..45705d06 100644 --- a/.project-creation/.skeleton/Dockerfile +++ b/.project-creation/.skeleton/Dockerfile @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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/.skeleton/requirements.in b/.project-creation/.skeleton/requirements.in index 66462282..8be435a7 100644 --- a/.project-creation/.skeleton/requirements.in +++ b/.project-creation/.skeleton/requirements.in @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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/.skeleton/src/__init__.py b/.project-creation/.skeleton/src/__init__.py index fdcc18ec..a1df86e3 100644 --- a/.project-creation/.skeleton/src/__init__.py +++ b/.project-creation/.skeleton/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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/.skeleton/src/main.py b/.project-creation/.skeleton/src/main.py index 747579ea..fd23b609 100644 --- a/.project-creation/.skeleton/src/main.py +++ b/.project-creation/.skeleton/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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/.skeleton/src/vapp.py b/.project-creation/.skeleton/src/vapp.py index 76ce2d5c..f9b15814 100644 --- a/.project-creation/.skeleton/src/vapp.py +++ b/.project-creation/.skeleton/src/vapp.py @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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/.skeleton/tests/__init__.py b/.project-creation/.skeleton/tests/__init__.py index 3666cf79..22999bbb 100644 --- a/.project-creation/.skeleton/tests/__init__.py +++ b/.project-creation/.skeleton/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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/.skeleton/tests/integration/__init__.py b/.project-creation/.skeleton/tests/integration/__init__.py index fdcc18ec..a1df86e3 100644 --- a/.project-creation/.skeleton/tests/integration/__init__.py +++ b/.project-creation/.skeleton/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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/.skeleton/tests/integration/integration_test.py b/.project-creation/.skeleton/tests/integration/integration_test.py index c287f6da..cf36ddc9 100644 --- a/.project-creation/.skeleton/tests/integration/integration_test.py +++ b/.project-creation/.skeleton/tests/integration/integration_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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/.skeleton/tests/requirements.in b/.project-creation/.skeleton/tests/requirements.in index 3acbc529..fe53cb33 100644 --- a/.project-creation/.skeleton/tests/requirements.in +++ b/.project-creation/.skeleton/tests/requirements.in @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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/.skeleton/tests/unit/__init__.py b/.project-creation/.skeleton/tests/unit/__init__.py index fdcc18ec..a1df86e3 100644 --- a/.project-creation/.skeleton/tests/unit/__init__.py +++ b/.project-creation/.skeleton/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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/.skeleton/tests/unit/test_placeholder.py b/.project-creation/.skeleton/tests/unit/test_placeholder.py index c242fe84..32c96181 100644 --- a/.project-creation/.skeleton/tests/unit/test_placeholder.py +++ b/.project-creation/.skeleton/tests/unit/test_placeholder.py @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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 f86f1157..b06579a0 100644 --- a/.project-creation/run.py +++ b/.project-creation/run.py @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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 a8451a28..6fdc8af9 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 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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 63fbd0f6..5f9e34a6 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 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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 8ca986cf..a104d888 100644 --- a/.project-creation/templates/requirements.in +++ b/.project-creation/templates/requirements.in @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3e64752e..251fc1d7 100644 --- a/.project-creation/test/test_integration.py +++ b/.project-creation/test/test_integration.py @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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/ensure-dapr.sh b/.vscode/scripts/ensure-dapr.sh index 0a690619..c19271cb 100755 --- a/.vscode/scripts/ensure-dapr.sh +++ b/.vscode/scripts/ensure-dapr.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 f5156dfd..5016cf40 100755 --- a/.vscode/scripts/exec-check.sh +++ b/.vscode/scripts/exec-check.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 4d9bab8b..6ae286b1 100644 --- a/.vscode/scripts/feeder_config/default/mapping.yml +++ b/.vscode/scripts/feeder_config/default/mapping.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 9b6aeec6..bf907e07 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-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 6c1f2789..a426e894 100755 --- a/.vscode/scripts/run-feedercan.sh +++ b/.vscode/scripts/run-feedercan.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 36804c96..1d69b962 100755 --- a/.vscode/scripts/run-hvacservice.sh +++ b/.vscode/scripts/run-hvacservice.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 cccfac21..72ffad12 100755 --- a/.vscode/scripts/run-mosquitto.sh +++ b/.vscode/scripts/run-mosquitto.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 e819c872..8bcbe393 100755 --- a/.vscode/scripts/run-seatservice.sh +++ b/.vscode/scripts/run-seatservice.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 caaab6fe..dfc057c4 100755 --- a/.vscode/scripts/run-vehicledatabroker-cli.sh +++ b/.vscode/scripts/run-vehicledatabroker-cli.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 997e2d6c..9a7d057d 100755 --- a/.vscode/scripts/run-vehicledatabroker.sh +++ b/.vscode/scripts/run-vehicledatabroker.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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/MANIFEST.in b/MANIFEST.in index 54783537..2212fab4 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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 3666cf79..22999bbb 100644 --- a/examples/__init__.py +++ b/examples/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/array-datatype/src/__init__.py +++ b/examples/array-datatype/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 1f418f83..946a9efb 100644 --- a/examples/array-datatype/src/main.py +++ b/examples/array-datatype/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/array-datatype/tests/__init__.py +++ b/examples/array-datatype/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/array-datatype/tests/integration/__init__.py +++ b/examples/array-datatype/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/array-datatype/tests/unit/__init__.py +++ b/examples/array-datatype/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/atomic-set/src/__init__.py +++ b/examples/atomic-set/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 35fd0443..09d1ac7b 100644 --- a/examples/atomic-set/src/main.py +++ b/examples/atomic-set/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/atomic-set/tests/__init__.py +++ b/examples/atomic-set/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/atomic-set/tests/integration/__init__.py +++ b/examples/atomic-set/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/atomic-set/tests/unit/__init__.py +++ b/examples/atomic-set/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/datapoint-set/src/__init__.py +++ b/examples/datapoint-set/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 55716861..13f5269b 100644 --- a/examples/datapoint-set/src/main.py +++ b/examples/datapoint-set/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/datapoint-set/tests/__init__.py +++ b/examples/datapoint-set/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/datapoint-set/tests/integration/__init__.py +++ b/examples/datapoint-set/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/datapoint-set/tests/unit/__init__.py +++ b/examples/datapoint-set/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/dog-mode/src/__init__.py +++ b/examples/dog-mode/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 1211facc..f4c3c4d1 100644 --- a/examples/dog-mode/src/main.py +++ b/examples/dog-mode/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 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-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 aeb0afc7..48dde935 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-2023 Contributors to the Eclipse Foundation +// Copyright (c) 2022-2024 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/sample.py b/examples/dog-mode/src/vehicle_model/sample.py index 3c16cfae..3bdfabb7 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-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/dog-mode/tests/__init__.py +++ b/examples/dog-mode/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/dog-mode/tests/integration/__init__.py +++ b/examples/dog-mode/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/dog-mode/tests/unit/__init__.py +++ b/examples/dog-mode/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/dynamic-rule/src/__init__.py +++ b/examples/dynamic-rule/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 f655dea4..3c692393 100644 --- a/examples/dynamic-rule/src/main.py +++ b/examples/dynamic-rule/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/dynamic-rule/tests/__init__.py +++ b/examples/dynamic-rule/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/dynamic-rule/tests/integration/__init__.py +++ b/examples/dynamic-rule/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/dynamic-rule/tests/unit/__init__.py +++ b/examples/dynamic-rule/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 0bbd2cb2..361522d7 100755 --- a/examples/run-app.sh +++ b/examples/run-app.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 03ebe4c2..be0b5f1b 100644 --- a/examples/seat-adjuster/Dockerfile +++ b/examples/seat-adjuster/Dockerfile @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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/requirements.in b/examples/seat-adjuster/requirements.in index 66462282..8be435a7 100644 --- a/examples/seat-adjuster/requirements.in +++ b/examples/seat-adjuster/requirements.in @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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 3666cf79..22999bbb 100644 --- a/examples/seat-adjuster/src/__init__.py +++ b/examples/seat-adjuster/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 7e3752dc..58c21a18 100644 --- a/examples/seat-adjuster/src/main.py +++ b/examples/seat-adjuster/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 b2f99e7c..94533964 100644 --- a/examples/seat-adjuster/src/vapp.py +++ b/examples/seat-adjuster/src/vapp.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/seat-adjuster/tests/__init__.py +++ b/examples/seat-adjuster/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/seat-adjuster/tests/integration/__init__.py +++ b/examples/seat-adjuster/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 8083e0dd..4e609d03 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 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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/requirements.in b/examples/seat-adjuster/tests/requirements.in index 3acbc529..fe53cb33 100644 --- a/examples/seat-adjuster/tests/requirements.in +++ b/examples/seat-adjuster/tests/requirements.in @@ -1,4 +1,4 @@ -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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 3666cf79..22999bbb 100644 --- a/examples/seat-adjuster/tests/unit/__init__.py +++ b/examples/seat-adjuster/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 80bd7174..cdcc88b5 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-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/static-rule/src/__init__.py +++ b/examples/static-rule/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 7a9b5d02..3659bb55 100644 --- a/examples/static-rule/src/main.py +++ b/examples/static-rule/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/static-rule/tests/__init__.py +++ b/examples/static-rule/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/static-rule/tests/integration/__init__.py +++ b/examples/static-rule/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/static-rule/tests/unit/__init__.py +++ b/examples/static-rule/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/vdb-queries/src/__init__.py +++ b/examples/vdb-queries/src/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 eda527fc..ab73d25d 100755 --- a/examples/vdb-queries/src/main.py +++ b/examples/vdb-queries/src/main.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/vdb-queries/tests/__init__.py +++ b/examples/vdb-queries/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/vdb-queries/tests/integration/__init__.py +++ b/examples/vdb-queries/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/examples/vdb-queries/tests/unit/__init__.py +++ b/examples/vdb-queries/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 df464ad5..c5ec73db 100755 --- a/generate-grpc-stubs.sh +++ b/generate-grpc-stubs.sh @@ -1,5 +1,5 @@ #!/bin/zsh -# Copyright (c) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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 c5a7a692..ffd6fc73 100644 --- a/license_header.txt +++ b/license_header.txt @@ -1,4 +1,4 @@ -Copyright (c) 2023 Contributors to the Eclipse Foundation +Copyright (c) 2024 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 143ff86b..6a1dc77c 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/tests/integration/__init__.py +++ b/tests/integration/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 44509e1c..5814c68e 100755 --- a/tests/integration/databroker_test.py +++ b/tests/integration/databroker_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3a3a526b..6d6989e9 100644 --- a/tests/integration/inttesthelper_test.py +++ b/tests/integration/inttesthelper_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 5f7b9b71..651df617 100644 --- a/tests/integration/pubsub_test.py +++ b/tests/integration/pubsub_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 347f9233..1217e97a 100644 --- a/tests/unit/client_test.py +++ b/tests/unit/client_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 374f10c3..be4d2eaa 100644 --- a/tests/unit/dapr_locator_test.py +++ b/tests/unit/dapr_locator_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 4ae5e7f1..7d95cdb4 100644 --- a/tests/unit/dapr_pusbub_client_test.py +++ b/tests/unit/dapr_pusbub_client_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 d124a384..5057138d 100755 --- a/tests/unit/model_test.py +++ b/tests/unit/model_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 12dcb15f..2f5b2cc6 100644 --- a/tests/unit/mqtt_helper_test.py +++ b/tests/unit/mqtt_helper_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 8fa05995..738f15e9 100644 --- a/tests/unit/native_locator_test.py +++ b/tests/unit/native_locator_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 7c50de1f..8a7f664f 100644 --- a/tests/unit/native_pusbub_client_test.py +++ b/tests/unit/native_pusbub_client_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 6674b013..b469bf83 100644 --- a/tests/unit/vehicle_app_test.py +++ b/tests/unit/vehicle_app_test.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/velocitas_sdk/__init__.py +++ b/velocitas_sdk/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 008bece8..8285f603 100644 --- a/velocitas_sdk/base.py +++ b/velocitas_sdk/base.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 b6f4dc7e..5e5fc689 100644 --- a/velocitas_sdk/config.py +++ b/velocitas_sdk/config.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/velocitas_sdk/dapr/__init__.py +++ b/velocitas_sdk/dapr/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 f4b18431..fd467bee 100644 --- a/velocitas_sdk/dapr/_servicier.py +++ b/velocitas_sdk/dapr/_servicier.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 a28d4438..5a142835 100644 --- a/velocitas_sdk/dapr/client.py +++ b/velocitas_sdk/dapr/client.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 ca37b47d..3d350133 100644 --- a/velocitas_sdk/dapr/locator.py +++ b/velocitas_sdk/dapr/locator.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 357ded84..9eb00d62 100644 --- a/velocitas_sdk/dapr/middleware.py +++ b/velocitas_sdk/dapr/middleware.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 c4809b22..1a76bdb7 100644 --- a/velocitas_sdk/dapr/pubsub.py +++ b/velocitas_sdk/dapr/pubsub.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 bef1afc5..5bd42b9d 100644 --- a/velocitas_sdk/dapr/server.py +++ b/velocitas_sdk/dapr/server.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 15e4b2b8..53ab1fc1 100755 --- a/velocitas_sdk/model.py +++ b/velocitas_sdk/model.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/velocitas_sdk/native/__init__.py +++ b/velocitas_sdk/native/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 fd4a1c34..9b3aa6df 100644 --- a/velocitas_sdk/native/locator.py +++ b/velocitas_sdk/native/locator.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 76ca5fc3..835c0d20 100644 --- a/velocitas_sdk/native/middleware.py +++ b/velocitas_sdk/native/middleware.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 17308a94..33026a4b 100644 --- a/velocitas_sdk/native/mqtt.py +++ b/velocitas_sdk/native/mqtt.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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/broker.proto b/velocitas_sdk/proto/sdv/databroker/v1/broker.proto index 04f6148f..c0c74e5a 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-2023 Contributors to the Eclipse Foundation +// Copyright (c) 2022-2024 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 cd4603a9..23d9c956 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-2023 Contributors to the Eclipse Foundation +// Copyright (c) 2022-2024 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 acc3ec09..456c3dc6 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-2023 Contributors to the Eclipse Foundation +// Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/velocitas_sdk/test/__init__.py +++ b/velocitas_sdk/test/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 b841e5c9..ecbde880 100644 --- a/velocitas_sdk/test/databroker_testhelper.py +++ b/velocitas_sdk/test/databroker_testhelper.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 710124ab..2f5bb83b 100644 --- a/velocitas_sdk/test/inttesthelper.py +++ b/velocitas_sdk/test/inttesthelper.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 147b0fde..f870a3d4 100644 --- a/velocitas_sdk/test/mqtt_util.py +++ b/velocitas_sdk/test/mqtt_util.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/velocitas_sdk/util/__init__.py +++ b/velocitas_sdk/util/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 5faeacbb..5f7d7099 100644 --- a/velocitas_sdk/util/log.py +++ b/velocitas_sdk/util/log.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 3666cf79..22999bbb 100644 --- a/velocitas_sdk/vdb/__init__.py +++ b/velocitas_sdk/vdb/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 4349fac2..8b0282ae 100644 --- a/velocitas_sdk/vdb/client.py +++ b/velocitas_sdk/vdb/client.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 62d230b6..df60227e 100644 --- a/velocitas_sdk/vdb/reply.py +++ b/velocitas_sdk/vdb/reply.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 0e7d9238..6e07f8e0 100644 --- a/velocitas_sdk/vdb/subscriptions.py +++ b/velocitas_sdk/vdb/subscriptions.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 9c13ccf6..6283ecfb 100644 --- a/velocitas_sdk/vdb/types.py +++ b/velocitas_sdk/vdb/types.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 9c543adc..e890ef75 100644 --- a/velocitas_sdk/vehicle_app.py +++ b/velocitas_sdk/vehicle_app.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# Copyright (c) 2022-2024 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 From 6ff3c6cb53479a33236703985b5f392f3e10aa03 Mon Sep 17 00:00:00 2001 From: Dennis Meister Date: Wed, 10 Jan 2024 14:45:07 +0100 Subject: [PATCH 10/11] Update license header to 2024 Signed-off-by: Dennis Meister --- CONTRIBUTING.md | 2 +- NOTICE-3RD-PARTY-CONTENT.md | 2 +- examples/dog-mode/src/vehicle_model/proto/hvac_pb2.py | 2 +- examples/dog-mode/src/vehicle_model/proto/hvac_pb2.pyi | 2 +- examples/dog-mode/src/vehicle_model/proto/hvac_pb2_grpc.py | 2 +- velocitas_sdk/proto/types_pb2.pyi | 2 +- whitelisted-licenses.txt | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 05fcab05..f06ec1ab 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) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2024 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/NOTICE-3RD-PARTY-CONTENT.md b/NOTICE-3RD-PARTY-CONTENT.md index 91d96802..3664329d 100644 --- a/NOTICE-3RD-PARTY-CONTENT.md +++ b/NOTICE-3RD-PARTY-CONTENT.md @@ -55,7 +55,7 @@ |paho-mqtt|1.6.1|OSI Approved| |pathspec|0.11.2|Mozilla Public License 2.0 (MPL 2.0)| |pbr|5.11.1|Apache 2.0| -|pip|23.3.1|MIT| +|pip|23.3.2|MIT| |pip-tools|7.3.0|BSD| |platformdirs|3.11.0|MIT| |pluggy|1.3.0|MIT| 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 d7541477..8aff1377 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) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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. 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 2fde1dbe..4a00410b 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) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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_grpc.py b/examples/dog-mode/src/vehicle_model/proto/hvac_pb2_grpc.py index e3f4b8ee..98290b63 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) 2023 Contributors to the Eclipse Foundation +# Copyright (c) 2023-2024 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.pyi b/velocitas_sdk/proto/types_pb2.pyi index 4e343198..2da1461b 100644 --- a/velocitas_sdk/proto/types_pb2.pyi +++ b/velocitas_sdk/proto/types_pb2.pyi @@ -1,7 +1,7 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file -Copyright (c) 2023 Contributors to the Eclipse Foundation +Copyright (c) 2023-2024 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 0e2e80de..d5a619bf 100644 --- a/whitelisted-licenses.txt +++ b/whitelisted-licenses.txt @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Contributors to the Eclipse Foundation +// Copyright (c) 2024 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 From f218a2b05450e93459040f9f9e02d2fd635b5c41 Mon Sep 17 00:00:00 2001 From: Dennis Meister Date: Thu, 11 Jan 2024 10:24:21 +0100 Subject: [PATCH 11/11] PR review findings Signed-off-by: Dennis Meister --- .github/workflows/ci.yaml | 2 +- .project-creation/run.py | 14 -------------- NOTICE-3RD-PARTY-CONTENT.md | 1 - .../dog-mode/src/vehicle_model/proto/hvac_pb2.py | 13 ------------- .../dog-mode/src/vehicle_model/proto/hvac_pb2.pyi | 14 -------------- .../src/vehicle_model/proto/hvac_pb2_grpc.py | 14 -------------- velocitas_sdk/proto/broker_pb2.pyi | 13 ------------- velocitas_sdk/proto/collector_pb2.pyi | 13 ------------- velocitas_sdk/proto/types_pb2.pyi | 13 ------------- velocitas_sdk/py.typed | 13 ------------- 10 files changed, 1 insertion(+), 109 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 77abb6b0..98bffe30 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -57,7 +57,7 @@ jobs: python3 -m pip install tox-gh-actions - name: Run Linters - uses: pre-commit/action@v3.0.0 + uses: ./.github/actions/pre-commit-action - name: Run the daparized databroker binary run: | diff --git a/.project-creation/run.py b/.project-creation/run.py index b06579a0..7f7179fa 100644 --- a/.project-creation/run.py +++ b/.project-creation/run.py @@ -12,20 +12,6 @@ # # 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 -# 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 argparse import json import os diff --git a/NOTICE-3RD-PARTY-CONTENT.md b/NOTICE-3RD-PARTY-CONTENT.md index 3664329d..1cd2b605 100644 --- a/NOTICE-3RD-PARTY-CONTENT.md +++ b/NOTICE-3RD-PARTY-CONTENT.md @@ -102,5 +102,4 @@ |devcontainers/ci|v0.3|MIT License| |github/codeql-action|v2|MIT License| |mikepenz/action-junit-report|v4|Apache License 2.0| -|pre-commit/action|v3.0.0|MIT License| |softprops/action-gh-release|v1|MIT License| 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 8aff1377..67016ef8 100644 --- a/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.py +++ b/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.py @@ -1,17 +1,4 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2023-2024 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: hvac.proto """Generated protocol buffer code.""" 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 4a00410b..b35b6d5c 100644 --- a/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.pyi +++ b/examples/dog-mode/src/vehicle_model/proto/hvac_pb2.pyi @@ -1,17 +1,3 @@ -# Copyright (c) 2023-2024 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 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 98290b63..99fbb5c4 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,17 +1,3 @@ -# Copyright (c) 2023-2024 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/broker_pb2.pyi b/velocitas_sdk/proto/broker_pb2.pyi index ce71364d..239bc5e3 100644 --- a/velocitas_sdk/proto/broker_pb2.pyi +++ b/velocitas_sdk/proto/broker_pb2.pyi @@ -1,19 +1,6 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file -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 -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 builtins import collections.abc diff --git a/velocitas_sdk/proto/collector_pb2.pyi b/velocitas_sdk/proto/collector_pb2.pyi index 5f2d682a..b3c81b21 100644 --- a/velocitas_sdk/proto/collector_pb2.pyi +++ b/velocitas_sdk/proto/collector_pb2.pyi @@ -1,19 +1,6 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file -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 -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 builtins import collections.abc diff --git a/velocitas_sdk/proto/types_pb2.pyi b/velocitas_sdk/proto/types_pb2.pyi index 2da1461b..4fbecf7c 100644 --- a/velocitas_sdk/proto/types_pb2.pyi +++ b/velocitas_sdk/proto/types_pb2.pyi @@ -1,19 +1,6 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file -Copyright (c) 2023-2024 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 builtins import collections.abc diff --git a/velocitas_sdk/py.typed b/velocitas_sdk/py.typed index ef1b6721..e69de29b 100644 --- a/velocitas_sdk/py.typed +++ b/velocitas_sdk/py.typed @@ -1,13 +0,0 @@ -// 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 -// 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