diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 2733f465..1bf6c74d 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -18,15 +18,14 @@ jobs: python-version: [ "3.11" ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | @@ -34,3 +33,6 @@ jobs: - name: Test with pytest run: | pytest + - name: Dry run building the wheel + run: | + python -m build --sdist --wheel diff --git a/.github/workflows/linting-for-all-versions.yml b/.github/workflows/linting-for-all-versions.yml index 8a45a14b..b459b02a 100644 --- a/.github/workflows/linting-for-all-versions.yml +++ b/.github/workflows/linting-for-all-versions.yml @@ -17,19 +17,21 @@ jobs: max-parallel: 1 fail-fast: false matrix: - python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ] + python-version: [ "3.8", "3.9", "3.10", "3.11" ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | flake8 . + - name: Dry run building the wheel + run: | + python -m build --sdist --wheel diff --git a/.gitignore b/.gitignore index 50311447..d937c115 100644 --- a/.gitignore +++ b/.gitignore @@ -10,5 +10,6 @@ venv .pytest_cache /paho/ /paho_mqtt-1.6.1.dist-info/ -/paho/ -/paho_mqtt-1.6.1.dist-info/ +agrirouter.egg-info/ +build/ +dist/ diff --git a/README.adoc b/README.adoc deleted file mode 100644 index 81425962..00000000 --- a/README.adoc +++ /dev/null @@ -1,62 +0,0 @@ -= agrirouter-sdk-python -:imagesdir: assets/images -:toc: -:toc-title: -:toclevels: 4 - -[abstract] -== Abstract - -image::agrirouter.svg[agrirouter] - -The agrirouter is a universal data exchange platform for farmers and agricultural contractors that makes it possible to connect machinery and agricultural software, regardless of vendor or manufacturer. -Agrirouter does not save data; it transfers data. -As a universal data exchange platform, agrirouter fills a gap on the way to Farming 4.0. Its underlying concept unites cross-vendor and discrimination-free data transfer. -You retain full control over your data. -Even data exchange with service providers (e.g. agricultural contractors) and other partners is uncomplicated: Data are very rapidly transferred via the online connection, and if you wish, is intelligently connected to other datasets. - -== The current project you're looking at - -This project contains the SDK for the communication with the agrirouter. -Everything you need for the onboard process, secure communication and much more. - -== Installation - -Create your virtual environment using any kind of `conda` setup you would like to have. -The SDK is tested with Python 3.8, 3.9, 3.10 and 3.11. - -[source,bash] ----- -conda create -n agrirouter-sdk-python python=3.8 -conda create -n agrirouter-sdk-python python=3.9 -conda create -n agrirouter-sdk-python python=3.10 -conda create -n agrirouter-sdk-python python=3.11 ----- - -Create one of the environments and activate it: - -[source,bash] ----- -conda activate agrirouter-sdk-python ----- - -After the activation you are ready to install the requirements for the SDK: - -[source,bash] ----- -pip install -r requirements.txt ----- - -You are able to select the virtual environment when working with the IDE. - -== Running unit tests - -`$ pytest` - -== External resources - -Here are some external resources for the development: - -* https://my-agrirouter.com[My Agrirouter Website] -* https://github.com/DKE-Data/agrirouter-interface-documentation[Integration Guide] -* https://www.aef-online.org[EFDI Protobuf Definition] diff --git a/README.md b/README.md new file mode 100644 index 00000000..6cabd581 --- /dev/null +++ b/README.md @@ -0,0 +1,65 @@ +![agrirouter logo](./assets/images/agrirouter.svg) + +# About the project + +The agrirouter is a universal data exchange platform for farmers and +agricultural contractors that makes it possible to connect machinery +and agricultural software, regardless of vendor or manufacturer. +Agrirouter does not save data; it transfers data. As a universal data +exchange platform, agrirouter fills a gap on the way to Farming 4.0. +Its underlying concept unites cross-vendor and discrimination-free +data transfer. You retain full control over your data. Even data +exchange with service providers (e.g. agricultural contractors) and +other partners is uncomplicated: Data are very rapidly transferred via +the online connection, and if you wish, is intelligently connected to +other datasets. + +# The current project you’re looking at + +This project contains the SDK for the communication with the agrirouter. +Everything you need for the onboard process, secure communication and +much more. + +# Installation + +Create your virtual environment using any kind of `conda` setup you +would like to have. The SDK is tested with Python 3.8, 3.9, 3.10 and +3.11. + +``` bash +conda create -n agrirouter-sdk-python python=3.8 +conda create -n agrirouter-sdk-python python=3.9 +conda create -n agrirouter-sdk-python python=3.10 +conda create -n agrirouter-sdk-python python=3.11 +``` + +Create one of the environments and activate it: + +``` bash +conda activate agrirouter-sdk-python +``` + +After the activation you are ready to install the requirements for the +SDK: + +``` bash +pip install -r requirements.txt +``` + +You are able to select the virtual environment when working with the +IDE. + +# Running unit tests + +`$ pytest` + +# External resources + +Here are some external resources for the development: + +- [My Agrirouter Website](https://my-agrirouter.com) + +- [Integration + Guide](https://github.com/DKE-Data/agrirouter-interface-documentation) + +- [EFDI Protobuf Definition](https://www.aef-online.org) \ No newline at end of file diff --git a/agrirouter/__init__.py b/agrirouter/__init__.py deleted file mode 100644 index 810c3163..00000000 --- a/agrirouter/__init__.py +++ /dev/null @@ -1,14 +0,0 @@ -from agrirouter.auth.auth import Authorization -from agrirouter.auth.parameters import AuthUrlParameter -from agrirouter.messaging.parameters.service import MessageHeaderParameters, MessagePayloadParameters, \ - QueryMessageParameters, QueryHeaderParameters, CloudOffboardParameters, CloudOnboardParameters, \ - CapabilitiesParameters, FeedConfirmParameters, FeedDeleteParameters, ListEndpointsParameters, MessageParameters, \ - SubscriptionParameters, ImageParameters, TaskParameters, EfdiParameters -from agrirouter.messaging.services.cloud import CloudOnboardService, CloudOffboardService -from agrirouter.messaging.services.messaging import SubscriptionService, CapabilitiesService, FeedConfirmService, \ - FeedDeleteService, QueryHeaderService, QueryMessagesService, ListEndpointsService, SendChunkedMessageService, \ - ImageService, TaskService, EfdiTimelogService, EfdiTimelogPublishService, EfdiDeviceDscService -from agrirouter.onboarding.onboarding import SecuredOnboardingService, OnboardingService -from agrirouter.onboarding.parameters import OnboardParameters -from agrirouter.revoking.parameters import RevokingParameter -from agrirouter.revoking.revoking import Revoking diff --git a/agrirouter/utils/type_url.py b/agrirouter/utils/type_url.py deleted file mode 100644 index f6ffb5ec..00000000 --- a/agrirouter/utils/type_url.py +++ /dev/null @@ -1,47 +0,0 @@ -from agrirouter.generated.cloud_provider_integration.cloud_virtualized_app_registration_pb2 import OnboardingResponse, \ - OnboardingRequest -from agrirouter.generated.commons.message_pb2 import Messages -from agrirouter.generated.messaging.request.payload.account.endpoints_pb2 import ListEndpointsQuery -from agrirouter.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification -from agrirouter.generated.messaging.request.payload.endpoint.subscription_pb2 import Subscription -from agrirouter.generated.messaging.request.payload.feed.feed_requests_pb2 import MessageDelete, MessageConfirm, \ - MessageQuery -from agrirouter.generated.messaging.response.payload.account.endpoints_pb2 import ListEndpointsResponse -from agrirouter.generated.messaging.response.payload.feed.feed_response_pb2 import HeaderQueryResponse, \ - MessageQueryResponse - -from agrirouter.generated.messaging.request.payload.efdi.efdi_pb2 import TimeLog, ISO11783_TaskData - -from agrirouter.generated.messaging.response.payload.feed.push_notification_pb2 import PushNotification -from agrirouter.api.exceptions import TypeUrlNotFound - - -class TypeUrl: - prefix = "types.agrirouter.com/" - commands = ( - Messages, - ListEndpointsResponse, - HeaderQueryResponse, - MessageQueryResponse, - MessageDelete, - MessageConfirm, - OnboardingResponse, - OnboardingRequest, - CapabilitySpecification, - Subscription, - MessageQuery, - ListEndpointsQuery, - PushNotification, - TimeLog, - ISO11783_TaskData - ) - - @classmethod - def get_type_url(cls, class_): - return TypeUrl.get_command(class_) - - @classmethod - def get_command(cls, class_) -> str: - if class_ not in cls.commands: - raise TypeUrlNotFound(f"The {class_} type url not found") - return cls.prefix + class_.DESCRIPTOR.full_name diff --git a/conftest.py b/conftest.py index e6828444..8b969204 100644 --- a/conftest.py +++ b/conftest.py @@ -1,12 +1,12 @@ import pytest -from agrirouter.api.enums import Environments +from src.api.enums import Environments from tests.common.constants import PUBLIC_KEY, PRIVATE_KEY, AUTH_RESULT_URL @pytest.fixture(scope="session") def authorization(): - from agrirouter.auth.auth import Authorization + from src.auth.auth import Authorization auth_client = Authorization(Environments.QA.value, public_key=PUBLIC_KEY, private_key=PRIVATE_KEY) auth_response = auth_client.extract_auth_response(AUTH_RESULT_URL) diff --git a/example_script.py b/example_script.py index 374bd481..b2639bab 100644 --- a/example_script.py +++ b/example_script.py @@ -2,9 +2,9 @@ from google.protobuf.timestamp_pb2 import Timestamp -from agrirouter.generated.messaging.request.payload.account.endpoints_pb2 import ListEndpointsQuery -from agrirouter.generated.messaging.request.payload.feed.feed_requests_pb2 import ValidityPeriod -from agrirouter.onboarding.response import OnboardResponse +from src.generated.messaging.request.payload.account.endpoints_pb2 import ListEndpointsQuery +from src.generated.messaging.request.payload.feed.feed_requests_pb2 import ValidityPeriod +from src.onboarding.response import OnboardResponse public_key = """-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzGt41/+kSOTlO1sJvLIN @@ -64,15 +64,15 @@ } } -import agrirouter as ar -from agrirouter.onboarding.enums import Gateways -from agrirouter.messaging.enums import CapabilityType -from agrirouter.generated.messaging.request.payload.endpoint.subscription_pb2 import Subscription -from agrirouter.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification -from agrirouter.messaging.services.commons import HttpMessagingService, MqttMessagingService -from agrirouter import ListEndpointsParameters, ListEndpointsService, SubscriptionService, SubscriptionParameters, \ +import src as ar +from src.onboarding.enums import Gateways +from src.messaging.enums import CapabilityType +from src.generated.messaging.request.payload.endpoint.subscription_pb2 import Subscription +from src.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification +from src.messaging.services.commons import HttpMessagingService, MqttMessagingService +from src import ListEndpointsParameters, ListEndpointsService, SubscriptionService, SubscriptionParameters, \ QueryHeaderService, QueryHeaderParameters, CapabilitiesService, CapabilitiesParameters -from agrirouter.utils.uuid_util import new_uuid +from src.utils.uuid_util import new_uuid application_id = "8c947a45-c57d-42d2-affc-206e21d63a50" # # store here your application id. You can find it in AR UI certification_version_id = "edd5d6b7-45bb-4471-898e-ff9c2a7bf56f" # # store here your certification version id. You can find it in AR UI @@ -298,9 +298,9 @@ def example_query_header_message_mqtt(onboarding_response_data, on_msg_callback) def on_message_callback(client, userdata, msg): # Define here the way receiving messages will be processed - from agrirouter.messaging.decode import decode_response - from agrirouter.messaging.decode import decode_details - from agrirouter.messaging.messages import OutboxMessage + from src.messaging.decode import decode_response + from src.messaging.decode import decode_details + from src.messaging.messages import OutboxMessage outbox_message = OutboxMessage() outbox_message.json_deserialize(msg.payload.decode().replace("'", '"')) diff --git a/pyproject.toml b/pyproject.toml index ed799b39..4c647817 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,15 +1,31 @@ [project] name = "agrirouter" -description = "agrirouter SDK" -version = "1.0.0b1" -dynamic = ["dependencies"] +version = "2.0.0" +description = "Python SDK for the agrirouter API. This project contains the API for the communication with the agrirouter. Everything you need for the onboarding process, secure communication and much more." +authors = [ + { name = "Alexey Petrovsky", email = "petrovsky.lexey@gmail.com" }, + { name = "Oliver Rahner", email = "o.rahner@dke-data.com" }, + { name = "Sascha Dömer", email = "Cf4ThQgxcnxAovOUXTNv@saschadoemer.de" }, +] +readme = "README.md" +requires-python = ">=3.7, <=3.11" +urls = { "Source" = "https://github.com/DKE-Data/agrirouter-sdk-python" } +classifiers = [ + "Intended Audience :: Developers", + "License :: Apache License 2.0", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Software Development :: Libraries", + "Topic :: Software Development :: Libraries :: Python Modules" +] [build-system] requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" -[tool.setuptools] -packages = ["agrirouter"] - [tool.setuptools.dynamic] dependencies = { file = ["requirements.txt"] } diff --git a/requirements.txt b/requirements.txt index 04e200bf..3aaeaaa2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,3 +11,6 @@ certifi~=2023.7.22 requests~=2.31.0 paho-mqtt~=1.5.1 protobuf~=3.18.0 +google~=3.0.0 +toml~=0.10.2 +build~=1.1.1 \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 1e65ffa9..00000000 --- a/setup.py +++ /dev/null @@ -1,43 +0,0 @@ -from setuptools import setup, find_packages - -setup( - name='agrirouter', - version='1.0.0', - packages=find_packages(), - include_package_data=True, - python_requires=">= 3.6", - url='https://github.com/DKE-Data/agrirouter-sdk-python', - license='Apache-2.0', - author='agrirouter', - author_email='info@dke-data.com', - description="""This project contains the API for the communication with the agrirouter. Everything you need for the - onboarding process, secure communication and much more.""", - classifiers=[ - 'Intended Audience :: Developers', - 'Natural Language :: English', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - ], - install_requires=[ - 'certifi~=2021.5.30', - 'cffi~=1.14.6', - 'charset-normalizer~=2.0.6', - 'cryptography~=3.4.8', - 'idna~=3.2', - 'pycparser~=2.20', - 'requests~=2.26.0', - 'urllib3~=1.26.7', - 'paho-mqtt~=1.5.1', - 'protobuf~=3.18.0' - ], - project_urls={ - 'Documentation': 'https://github.com/DKE-Data/agrirouter-sdk-python', - 'Source': 'https://github.com/DKE-Data/agrirouter-sdk-python', - }, -) diff --git a/agrirouter/api/__init__.py b/src/__init__.py similarity index 100% rename from agrirouter/api/__init__.py rename to src/__init__.py diff --git a/agrirouter/auth/__init__.py b/src/api/__init__.py similarity index 100% rename from agrirouter/auth/__init__.py rename to src/api/__init__.py diff --git a/agrirouter/api/enums.py b/src/api/enums.py similarity index 100% rename from agrirouter/api/enums.py rename to src/api/enums.py diff --git a/agrirouter/api/environments.py b/src/api/environments.py similarity index 97% rename from agrirouter/api/environments.py rename to src/api/environments.py index 0e03b8fc..dbc03b27 100644 --- a/agrirouter/api/environments.py +++ b/src/api/environments.py @@ -1,4 +1,4 @@ -from agrirouter.api.keys import AR_QA_PUBLIC_KEY, AR_PROD_PUBLIC_KEY +from src.api.keys import AR_QA_PUBLIC_KEY, AR_PROD_PUBLIC_KEY class BaseEnvironment: diff --git a/agrirouter/api/exceptions.py b/src/api/exceptions.py similarity index 100% rename from agrirouter/api/exceptions.py rename to src/api/exceptions.py diff --git a/agrirouter/api/keys.py b/src/api/keys.py similarity index 100% rename from agrirouter/api/keys.py rename to src/api/keys.py diff --git a/agrirouter/environments/__init__.py b/src/auth/__init__.py similarity index 100% rename from agrirouter/environments/__init__.py rename to src/auth/__init__.py diff --git a/agrirouter/auth/auth.py b/src/auth/auth.py similarity index 86% rename from agrirouter/auth/auth.py rename to src/auth/auth.py index ff32ea75..6dfc761a 100644 --- a/agrirouter/auth/auth.py +++ b/src/auth/auth.py @@ -1,8 +1,8 @@ from urllib.parse import urlparse, parse_qs -from agrirouter.auth.parameters import AuthUrlParameter -from agrirouter.auth.response import AuthResponse -from agrirouter.environments.environmental_services import EnvironmentalService +from src.auth.parameters import AuthUrlParameter +from src.auth.response import AuthResponse +from src.environments.environmental_services import EnvironmentalService class Authorization(EnvironmentalService): diff --git a/agrirouter/auth/dto.py b/src/auth/dto.py similarity index 98% rename from agrirouter/auth/dto.py rename to src/auth/dto.py index a70dbd36..737c073f 100644 --- a/agrirouter/auth/dto.py +++ b/src/auth/dto.py @@ -1,7 +1,7 @@ import json from typing import Union -from agrirouter.api.exceptions import WrongField +from src.api.exceptions import WrongField class AuthorizationToken: diff --git a/agrirouter/auth/parameters.py b/src/auth/parameters.py similarity index 96% rename from agrirouter/auth/parameters.py rename to src/auth/parameters.py index ab513203..ecab7baf 100644 --- a/agrirouter/auth/parameters.py +++ b/src/auth/parameters.py @@ -1,6 +1,6 @@ from uuid import uuid4 -from agrirouter.api.enums import ResponseTypes +from src.api.enums import ResponseTypes class AuthUrlParameter: diff --git a/agrirouter/auth/response.py b/src/auth/response.py similarity index 93% rename from agrirouter/auth/response.py rename to src/auth/response.py index 0464c2d7..96b0d3a1 100644 --- a/agrirouter/auth/response.py +++ b/src/auth/response.py @@ -5,14 +5,14 @@ from cryptography.exceptions import InvalidSignature -from agrirouter.auth.dto import AuthorizationToken, AuthorizationResultUrl -from agrirouter.onboarding.signature import verify_signature +from src.auth.dto import AuthorizationToken, AuthorizationResultUrl +from src.onboarding.signature import verify_signature # from cryptography.exceptions import InvalidSignature -# from agrirouter.onboarding.signature import verify_signature +# from src.onboarding.signature import verify_signature class AuthResponse: diff --git a/agrirouter/generated/__init__.py b/src/environments/__init__.py similarity index 100% rename from agrirouter/generated/__init__.py rename to src/environments/__init__.py diff --git a/agrirouter/environments/environmental_services.py b/src/environments/environmental_services.py similarity index 84% rename from agrirouter/environments/environmental_services.py rename to src/environments/environmental_services.py index eaed3fdb..854d528d 100644 --- a/agrirouter/environments/environmental_services.py +++ b/src/environments/environmental_services.py @@ -1,6 +1,6 @@ -from agrirouter.api.enums import Environments -from agrirouter.api.exceptions import InvalidEnvironmentSetup -from agrirouter.api.environments import Production, QA +from src.api.enums import Environments +from src.api.exceptions import InvalidEnvironmentSetup +from src.api.environments import Production, QA class EnvironmentalService: diff --git a/agrirouter/generated/cloud_provider_integration/__init__.py b/src/generated/__init__.py similarity index 100% rename from agrirouter/generated/cloud_provider_integration/__init__.py rename to src/generated/__init__.py diff --git a/agrirouter/generated/commons/__init__.py b/src/generated/cloud_provider_integration/__init__.py similarity index 100% rename from agrirouter/generated/commons/__init__.py rename to src/generated/cloud_provider_integration/__init__.py diff --git a/agrirouter/generated/cloud_provider_integration/cloud_virtualized_app_registration_pb2.py b/src/generated/cloud_provider_integration/cloud_virtualized_app_registration_pb2.py similarity index 77% rename from agrirouter/generated/cloud_provider_integration/cloud_virtualized_app_registration_pb2.py rename to src/generated/cloud_provider_integration/cloud_virtualized_app_registration_pb2.py index e37e87c5..39fff07a 100644 --- a/agrirouter/generated/cloud_provider_integration/cloud_virtualized_app_registration_pb2.py +++ b/src/generated/cloud_provider_integration/cloud_virtualized_app_registration_pb2.py @@ -11,28 +11,28 @@ _sym_db = _symbol_database.Default() -from agrirouter.generated.commons import message_pb2 as commons_dot_message__pb2 +from src.generated.commons import message_pb2 as commons_dot_message__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='cloud-provider-integration/cloud-virtualized-app-registration.proto', - package='agrirouter.cloud.registration', + package='src.cloud.registration', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\nCcloud-provider-integration/cloud-virtualized-app-registration.proto\x12\x1d\x61grirouter.cloud.registration\x1a\x15\x63ommons/message.proto\"\xb7\x01\n\x11OnboardingRequest\x12i\n\x13onboarding_requests\x18\x01 \x03(\x0b\x32L.agrirouter.cloud.registration.OnboardingRequest.EndpointRegistrationDetails\x1a\x37\n\x1b\x45ndpointRegistrationDetails\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"\xaf\x03\n\x12OnboardingResponse\x12j\n\x13onboarded_endpoints\x18\x01 \x03(\x0b\x32M.agrirouter.cloud.registration.OnboardingResponse.EndpointRegistrationDetails\x12L\n\x08\x66\x61ilures\x18\x02 \x03(\x0b\x32:.agrirouter.cloud.registration.OnboardingResponse.Failures\x1a\x99\x01\n\x1b\x45ndpointRegistrationDetails\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1b\n\x13\x64\x65vice_alternate_id\x18\x02 \x01(\t\x12\x1b\n\x13sensor_alternate_id\x18\x03 \x01(\t\x12\x1f\n\x17\x63\x61pability_alternate_id\x18\x04 \x01(\t\x12\x13\n\x0b\x65ndpoint_id\x18\x05 \x01(\t\x1a\x43\n\x08\x46\x61ilures\x12\n\n\x02id\x18\x01 \x01(\t\x12+\n\x06reason\x18\x02 \x01(\x0b\x32\x1b.agrirouter.commons.Message\"\'\n\x12OffboardingRequest\x12\x11\n\tendpoints\x18\x01 \x03(\tb\x06proto3' + serialized_pb=b'\nCcloud-provider-integration/cloud-virtualized-app-registration.proto\x12\x1d\x61grirouter.cloud.registration\x1a\x15\x63ommons/message.proto\"\xb7\x01\n\x11OnboardingRequest\x12i\n\x13onboarding_requests\x18\x01 \x03(\x0b\x32L.src.cloud.registration.OnboardingRequest.EndpointRegistrationDetails\x1a\x37\n\x1b\x45ndpointRegistrationDetails\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"\xaf\x03\n\x12OnboardingResponse\x12j\n\x13onboarded_endpoints\x18\x01 \x03(\x0b\x32M.src.cloud.registration.OnboardingResponse.EndpointRegistrationDetails\x12L\n\x08\x66\x61ilures\x18\x02 \x03(\x0b\x32:.src.cloud.registration.OnboardingResponse.Failures\x1a\x99\x01\n\x1b\x45ndpointRegistrationDetails\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1b\n\x13\x64\x65vice_alternate_id\x18\x02 \x01(\t\x12\x1b\n\x13sensor_alternate_id\x18\x03 \x01(\t\x12\x1f\n\x17\x63\x61pability_alternate_id\x18\x04 \x01(\t\x12\x13\n\x0b\x65ndpoint_id\x18\x05 \x01(\t\x1a\x43\n\x08\x46\x61ilures\x12\n\n\x02id\x18\x01 \x01(\t\x12+\n\x06reason\x18\x02 \x01(\x0b\x32\x1b.src.commons.Message\"\'\n\x12OffboardingRequest\x12\x11\n\tendpoints\x18\x01 \x03(\tb\x06proto3' , dependencies=[commons_dot_message__pb2.DESCRIPTOR, ]) _ONBOARDINGREQUEST_ENDPOINTREGISTRATIONDETAILS = _descriptor.Descriptor( name='EndpointRegistrationDetails', - full_name='agrirouter.cloud.registration.OnboardingRequest.EndpointRegistrationDetails', + full_name='src.cloud.registration.OnboardingRequest.EndpointRegistrationDetails', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='id', full_name='agrirouter.cloud.registration.OnboardingRequest.EndpointRegistrationDetails.id', + name='id', full_name='src.cloud.registration.OnboardingRequest.EndpointRegistrationDetails.id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -40,7 +40,7 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='name', full_name='agrirouter.cloud.registration.OnboardingRequest.EndpointRegistrationDetails.name', + name='name', full_name='src.cloud.registration.OnboardingRequest.EndpointRegistrationDetails.name', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -65,14 +65,14 @@ _ONBOARDINGREQUEST = _descriptor.Descriptor( name='OnboardingRequest', - full_name='agrirouter.cloud.registration.OnboardingRequest', + full_name='src.cloud.registration.OnboardingRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='onboarding_requests', full_name='agrirouter.cloud.registration.OnboardingRequest.onboarding_requests', + name='onboarding_requests', full_name='src.cloud.registration.OnboardingRequest.onboarding_requests', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], @@ -97,14 +97,14 @@ _ONBOARDINGRESPONSE_ENDPOINTREGISTRATIONDETAILS = _descriptor.Descriptor( name='EndpointRegistrationDetails', - full_name='agrirouter.cloud.registration.OnboardingResponse.EndpointRegistrationDetails', + full_name='src.cloud.registration.OnboardingResponse.EndpointRegistrationDetails', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='id', full_name='agrirouter.cloud.registration.OnboardingResponse.EndpointRegistrationDetails.id', + name='id', full_name='src.cloud.registration.OnboardingResponse.EndpointRegistrationDetails.id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -113,7 +113,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='device_alternate_id', - full_name='agrirouter.cloud.registration.OnboardingResponse.EndpointRegistrationDetails.device_alternate_id', + full_name='src.cloud.registration.OnboardingResponse.EndpointRegistrationDetails.device_alternate_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -122,7 +122,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='sensor_alternate_id', - full_name='agrirouter.cloud.registration.OnboardingResponse.EndpointRegistrationDetails.sensor_alternate_id', + full_name='src.cloud.registration.OnboardingResponse.EndpointRegistrationDetails.sensor_alternate_id', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -131,7 +131,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='capability_alternate_id', - full_name='agrirouter.cloud.registration.OnboardingResponse.EndpointRegistrationDetails.capability_alternate_id', + full_name='src.cloud.registration.OnboardingResponse.EndpointRegistrationDetails.capability_alternate_id', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -140,7 +140,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='endpoint_id', - full_name='agrirouter.cloud.registration.OnboardingResponse.EndpointRegistrationDetails.endpoint_id', + full_name='src.cloud.registration.OnboardingResponse.EndpointRegistrationDetails.endpoint_id', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -165,21 +165,21 @@ _ONBOARDINGRESPONSE_FAILURES = _descriptor.Descriptor( name='Failures', - full_name='agrirouter.cloud.registration.OnboardingResponse.Failures', + full_name='src.cloud.registration.OnboardingResponse.Failures', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='id', full_name='agrirouter.cloud.registration.OnboardingResponse.Failures.id', index=0, + name='id', full_name='src.cloud.registration.OnboardingResponse.Failures.id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='reason', full_name='agrirouter.cloud.registration.OnboardingResponse.Failures.reason', index=1, + name='reason', full_name='src.cloud.registration.OnboardingResponse.Failures.reason', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -203,7 +203,7 @@ _ONBOARDINGRESPONSE = _descriptor.Descriptor( name='OnboardingResponse', - full_name='agrirouter.cloud.registration.OnboardingResponse', + full_name='src.cloud.registration.OnboardingResponse', filename=None, file=DESCRIPTOR, containing_type=None, @@ -211,14 +211,14 @@ fields=[ _descriptor.FieldDescriptor( name='onboarded_endpoints', - full_name='agrirouter.cloud.registration.OnboardingResponse.onboarded_endpoints', index=0, + full_name='src.cloud.registration.OnboardingResponse.onboarded_endpoints', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='failures', full_name='agrirouter.cloud.registration.OnboardingResponse.failures', index=1, + name='failures', full_name='src.cloud.registration.OnboardingResponse.failures', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -242,14 +242,14 @@ _OFFBOARDINGREQUEST = _descriptor.Descriptor( name='OffboardingRequest', - full_name='agrirouter.cloud.registration.OffboardingRequest', + full_name='src.cloud.registration.OffboardingRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='endpoints', full_name='agrirouter.cloud.registration.OffboardingRequest.endpoints', index=0, + name='endpoints', full_name='src.cloud.registration.OffboardingRequest.endpoints', index=0, number=1, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -289,12 +289,12 @@ (_message.Message,), { 'DESCRIPTOR': _ONBOARDINGREQUEST_ENDPOINTREGISTRATIONDETAILS, '__module__': 'cloud_provider_integration.cloud_virtualized_app_registration_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.cloud.registration.OnboardingRequest.EndpointRegistrationDetails) + # @@protoc_insertion_point(class_scope:src.cloud.registration.OnboardingRequest.EndpointRegistrationDetails) }) , 'DESCRIPTOR': _ONBOARDINGREQUEST, '__module__': 'cloud_provider_integration.cloud_virtualized_app_registration_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.cloud.registration.OnboardingRequest) + # @@protoc_insertion_point(class_scope:src.cloud.registration.OnboardingRequest) }) _sym_db.RegisterMessage(OnboardingRequest) _sym_db.RegisterMessage(OnboardingRequest.EndpointRegistrationDetails) @@ -305,19 +305,19 @@ (_message.Message,), { 'DESCRIPTOR': _ONBOARDINGRESPONSE_ENDPOINTREGISTRATIONDETAILS, '__module__': 'cloud_provider_integration.cloud_virtualized_app_registration_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.cloud.registration.OnboardingResponse.EndpointRegistrationDetails) + # @@protoc_insertion_point(class_scope:src.cloud.registration.OnboardingResponse.EndpointRegistrationDetails) }) , 'Failures': _reflection.GeneratedProtocolMessageType('Failures', (_message.Message,), { 'DESCRIPTOR': _ONBOARDINGRESPONSE_FAILURES, '__module__': 'cloud_provider_integration.cloud_virtualized_app_registration_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.cloud.registration.OnboardingResponse.Failures) + # @@protoc_insertion_point(class_scope:src.cloud.registration.OnboardingResponse.Failures) }) , 'DESCRIPTOR': _ONBOARDINGRESPONSE, '__module__': 'cloud_provider_integration.cloud_virtualized_app_registration_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.cloud.registration.OnboardingResponse) + # @@protoc_insertion_point(class_scope:src.cloud.registration.OnboardingResponse) }) _sym_db.RegisterMessage(OnboardingResponse) _sym_db.RegisterMessage(OnboardingResponse.EndpointRegistrationDetails) @@ -326,7 +326,7 @@ OffboardingRequest = _reflection.GeneratedProtocolMessageType('OffboardingRequest', (_message.Message,), { 'DESCRIPTOR': _OFFBOARDINGREQUEST, '__module__': 'cloud_provider_integration.cloud_virtualized_app_registration_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.cloud.registration.OffboardingRequest) + # @@protoc_insertion_point(class_scope:src.cloud.registration.OffboardingRequest) }) _sym_db.RegisterMessage(OffboardingRequest) diff --git a/agrirouter/generated/messaging/__init__.py b/src/generated/commons/__init__.py similarity index 100% rename from agrirouter/generated/messaging/__init__.py rename to src/generated/commons/__init__.py diff --git a/agrirouter/generated/commons/chunk_pb2.py b/src/generated/commons/chunk_pb2.py similarity index 85% rename from agrirouter/generated/commons/chunk_pb2.py rename to src/generated/commons/chunk_pb2.py index ab080906..96627a4f 100644 --- a/agrirouter/generated/commons/chunk_pb2.py +++ b/src/generated/commons/chunk_pb2.py @@ -13,7 +13,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( name='commons/chunk.proto', - package='agrirouter.commons', + package='src.commons', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, @@ -22,35 +22,35 @@ _CHUNKCOMPONENT = _descriptor.Descriptor( name='ChunkComponent', - full_name='agrirouter.commons.ChunkComponent', + full_name='src.commons.ChunkComponent', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='context_id', full_name='agrirouter.commons.ChunkComponent.context_id', index=0, + name='context_id', full_name='src.commons.ChunkComponent.context_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='current', full_name='agrirouter.commons.ChunkComponent.current', index=1, + name='current', full_name='src.commons.ChunkComponent.current', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='total', full_name='agrirouter.commons.ChunkComponent.total', index=2, + name='total', full_name='src.commons.ChunkComponent.total', index=2, number=3, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='total_size', full_name='agrirouter.commons.ChunkComponent.total_size', index=3, + name='total_size', full_name='src.commons.ChunkComponent.total_size', index=3, number=4, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -78,7 +78,7 @@ ChunkComponent = _reflection.GeneratedProtocolMessageType('ChunkComponent', (_message.Message,), { 'DESCRIPTOR': _CHUNKCOMPONENT, '__module__': 'commons.chunk_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.commons.ChunkComponent) + # @@protoc_insertion_point(class_scope:src.commons.ChunkComponent) }) _sym_db.RegisterMessage(ChunkComponent) diff --git a/agrirouter/generated/commons/message_pb2.py b/src/generated/commons/message_pb2.py similarity index 81% rename from agrirouter/generated/commons/message_pb2.py rename to src/generated/commons/message_pb2.py index 705c23a1..91451a7a 100644 --- a/agrirouter/generated/commons/message_pb2.py +++ b/src/generated/commons/message_pb2.py @@ -13,30 +13,30 @@ DESCRIPTOR = _descriptor.FileDescriptor( name='commons/message.proto', - package='agrirouter.commons', + package='src.commons', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x15\x63ommons/message.proto\x12\x12\x61grirouter.commons\"\x92\x01\n\x07Message\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x14\n\x0cmessage_code\x18\x02 \x01(\t\x12\x33\n\x04\x61rgs\x18\x03 \x03(\x0b\x32%.agrirouter.commons.Message.ArgsEntry\x1a+\n\tArgsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1d\n\x08Metadata\x12\x11\n\tfile_name\x18\x01 \x01(\t\"9\n\x08Messages\x12-\n\x08messages\x18\x01 \x03(\x0b\x32\x1b.agrirouter.commons.Messageb\x06proto3' + serialized_pb=b'\n\x15\x63ommons/message.proto\x12\x12\x61grirouter.commons\"\x92\x01\n\x07Message\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x14\n\x0cmessage_code\x18\x02 \x01(\t\x12\x33\n\x04\x61rgs\x18\x03 \x03(\x0b\x32%.src.commons.Message.ArgsEntry\x1a+\n\tArgsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x1d\n\x08Metadata\x12\x11\n\tfile_name\x18\x01 \x01(\t\"9\n\x08Messages\x12-\n\x08messages\x18\x01 \x03(\x0b\x32\x1b.src.commons.Messageb\x06proto3' ) _MESSAGE_ARGSENTRY = _descriptor.Descriptor( name='ArgsEntry', - full_name='agrirouter.commons.Message.ArgsEntry', + full_name='src.commons.Message.ArgsEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='key', full_name='agrirouter.commons.Message.ArgsEntry.key', index=0, + name='key', full_name='src.commons.Message.ArgsEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='value', full_name='agrirouter.commons.Message.ArgsEntry.value', index=1, + name='value', full_name='src.commons.Message.ArgsEntry.value', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -60,28 +60,28 @@ _MESSAGE = _descriptor.Descriptor( name='Message', - full_name='agrirouter.commons.Message', + full_name='src.commons.Message', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='message', full_name='agrirouter.commons.Message.message', index=0, + name='message', full_name='src.commons.Message.message', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='message_code', full_name='agrirouter.commons.Message.message_code', index=1, + name='message_code', full_name='src.commons.Message.message_code', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='args', full_name='agrirouter.commons.Message.args', index=2, + name='args', full_name='src.commons.Message.args', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -105,14 +105,14 @@ _METADATA = _descriptor.Descriptor( name='Metadata', - full_name='agrirouter.commons.Metadata', + full_name='src.commons.Metadata', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='file_name', full_name='agrirouter.commons.Metadata.file_name', index=0, + name='file_name', full_name='src.commons.Metadata.file_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -136,14 +136,14 @@ _MESSAGES = _descriptor.Descriptor( name='Messages', - full_name='agrirouter.commons.Messages', + full_name='src.commons.Messages', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='messages', full_name='agrirouter.commons.Messages.messages', index=0, + name='messages', full_name='src.commons.Messages.messages', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -178,12 +178,12 @@ 'ArgsEntry': _reflection.GeneratedProtocolMessageType('ArgsEntry', (_message.Message,), { 'DESCRIPTOR': _MESSAGE_ARGSENTRY, '__module__': 'commons.message_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.commons.Message.ArgsEntry) + # @@protoc_insertion_point(class_scope:src.commons.Message.ArgsEntry) }) , 'DESCRIPTOR': _MESSAGE, '__module__': 'commons.message_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.commons.Message) + # @@protoc_insertion_point(class_scope:src.commons.Message) }) _sym_db.RegisterMessage(Message) _sym_db.RegisterMessage(Message.ArgsEntry) @@ -191,14 +191,14 @@ Metadata = _reflection.GeneratedProtocolMessageType('Metadata', (_message.Message,), { 'DESCRIPTOR': _METADATA, '__module__': 'commons.message_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.commons.Metadata) + # @@protoc_insertion_point(class_scope:src.commons.Metadata) }) _sym_db.RegisterMessage(Metadata) Messages = _reflection.GeneratedProtocolMessageType('Messages', (_message.Message,), { 'DESCRIPTOR': _MESSAGES, '__module__': 'commons.message_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.commons.Messages) + # @@protoc_insertion_point(class_scope:src.commons.Messages) }) _sym_db.RegisterMessage(Messages) diff --git a/agrirouter/generated/messaging/request/__init__.py b/src/generated/messaging/__init__.py similarity index 100% rename from agrirouter/generated/messaging/request/__init__.py rename to src/generated/messaging/__init__.py diff --git a/agrirouter/generated/messaging/request/payload/__init__.py b/src/generated/messaging/request/__init__.py similarity index 100% rename from agrirouter/generated/messaging/request/payload/__init__.py rename to src/generated/messaging/request/__init__.py diff --git a/agrirouter/generated/messaging/request/payload/account/__init__.py b/src/generated/messaging/request/payload/__init__.py similarity index 100% rename from agrirouter/generated/messaging/request/payload/account/__init__.py rename to src/generated/messaging/request/payload/__init__.py diff --git a/agrirouter/generated/messaging/request/payload/efdi/__init__.py b/src/generated/messaging/request/payload/account/__init__.py similarity index 100% rename from agrirouter/generated/messaging/request/payload/efdi/__init__.py rename to src/generated/messaging/request/payload/account/__init__.py diff --git a/agrirouter/generated/messaging/request/payload/account/endpoints_pb2.py b/src/generated/messaging/request/payload/account/endpoints_pb2.py similarity index 80% rename from agrirouter/generated/messaging/request/payload/account/endpoints_pb2.py rename to src/generated/messaging/request/payload/account/endpoints_pb2.py index d0d9373f..3d60b9cb 100644 --- a/agrirouter/generated/messaging/request/payload/account/endpoints_pb2.py +++ b/src/generated/messaging/request/payload/account/endpoints_pb2.py @@ -13,16 +13,16 @@ DESCRIPTOR = _descriptor.FileDescriptor( name='messaging/request/payload/account/endpoints.proto', - package='agrirouter.request.payload.account', + package='src.request.payload.account', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n1messaging/request/payload/account/endpoints.proto\x12\"agrirouter.request.payload.account\"\xbf\x01\n\x12ListEndpointsQuery\x12\x1e\n\x16technical_message_type\x18\x01 \x01(\t\x12S\n\tdirection\x18\x02 \x01(\x0e\x32@.agrirouter.request.payload.account.ListEndpointsQuery.Direction\"4\n\tDirection\x12\x08\n\x04SEND\x10\x00\x12\x0b\n\x07RECEIVE\x10\x01\x12\x10\n\x0cSEND_RECEIVE\x10\x02\x62\x06proto3' + serialized_pb=b'\n1messaging/request/payload/account/endpoints.proto\x12\"src.request.payload.account\"\xbf\x01\n\x12ListEndpointsQuery\x12\x1e\n\x16technical_message_type\x18\x01 \x01(\t\x12S\n\tdirection\x18\x02 \x01(\x0e\x32@.src.request.payload.account.ListEndpointsQuery.Direction\"4\n\tDirection\x12\x08\n\x04SEND\x10\x00\x12\x0b\n\x07RECEIVE\x10\x01\x12\x10\n\x0cSEND_RECEIVE\x10\x02\x62\x06proto3' ) _LISTENDPOINTSQUERY_DIRECTION = _descriptor.EnumDescriptor( name='Direction', - full_name='agrirouter.request.payload.account.ListEndpointsQuery.Direction', + full_name='src.request.payload.account.ListEndpointsQuery.Direction', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, @@ -52,7 +52,7 @@ _LISTENDPOINTSQUERY = _descriptor.Descriptor( name='ListEndpointsQuery', - full_name='agrirouter.request.payload.account.ListEndpointsQuery', + full_name='src.request.payload.account.ListEndpointsQuery', filename=None, file=DESCRIPTOR, containing_type=None, @@ -60,14 +60,14 @@ fields=[ _descriptor.FieldDescriptor( name='technical_message_type', - full_name='agrirouter.request.payload.account.ListEndpointsQuery.technical_message_type', index=0, + full_name='src.request.payload.account.ListEndpointsQuery.technical_message_type', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='direction', full_name='agrirouter.request.payload.account.ListEndpointsQuery.direction', index=1, + name='direction', full_name='src.request.payload.account.ListEndpointsQuery.direction', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -98,7 +98,7 @@ ListEndpointsQuery = _reflection.GeneratedProtocolMessageType('ListEndpointsQuery', (_message.Message,), { 'DESCRIPTOR': _LISTENDPOINTSQUERY, '__module__': 'messaging.request.payload.account.endpoints_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.request.payload.account.ListEndpointsQuery) + # @@protoc_insertion_point(class_scope:src.request.payload.account.ListEndpointsQuery) }) _sym_db.RegisterMessage(ListEndpointsQuery) diff --git a/agrirouter/generated/messaging/request/payload/endpoint/__init__.py b/src/generated/messaging/request/payload/efdi/__init__.py similarity index 100% rename from agrirouter/generated/messaging/request/payload/endpoint/__init__.py rename to src/generated/messaging/request/payload/efdi/__init__.py diff --git a/agrirouter/generated/messaging/request/payload/efdi/efdi_pb2.py b/src/generated/messaging/request/payload/efdi/efdi_pb2.py similarity index 98% rename from agrirouter/generated/messaging/request/payload/efdi/efdi_pb2.py rename to src/generated/messaging/request/payload/efdi/efdi_pb2.py index 9f70a1d3..5cce9ae1 100644 --- a/agrirouter/generated/messaging/request/payload/efdi/efdi_pb2.py +++ b/src/generated/messaging/request/payload/efdi/efdi_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: agrirouter/protobuf/technicalmessagetype/efdi.proto +# source: src/protobuf/technicalmessagetype/efdi.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -16,7 +16,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='agrirouter/protobuf/technicalmessagetype/efdi.proto', + name='src/protobuf/technicalmessagetype/efdi.proto', package='efdi', syntax='proto3', serialized_options=None, @@ -5622,378 +5622,378 @@ UID = _reflection.GeneratedProtocolMessageType('UID', (_message.Message,), { 'DESCRIPTOR' : _UID, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.UID) }) _sym_db.RegisterMessage(UID) AllocationStamp = _reflection.GeneratedProtocolMessageType('AllocationStamp', (_message.Message,), { 'DESCRIPTOR' : _ALLOCATIONSTAMP, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.AllocationStamp) }) _sym_db.RegisterMessage(AllocationStamp) AttachedFile = _reflection.GeneratedProtocolMessageType('AttachedFile', (_message.Message,), { 'DESCRIPTOR' : _ATTACHEDFILE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.AttachedFile) }) _sym_db.RegisterMessage(AttachedFile) BaseStation = _reflection.GeneratedProtocolMessageType('BaseStation', (_message.Message,), { 'DESCRIPTOR' : _BASESTATION, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.BaseStation) }) _sym_db.RegisterMessage(BaseStation) CodedComment = _reflection.GeneratedProtocolMessageType('CodedComment', (_message.Message,), { 'DESCRIPTOR' : _CODEDCOMMENT, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.CodedComment) }) _sym_db.RegisterMessage(CodedComment) CodedCommentGroup = _reflection.GeneratedProtocolMessageType('CodedCommentGroup', (_message.Message,), { 'DESCRIPTOR' : _CODEDCOMMENTGROUP, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.CodedCommentGroup) }) _sym_db.RegisterMessage(CodedCommentGroup) CodedCommentListValue = _reflection.GeneratedProtocolMessageType('CodedCommentListValue', (_message.Message,), { 'DESCRIPTOR' : _CODEDCOMMENTLISTVALUE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.CodedCommentListValue) }) _sym_db.RegisterMessage(CodedCommentListValue) ColourLegend = _reflection.GeneratedProtocolMessageType('ColourLegend', (_message.Message,), { 'DESCRIPTOR' : _COLOURLEGEND, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.ColourLegend) }) _sym_db.RegisterMessage(ColourLegend) ColourRange = _reflection.GeneratedProtocolMessageType('ColourRange', (_message.Message,), { 'DESCRIPTOR' : _COLOURRANGE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.ColourRange) }) _sym_db.RegisterMessage(ColourRange) CommentAllocation = _reflection.GeneratedProtocolMessageType('CommentAllocation', (_message.Message,), { 'DESCRIPTOR' : _COMMENTALLOCATION, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.CommentAllocation) }) _sym_db.RegisterMessage(CommentAllocation) Connection = _reflection.GeneratedProtocolMessageType('Connection', (_message.Message,), { 'DESCRIPTOR' : _CONNECTION, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.Connection) }) _sym_db.RegisterMessage(Connection) ControlAssignment = _reflection.GeneratedProtocolMessageType('ControlAssignment', (_message.Message,), { 'DESCRIPTOR' : _CONTROLASSIGNMENT, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.ControlAssignment) }) _sym_db.RegisterMessage(ControlAssignment) CropType = _reflection.GeneratedProtocolMessageType('CropType', (_message.Message,), { 'DESCRIPTOR' : _CROPTYPE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.CropType) }) _sym_db.RegisterMessage(CropType) CropVariety = _reflection.GeneratedProtocolMessageType('CropVariety', (_message.Message,), { 'DESCRIPTOR' : _CROPVARIETY, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.CropVariety) }) _sym_db.RegisterMessage(CropVariety) CulturalPractice = _reflection.GeneratedProtocolMessageType('CulturalPractice', (_message.Message,), { 'DESCRIPTOR' : _CULTURALPRACTICE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.CulturalPractice) }) _sym_db.RegisterMessage(CulturalPractice) Customer = _reflection.GeneratedProtocolMessageType('Customer', (_message.Message,), { 'DESCRIPTOR' : _CUSTOMER, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.Customer) }) _sym_db.RegisterMessage(Customer) DataLogTrigger = _reflection.GeneratedProtocolMessageType('DataLogTrigger', (_message.Message,), { 'DESCRIPTOR' : _DATALOGTRIGGER, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.DataLogTrigger) }) _sym_db.RegisterMessage(DataLogTrigger) DataLogValue = _reflection.GeneratedProtocolMessageType('DataLogValue', (_message.Message,), { 'DESCRIPTOR' : _DATALOGVALUE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.DataLogValue) }) _sym_db.RegisterMessage(DataLogValue) Device = _reflection.GeneratedProtocolMessageType('Device', (_message.Message,), { 'DESCRIPTOR' : _DEVICE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.Device) }) _sym_db.RegisterMessage(Device) DeviceAllocation = _reflection.GeneratedProtocolMessageType('DeviceAllocation', (_message.Message,), { 'DESCRIPTOR' : _DEVICEALLOCATION, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.DeviceAllocation) }) _sym_db.RegisterMessage(DeviceAllocation) DeviceElement = _reflection.GeneratedProtocolMessageType('DeviceElement', (_message.Message,), { 'DESCRIPTOR' : _DEVICEELEMENT, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.DeviceElement) }) _sym_db.RegisterMessage(DeviceElement) DeviceObjectReference = _reflection.GeneratedProtocolMessageType('DeviceObjectReference', (_message.Message,), { 'DESCRIPTOR' : _DEVICEOBJECTREFERENCE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.DeviceObjectReference) }) _sym_db.RegisterMessage(DeviceObjectReference) DeviceProcessData = _reflection.GeneratedProtocolMessageType('DeviceProcessData', (_message.Message,), { 'DESCRIPTOR' : _DEVICEPROCESSDATA, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.DeviceProcessData) }) _sym_db.RegisterMessage(DeviceProcessData) DeviceProperty = _reflection.GeneratedProtocolMessageType('DeviceProperty', (_message.Message,), { 'DESCRIPTOR' : _DEVICEPROPERTY, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.DeviceProperty) }) _sym_db.RegisterMessage(DeviceProperty) DeviceValuePresentation = _reflection.GeneratedProtocolMessageType('DeviceValuePresentation', (_message.Message,), { 'DESCRIPTOR' : _DEVICEVALUEPRESENTATION, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.DeviceValuePresentation) }) _sym_db.RegisterMessage(DeviceValuePresentation) Farm = _reflection.GeneratedProtocolMessageType('Farm', (_message.Message,), { 'DESCRIPTOR' : _FARM, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.Farm) }) _sym_db.RegisterMessage(Farm) Grid = _reflection.GeneratedProtocolMessageType('Grid', (_message.Message,), { 'DESCRIPTOR' : _GRID, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.Grid) }) _sym_db.RegisterMessage(Grid) GuidanceAllocation = _reflection.GeneratedProtocolMessageType('GuidanceAllocation', (_message.Message,), { 'DESCRIPTOR' : _GUIDANCEALLOCATION, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.GuidanceAllocation) }) _sym_db.RegisterMessage(GuidanceAllocation) GuidanceGroup = _reflection.GeneratedProtocolMessageType('GuidanceGroup', (_message.Message,), { 'DESCRIPTOR' : _GUIDANCEGROUP, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.GuidanceGroup) }) _sym_db.RegisterMessage(GuidanceGroup) GuidancePattern = _reflection.GeneratedProtocolMessageType('GuidancePattern', (_message.Message,), { 'DESCRIPTOR' : _GUIDANCEPATTERN, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.GuidancePattern) }) _sym_db.RegisterMessage(GuidancePattern) GuidanceShift = _reflection.GeneratedProtocolMessageType('GuidanceShift', (_message.Message,), { 'DESCRIPTOR' : _GUIDANCESHIFT, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.GuidanceShift) }) _sym_db.RegisterMessage(GuidanceShift) ISO11783_TaskData = _reflection.GeneratedProtocolMessageType('ISO11783_TaskData', (_message.Message,), { 'DESCRIPTOR' : _ISO11783_TASKDATA, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.ISO11783_TaskData) }) _sym_db.RegisterMessage(ISO11783_TaskData) LineString = _reflection.GeneratedProtocolMessageType('LineString', (_message.Message,), { 'DESCRIPTOR' : _LINESTRING, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.LineString) }) _sym_db.RegisterMessage(LineString) OperationTechnique = _reflection.GeneratedProtocolMessageType('OperationTechnique', (_message.Message,), { 'DESCRIPTOR' : _OPERATIONTECHNIQUE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.OperationTechnique) }) _sym_db.RegisterMessage(OperationTechnique) OperationTechniqueReference = _reflection.GeneratedProtocolMessageType('OperationTechniqueReference', (_message.Message,), { 'DESCRIPTOR' : _OPERATIONTECHNIQUEREFERENCE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.OperationTechniqueReference) }) _sym_db.RegisterMessage(OperationTechniqueReference) OperTechPractice = _reflection.GeneratedProtocolMessageType('OperTechPractice', (_message.Message,), { 'DESCRIPTOR' : _OPERTECHPRACTICE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.OperTechPractice) }) _sym_db.RegisterMessage(OperTechPractice) Partfield = _reflection.GeneratedProtocolMessageType('Partfield', (_message.Message,), { 'DESCRIPTOR' : _PARTFIELD, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.Partfield) }) _sym_db.RegisterMessage(Partfield) Point = _reflection.GeneratedProtocolMessageType('Point', (_message.Message,), { 'DESCRIPTOR' : _POINT, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.Point) }) _sym_db.RegisterMessage(Point) Polygon = _reflection.GeneratedProtocolMessageType('Polygon', (_message.Message,), { 'DESCRIPTOR' : _POLYGON, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.Polygon) }) _sym_db.RegisterMessage(Polygon) Position = _reflection.GeneratedProtocolMessageType('Position', (_message.Message,), { 'DESCRIPTOR' : _POSITION, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.Position) }) _sym_db.RegisterMessage(Position) ProcessDataVariable = _reflection.GeneratedProtocolMessageType('ProcessDataVariable', (_message.Message,), { 'DESCRIPTOR' : _PROCESSDATAVARIABLE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.ProcessDataVariable) }) _sym_db.RegisterMessage(ProcessDataVariable) Product = _reflection.GeneratedProtocolMessageType('Product', (_message.Message,), { 'DESCRIPTOR' : _PRODUCT, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.Product) }) _sym_db.RegisterMessage(Product) ProductAllocation = _reflection.GeneratedProtocolMessageType('ProductAllocation', (_message.Message,), { 'DESCRIPTOR' : _PRODUCTALLOCATION, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.ProductAllocation) }) _sym_db.RegisterMessage(ProductAllocation) ProductGroup = _reflection.GeneratedProtocolMessageType('ProductGroup', (_message.Message,), { 'DESCRIPTOR' : _PRODUCTGROUP, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.ProductGroup) }) _sym_db.RegisterMessage(ProductGroup) ProductRelation = _reflection.GeneratedProtocolMessageType('ProductRelation', (_message.Message,), { 'DESCRIPTOR' : _PRODUCTRELATION, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.ProductRelation) }) _sym_db.RegisterMessage(ProductRelation) Task = _reflection.GeneratedProtocolMessageType('Task', (_message.Message,), { 'DESCRIPTOR' : _TASK, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.Task) }) _sym_db.RegisterMessage(Task) TaskControllerCapabilities = _reflection.GeneratedProtocolMessageType('TaskControllerCapabilities', (_message.Message,), { 'DESCRIPTOR' : _TASKCONTROLLERCAPABILITIES, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.TaskControllerCapabilities) }) _sym_db.RegisterMessage(TaskControllerCapabilities) Time = _reflection.GeneratedProtocolMessageType('Time', (_message.Message,), { 'DESCRIPTOR' : _TIME, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.Time) }) _sym_db.RegisterMessage(Time) TimeLog = _reflection.GeneratedProtocolMessageType('TimeLog', (_message.Message,), { 'DESCRIPTOR' : _TIMELOG, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.TimeLog) }) _sym_db.RegisterMessage(TimeLog) TreatmentZone = _reflection.GeneratedProtocolMessageType('TreatmentZone', (_message.Message,), { 'DESCRIPTOR' : _TREATMENTZONE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.TreatmentZone) }) _sym_db.RegisterMessage(TreatmentZone) ValuePresentation = _reflection.GeneratedProtocolMessageType('ValuePresentation', (_message.Message,), { 'DESCRIPTOR' : _VALUEPRESENTATION, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.ValuePresentation) }) _sym_db.RegisterMessage(ValuePresentation) Worker = _reflection.GeneratedProtocolMessageType('Worker', (_message.Message,), { 'DESCRIPTOR' : _WORKER, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.Worker) }) _sym_db.RegisterMessage(Worker) WorkerAllocation = _reflection.GeneratedProtocolMessageType('WorkerAllocation', (_message.Message,), { 'DESCRIPTOR' : _WORKERALLOCATION, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.WorkerAllocation) }) _sym_db.RegisterMessage(WorkerAllocation) ExternalFileReference = _reflection.GeneratedProtocolMessageType('ExternalFileReference', (_message.Message,), { 'DESCRIPTOR' : _EXTERNALFILEREFERENCE, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.efdi_pb2' + '__module__' : 'src.protobuf.technicalmessagetype.efdi_pb2' # @@protoc_insertion_point(class_scope:efdi.ExternalFileReference) }) _sym_db.RegisterMessage(ExternalFileReference) diff --git a/agrirouter/generated/messaging/request/payload/feed/__init__.py b/src/generated/messaging/request/payload/endpoint/__init__.py similarity index 100% rename from agrirouter/generated/messaging/request/payload/feed/__init__.py rename to src/generated/messaging/request/payload/endpoint/__init__.py diff --git a/agrirouter/generated/messaging/request/payload/endpoint/capabilities_pb2.py b/src/generated/messaging/request/payload/endpoint/capabilities_pb2.py similarity index 77% rename from agrirouter/generated/messaging/request/payload/endpoint/capabilities_pb2.py rename to src/generated/messaging/request/payload/endpoint/capabilities_pb2.py index e3139e87..833a3342 100644 --- a/agrirouter/generated/messaging/request/payload/endpoint/capabilities_pb2.py +++ b/src/generated/messaging/request/payload/endpoint/capabilities_pb2.py @@ -13,16 +13,16 @@ DESCRIPTOR = _descriptor.FileDescriptor( name='messaging/request/payload/endpoint/capabilities.proto', - package='agrirouter.request.payload.endpoint', + package='src.request.payload.endpoint', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n5messaging/request/payload/endpoint/capabilities.proto\x12#agrirouter.request.payload.endpoint\"\xb9\x04\n\x17\x43\x61pabilitySpecification\x12]\n\x0c\x63\x61pabilities\x18\x01 \x03(\x0b\x32G.agrirouter.request.payload.endpoint.CapabilitySpecification.Capability\x12\x1c\n\x14\x61pp_certification_id\x18\x02 \x01(\t\x12$\n\x1c\x61pp_certification_version_id\x18\x03 \x01(\t\x12p\n\x19\x65nable_push_notifications\x18\x04 \x01(\x0e\x32M.agrirouter.request.payload.endpoint.CapabilitySpecification.PushNotification\x1a\x87\x01\n\nCapability\x12\x1e\n\x16technical_message_type\x18\x01 \x01(\t\x12Y\n\tdirection\x18\x02 \x01(\x0e\x32\x46.agrirouter.request.payload.endpoint.CapabilitySpecification.Direction\"4\n\tDirection\x12\x08\n\x04SEND\x10\x00\x12\x0b\n\x07RECEIVE\x10\x01\x12\x10\n\x0cSEND_RECEIVE\x10\x02\"I\n\x10PushNotification\x12\x0c\n\x08\x44ISABLED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x1a\n\x16\x45NABLED_HIGH_FREQUENCY\x10\x02\x62\x06proto3' + serialized_pb=b'\n5messaging/request/payload/endpoint/capabilities.proto\x12#src.request.payload.endpoint\"\xb9\x04\n\x17\x43\x61pabilitySpecification\x12]\n\x0c\x63\x61pabilities\x18\x01 \x03(\x0b\x32G.src.request.payload.endpoint.CapabilitySpecification.Capability\x12\x1c\n\x14\x61pp_certification_id\x18\x02 \x01(\t\x12$\n\x1c\x61pp_certification_version_id\x18\x03 \x01(\t\x12p\n\x19\x65nable_push_notifications\x18\x04 \x01(\x0e\x32M.src.request.payload.endpoint.CapabilitySpecification.PushNotification\x1a\x87\x01\n\nCapability\x12\x1e\n\x16technical_message_type\x18\x01 \x01(\t\x12Y\n\tdirection\x18\x02 \x01(\x0e\x32\x46.src.request.payload.endpoint.CapabilitySpecification.Direction\"4\n\tDirection\x12\x08\n\x04SEND\x10\x00\x12\x0b\n\x07RECEIVE\x10\x01\x12\x10\n\x0cSEND_RECEIVE\x10\x02\"I\n\x10PushNotification\x12\x0c\n\x08\x44ISABLED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x1a\n\x16\x45NABLED_HIGH_FREQUENCY\x10\x02\x62\x06proto3' ) _CAPABILITYSPECIFICATION_DIRECTION = _descriptor.EnumDescriptor( name='Direction', - full_name='agrirouter.request.payload.endpoint.CapabilitySpecification.Direction', + full_name='src.request.payload.endpoint.CapabilitySpecification.Direction', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, @@ -52,7 +52,7 @@ _CAPABILITYSPECIFICATION_PUSHNOTIFICATION = _descriptor.EnumDescriptor( name='PushNotification', - full_name='agrirouter.request.payload.endpoint.CapabilitySpecification.PushNotification', + full_name='src.request.payload.endpoint.CapabilitySpecification.PushNotification', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, @@ -82,7 +82,7 @@ _CAPABILITYSPECIFICATION_CAPABILITY = _descriptor.Descriptor( name='Capability', - full_name='agrirouter.request.payload.endpoint.CapabilitySpecification.Capability', + full_name='src.request.payload.endpoint.CapabilitySpecification.Capability', filename=None, file=DESCRIPTOR, containing_type=None, @@ -90,7 +90,7 @@ fields=[ _descriptor.FieldDescriptor( name='technical_message_type', - full_name='agrirouter.request.payload.endpoint.CapabilitySpecification.Capability.technical_message_type', + full_name='src.request.payload.endpoint.CapabilitySpecification.Capability.technical_message_type', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -99,7 +99,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='direction', - full_name='agrirouter.request.payload.endpoint.CapabilitySpecification.Capability.direction', index=1, + full_name='src.request.payload.endpoint.CapabilitySpecification.Capability.direction', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -123,14 +123,14 @@ _CAPABILITYSPECIFICATION = _descriptor.Descriptor( name='CapabilitySpecification', - full_name='agrirouter.request.payload.endpoint.CapabilitySpecification', + full_name='src.request.payload.endpoint.CapabilitySpecification', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='capabilities', full_name='agrirouter.request.payload.endpoint.CapabilitySpecification.capabilities', + name='capabilities', full_name='src.request.payload.endpoint.CapabilitySpecification.capabilities', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], @@ -139,7 +139,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='app_certification_id', - full_name='agrirouter.request.payload.endpoint.CapabilitySpecification.app_certification_id', index=1, + full_name='src.request.payload.endpoint.CapabilitySpecification.app_certification_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -147,7 +147,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='app_certification_version_id', - full_name='agrirouter.request.payload.endpoint.CapabilitySpecification.app_certification_version_id', + full_name='src.request.payload.endpoint.CapabilitySpecification.app_certification_version_id', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -156,7 +156,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='enable_push_notifications', - full_name='agrirouter.request.payload.endpoint.CapabilitySpecification.enable_push_notifications', index=3, + full_name='src.request.payload.endpoint.CapabilitySpecification.enable_push_notifications', index=3, number=4, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -195,12 +195,12 @@ 'Capability': _reflection.GeneratedProtocolMessageType('Capability', (_message.Message,), { 'DESCRIPTOR': _CAPABILITYSPECIFICATION_CAPABILITY, '__module__': 'messaging.request.payload.endpoint.capabilities_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.request.payload.endpoint.CapabilitySpecification.Capability) + # @@protoc_insertion_point(class_scope:src.request.payload.endpoint.CapabilitySpecification.Capability) }) , 'DESCRIPTOR': _CAPABILITYSPECIFICATION, '__module__': 'messaging.request.payload.endpoint.capabilities_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.request.payload.endpoint.CapabilitySpecification) + # @@protoc_insertion_point(class_scope:src.request.payload.endpoint.CapabilitySpecification) }) _sym_db.RegisterMessage(CapabilitySpecification) _sym_db.RegisterMessage(CapabilitySpecification.Capability) diff --git a/agrirouter/generated/messaging/request/payload/endpoint/subscription_pb2.py b/src/generated/messaging/request/payload/endpoint/subscription_pb2.py similarity index 78% rename from agrirouter/generated/messaging/request/payload/endpoint/subscription_pb2.py rename to src/generated/messaging/request/payload/endpoint/subscription_pb2.py index a786bd8c..153cabc3 100644 --- a/agrirouter/generated/messaging/request/payload/endpoint/subscription_pb2.py +++ b/src/generated/messaging/request/payload/endpoint/subscription_pb2.py @@ -13,16 +13,16 @@ DESCRIPTOR = _descriptor.FileDescriptor( name='messaging/request/payload/endpoint/subscription.proto', - package='agrirouter.request.payload.endpoint', + package='src.request.payload.endpoint', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n5messaging/request/payload/endpoint/subscription.proto\x12#agrirouter.request.payload.endpoint\"\xdd\x01\n\x0cSubscription\x12n\n\x17technical_message_types\x18\x01 \x03(\x0b\x32M.agrirouter.request.payload.endpoint.Subscription.MessageTypeSubscriptionItem\x1a]\n\x1bMessageTypeSubscriptionItem\x12\x1e\n\x16technical_message_type\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x64is\x18\x02 \x03(\r\x12\x10\n\x08position\x18\x03 \x01(\x08\x62\x06proto3' + serialized_pb=b'\n5messaging/request/payload/endpoint/subscription.proto\x12#src.request.payload.endpoint\"\xdd\x01\n\x0cSubscription\x12n\n\x17technical_message_types\x18\x01 \x03(\x0b\x32M.src.request.payload.endpoint.Subscription.MessageTypeSubscriptionItem\x1a]\n\x1bMessageTypeSubscriptionItem\x12\x1e\n\x16technical_message_type\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x64is\x18\x02 \x03(\r\x12\x10\n\x08position\x18\x03 \x01(\x08\x62\x06proto3' ) _SUBSCRIPTION_MESSAGETYPESUBSCRIPTIONITEM = _descriptor.Descriptor( name='MessageTypeSubscriptionItem', - full_name='agrirouter.request.payload.endpoint.Subscription.MessageTypeSubscriptionItem', + full_name='src.request.payload.endpoint.Subscription.MessageTypeSubscriptionItem', filename=None, file=DESCRIPTOR, containing_type=None, @@ -30,7 +30,7 @@ fields=[ _descriptor.FieldDescriptor( name='technical_message_type', - full_name='agrirouter.request.payload.endpoint.Subscription.MessageTypeSubscriptionItem.technical_message_type', + full_name='src.request.payload.endpoint.Subscription.MessageTypeSubscriptionItem.technical_message_type', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -38,7 +38,7 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='ddis', full_name='agrirouter.request.payload.endpoint.Subscription.MessageTypeSubscriptionItem.ddis', + name='ddis', full_name='src.request.payload.endpoint.Subscription.MessageTypeSubscriptionItem.ddis', index=1, number=2, type=13, cpp_type=3, label=3, has_default_value=False, default_value=[], @@ -47,7 +47,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='position', - full_name='agrirouter.request.payload.endpoint.Subscription.MessageTypeSubscriptionItem.position', index=2, + full_name='src.request.payload.endpoint.Subscription.MessageTypeSubscriptionItem.position', index=2, number=3, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, @@ -71,7 +71,7 @@ _SUBSCRIPTION = _descriptor.Descriptor( name='Subscription', - full_name='agrirouter.request.payload.endpoint.Subscription', + full_name='src.request.payload.endpoint.Subscription', filename=None, file=DESCRIPTOR, containing_type=None, @@ -79,7 +79,7 @@ fields=[ _descriptor.FieldDescriptor( name='technical_message_types', - full_name='agrirouter.request.payload.endpoint.Subscription.technical_message_types', index=0, + full_name='src.request.payload.endpoint.Subscription.technical_message_types', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -112,12 +112,12 @@ (_message.Message,), { 'DESCRIPTOR': _SUBSCRIPTION_MESSAGETYPESUBSCRIPTIONITEM, '__module__': 'messaging.request.payload.endpoint.subscription_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.request.payload.endpoint.Subscription.MessageTypeSubscriptionItem) + # @@protoc_insertion_point(class_scope:src.request.payload.endpoint.Subscription.MessageTypeSubscriptionItem) }) , 'DESCRIPTOR': _SUBSCRIPTION, '__module__': 'messaging.request.payload.endpoint.subscription_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.request.payload.endpoint.Subscription) + # @@protoc_insertion_point(class_scope:src.request.payload.endpoint.Subscription) }) _sym_db.RegisterMessage(Subscription) _sym_db.RegisterMessage(Subscription.MessageTypeSubscriptionItem) diff --git a/agrirouter/generated/messaging/request/payload/gps/__init__.py b/src/generated/messaging/request/payload/feed/__init__.py similarity index 100% rename from agrirouter/generated/messaging/request/payload/gps/__init__.py rename to src/generated/messaging/request/payload/feed/__init__.py diff --git a/agrirouter/generated/messaging/request/payload/feed/feed_requests_pb2.py b/src/generated/messaging/request/payload/feed/feed_requests_pb2.py similarity index 81% rename from agrirouter/generated/messaging/request/payload/feed/feed_requests_pb2.py rename to src/generated/messaging/request/payload/feed/feed_requests_pb2.py index fbd1de8d..c7b6dccf 100644 --- a/agrirouter/generated/messaging/request/payload/feed/feed_requests_pb2.py +++ b/src/generated/messaging/request/payload/feed/feed_requests_pb2.py @@ -15,31 +15,31 @@ DESCRIPTOR = _descriptor.FileDescriptor( name='messaging/request/payload/feed/feed-requests.proto', - package='agrirouter.feed.request', + package='src.feed.request', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n2messaging/request/payload/feed/feed-requests.proto\x12\x17\x61grirouter.feed.request\x1a\x1fgoogle/protobuf/timestamp.proto\"l\n\x0eValidityPeriod\x12-\n\tsent_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07sent_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"v\n\x0cMessageQuery\x12\x13\n\x0bmessage_ids\x18\x01 \x03(\t\x12\x0f\n\x07senders\x18\x02 \x03(\t\x12@\n\x0fvalidity_period\x18\x03 \x01(\x0b\x32\'.agrirouter.feed.request.ValidityPeriod\"%\n\x0eMessageConfirm\x12\x13\n\x0bmessage_ids\x18\x01 \x03(\t\"w\n\rMessageDelete\x12\x13\n\x0bmessage_ids\x18\x01 \x03(\t\x12\x0f\n\x07senders\x18\x02 \x03(\t\x12@\n\x0fvalidity_period\x18\x03 \x01(\x0b\x32\'.agrirouter.feed.request.ValidityPeriodb\x06proto3' + serialized_pb=b'\n2messaging/request/payload/feed/feed-requests.proto\x12\x17\x61grirouter.feed.request\x1a\x1fgoogle/protobuf/timestamp.proto\"l\n\x0eValidityPeriod\x12-\n\tsent_from\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07sent_to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"v\n\x0cMessageQuery\x12\x13\n\x0bmessage_ids\x18\x01 \x03(\t\x12\x0f\n\x07senders\x18\x02 \x03(\t\x12@\n\x0fvalidity_period\x18\x03 \x01(\x0b\x32\'.src.feed.request.ValidityPeriod\"%\n\x0eMessageConfirm\x12\x13\n\x0bmessage_ids\x18\x01 \x03(\t\"w\n\rMessageDelete\x12\x13\n\x0bmessage_ids\x18\x01 \x03(\t\x12\x0f\n\x07senders\x18\x02 \x03(\t\x12@\n\x0fvalidity_period\x18\x03 \x01(\x0b\x32\'.src.feed.request.ValidityPeriodb\x06proto3' , dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, ]) _VALIDITYPERIOD = _descriptor.Descriptor( name='ValidityPeriod', - full_name='agrirouter.feed.request.ValidityPeriod', + full_name='src.feed.request.ValidityPeriod', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='sent_from', full_name='agrirouter.feed.request.ValidityPeriod.sent_from', index=0, + name='sent_from', full_name='src.feed.request.ValidityPeriod.sent_from', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='sent_to', full_name='agrirouter.feed.request.ValidityPeriod.sent_to', index=1, + name='sent_to', full_name='src.feed.request.ValidityPeriod.sent_to', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -63,28 +63,28 @@ _MESSAGEQUERY = _descriptor.Descriptor( name='MessageQuery', - full_name='agrirouter.feed.request.MessageQuery', + full_name='src.feed.request.MessageQuery', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='message_ids', full_name='agrirouter.feed.request.MessageQuery.message_ids', index=0, + name='message_ids', full_name='src.feed.request.MessageQuery.message_ids', index=0, number=1, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='senders', full_name='agrirouter.feed.request.MessageQuery.senders', index=1, + name='senders', full_name='src.feed.request.MessageQuery.senders', index=1, number=2, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='validity_period', full_name='agrirouter.feed.request.MessageQuery.validity_period', index=2, + name='validity_period', full_name='src.feed.request.MessageQuery.validity_period', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -108,14 +108,14 @@ _MESSAGECONFIRM = _descriptor.Descriptor( name='MessageConfirm', - full_name='agrirouter.feed.request.MessageConfirm', + full_name='src.feed.request.MessageConfirm', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='message_ids', full_name='agrirouter.feed.request.MessageConfirm.message_ids', index=0, + name='message_ids', full_name='src.feed.request.MessageConfirm.message_ids', index=0, number=1, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -139,28 +139,28 @@ _MESSAGEDELETE = _descriptor.Descriptor( name='MessageDelete', - full_name='agrirouter.feed.request.MessageDelete', + full_name='src.feed.request.MessageDelete', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='message_ids', full_name='agrirouter.feed.request.MessageDelete.message_ids', index=0, + name='message_ids', full_name='src.feed.request.MessageDelete.message_ids', index=0, number=1, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='senders', full_name='agrirouter.feed.request.MessageDelete.senders', index=1, + name='senders', full_name='src.feed.request.MessageDelete.senders', index=1, number=2, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='validity_period', full_name='agrirouter.feed.request.MessageDelete.validity_period', index=2, + name='validity_period', full_name='src.feed.request.MessageDelete.validity_period', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -195,28 +195,28 @@ ValidityPeriod = _reflection.GeneratedProtocolMessageType('ValidityPeriod', (_message.Message,), { 'DESCRIPTOR': _VALIDITYPERIOD, '__module__': 'messaging.request.payload.feed.feed_requests_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.request.ValidityPeriod) + # @@protoc_insertion_point(class_scope:src.feed.request.ValidityPeriod) }) _sym_db.RegisterMessage(ValidityPeriod) MessageQuery = _reflection.GeneratedProtocolMessageType('MessageQuery', (_message.Message,), { 'DESCRIPTOR': _MESSAGEQUERY, '__module__': 'messaging.request.payload.feed.feed_requests_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.request.MessageQuery) + # @@protoc_insertion_point(class_scope:src.feed.request.MessageQuery) }) _sym_db.RegisterMessage(MessageQuery) MessageConfirm = _reflection.GeneratedProtocolMessageType('MessageConfirm', (_message.Message,), { 'DESCRIPTOR': _MESSAGECONFIRM, '__module__': 'messaging.request.payload.feed.feed_requests_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.request.MessageConfirm) + # @@protoc_insertion_point(class_scope:src.feed.request.MessageConfirm) }) _sym_db.RegisterMessage(MessageConfirm) MessageDelete = _reflection.GeneratedProtocolMessageType('MessageDelete', (_message.Message,), { 'DESCRIPTOR': _MESSAGEDELETE, '__module__': 'messaging.request.payload.feed.feed_requests_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.request.MessageDelete) + # @@protoc_insertion_point(class_scope:src.feed.request.MessageDelete) }) _sym_db.RegisterMessage(MessageDelete) diff --git a/agrirouter/generated/messaging/response/__init__.py b/src/generated/messaging/request/payload/gps/__init__.py similarity index 100% rename from agrirouter/generated/messaging/response/__init__.py rename to src/generated/messaging/request/payload/gps/__init__.py diff --git a/agrirouter/generated/messaging/request/payload/gps/gps_pb2.py b/src/generated/messaging/request/payload/gps/gps_pb2.py similarity index 75% rename from agrirouter/generated/messaging/request/payload/gps/gps_pb2.py rename to src/generated/messaging/request/payload/gps/gps_pb2.py index 4c5f0aa7..3b13292b 100644 --- a/agrirouter/generated/messaging/request/payload/gps/gps_pb2.py +++ b/src/generated/messaging/request/payload/gps/gps_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: agrirouter/protobuf/technicalmessagetype/gps.proto +# source: src/protobuf/technicalmessagetype/gps.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -16,12 +16,12 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='agrirouter/protobuf/technicalmessagetype/gps.proto', - package='agrirouter.technicalmessagetype', + name='src/protobuf/technicalmessagetype/gps.proto', + package='src.technicalmessagetype', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n2agrirouter/protobuf/technicalmessagetype/gps.proto\x12\x1f\x61grirouter.technicalmessagetype\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\"\xb6\x06\n\x07GPSList\x12\x46\n\x0bgps_entries\x18\x01 \x03(\x0b\x32\x31.agrirouter.technicalmessagetype.GPSList.GPSEntry\x12(\n\textension\x18\x80\x10 \x03(\x0b\x32\x14.google.protobuf.Any\x1a\xb8\x05\n\x08GPSEntry\x12\x16\n\x0eposition_north\x18\x01 \x01(\x01\x12\x15\n\rposition_east\x18\x02 \x01(\x01\x12\x13\n\x0bposition_up\x18\x03 \x01(\x12\x12Y\n\x0fposition_status\x18\x04 \x01(\x0e\x32@.agrirouter.technicalmessagetype.GPSList.GPSEntry.PositionStatus\x12\x0c\n\x04pdop\x18\x05 \x01(\x01\x12\x0c\n\x04hdop\x18\x06 \x01(\x01\x12\x1c\n\x14number_of_satellites\x18\x07 \x01(\r\x12\x35\n\x11gps_utc_timestamp\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12S\n\x0c\x66ield_status\x18\t \x01(\x0e\x32=.agrirouter.technicalmessagetype.GPSList.GPSEntry.FieldStatus\x12(\n\textension\x18\x80\x10 \x03(\x0b\x32\x14.google.protobuf.Any\"\xce\x01\n\x0ePositionStatus\x12\x0c\n\x08\x44_NO_GPS\x10\x00\x12\n\n\x06\x44_GNSS\x10\x01\x12\x0b\n\x07\x44_DGNSS\x10\x02\x12\x12\n\x0e\x44_PRECISE_GNSS\x10\x03\x12\x12\n\x0e\x44_RTK_FINTEGER\x10\x04\x12\x0f\n\x0b\x44_RTK_FLOAT\x10\x05\x12\x11\n\rD_EST_DR_MODE\x10\x06\x12\x12\n\x0e\x44_MANUAL_INPUT\x10\x07\x12\x13\n\x0f\x44_SIMULATE_MODE\x10\x08\x12\x0b\n\x07\x44_ERROR\x10\x0e\x12\x13\n\x0f\x44_NOT_AVAILABLE\x10\x0f\"L\n\x0b\x46ieldStatus\x12\x0e\n\nFS_UNKNOWN\x10\x00\x12\x0e\n\nFS_INFIELD\x10\x01\x12\r\n\tFS_ONROAD\x10\x02\x12\x0e\n\nFS_OFFROAD\x10\x03\x62\x06proto3' + serialized_pb=b'\n2agrirouter/protobuf/technicalmessagetype/gps.proto\x12\x1f\x61grirouter.technicalmessagetype\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\"\xb6\x06\n\x07GPSList\x12\x46\n\x0bgps_entries\x18\x01 \x03(\x0b\x32\x31.src.technicalmessagetype.GPSList.GPSEntry\x12(\n\textension\x18\x80\x10 \x03(\x0b\x32\x14.google.protobuf.Any\x1a\xb8\x05\n\x08GPSEntry\x12\x16\n\x0eposition_north\x18\x01 \x01(\x01\x12\x15\n\rposition_east\x18\x02 \x01(\x01\x12\x13\n\x0bposition_up\x18\x03 \x01(\x12\x12Y\n\x0fposition_status\x18\x04 \x01(\x0e\x32@.src.technicalmessagetype.GPSList.GPSEntry.PositionStatus\x12\x0c\n\x04pdop\x18\x05 \x01(\x01\x12\x0c\n\x04hdop\x18\x06 \x01(\x01\x12\x1c\n\x14number_of_satellites\x18\x07 \x01(\r\x12\x35\n\x11gps_utc_timestamp\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12S\n\x0c\x66ield_status\x18\t \x01(\x0e\x32=.src.technicalmessagetype.GPSList.GPSEntry.FieldStatus\x12(\n\textension\x18\x80\x10 \x03(\x0b\x32\x14.google.protobuf.Any\"\xce\x01\n\x0ePositionStatus\x12\x0c\n\x08\x44_NO_GPS\x10\x00\x12\n\n\x06\x44_GNSS\x10\x01\x12\x0b\n\x07\x44_DGNSS\x10\x02\x12\x12\n\x0e\x44_PRECISE_GNSS\x10\x03\x12\x12\n\x0e\x44_RTK_FINTEGER\x10\x04\x12\x0f\n\x0b\x44_RTK_FLOAT\x10\x05\x12\x11\n\rD_EST_DR_MODE\x10\x06\x12\x12\n\x0e\x44_MANUAL_INPUT\x10\x07\x12\x13\n\x0f\x44_SIMULATE_MODE\x10\x08\x12\x0b\n\x07\x44_ERROR\x10\x0e\x12\x13\n\x0f\x44_NOT_AVAILABLE\x10\x0f\"L\n\x0b\x46ieldStatus\x12\x0e\n\nFS_UNKNOWN\x10\x00\x12\x0e\n\nFS_INFIELD\x10\x01\x12\r\n\tFS_ONROAD\x10\x02\x12\x0e\n\nFS_OFFROAD\x10\x03\x62\x06proto3' , dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _GPSLIST_GPSENTRY_POSITIONSTATUS = _descriptor.EnumDescriptor( name='PositionStatus', - full_name='agrirouter.technicalmessagetype.GPSList.GPSEntry.PositionStatus', + full_name='src.technicalmessagetype.GPSList.GPSEntry.PositionStatus', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, @@ -99,7 +99,7 @@ _GPSLIST_GPSENTRY_FIELDSTATUS = _descriptor.EnumDescriptor( name='FieldStatus', - full_name='agrirouter.technicalmessagetype.GPSList.GPSEntry.FieldStatus', + full_name='src.technicalmessagetype.GPSList.GPSEntry.FieldStatus', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, @@ -135,77 +135,77 @@ _GPSLIST_GPSENTRY = _descriptor.Descriptor( name='GPSEntry', - full_name='agrirouter.technicalmessagetype.GPSList.GPSEntry', + full_name='src.technicalmessagetype.GPSList.GPSEntry', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='position_north', full_name='agrirouter.technicalmessagetype.GPSList.GPSEntry.position_north', index=0, + name='position_north', full_name='src.technicalmessagetype.GPSList.GPSEntry.position_north', index=0, number=1, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='position_east', full_name='agrirouter.technicalmessagetype.GPSList.GPSEntry.position_east', index=1, + name='position_east', full_name='src.technicalmessagetype.GPSList.GPSEntry.position_east', index=1, number=2, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='position_up', full_name='agrirouter.technicalmessagetype.GPSList.GPSEntry.position_up', index=2, + name='position_up', full_name='src.technicalmessagetype.GPSList.GPSEntry.position_up', index=2, number=3, type=18, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='position_status', full_name='agrirouter.technicalmessagetype.GPSList.GPSEntry.position_status', index=3, + name='position_status', full_name='src.technicalmessagetype.GPSList.GPSEntry.position_status', index=3, number=4, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='pdop', full_name='agrirouter.technicalmessagetype.GPSList.GPSEntry.pdop', index=4, + name='pdop', full_name='src.technicalmessagetype.GPSList.GPSEntry.pdop', index=4, number=5, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='hdop', full_name='agrirouter.technicalmessagetype.GPSList.GPSEntry.hdop', index=5, + name='hdop', full_name='src.technicalmessagetype.GPSList.GPSEntry.hdop', index=5, number=6, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='number_of_satellites', full_name='agrirouter.technicalmessagetype.GPSList.GPSEntry.number_of_satellites', index=6, + name='number_of_satellites', full_name='src.technicalmessagetype.GPSList.GPSEntry.number_of_satellites', index=6, number=7, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='gps_utc_timestamp', full_name='agrirouter.technicalmessagetype.GPSList.GPSEntry.gps_utc_timestamp', index=7, + name='gps_utc_timestamp', full_name='src.technicalmessagetype.GPSList.GPSEntry.gps_utc_timestamp', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='field_status', full_name='agrirouter.technicalmessagetype.GPSList.GPSEntry.field_status', index=8, + name='field_status', full_name='src.technicalmessagetype.GPSList.GPSEntry.field_status', index=8, number=9, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='extension', full_name='agrirouter.technicalmessagetype.GPSList.GPSEntry.extension', index=9, + name='extension', full_name='src.technicalmessagetype.GPSList.GPSEntry.extension', index=9, number=2048, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -231,21 +231,21 @@ _GPSLIST = _descriptor.Descriptor( name='GPSList', - full_name='agrirouter.technicalmessagetype.GPSList', + full_name='src.technicalmessagetype.GPSList', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='gps_entries', full_name='agrirouter.technicalmessagetype.GPSList.gps_entries', index=0, + name='gps_entries', full_name='src.technicalmessagetype.GPSList.gps_entries', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='extension', full_name='agrirouter.technicalmessagetype.GPSList.extension', index=1, + name='extension', full_name='src.technicalmessagetype.GPSList.extension', index=1, number=2048, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -283,13 +283,13 @@ 'GPSEntry' : _reflection.GeneratedProtocolMessageType('GPSEntry', (_message.Message,), { 'DESCRIPTOR' : _GPSLIST_GPSENTRY, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.gps_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.technicalmessagetype.GPSList.GPSEntry) + '__module__' : 'src.protobuf.technicalmessagetype.gps_pb2' + # @@protoc_insertion_point(class_scope:src.technicalmessagetype.GPSList.GPSEntry) }) , 'DESCRIPTOR' : _GPSLIST, - '__module__' : 'agrirouter.protobuf.technicalmessagetype.gps_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.technicalmessagetype.GPSList) + '__module__' : 'src.protobuf.technicalmessagetype.gps_pb2' + # @@protoc_insertion_point(class_scope:src.technicalmessagetype.GPSList) }) _sym_db.RegisterMessage(GPSList) _sym_db.RegisterMessage(GPSList.GPSEntry) diff --git a/agrirouter/generated/messaging/request/request_pb2.py b/src/generated/messaging/request/request_pb2.py similarity index 79% rename from agrirouter/generated/messaging/request/request_pb2.py rename to src/generated/messaging/request/request_pb2.py index 62c9adf6..acec7d68 100644 --- a/agrirouter/generated/messaging/request/request_pb2.py +++ b/src/generated/messaging/request/request_pb2.py @@ -13,23 +13,23 @@ from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from agrirouter.generated.commons import chunk_pb2 as commons_dot_chunk__pb2 -from agrirouter.generated.commons import message_pb2 as commons_dot_message__pb2 +from src.generated.commons import chunk_pb2 as commons_dot_chunk__pb2 +from src.generated.commons import message_pb2 as commons_dot_message__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='messaging/request/request.proto', - package='agrirouter.request', + package='src.request', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1fmessaging/request/request.proto\x12\x12\x61grirouter.request\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x13\x63ommons/chunk.proto\x1a\x15\x63ommons/message.proto\"\xaf\x03\n\x0fRequestEnvelope\x12\x1e\n\x16\x61pplication_message_id\x18\x01 \x01(\t\x12\"\n\x1a\x61pplication_message_seq_no\x18\x02 \x01(\x03\x12\x1e\n\x16technical_message_type\x18\x03 \x01(\t\x12\x1b\n\x13team_set_context_id\x18\x04 \x01(\t\x12\x36\n\x04mode\x18\x05 \x01(\x0e\x32(.agrirouter.request.RequestEnvelope.Mode\x12\x12\n\nrecipients\x18\x06 \x03(\t\x12\x36\n\nchunk_info\x18\x07 \x01(\x0b\x32\".agrirouter.commons.ChunkComponent\x12-\n\ttimestamp\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\x08metadata\x18\t \x01(\x0b\x32\x1c.agrirouter.commons.Metadata\"8\n\x04Mode\x12\n\n\x06\x44IRECT\x10\x00\x12\x0b\n\x07PUBLISH\x10\x01\x12\x17\n\x13PUBLISH_WITH_DIRECT\x10\x02\">\n\x15RequestPayloadWrapper\x12%\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Anyb\x06proto3' + serialized_pb=b'\n\x1fmessaging/request/request.proto\x12\x12\x61grirouter.request\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x13\x63ommons/chunk.proto\x1a\x15\x63ommons/message.proto\"\xaf\x03\n\x0fRequestEnvelope\x12\x1e\n\x16\x61pplication_message_id\x18\x01 \x01(\t\x12\"\n\x1a\x61pplication_message_seq_no\x18\x02 \x01(\x03\x12\x1e\n\x16technical_message_type\x18\x03 \x01(\t\x12\x1b\n\x13team_set_context_id\x18\x04 \x01(\t\x12\x36\n\x04mode\x18\x05 \x01(\x0e\x32(.src.request.RequestEnvelope.Mode\x12\x12\n\nrecipients\x18\x06 \x03(\t\x12\x36\n\nchunk_info\x18\x07 \x01(\x0b\x32\".src.commons.ChunkComponent\x12-\n\ttimestamp\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\x08metadata\x18\t \x01(\x0b\x32\x1c.src.commons.Metadata\"8\n\x04Mode\x12\n\n\x06\x44IRECT\x10\x00\x12\x0b\n\x07PUBLISH\x10\x01\x12\x17\n\x13PUBLISH_WITH_DIRECT\x10\x02\">\n\x15RequestPayloadWrapper\x12%\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Anyb\x06proto3' , dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR, google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, commons_dot_chunk__pb2.DESCRIPTOR, commons_dot_message__pb2.DESCRIPTOR, ]) _REQUESTENVELOPE_MODE = _descriptor.EnumDescriptor( name='Mode', - full_name='agrirouter.request.RequestEnvelope.Mode', + full_name='src.request.RequestEnvelope.Mode', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, @@ -59,14 +59,14 @@ _REQUESTENVELOPE = _descriptor.Descriptor( name='RequestEnvelope', - full_name='agrirouter.request.RequestEnvelope', + full_name='src.request.RequestEnvelope', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='application_message_id', full_name='agrirouter.request.RequestEnvelope.application_message_id', + name='application_message_id', full_name='src.request.RequestEnvelope.application_message_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -75,14 +75,14 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='application_message_seq_no', - full_name='agrirouter.request.RequestEnvelope.application_message_seq_no', index=1, + full_name='src.request.RequestEnvelope.application_message_seq_no', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='technical_message_type', full_name='agrirouter.request.RequestEnvelope.technical_message_type', + name='technical_message_type', full_name='src.request.RequestEnvelope.technical_message_type', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -90,42 +90,42 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='team_set_context_id', full_name='agrirouter.request.RequestEnvelope.team_set_context_id', index=3, + name='team_set_context_id', full_name='src.request.RequestEnvelope.team_set_context_id', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='mode', full_name='agrirouter.request.RequestEnvelope.mode', index=4, + name='mode', full_name='src.request.RequestEnvelope.mode', index=4, number=5, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='recipients', full_name='agrirouter.request.RequestEnvelope.recipients', index=5, + name='recipients', full_name='src.request.RequestEnvelope.recipients', index=5, number=6, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='chunk_info', full_name='agrirouter.request.RequestEnvelope.chunk_info', index=6, + name='chunk_info', full_name='src.request.RequestEnvelope.chunk_info', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='timestamp', full_name='agrirouter.request.RequestEnvelope.timestamp', index=7, + name='timestamp', full_name='src.request.RequestEnvelope.timestamp', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='metadata', full_name='agrirouter.request.RequestEnvelope.metadata', index=8, + name='metadata', full_name='src.request.RequestEnvelope.metadata', index=8, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -150,14 +150,14 @@ _REQUESTPAYLOADWRAPPER = _descriptor.Descriptor( name='RequestPayloadWrapper', - full_name='agrirouter.request.RequestPayloadWrapper', + full_name='src.request.RequestPayloadWrapper', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='details', full_name='agrirouter.request.RequestPayloadWrapper.details', index=0, + name='details', full_name='src.request.RequestPayloadWrapper.details', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -192,14 +192,14 @@ RequestEnvelope = _reflection.GeneratedProtocolMessageType('RequestEnvelope', (_message.Message,), { 'DESCRIPTOR': _REQUESTENVELOPE, '__module__': 'messaging.request.request_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.request.RequestEnvelope) + # @@protoc_insertion_point(class_scope:src.request.RequestEnvelope) }) _sym_db.RegisterMessage(RequestEnvelope) RequestPayloadWrapper = _reflection.GeneratedProtocolMessageType('RequestPayloadWrapper', (_message.Message,), { 'DESCRIPTOR': _REQUESTPAYLOADWRAPPER, '__module__': 'messaging.request.request_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.request.RequestPayloadWrapper) + # @@protoc_insertion_point(class_scope:src.request.RequestPayloadWrapper) }) _sym_db.RegisterMessage(RequestPayloadWrapper) diff --git a/agrirouter/generated/messaging/response/payload/__init__.py b/src/generated/messaging/response/__init__.py similarity index 100% rename from agrirouter/generated/messaging/response/payload/__init__.py rename to src/generated/messaging/response/__init__.py diff --git a/agrirouter/generated/messaging/response/payload/account/__init__.py b/src/generated/messaging/response/payload/__init__.py similarity index 100% rename from agrirouter/generated/messaging/response/payload/account/__init__.py rename to src/generated/messaging/response/payload/__init__.py diff --git a/agrirouter/generated/messaging/response/payload/endpoint/__init__.py b/src/generated/messaging/response/payload/account/__init__.py similarity index 100% rename from agrirouter/generated/messaging/response/payload/endpoint/__init__.py rename to src/generated/messaging/response/payload/account/__init__.py diff --git a/agrirouter/generated/messaging/response/payload/account/endpoints_pb2.py b/src/generated/messaging/response/payload/account/endpoints_pb2.py similarity index 76% rename from agrirouter/generated/messaging/response/payload/account/endpoints_pb2.py rename to src/generated/messaging/response/payload/account/endpoints_pb2.py index 4b4ec2bd..052cfcaf 100644 --- a/agrirouter/generated/messaging/response/payload/account/endpoints_pb2.py +++ b/src/generated/messaging/response/payload/account/endpoints_pb2.py @@ -13,16 +13,16 @@ DESCRIPTOR = _descriptor.FileDescriptor( name='messaging/response/payload/account/endpoints.proto', - package='agrirouter.response.payload.account', + package='src.response.payload.account', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n2messaging/response/payload/account/endpoints.proto\x12#agrirouter.response.payload.account\"\x82\x04\n\x15ListEndpointsResponse\x12V\n\tendpoints\x18\x01 \x03(\x0b\x32\x43.agrirouter.response.payload.account.ListEndpointsResponse.Endpoint\x1a\x86\x01\n\x0bMessageType\x12\x1e\n\x16technical_message_type\x18\x01 \x01(\t\x12W\n\tdirection\x18\x02 \x01(\x0e\x32\x44.agrirouter.response.payload.account.ListEndpointsResponse.Direction\x1a\xd1\x01\n\x08\x45ndpoint\x12\x13\n\x0b\x65ndpoint_id\x18\x01 \x01(\t\x12\x15\n\rendpoint_name\x18\x02 \x01(\t\x12\x15\n\rendpoint_type\x18\x03 \x01(\t\x12\x0e\n\x06status\x18\x04 \x01(\t\x12]\n\rmessage_types\x18\x05 \x03(\x0b\x32\x46.agrirouter.response.payload.account.ListEndpointsResponse.MessageType\x12\x13\n\x0b\x65xternal_id\x18\x06 \x01(\t\"4\n\tDirection\x12\x08\n\x04SEND\x10\x00\x12\x0b\n\x07RECEIVE\x10\x01\x12\x10\n\x0cSEND_RECEIVE\x10\x02\x62\x06proto3' + serialized_pb=b'\n2messaging/response/payload/account/endpoints.proto\x12#src.response.payload.account\"\x82\x04\n\x15ListEndpointsResponse\x12V\n\tendpoints\x18\x01 \x03(\x0b\x32\x43.src.response.payload.account.ListEndpointsResponse.Endpoint\x1a\x86\x01\n\x0bMessageType\x12\x1e\n\x16technical_message_type\x18\x01 \x01(\t\x12W\n\tdirection\x18\x02 \x01(\x0e\x32\x44.src.response.payload.account.ListEndpointsResponse.Direction\x1a\xd1\x01\n\x08\x45ndpoint\x12\x13\n\x0b\x65ndpoint_id\x18\x01 \x01(\t\x12\x15\n\rendpoint_name\x18\x02 \x01(\t\x12\x15\n\rendpoint_type\x18\x03 \x01(\t\x12\x0e\n\x06status\x18\x04 \x01(\t\x12]\n\rmessage_types\x18\x05 \x03(\x0b\x32\x46.src.response.payload.account.ListEndpointsResponse.MessageType\x12\x13\n\x0b\x65xternal_id\x18\x06 \x01(\t\"4\n\tDirection\x12\x08\n\x04SEND\x10\x00\x12\x0b\n\x07RECEIVE\x10\x01\x12\x10\n\x0cSEND_RECEIVE\x10\x02\x62\x06proto3' ) _LISTENDPOINTSRESPONSE_DIRECTION = _descriptor.EnumDescriptor( name='Direction', - full_name='agrirouter.response.payload.account.ListEndpointsResponse.Direction', + full_name='src.response.payload.account.ListEndpointsResponse.Direction', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, @@ -52,7 +52,7 @@ _LISTENDPOINTSRESPONSE_MESSAGETYPE = _descriptor.Descriptor( name='MessageType', - full_name='agrirouter.response.payload.account.ListEndpointsResponse.MessageType', + full_name='src.response.payload.account.ListEndpointsResponse.MessageType', filename=None, file=DESCRIPTOR, containing_type=None, @@ -60,7 +60,7 @@ fields=[ _descriptor.FieldDescriptor( name='technical_message_type', - full_name='agrirouter.response.payload.account.ListEndpointsResponse.MessageType.technical_message_type', + full_name='src.response.payload.account.ListEndpointsResponse.MessageType.technical_message_type', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -69,7 +69,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='direction', - full_name='agrirouter.response.payload.account.ListEndpointsResponse.MessageType.direction', index=1, + full_name='src.response.payload.account.ListEndpointsResponse.MessageType.direction', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -93,7 +93,7 @@ _LISTENDPOINTSRESPONSE_ENDPOINT = _descriptor.Descriptor( name='Endpoint', - full_name='agrirouter.response.payload.account.ListEndpointsResponse.Endpoint', + full_name='src.response.payload.account.ListEndpointsResponse.Endpoint', filename=None, file=DESCRIPTOR, containing_type=None, @@ -101,7 +101,7 @@ fields=[ _descriptor.FieldDescriptor( name='endpoint_id', - full_name='agrirouter.response.payload.account.ListEndpointsResponse.Endpoint.endpoint_id', index=0, + full_name='src.response.payload.account.ListEndpointsResponse.Endpoint.endpoint_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -109,7 +109,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='endpoint_name', - full_name='agrirouter.response.payload.account.ListEndpointsResponse.Endpoint.endpoint_name', index=1, + full_name='src.response.payload.account.ListEndpointsResponse.Endpoint.endpoint_name', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -117,14 +117,14 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='endpoint_type', - full_name='agrirouter.response.payload.account.ListEndpointsResponse.Endpoint.endpoint_type', index=2, + full_name='src.response.payload.account.ListEndpointsResponse.Endpoint.endpoint_type', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='status', full_name='agrirouter.response.payload.account.ListEndpointsResponse.Endpoint.status', + name='status', full_name='src.response.payload.account.ListEndpointsResponse.Endpoint.status', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -133,7 +133,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='message_types', - full_name='agrirouter.response.payload.account.ListEndpointsResponse.Endpoint.message_types', index=4, + full_name='src.response.payload.account.ListEndpointsResponse.Endpoint.message_types', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -141,7 +141,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='external_id', - full_name='agrirouter.response.payload.account.ListEndpointsResponse.Endpoint.external_id', index=5, + full_name='src.response.payload.account.ListEndpointsResponse.Endpoint.external_id', index=5, number=6, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -165,14 +165,14 @@ _LISTENDPOINTSRESPONSE = _descriptor.Descriptor( name='ListEndpointsResponse', - full_name='agrirouter.response.payload.account.ListEndpointsResponse', + full_name='src.response.payload.account.ListEndpointsResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='endpoints', full_name='agrirouter.response.payload.account.ListEndpointsResponse.endpoints', index=0, + name='endpoints', full_name='src.response.payload.account.ListEndpointsResponse.endpoints', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -209,19 +209,19 @@ 'MessageType': _reflection.GeneratedProtocolMessageType('MessageType', (_message.Message,), { 'DESCRIPTOR': _LISTENDPOINTSRESPONSE_MESSAGETYPE, '__module__': 'messaging.response.payload.account.endpoints_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.response.payload.account.ListEndpointsResponse.MessageType) + # @@protoc_insertion_point(class_scope:src.response.payload.account.ListEndpointsResponse.MessageType) }) , 'Endpoint': _reflection.GeneratedProtocolMessageType('Endpoint', (_message.Message,), { 'DESCRIPTOR': _LISTENDPOINTSRESPONSE_ENDPOINT, '__module__': 'messaging.response.payload.account.endpoints_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.response.payload.account.ListEndpointsResponse.Endpoint) + # @@protoc_insertion_point(class_scope:src.response.payload.account.ListEndpointsResponse.Endpoint) }) , 'DESCRIPTOR': _LISTENDPOINTSRESPONSE, '__module__': 'messaging.response.payload.account.endpoints_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.response.payload.account.ListEndpointsResponse) + # @@protoc_insertion_point(class_scope:src.response.payload.account.ListEndpointsResponse) }) _sym_db.RegisterMessage(ListEndpointsResponse) _sym_db.RegisterMessage(ListEndpointsResponse.MessageType) diff --git a/agrirouter/generated/messaging/response/payload/feed/__init__.py b/src/generated/messaging/response/payload/endpoint/__init__.py similarity index 100% rename from agrirouter/generated/messaging/response/payload/feed/__init__.py rename to src/generated/messaging/response/payload/endpoint/__init__.py diff --git a/agrirouter/generated/messaging/response/payload/endpoint/capability_pb2.py b/src/generated/messaging/response/payload/endpoint/capability_pb2.py similarity index 76% rename from agrirouter/generated/messaging/response/payload/endpoint/capability_pb2.py rename to src/generated/messaging/response/payload/endpoint/capability_pb2.py index 8020270e..56e2a2a4 100644 --- a/agrirouter/generated/messaging/response/payload/endpoint/capability_pb2.py +++ b/src/generated/messaging/response/payload/endpoint/capability_pb2.py @@ -13,23 +13,23 @@ DESCRIPTOR = _descriptor.FileDescriptor( name='messaging/response/payload/endpoint/capability.proto', - package='agrirouter.response.payload.endpoint', + package='src.response.payload.endpoint', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n4messaging/response/payload/endpoint/capability.proto\x12$agrirouter.response.payload.endpoint\"\xc5\x01\n\x12\x43\x61pabilityResponse\x12\x1e\n\x16\x61pplication_message_id\x18\x01 \x01(\t\x12V\n\nrecipients\x18\x02 \x03(\x0b\x32\x42.agrirouter.response.payload.endpoint.CapabilityResponse.Recipient\x1a\x37\n\tRecipient\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1e\n\x16technical_message_type\x18\x02 \x03(\tb\x06proto3' + serialized_pb=b'\n4messaging/response/payload/endpoint/capability.proto\x12$src.response.payload.endpoint\"\xc5\x01\n\x12\x43\x61pabilityResponse\x12\x1e\n\x16\x61pplication_message_id\x18\x01 \x01(\t\x12V\n\nrecipients\x18\x02 \x03(\x0b\x32\x42.src.response.payload.endpoint.CapabilityResponse.Recipient\x1a\x37\n\tRecipient\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1e\n\x16technical_message_type\x18\x02 \x03(\tb\x06proto3' ) _CAPABILITYRESPONSE_RECIPIENT = _descriptor.Descriptor( name='Recipient', - full_name='agrirouter.response.payload.endpoint.CapabilityResponse.Recipient', + full_name='src.response.payload.endpoint.CapabilityResponse.Recipient', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='id', full_name='agrirouter.response.payload.endpoint.CapabilityResponse.Recipient.id', index=0, + name='id', full_name='src.response.payload.endpoint.CapabilityResponse.Recipient.id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -37,7 +37,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='technical_message_type', - full_name='agrirouter.response.payload.endpoint.CapabilityResponse.Recipient.technical_message_type', + full_name='src.response.payload.endpoint.CapabilityResponse.Recipient.technical_message_type', index=1, number=2, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], @@ -62,7 +62,7 @@ _CAPABILITYRESPONSE = _descriptor.Descriptor( name='CapabilityResponse', - full_name='agrirouter.response.payload.endpoint.CapabilityResponse', + full_name='src.response.payload.endpoint.CapabilityResponse', filename=None, file=DESCRIPTOR, containing_type=None, @@ -70,14 +70,14 @@ fields=[ _descriptor.FieldDescriptor( name='application_message_id', - full_name='agrirouter.response.payload.endpoint.CapabilityResponse.application_message_id', index=0, + full_name='src.response.payload.endpoint.CapabilityResponse.application_message_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='recipients', full_name='agrirouter.response.payload.endpoint.CapabilityResponse.recipients', index=1, + name='recipients', full_name='src.response.payload.endpoint.CapabilityResponse.recipients', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -109,12 +109,12 @@ 'Recipient': _reflection.GeneratedProtocolMessageType('Recipient', (_message.Message,), { 'DESCRIPTOR': _CAPABILITYRESPONSE_RECIPIENT, '__module__': 'messaging.response.payload.endpoint.capability_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient) + # @@protoc_insertion_point(class_scope:src.response.payload.endpoint.CapabilityResponse.Recipient) }) , 'DESCRIPTOR': _CAPABILITYRESPONSE, '__module__': 'messaging.response.payload.endpoint.capability_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.response.payload.endpoint.CapabilityResponse) + # @@protoc_insertion_point(class_scope:src.response.payload.endpoint.CapabilityResponse) }) _sym_db.RegisterMessage(CapabilityResponse) _sym_db.RegisterMessage(CapabilityResponse.Recipient) diff --git a/agrirouter/generated/settings/__init__.py b/src/generated/messaging/response/payload/feed/__init__.py similarity index 100% rename from agrirouter/generated/settings/__init__.py rename to src/generated/messaging/response/payload/feed/__init__.py diff --git a/agrirouter/generated/messaging/response/payload/feed/feed_response_pb2.py b/src/generated/messaging/response/payload/feed/feed_response_pb2.py similarity index 75% rename from agrirouter/generated/messaging/response/payload/feed/feed_response_pb2.py rename to src/generated/messaging/response/payload/feed/feed_response_pb2.py index eae3a144..6ffaadc0 100644 --- a/agrirouter/generated/messaging/response/payload/feed/feed_response_pb2.py +++ b/src/generated/messaging/response/payload/feed/feed_response_pb2.py @@ -13,37 +13,37 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 -from agrirouter.generated.commons import message_pb2 as commons_dot_message__pb2 -from agrirouter.generated.commons import chunk_pb2 as commons_dot_chunk__pb2 +from src.generated.commons import message_pb2 as commons_dot_message__pb2 +from src.generated.commons import chunk_pb2 as commons_dot_chunk__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='messaging/response/payload/feed/feed-response.proto', - package='agrirouter.feed.response', + package='src.feed.response', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n3messaging/response/payload/feed/feed-response.proto\x12\x18\x61grirouter.feed.response\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x15\x63ommons/message.proto\x1a\x13\x63ommons/chunk.proto\"%\n\x04Page\x12\x0e\n\x06number\x18\x01 \x01(\x05\x12\r\n\x05total\x18\x02 \x01(\x05\"N\n\x0cQueryMetrics\x12\x1f\n\x17total_messages_in_query\x18\x01 \x01(\x05\x12\x1d\n\x15max_count_restriction\x18\x02 \x01(\x05\"\xe8\x05\n\x13HeaderQueryResponse\x12=\n\rquery_metrics\x18\x01 \x01(\x0b\x32&.agrirouter.feed.response.QueryMetrics\x12,\n\x04page\x18\x02 \x01(\x0b\x32\x1e.agrirouter.feed.response.Page\x12:\n\x0e\x63hunk_contexts\x18\x03 \x03(\x0b\x32\".agrirouter.commons.ChunkComponent\x12@\n\x04\x66\x65\x65\x64\x18\x04 \x03(\x0b\x32\x32.agrirouter.feed.response.HeaderQueryResponse.Feed\x12\x1f\n\x13pending_message_ids\x18\x05 \x03(\tB\x02\x18\x01\x1a\xcd\x02\n\x06Header\x12\x12\n\nmessage_id\x18\x01 \x01(\t\x12\x1e\n\x16technical_message_type\x18\x02 \x01(\t\x12\x1b\n\x13team_set_context_id\x18\x03 \x01(\t\x12\x18\n\x10\x63hunk_context_id\x18\x04 \x01(\t\x12\x14\n\x0cpayload_size\x18\x05 \x01(\x03\x12\x32\n\x0esent_timestamp\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fsequence_number\x18\x07 \x01(\x03\x12\x15\n\rcurrent_chunk\x18\x08 \x01(\x03\x12.\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\x08metadata\x18\n \x01(\x0b\x32\x1c.agrirouter.commons.Metadata\x1au\n\x04\x46\x65\x65\x64\x12\x11\n\tsender_id\x18\x01 \x01(\t\x12\x13\n\x0breceiver_id\x18\x02 \x01(\t\x12\x45\n\x07headers\x18\x03 \x03(\x0b\x32\x34.agrirouter.feed.response.HeaderQueryResponse.Header\"\xd0\x05\n\x14MessageQueryResponse\x12=\n\rquery_metrics\x18\x01 \x01(\x0b\x32&.agrirouter.feed.response.QueryMetrics\x12,\n\x04page\x18\x02 \x01(\x0b\x32\x1e.agrirouter.feed.response.Page\x12L\n\x08messages\x18\x03 \x03(\x0b\x32:.agrirouter.feed.response.MessageQueryResponse.FeedMessage\x1a\xff\x02\n\x06Header\x12\x13\n\x0breceiver_id\x18\x01 \x01(\t\x12\x1e\n\x16technical_message_type\x18\x02 \x01(\t\x12\x1b\n\x13team_set_context_id\x18\x03 \x01(\t\x12\x39\n\rchunk_context\x18\x04 \x01(\x0b\x32\".agrirouter.commons.ChunkComponent\x12\x14\n\x0cpayload_size\x18\x05 \x01(\x03\x12\x32\n\x0esent_timestamp\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fsequence_number\x18\x07 \x01(\x03\x12\x11\n\tsender_id\x18\x08 \x01(\t\x12.\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nmessage_id\x18\n \x01(\t\x12.\n\x08metadata\x18\x0b \x01(\x0b\x32\x1c.agrirouter.commons.Metadata\x1a{\n\x0b\x46\x65\x65\x64Message\x12\x45\n\x06header\x18\x01 \x01(\x0b\x32\x35.agrirouter.feed.response.MessageQueryResponse.Header\x12%\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any\"\x96\x03\n\x1a\x46\x61iledMessageQueryResponse\x12=\n\rquery_metrics\x18\x01 \x01(\x0b\x32&.agrirouter.feed.response.QueryMetrics\x12,\n\x04page\x18\x02 \x01(\x0b\x32\x1e.agrirouter.feed.response.Page\x12K\n\x06header\x18\x03 \x01(\x0b\x32;.agrirouter.feed.response.FailedMessageQueryResponse.Header\x12,\n\x07reasons\x18\x04 \x03(\x0b\x32\x1b.agrirouter.commons.Message\x1a\x8f\x01\n\x06Header\x12\x1e\n\x16technical_message_type\x18\x01 \x01(\t\x12\x1b\n\x13team_set_context_id\x18\x02 \x01(\t\x12\x14\n\x0cpayload_size\x18\x03 \x01(\x03\x12\x32\n\x0esent_timestamp\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestampb\x06proto3' + serialized_pb=b'\n3messaging/response/payload/feed/feed-response.proto\x12\x18\x61grirouter.feed.response\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x15\x63ommons/message.proto\x1a\x13\x63ommons/chunk.proto\"%\n\x04Page\x12\x0e\n\x06number\x18\x01 \x01(\x05\x12\r\n\x05total\x18\x02 \x01(\x05\"N\n\x0cQueryMetrics\x12\x1f\n\x17total_messages_in_query\x18\x01 \x01(\x05\x12\x1d\n\x15max_count_restriction\x18\x02 \x01(\x05\"\xe8\x05\n\x13HeaderQueryResponse\x12=\n\rquery_metrics\x18\x01 \x01(\x0b\x32&.src.feed.response.QueryMetrics\x12,\n\x04page\x18\x02 \x01(\x0b\x32\x1e.src.feed.response.Page\x12:\n\x0e\x63hunk_contexts\x18\x03 \x03(\x0b\x32\".src.commons.ChunkComponent\x12@\n\x04\x66\x65\x65\x64\x18\x04 \x03(\x0b\x32\x32.src.feed.response.HeaderQueryResponse.Feed\x12\x1f\n\x13pending_message_ids\x18\x05 \x03(\tB\x02\x18\x01\x1a\xcd\x02\n\x06Header\x12\x12\n\nmessage_id\x18\x01 \x01(\t\x12\x1e\n\x16technical_message_type\x18\x02 \x01(\t\x12\x1b\n\x13team_set_context_id\x18\x03 \x01(\t\x12\x18\n\x10\x63hunk_context_id\x18\x04 \x01(\t\x12\x14\n\x0cpayload_size\x18\x05 \x01(\x03\x12\x32\n\x0esent_timestamp\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fsequence_number\x18\x07 \x01(\x03\x12\x15\n\rcurrent_chunk\x18\x08 \x01(\x03\x12.\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\x08metadata\x18\n \x01(\x0b\x32\x1c.src.commons.Metadata\x1au\n\x04\x46\x65\x65\x64\x12\x11\n\tsender_id\x18\x01 \x01(\t\x12\x13\n\x0breceiver_id\x18\x02 \x01(\t\x12\x45\n\x07headers\x18\x03 \x03(\x0b\x32\x34.src.feed.response.HeaderQueryResponse.Header\"\xd0\x05\n\x14MessageQueryResponse\x12=\n\rquery_metrics\x18\x01 \x01(\x0b\x32&.src.feed.response.QueryMetrics\x12,\n\x04page\x18\x02 \x01(\x0b\x32\x1e.src.feed.response.Page\x12L\n\x08messages\x18\x03 \x03(\x0b\x32:.src.feed.response.MessageQueryResponse.FeedMessage\x1a\xff\x02\n\x06Header\x12\x13\n\x0breceiver_id\x18\x01 \x01(\t\x12\x1e\n\x16technical_message_type\x18\x02 \x01(\t\x12\x1b\n\x13team_set_context_id\x18\x03 \x01(\t\x12\x39\n\rchunk_context\x18\x04 \x01(\x0b\x32\".src.commons.ChunkComponent\x12\x14\n\x0cpayload_size\x18\x05 \x01(\x03\x12\x32\n\x0esent_timestamp\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fsequence_number\x18\x07 \x01(\x03\x12\x11\n\tsender_id\x18\x08 \x01(\t\x12.\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nmessage_id\x18\n \x01(\t\x12.\n\x08metadata\x18\x0b \x01(\x0b\x32\x1c.src.commons.Metadata\x1a{\n\x0b\x46\x65\x65\x64Message\x12\x45\n\x06header\x18\x01 \x01(\x0b\x32\x35.src.feed.response.MessageQueryResponse.Header\x12%\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any\"\x96\x03\n\x1a\x46\x61iledMessageQueryResponse\x12=\n\rquery_metrics\x18\x01 \x01(\x0b\x32&.src.feed.response.QueryMetrics\x12,\n\x04page\x18\x02 \x01(\x0b\x32\x1e.src.feed.response.Page\x12K\n\x06header\x18\x03 \x01(\x0b\x32;.src.feed.response.FailedMessageQueryResponse.Header\x12,\n\x07reasons\x18\x04 \x03(\x0b\x32\x1b.src.commons.Message\x1a\x8f\x01\n\x06Header\x12\x1e\n\x16technical_message_type\x18\x01 \x01(\t\x12\x1b\n\x13team_set_context_id\x18\x02 \x01(\t\x12\x14\n\x0cpayload_size\x18\x03 \x01(\x03\x12\x32\n\x0esent_timestamp\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestampb\x06proto3' , dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, google_dot_protobuf_dot_any__pb2.DESCRIPTOR, commons_dot_message__pb2.DESCRIPTOR, commons_dot_chunk__pb2.DESCRIPTOR, ]) _PAGE = _descriptor.Descriptor( name='Page', - full_name='agrirouter.feed.response.Page', + full_name='src.feed.response.Page', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='number', full_name='agrirouter.feed.response.Page.number', index=0, + name='number', full_name='src.feed.response.Page.number', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='total', full_name='agrirouter.feed.response.Page.total', index=1, + name='total', full_name='src.feed.response.Page.total', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -67,14 +67,14 @@ _QUERYMETRICS = _descriptor.Descriptor( name='QueryMetrics', - full_name='agrirouter.feed.response.QueryMetrics', + full_name='src.feed.response.QueryMetrics', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='total_messages_in_query', full_name='agrirouter.feed.response.QueryMetrics.total_messages_in_query', + name='total_messages_in_query', full_name='src.feed.response.QueryMetrics.total_messages_in_query', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, @@ -82,7 +82,7 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='max_count_restriction', full_name='agrirouter.feed.response.QueryMetrics.max_count_restriction', + name='max_count_restriction', full_name='src.feed.response.QueryMetrics.max_count_restriction', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, @@ -107,14 +107,14 @@ _HEADERQUERYRESPONSE_HEADER = _descriptor.Descriptor( name='Header', - full_name='agrirouter.feed.response.HeaderQueryResponse.Header', + full_name='src.feed.response.HeaderQueryResponse.Header', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='message_id', full_name='agrirouter.feed.response.HeaderQueryResponse.Header.message_id', index=0, + name='message_id', full_name='src.feed.response.HeaderQueryResponse.Header.message_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -122,7 +122,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='technical_message_type', - full_name='agrirouter.feed.response.HeaderQueryResponse.Header.technical_message_type', index=1, + full_name='src.feed.response.HeaderQueryResponse.Header.technical_message_type', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -130,14 +130,14 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='team_set_context_id', - full_name='agrirouter.feed.response.HeaderQueryResponse.Header.team_set_context_id', index=2, + full_name='src.feed.response.HeaderQueryResponse.Header.team_set_context_id', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='chunk_context_id', full_name='agrirouter.feed.response.HeaderQueryResponse.Header.chunk_context_id', + name='chunk_context_id', full_name='src.feed.response.HeaderQueryResponse.Header.chunk_context_id', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -145,14 +145,14 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='payload_size', full_name='agrirouter.feed.response.HeaderQueryResponse.Header.payload_size', index=4, + name='payload_size', full_name='src.feed.response.HeaderQueryResponse.Header.payload_size', index=4, number=5, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='sent_timestamp', full_name='agrirouter.feed.response.HeaderQueryResponse.Header.sent_timestamp', + name='sent_timestamp', full_name='src.feed.response.HeaderQueryResponse.Header.sent_timestamp', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, @@ -160,7 +160,7 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='sequence_number', full_name='agrirouter.feed.response.HeaderQueryResponse.Header.sequence_number', + name='sequence_number', full_name='src.feed.response.HeaderQueryResponse.Header.sequence_number', index=6, number=7, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, @@ -168,7 +168,7 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='current_chunk', full_name='agrirouter.feed.response.HeaderQueryResponse.Header.current_chunk', + name='current_chunk', full_name='src.feed.response.HeaderQueryResponse.Header.current_chunk', index=7, number=8, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, @@ -176,14 +176,14 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='created_at', full_name='agrirouter.feed.response.HeaderQueryResponse.Header.created_at', index=8, + name='created_at', full_name='src.feed.response.HeaderQueryResponse.Header.created_at', index=8, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='metadata', full_name='agrirouter.feed.response.HeaderQueryResponse.Header.metadata', index=9, + name='metadata', full_name='src.feed.response.HeaderQueryResponse.Header.metadata', index=9, number=10, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -207,28 +207,28 @@ _HEADERQUERYRESPONSE_FEED = _descriptor.Descriptor( name='Feed', - full_name='agrirouter.feed.response.HeaderQueryResponse.Feed', + full_name='src.feed.response.HeaderQueryResponse.Feed', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='sender_id', full_name='agrirouter.feed.response.HeaderQueryResponse.Feed.sender_id', index=0, + name='sender_id', full_name='src.feed.response.HeaderQueryResponse.Feed.sender_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='receiver_id', full_name='agrirouter.feed.response.HeaderQueryResponse.Feed.receiver_id', index=1, + name='receiver_id', full_name='src.feed.response.HeaderQueryResponse.Feed.receiver_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='headers', full_name='agrirouter.feed.response.HeaderQueryResponse.Feed.headers', index=2, + name='headers', full_name='src.feed.response.HeaderQueryResponse.Feed.headers', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -252,42 +252,42 @@ _HEADERQUERYRESPONSE = _descriptor.Descriptor( name='HeaderQueryResponse', - full_name='agrirouter.feed.response.HeaderQueryResponse', + full_name='src.feed.response.HeaderQueryResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='query_metrics', full_name='agrirouter.feed.response.HeaderQueryResponse.query_metrics', index=0, + name='query_metrics', full_name='src.feed.response.HeaderQueryResponse.query_metrics', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='page', full_name='agrirouter.feed.response.HeaderQueryResponse.page', index=1, + name='page', full_name='src.feed.response.HeaderQueryResponse.page', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='chunk_contexts', full_name='agrirouter.feed.response.HeaderQueryResponse.chunk_contexts', index=2, + name='chunk_contexts', full_name='src.feed.response.HeaderQueryResponse.chunk_contexts', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='feed', full_name='agrirouter.feed.response.HeaderQueryResponse.feed', index=3, + name='feed', full_name='src.feed.response.HeaderQueryResponse.feed', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='pending_message_ids', full_name='agrirouter.feed.response.HeaderQueryResponse.pending_message_ids', + name='pending_message_ids', full_name='src.feed.response.HeaderQueryResponse.pending_message_ids', index=4, number=5, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], @@ -312,14 +312,14 @@ _MESSAGEQUERYRESPONSE_HEADER = _descriptor.Descriptor( name='Header', - full_name='agrirouter.feed.response.MessageQueryResponse.Header', + full_name='src.feed.response.MessageQueryResponse.Header', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='receiver_id', full_name='agrirouter.feed.response.MessageQueryResponse.Header.receiver_id', index=0, + name='receiver_id', full_name='src.feed.response.MessageQueryResponse.Header.receiver_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -327,7 +327,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='technical_message_type', - full_name='agrirouter.feed.response.MessageQueryResponse.Header.technical_message_type', index=1, + full_name='src.feed.response.MessageQueryResponse.Header.technical_message_type', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -335,14 +335,14 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='team_set_context_id', - full_name='agrirouter.feed.response.MessageQueryResponse.Header.team_set_context_id', index=2, + full_name='src.feed.response.MessageQueryResponse.Header.team_set_context_id', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='chunk_context', full_name='agrirouter.feed.response.MessageQueryResponse.Header.chunk_context', + name='chunk_context', full_name='src.feed.response.MessageQueryResponse.Header.chunk_context', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, @@ -350,14 +350,14 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='payload_size', full_name='agrirouter.feed.response.MessageQueryResponse.Header.payload_size', index=4, + name='payload_size', full_name='src.feed.response.MessageQueryResponse.Header.payload_size', index=4, number=5, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='sent_timestamp', full_name='agrirouter.feed.response.MessageQueryResponse.Header.sent_timestamp', + name='sent_timestamp', full_name='src.feed.response.MessageQueryResponse.Header.sent_timestamp', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, @@ -365,7 +365,7 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='sequence_number', full_name='agrirouter.feed.response.MessageQueryResponse.Header.sequence_number', + name='sequence_number', full_name='src.feed.response.MessageQueryResponse.Header.sequence_number', index=6, number=7, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, @@ -373,28 +373,28 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='sender_id', full_name='agrirouter.feed.response.MessageQueryResponse.Header.sender_id', index=7, + name='sender_id', full_name='src.feed.response.MessageQueryResponse.Header.sender_id', index=7, number=8, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='created_at', full_name='agrirouter.feed.response.MessageQueryResponse.Header.created_at', index=8, + name='created_at', full_name='src.feed.response.MessageQueryResponse.Header.created_at', index=8, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='message_id', full_name='agrirouter.feed.response.MessageQueryResponse.Header.message_id', index=9, + name='message_id', full_name='src.feed.response.MessageQueryResponse.Header.message_id', index=9, number=10, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='metadata', full_name='agrirouter.feed.response.MessageQueryResponse.Header.metadata', index=10, + name='metadata', full_name='src.feed.response.MessageQueryResponse.Header.metadata', index=10, number=11, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -418,21 +418,21 @@ _MESSAGEQUERYRESPONSE_FEEDMESSAGE = _descriptor.Descriptor( name='FeedMessage', - full_name='agrirouter.feed.response.MessageQueryResponse.FeedMessage', + full_name='src.feed.response.MessageQueryResponse.FeedMessage', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='header', full_name='agrirouter.feed.response.MessageQueryResponse.FeedMessage.header', index=0, + name='header', full_name='src.feed.response.MessageQueryResponse.FeedMessage.header', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='content', full_name='agrirouter.feed.response.MessageQueryResponse.FeedMessage.content', index=1, + name='content', full_name='src.feed.response.MessageQueryResponse.FeedMessage.content', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -456,28 +456,28 @@ _MESSAGEQUERYRESPONSE = _descriptor.Descriptor( name='MessageQueryResponse', - full_name='agrirouter.feed.response.MessageQueryResponse', + full_name='src.feed.response.MessageQueryResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='query_metrics', full_name='agrirouter.feed.response.MessageQueryResponse.query_metrics', index=0, + name='query_metrics', full_name='src.feed.response.MessageQueryResponse.query_metrics', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='page', full_name='agrirouter.feed.response.MessageQueryResponse.page', index=1, + name='page', full_name='src.feed.response.MessageQueryResponse.page', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='messages', full_name='agrirouter.feed.response.MessageQueryResponse.messages', index=2, + name='messages', full_name='src.feed.response.MessageQueryResponse.messages', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -501,7 +501,7 @@ _FAILEDMESSAGEQUERYRESPONSE_HEADER = _descriptor.Descriptor( name='Header', - full_name='agrirouter.feed.response.FailedMessageQueryResponse.Header', + full_name='src.feed.response.FailedMessageQueryResponse.Header', filename=None, file=DESCRIPTOR, containing_type=None, @@ -509,7 +509,7 @@ fields=[ _descriptor.FieldDescriptor( name='technical_message_type', - full_name='agrirouter.feed.response.FailedMessageQueryResponse.Header.technical_message_type', index=0, + full_name='src.feed.response.FailedMessageQueryResponse.Header.technical_message_type', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -517,14 +517,14 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='team_set_context_id', - full_name='agrirouter.feed.response.FailedMessageQueryResponse.Header.team_set_context_id', index=1, + full_name='src.feed.response.FailedMessageQueryResponse.Header.team_set_context_id', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='payload_size', full_name='agrirouter.feed.response.FailedMessageQueryResponse.Header.payload_size', + name='payload_size', full_name='src.feed.response.FailedMessageQueryResponse.Header.payload_size', index=2, number=3, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, @@ -533,7 +533,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='sent_timestamp', - full_name='agrirouter.feed.response.FailedMessageQueryResponse.Header.sent_timestamp', index=3, + full_name='src.feed.response.FailedMessageQueryResponse.Header.sent_timestamp', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -557,14 +557,14 @@ _FAILEDMESSAGEQUERYRESPONSE = _descriptor.Descriptor( name='FailedMessageQueryResponse', - full_name='agrirouter.feed.response.FailedMessageQueryResponse', + full_name='src.feed.response.FailedMessageQueryResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='query_metrics', full_name='agrirouter.feed.response.FailedMessageQueryResponse.query_metrics', + name='query_metrics', full_name='src.feed.response.FailedMessageQueryResponse.query_metrics', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, @@ -572,21 +572,21 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='page', full_name='agrirouter.feed.response.FailedMessageQueryResponse.page', index=1, + name='page', full_name='src.feed.response.FailedMessageQueryResponse.page', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='header', full_name='agrirouter.feed.response.FailedMessageQueryResponse.header', index=2, + name='header', full_name='src.feed.response.FailedMessageQueryResponse.header', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='reasons', full_name='agrirouter.feed.response.FailedMessageQueryResponse.reasons', index=3, + name='reasons', full_name='src.feed.response.FailedMessageQueryResponse.reasons', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -650,14 +650,14 @@ Page = _reflection.GeneratedProtocolMessageType('Page', (_message.Message,), { 'DESCRIPTOR': _PAGE, '__module__': 'messaging.response.payload.feed.feed_response_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.response.Page) + # @@protoc_insertion_point(class_scope:src.feed.response.Page) }) _sym_db.RegisterMessage(Page) QueryMetrics = _reflection.GeneratedProtocolMessageType('QueryMetrics', (_message.Message,), { 'DESCRIPTOR': _QUERYMETRICS, '__module__': 'messaging.response.payload.feed.feed_response_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.response.QueryMetrics) + # @@protoc_insertion_point(class_scope:src.feed.response.QueryMetrics) }) _sym_db.RegisterMessage(QueryMetrics) @@ -666,19 +666,19 @@ 'Header': _reflection.GeneratedProtocolMessageType('Header', (_message.Message,), { 'DESCRIPTOR': _HEADERQUERYRESPONSE_HEADER, '__module__': 'messaging.response.payload.feed.feed_response_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.response.HeaderQueryResponse.Header) + # @@protoc_insertion_point(class_scope:src.feed.response.HeaderQueryResponse.Header) }) , 'Feed': _reflection.GeneratedProtocolMessageType('Feed', (_message.Message,), { 'DESCRIPTOR': _HEADERQUERYRESPONSE_FEED, '__module__': 'messaging.response.payload.feed.feed_response_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.response.HeaderQueryResponse.Feed) + # @@protoc_insertion_point(class_scope:src.feed.response.HeaderQueryResponse.Feed) }) , 'DESCRIPTOR': _HEADERQUERYRESPONSE, '__module__': 'messaging.response.payload.feed.feed_response_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.response.HeaderQueryResponse) + # @@protoc_insertion_point(class_scope:src.feed.response.HeaderQueryResponse) }) _sym_db.RegisterMessage(HeaderQueryResponse) _sym_db.RegisterMessage(HeaderQueryResponse.Header) @@ -689,19 +689,19 @@ 'Header': _reflection.GeneratedProtocolMessageType('Header', (_message.Message,), { 'DESCRIPTOR': _MESSAGEQUERYRESPONSE_HEADER, '__module__': 'messaging.response.payload.feed.feed_response_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.response.MessageQueryResponse.Header) + # @@protoc_insertion_point(class_scope:src.feed.response.MessageQueryResponse.Header) }) , 'FeedMessage': _reflection.GeneratedProtocolMessageType('FeedMessage', (_message.Message,), { 'DESCRIPTOR': _MESSAGEQUERYRESPONSE_FEEDMESSAGE, '__module__': 'messaging.response.payload.feed.feed_response_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.response.MessageQueryResponse.FeedMessage) + # @@protoc_insertion_point(class_scope:src.feed.response.MessageQueryResponse.FeedMessage) }) , 'DESCRIPTOR': _MESSAGEQUERYRESPONSE, '__module__': 'messaging.response.payload.feed.feed_response_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.response.MessageQueryResponse) + # @@protoc_insertion_point(class_scope:src.feed.response.MessageQueryResponse) }) _sym_db.RegisterMessage(MessageQueryResponse) _sym_db.RegisterMessage(MessageQueryResponse.Header) @@ -714,12 +714,12 @@ 'Header', (_message.Message,), { 'DESCRIPTOR': _FAILEDMESSAGEQUERYRESPONSE_HEADER, '__module__': 'messaging.response.payload.feed.feed_response_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.response.FailedMessageQueryResponse.Header) + # @@protoc_insertion_point(class_scope:src.feed.response.FailedMessageQueryResponse.Header) }) , 'DESCRIPTOR': _FAILEDMESSAGEQUERYRESPONSE, '__module__': 'messaging.response.payload.feed.feed_response_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.response.FailedMessageQueryResponse) + # @@protoc_insertion_point(class_scope:src.feed.response.FailedMessageQueryResponse) }) _sym_db.RegisterMessage(FailedMessageQueryResponse) _sym_db.RegisterMessage(FailedMessageQueryResponse.Header) diff --git a/agrirouter/generated/messaging/response/payload/feed/push_notification_pb2.py b/src/generated/messaging/response/payload/feed/push_notification_pb2.py similarity index 73% rename from agrirouter/generated/messaging/response/payload/feed/push_notification_pb2.py rename to src/generated/messaging/response/payload/feed/push_notification_pb2.py index 5b159ad9..a8e9acf3 100644 --- a/agrirouter/generated/messaging/response/payload/feed/push_notification_pb2.py +++ b/src/generated/messaging/response/payload/feed/push_notification_pb2.py @@ -13,30 +13,30 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 -from agrirouter.generated.commons import message_pb2 as commons_dot_message__pb2 -from agrirouter.generated.commons import chunk_pb2 as commons_dot_chunk__pb2 +from src.generated.commons import message_pb2 as commons_dot_message__pb2 +from src.generated.commons import chunk_pb2 as commons_dot_chunk__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='messaging/response/payload/feed/push-notification.proto', - package='agrirouter.feed.push.notification', + package='src.feed.push.notification', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n7messaging/response/payload/feed/push-notification.proto\x12!agrirouter.feed.push.notification\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x15\x63ommons/message.proto\x1a\x13\x63ommons/chunk.proto\"\xea\x04\n\x10PushNotification\x12Q\n\x08messages\x18\x01 \x03(\x0b\x32?.agrirouter.feed.push.notification.PushNotification.FeedMessage\x1a\xff\x02\n\x06Header\x12\x13\n\x0breceiver_id\x18\x01 \x01(\t\x12\x1e\n\x16technical_message_type\x18\x02 \x01(\t\x12\x1b\n\x13team_set_context_id\x18\x03 \x01(\t\x12\x39\n\rchunk_context\x18\x04 \x01(\x0b\x32\".agrirouter.commons.ChunkComponent\x12\x14\n\x0cpayload_size\x18\x05 \x01(\x03\x12\x32\n\x0esent_timestamp\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fsequence_number\x18\x07 \x01(\x03\x12\x11\n\tsender_id\x18\x08 \x01(\t\x12.\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nmessage_id\x18\n \x01(\t\x12.\n\x08metadata\x18\x0b \x01(\x0b\x32\x1c.agrirouter.commons.Metadata\x1a\x80\x01\n\x0b\x46\x65\x65\x64Message\x12J\n\x06header\x18\x01 \x01(\x0b\x32:.agrirouter.feed.push.notification.PushNotification.Header\x12%\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Anyb\x06proto3' + serialized_pb=b'\n7messaging/response/payload/feed/push-notification.proto\x12!src.feed.push.notification\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x15\x63ommons/message.proto\x1a\x13\x63ommons/chunk.proto\"\xea\x04\n\x10PushNotification\x12Q\n\x08messages\x18\x01 \x03(\x0b\x32?.src.feed.push.notification.PushNotification.FeedMessage\x1a\xff\x02\n\x06Header\x12\x13\n\x0breceiver_id\x18\x01 \x01(\t\x12\x1e\n\x16technical_message_type\x18\x02 \x01(\t\x12\x1b\n\x13team_set_context_id\x18\x03 \x01(\t\x12\x39\n\rchunk_context\x18\x04 \x01(\x0b\x32\".src.commons.ChunkComponent\x12\x14\n\x0cpayload_size\x18\x05 \x01(\x03\x12\x32\n\x0esent_timestamp\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fsequence_number\x18\x07 \x01(\x03\x12\x11\n\tsender_id\x18\x08 \x01(\t\x12.\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nmessage_id\x18\n \x01(\t\x12.\n\x08metadata\x18\x0b \x01(\x0b\x32\x1c.src.commons.Metadata\x1a\x80\x01\n\x0b\x46\x65\x65\x64Message\x12J\n\x06header\x18\x01 \x01(\x0b\x32:.src.feed.push.notification.PushNotification.Header\x12%\n\x07\x63ontent\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Anyb\x06proto3' , dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, google_dot_protobuf_dot_any__pb2.DESCRIPTOR, commons_dot_message__pb2.DESCRIPTOR, commons_dot_chunk__pb2.DESCRIPTOR, ]) _PUSHNOTIFICATION_HEADER = _descriptor.Descriptor( name='Header', - full_name='agrirouter.feed.push.notification.PushNotification.Header', + full_name='src.feed.push.notification.PushNotification.Header', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='receiver_id', full_name='agrirouter.feed.push.notification.PushNotification.Header.receiver_id', + name='receiver_id', full_name='src.feed.push.notification.PushNotification.Header.receiver_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -45,7 +45,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='technical_message_type', - full_name='agrirouter.feed.push.notification.PushNotification.Header.technical_message_type', index=1, + full_name='src.feed.push.notification.PushNotification.Header.technical_message_type', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -53,14 +53,14 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='team_set_context_id', - full_name='agrirouter.feed.push.notification.PushNotification.Header.team_set_context_id', index=2, + full_name='src.feed.push.notification.PushNotification.Header.team_set_context_id', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='chunk_context', full_name='agrirouter.feed.push.notification.PushNotification.Header.chunk_context', + name='chunk_context', full_name='src.feed.push.notification.PushNotification.Header.chunk_context', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, @@ -68,7 +68,7 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='payload_size', full_name='agrirouter.feed.push.notification.PushNotification.Header.payload_size', + name='payload_size', full_name='src.feed.push.notification.PushNotification.Header.payload_size', index=4, number=5, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, @@ -76,7 +76,7 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='sent_timestamp', full_name='agrirouter.feed.push.notification.PushNotification.Header.sent_timestamp', + name='sent_timestamp', full_name='src.feed.push.notification.PushNotification.Header.sent_timestamp', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, @@ -85,21 +85,21 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='sequence_number', - full_name='agrirouter.feed.push.notification.PushNotification.Header.sequence_number', index=6, + full_name='src.feed.push.notification.PushNotification.Header.sequence_number', index=6, number=7, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='sender_id', full_name='agrirouter.feed.push.notification.PushNotification.Header.sender_id', index=7, + name='sender_id', full_name='src.feed.push.notification.PushNotification.Header.sender_id', index=7, number=8, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='created_at', full_name='agrirouter.feed.push.notification.PushNotification.Header.created_at', + name='created_at', full_name='src.feed.push.notification.PushNotification.Header.created_at', index=8, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, @@ -107,7 +107,7 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='message_id', full_name='agrirouter.feed.push.notification.PushNotification.Header.message_id', + name='message_id', full_name='src.feed.push.notification.PushNotification.Header.message_id', index=9, number=10, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -115,7 +115,7 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='metadata', full_name='agrirouter.feed.push.notification.PushNotification.Header.metadata', index=10, + name='metadata', full_name='src.feed.push.notification.PushNotification.Header.metadata', index=10, number=11, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -139,21 +139,21 @@ _PUSHNOTIFICATION_FEEDMESSAGE = _descriptor.Descriptor( name='FeedMessage', - full_name='agrirouter.feed.push.notification.PushNotification.FeedMessage', + full_name='src.feed.push.notification.PushNotification.FeedMessage', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='header', full_name='agrirouter.feed.push.notification.PushNotification.FeedMessage.header', index=0, + name='header', full_name='src.feed.push.notification.PushNotification.FeedMessage.header', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='content', full_name='agrirouter.feed.push.notification.PushNotification.FeedMessage.content', index=1, + name='content', full_name='src.feed.push.notification.PushNotification.FeedMessage.content', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -177,14 +177,14 @@ _PUSHNOTIFICATION = _descriptor.Descriptor( name='PushNotification', - full_name='agrirouter.feed.push.notification.PushNotification', + full_name='src.feed.push.notification.PushNotification', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='messages', full_name='agrirouter.feed.push.notification.PushNotification.messages', index=0, + name='messages', full_name='src.feed.push.notification.PushNotification.messages', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -224,19 +224,19 @@ 'Header': _reflection.GeneratedProtocolMessageType('Header', (_message.Message,), { 'DESCRIPTOR': _PUSHNOTIFICATION_HEADER, '__module__': 'messaging.response.payload.feed.push_notification_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.push.notification.PushNotification.Header) + # @@protoc_insertion_point(class_scope:src.feed.push.notification.PushNotification.Header) }) , 'FeedMessage': _reflection.GeneratedProtocolMessageType('FeedMessage', (_message.Message,), { 'DESCRIPTOR': _PUSHNOTIFICATION_FEEDMESSAGE, '__module__': 'messaging.response.payload.feed.push_notification_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.push.notification.PushNotification.FeedMessage) + # @@protoc_insertion_point(class_scope:src.feed.push.notification.PushNotification.FeedMessage) }) , 'DESCRIPTOR': _PUSHNOTIFICATION, '__module__': 'messaging.response.payload.feed.push_notification_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.feed.push.notification.PushNotification) + # @@protoc_insertion_point(class_scope:src.feed.push.notification.PushNotification) }) _sym_db.RegisterMessage(PushNotification) _sym_db.RegisterMessage(PushNotification.Header) diff --git a/agrirouter/generated/messaging/response/response_pb2.py b/src/generated/messaging/response/response_pb2.py similarity index 81% rename from agrirouter/generated/messaging/response/response_pb2.py rename to src/generated/messaging/response/response_pb2.py index 296703a6..c512a379 100644 --- a/agrirouter/generated/messaging/response/response_pb2.py +++ b/src/generated/messaging/response/response_pb2.py @@ -16,17 +16,17 @@ DESCRIPTOR = _descriptor.FileDescriptor( name='messaging/response/response.proto', - package='agrirouter.response', + package='src.response', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n!messaging/response/response.proto\x12\x13\x61grirouter.response\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcb\x03\n\x10ResponseEnvelope\x12\x15\n\rresponse_code\x18\x01 \x01(\x05\x12\x44\n\x04type\x18\x02 \x01(\x0e\x32\x36.agrirouter.response.ResponseEnvelope.ResponseBodyType\x12\x1e\n\x16\x61pplication_message_id\x18\x03 \x01(\t\x12\x12\n\nmessage_id\x18\x04 \x01(\t\x12-\n\ttimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xf6\x01\n\x10ResponseBodyType\x12\x0c\n\x08MESSAGES\x10\x00\x12\x07\n\x03\x41\x43K\x10\x01\x12\x15\n\x11\x41\x43K_WITH_MESSAGES\x10\x02\x12\x14\n\x10\x41\x43K_WITH_FAILURE\x10\x03\x12\x1c\n\x18\x41\x43K_FOR_FEED_HEADER_LIST\x10\x06\x12\x18\n\x14\x41\x43K_FOR_FEED_MESSAGE\x10\x07\x12\x1f\n\x1b\x41\x43K_FOR_FEED_FAILED_MESSAGE\x10\x08\x12\x15\n\x11\x45NDPOINTS_LISTING\x10\n\x12\x17\n\x13\x43LOUD_REGISTRATIONS\x10\x0b\x12\x15\n\x11PUSH_NOTIFICATION\x10\x0c\"?\n\x16ResponsePayloadWrapper\x12%\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Anyb\x06proto3' + serialized_pb=b'\n!messaging/response/response.proto\x12\x13\x61grirouter.response\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcb\x03\n\x10ResponseEnvelope\x12\x15\n\rresponse_code\x18\x01 \x01(\x05\x12\x44\n\x04type\x18\x02 \x01(\x0e\x32\x36.src.response.ResponseEnvelope.ResponseBodyType\x12\x1e\n\x16\x61pplication_message_id\x18\x03 \x01(\t\x12\x12\n\nmessage_id\x18\x04 \x01(\t\x12-\n\ttimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xf6\x01\n\x10ResponseBodyType\x12\x0c\n\x08MESSAGES\x10\x00\x12\x07\n\x03\x41\x43K\x10\x01\x12\x15\n\x11\x41\x43K_WITH_MESSAGES\x10\x02\x12\x14\n\x10\x41\x43K_WITH_FAILURE\x10\x03\x12\x1c\n\x18\x41\x43K_FOR_FEED_HEADER_LIST\x10\x06\x12\x18\n\x14\x41\x43K_FOR_FEED_MESSAGE\x10\x07\x12\x1f\n\x1b\x41\x43K_FOR_FEED_FAILED_MESSAGE\x10\x08\x12\x15\n\x11\x45NDPOINTS_LISTING\x10\n\x12\x17\n\x13\x43LOUD_REGISTRATIONS\x10\x0b\x12\x15\n\x11PUSH_NOTIFICATION\x10\x0c\"?\n\x16ResponsePayloadWrapper\x12%\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Anyb\x06proto3' , dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR, google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, ]) _RESPONSEENVELOPE_RESPONSEBODYTYPE = _descriptor.EnumDescriptor( name='ResponseBodyType', - full_name='agrirouter.response.ResponseEnvelope.ResponseBodyType', + full_name='src.response.ResponseEnvelope.ResponseBodyType', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, @@ -91,28 +91,28 @@ _RESPONSEENVELOPE = _descriptor.Descriptor( name='ResponseEnvelope', - full_name='agrirouter.response.ResponseEnvelope', + full_name='src.response.ResponseEnvelope', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='response_code', full_name='agrirouter.response.ResponseEnvelope.response_code', index=0, + name='response_code', full_name='src.response.ResponseEnvelope.response_code', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='type', full_name='agrirouter.response.ResponseEnvelope.type', index=1, + name='type', full_name='src.response.ResponseEnvelope.type', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='application_message_id', full_name='agrirouter.response.ResponseEnvelope.application_message_id', + name='application_message_id', full_name='src.response.ResponseEnvelope.application_message_id', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), @@ -120,14 +120,14 @@ is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='message_id', full_name='agrirouter.response.ResponseEnvelope.message_id', index=3, + name='message_id', full_name='src.response.ResponseEnvelope.message_id', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( - name='timestamp', full_name='agrirouter.response.ResponseEnvelope.timestamp', index=4, + name='timestamp', full_name='src.response.ResponseEnvelope.timestamp', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -152,14 +152,14 @@ _RESPONSEPAYLOADWRAPPER = _descriptor.Descriptor( name='ResponsePayloadWrapper', - full_name='agrirouter.response.ResponsePayloadWrapper', + full_name='src.response.ResponsePayloadWrapper', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='details', full_name='agrirouter.response.ResponsePayloadWrapper.details', index=0, + name='details', full_name='src.response.ResponsePayloadWrapper.details', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -192,14 +192,14 @@ ResponseEnvelope = _reflection.GeneratedProtocolMessageType('ResponseEnvelope', (_message.Message,), { 'DESCRIPTOR': _RESPONSEENVELOPE, '__module__': 'messaging.response.response_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.response.ResponseEnvelope) + # @@protoc_insertion_point(class_scope:src.response.ResponseEnvelope) }) _sym_db.RegisterMessage(ResponseEnvelope) ResponsePayloadWrapper = _reflection.GeneratedProtocolMessageType('ResponsePayloadWrapper', (_message.Message,), { 'DESCRIPTOR': _RESPONSEPAYLOADWRAPPER, '__module__': 'messaging.response.response_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.response.ResponsePayloadWrapper) + # @@protoc_insertion_point(class_scope:src.response.ResponsePayloadWrapper) }) _sym_db.RegisterMessage(ResponsePayloadWrapper) diff --git a/agrirouter/messaging/__init__.py b/src/generated/settings/__init__.py similarity index 100% rename from agrirouter/messaging/__init__.py rename to src/generated/settings/__init__.py diff --git a/agrirouter/generated/settings/dh_settings_pb2.py b/src/generated/settings/dh_settings_pb2.py similarity index 85% rename from agrirouter/generated/settings/dh_settings_pb2.py rename to src/generated/settings/dh_settings_pb2.py index d806d85b..c8af912b 100644 --- a/agrirouter/generated/settings/dh_settings_pb2.py +++ b/src/generated/settings/dh_settings_pb2.py @@ -13,7 +13,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( name='settings/dh-settings.proto', - package='agrirouter.message.settings', + package='src.message.settings', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, @@ -22,14 +22,14 @@ _DATAHUBCONTROLSETTINGS = _descriptor.Descriptor( name='DataHubControlSettings', - full_name='agrirouter.message.settings.DataHubControlSettings', + full_name='src.message.settings.DataHubControlSettings', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( - name='max_message_size', full_name='agrirouter.message.settings.DataHubControlSettings.max_message_size', + name='max_message_size', full_name='src.message.settings.DataHubControlSettings.max_message_size', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, @@ -38,7 +38,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='max_messages_per_query', - full_name='agrirouter.message.settings.DataHubControlSettings.max_messages_per_query', index=1, + full_name='src.message.settings.DataHubControlSettings.max_messages_per_query', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -66,7 +66,7 @@ DataHubControlSettings = _reflection.GeneratedProtocolMessageType('DataHubControlSettings', (_message.Message,), { 'DESCRIPTOR': _DATAHUBCONTROLSETTINGS, '__module__': 'settings.dh_settings_pb2' - # @@protoc_insertion_point(class_scope:agrirouter.message.settings.DataHubControlSettings) + # @@protoc_insertion_point(class_scope:src.message.settings.DataHubControlSettings) }) _sym_db.RegisterMessage(DataHubControlSettings) diff --git a/agrirouter/messaging/clients/__init__.py b/src/messaging/__init__.py similarity index 100% rename from agrirouter/messaging/clients/__init__.py rename to src/messaging/__init__.py diff --git a/agrirouter/messaging/builders.py b/src/messaging/builders.py similarity index 96% rename from agrirouter/messaging/builders.py rename to src/messaging/builders.py index 8358d701..e2388e43 100644 --- a/agrirouter/messaging/builders.py +++ b/src/messaging/builders.py @@ -1,8 +1,8 @@ from typing import List -from agrirouter.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification -from agrirouter.generated.messaging.request.payload.endpoint.subscription_pb2 import Subscription -from agrirouter.messaging.enums import CapabilityType +from src.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification +from src.generated.messaging.request.payload.endpoint.subscription_pb2 import Subscription +from src.messaging.enums import CapabilityType class SubscriptionItemBuilder: diff --git a/agrirouter/messaging/certification.py b/src/messaging/certification.py similarity index 89% rename from agrirouter/messaging/certification.py rename to src/messaging/certification.py index d8f039f0..1b8eabe5 100644 --- a/agrirouter/messaging/certification.py +++ b/src/messaging/certification.py @@ -1,7 +1,7 @@ import os import tempfile -from agrirouter.onboarding.response import OnboardResponse +from src.onboarding.response import OnboardResponse def create_certificate_file_from_pen(onboard_response: OnboardResponse): diff --git a/agrirouter/messaging/parameters/__init__.py b/src/messaging/clients/__init__.py similarity index 100% rename from agrirouter/messaging/parameters/__init__.py rename to src/messaging/clients/__init__.py diff --git a/agrirouter/messaging/clients/constants.py b/src/messaging/clients/constants.py similarity index 100% rename from agrirouter/messaging/clients/constants.py rename to src/messaging/clients/constants.py diff --git a/agrirouter/messaging/clients/http.py b/src/messaging/clients/http.py similarity index 94% rename from agrirouter/messaging/clients/http.py rename to src/messaging/clients/http.py index 0cb4b215..c2d26961 100644 --- a/agrirouter/messaging/clients/http.py +++ b/src/messaging/clients/http.py @@ -4,8 +4,8 @@ import ssl from urllib.parse import urlparse -from agrirouter.messaging.certification import create_certificate_file_from_pen -from agrirouter.onboarding.response import OnboardResponse +from src.messaging.certification import create_certificate_file_from_pen +from src.onboarding.response import OnboardResponse class HttpClient: diff --git a/agrirouter/messaging/clients/mqtt.py b/src/messaging/clients/mqtt.py similarity index 97% rename from agrirouter/messaging/clients/mqtt.py rename to src/messaging/clients/mqtt.py index c73d3f76..1cd8caca 100644 --- a/agrirouter/messaging/clients/mqtt.py +++ b/src/messaging/clients/mqtt.py @@ -6,8 +6,8 @@ import paho.mqtt.client as mqtt_client from paho.mqtt.client import MQTTv31, MQTTMessageInfo -from agrirouter.messaging.certification import create_certificate_file_from_pen -from agrirouter.messaging.clients.constants import SYNC, ASYNC +from src.messaging.certification import create_certificate_file_from_pen +from src.messaging.clients.constants import SYNC, ASYNC class MqttClient: diff --git a/agrirouter/messaging/decode.py b/src/messaging/decode.py similarity index 78% rename from agrirouter/messaging/decode.py rename to src/messaging/decode.py index 9f8b2258..a6cf7fbe 100644 --- a/agrirouter/messaging/decode.py +++ b/src/messaging/decode.py @@ -4,15 +4,15 @@ from google.protobuf.any_pb2 import Any from google.protobuf.internal.decoder import _DecodeVarint -from agrirouter.generated.commons.message_pb2 import Messages -from agrirouter.generated.messaging.response.payload.account.endpoints_pb2 import ListEndpointsResponse -from agrirouter.generated.messaging.response.payload.feed.feed_response_pb2 import HeaderQueryResponse, \ +from src.generated.commons.message_pb2 import Messages +from src.generated.messaging.response.payload.account.endpoints_pb2 import ListEndpointsResponse +from src.generated.messaging.response.payload.feed.feed_response_pb2 import HeaderQueryResponse, \ MessageQueryResponse -from agrirouter.generated.messaging.response.payload.feed.push_notification_pb2 import PushNotification -from agrirouter.generated.messaging.response.response_pb2 import ResponseEnvelope, ResponsePayloadWrapper -from agrirouter.api.exceptions import CanNotDecodeMessage -from agrirouter.messaging.messages import DecodedMessage -from agrirouter.utils.type_url import TypeUrl +from src.generated.messaging.response.payload.feed.push_notification_pb2 import PushNotification +from src.generated.messaging.response.response_pb2 import ResponseEnvelope, ResponsePayloadWrapper +from src.api.exceptions import CanNotDecodeMessage +from src.messaging.messages import DecodedMessage +from src.utils.type_url import TypeUrl def read_properties_buffers_from_input_stream(input_stream) -> tuple: diff --git a/agrirouter/messaging/encode.py b/src/messaging/encode.py similarity index 91% rename from agrirouter/messaging/encode.py rename to src/messaging/encode.py index 34020ea3..e8362cf0 100644 --- a/agrirouter/messaging/encode.py +++ b/src/messaging/encode.py @@ -5,17 +5,17 @@ from google.protobuf.any_pb2 import Any from google.protobuf.internal.encoder import _VarintBytes -from agrirouter.generated.commons.chunk_pb2 import ChunkComponent -from agrirouter.generated.messaging.request.request_pb2 import RequestEnvelope, RequestPayloadWrapper -from agrirouter.messaging.messages import MessageParameterTuple -from agrirouter.messaging.parameters.service import MessageHeaderParameters, MessagePayloadParameters -from agrirouter.messaging.services.sequence_number_service import SequenceNumberService -from agrirouter.onboarding.response import OnboardResponse -from agrirouter.utils.utc_time_util import now_as_utc_timestamp -from agrirouter.utils.uuid_util import new_uuid +from src.generated.commons.chunk_pb2 import ChunkComponent +from src.generated.messaging.request.request_pb2 import RequestEnvelope, RequestPayloadWrapper +from src.messaging.messages import MessageParameterTuple +from src.messaging.parameters.service import MessageHeaderParameters, MessagePayloadParameters +from src.messaging.services.sequence_number_service import SequenceNumberService +from src.onboarding.response import OnboardResponse +from src.utils.utc_time_util import now_as_utc_timestamp +from src.utils.uuid_util import new_uuid MAX_LENGTH_FOR_RAW_MESSAGE_CONTENT = 767997 // 2 -log = logging.getLogger("com.dke.data.agrirouter.sdk.encode") +log = logging.getLogger("com.dke.data.src.sdk.encode") def write_proto_parts_to_buffer(parts: list, buffer: bytes = b""): diff --git a/agrirouter/messaging/enums.py b/src/messaging/enums.py similarity index 96% rename from agrirouter/messaging/enums.py rename to src/messaging/enums.py index 530729cf..d078b5d8 100644 --- a/agrirouter/messaging/enums.py +++ b/src/messaging/enums.py @@ -1,4 +1,4 @@ -from agrirouter.api.enums import BaseEnum +from src.api.enums import BaseEnum class TechnicalMessageType(BaseEnum): diff --git a/agrirouter/messaging/messages.py b/src/messaging/messages.py similarity index 97% rename from agrirouter/messaging/messages.py rename to src/messaging/messages.py index 3615e5ef..e16096e6 100644 --- a/agrirouter/messaging/messages.py +++ b/src/messaging/messages.py @@ -1,8 +1,8 @@ import json from typing import Union, Dict -from agrirouter.api.exceptions import WrongField -from agrirouter.utils.utc_time_util import now_as_utc_str +from src.api.exceptions import WrongField +from src.utils.utc_time_util import now_as_utc_str class EncodedMessage: diff --git a/agrirouter/messaging/services/__init__.py b/src/messaging/parameters/__init__.py similarity index 100% rename from agrirouter/messaging/services/__init__.py rename to src/messaging/parameters/__init__.py diff --git a/agrirouter/messaging/parameters/dto.py b/src/messaging/parameters/dto.py similarity index 94% rename from agrirouter/messaging/parameters/dto.py rename to src/messaging/parameters/dto.py index 71d4e1d8..74fc5848 100644 --- a/agrirouter/messaging/parameters/dto.py +++ b/src/messaging/parameters/dto.py @@ -1,9 +1,9 @@ from copy import deepcopy from typing import List -from agrirouter.generated.commons.chunk_pb2 import ChunkComponent -from agrirouter.messaging.messages import EncodedMessage -from agrirouter.onboarding.response import BaseOnboardingResponse +from src.generated.commons.chunk_pb2 import ChunkComponent +from src.messaging.messages import EncodedMessage +from src.onboarding.response import BaseOnboardingResponse class Parameters: @@ -93,7 +93,7 @@ def extend_encoded_messages(self, encoded_messages: List[EncodedMessage]): class SendMessageParameters(MessageParameters): """ - Parameters to send messages to the agrirouter + Parameters to send messages to the src The class inherits from MessageParameters class """ @@ -120,7 +120,7 @@ def __init__(self, chunk_size: Define the size of the chunks application_message_id: The application message ID application_message_seq_no: Sequence number while sending the messages - to the agrirouter with SequenceNumberService + to the src with SequenceNumberService """ super(SendMessageParameters, self).__init__(application_message_id=application_message_id, @@ -167,7 +167,7 @@ def get_mode(self): class ChunkedMessageParameters(MessageParameters): """ - Parameters to send chunked messages to the agrirouter + Parameters to send chunked messages to the src The class inherits from MessageParameters class """ @@ -186,7 +186,7 @@ def __init__(self, recipients: List of recipients application_message_id: The application message ID application_message_seq_no: Sequence number while sending the messages - to the agrirouter with SequenceNumberService + to the src with SequenceNumberService encoded_chunked_messages: List of encoded chunked messages """ diff --git a/agrirouter/messaging/parameters/service.py b/src/messaging/parameters/service.py similarity index 97% rename from agrirouter/messaging/parameters/service.py rename to src/messaging/parameters/service.py index 184ce1d2..b79036ed 100644 --- a/agrirouter/messaging/parameters/service.py +++ b/src/messaging/parameters/service.py @@ -1,13 +1,13 @@ from copy import deepcopy from typing import List -from agrirouter.generated.commons.chunk_pb2 import ChunkComponent -from agrirouter.generated.commons.message_pb2 import Metadata -from agrirouter.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification -from agrirouter.generated.messaging.request.payload.endpoint.subscription_pb2 import Subscription -from agrirouter.generated.messaging.request.payload.feed.feed_requests_pb2 import ValidityPeriod -from agrirouter.messaging.parameters.dto import MessageParameters, Parameters -from agrirouter.onboarding.response import BaseOnboardingResponse +from src.generated.commons.chunk_pb2 import ChunkComponent +from src.generated.commons.message_pb2 import Metadata +from src.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification +from src.generated.messaging.request.payload.endpoint.subscription_pb2 import Subscription +from src.generated.messaging.request.payload.feed.feed_requests_pb2 import ValidityPeriod +from src.messaging.parameters.dto import MessageParameters, Parameters +from src.onboarding.response import BaseOnboardingResponse class MessageHeaderParameters(Parameters): diff --git a/agrirouter/messaging/request.py b/src/messaging/request.py similarity index 100% rename from agrirouter/messaging/request.py rename to src/messaging/request.py diff --git a/agrirouter/messaging/result.py b/src/messaging/result.py similarity index 96% rename from agrirouter/messaging/result.py rename to src/messaging/result.py index cf42f1c8..4e60e03a 100644 --- a/agrirouter/messaging/result.py +++ b/src/messaging/result.py @@ -1,7 +1,7 @@ import json from typing import List, Union -from agrirouter.messaging.messages import OutboxMessage +from src.messaging.messages import OutboxMessage class MessagingResult: diff --git a/agrirouter/messaging/services/http/__init__.py b/src/messaging/services/__init__.py similarity index 100% rename from agrirouter/messaging/services/http/__init__.py rename to src/messaging/services/__init__.py diff --git a/agrirouter/messaging/services/cloud.py b/src/messaging/services/cloud.py similarity index 78% rename from agrirouter/messaging/services/cloud.py rename to src/messaging/services/cloud.py index 217462e2..d1c569ee 100644 --- a/agrirouter/messaging/services/cloud.py +++ b/src/messaging/services/cloud.py @@ -1,14 +1,14 @@ -from agrirouter.generated.cloud_provider_integration.cloud_virtualized_app_registration_pb2 import OnboardingRequest, \ +from src.generated.cloud_provider_integration.cloud_virtualized_app_registration_pb2 import OnboardingRequest, \ OffboardingRequest -from agrirouter.generated.messaging.request.request_pb2 import RequestEnvelope -from agrirouter.messaging.encode import encode_message -from agrirouter.messaging.enums import TechnicalMessageType -from agrirouter.messaging.messages import EncodedMessage -from agrirouter.messaging.parameters.service import MessageHeaderParameters, MessagePayloadParameters, \ +from src.generated.messaging.request.request_pb2 import RequestEnvelope +from src.messaging.encode import encode_message +from src.messaging.enums import TechnicalMessageType +from src.messaging.messages import EncodedMessage +from src.messaging.parameters.service import MessageHeaderParameters, MessagePayloadParameters, \ CloudOnboardParameters, CloudOffboardParameters -from agrirouter.messaging.services.messaging import AbstractService -from agrirouter.utils.type_url import TypeUrl -from agrirouter.utils.uuid_util import new_uuid +from src.messaging.services.messaging import AbstractService +from src.utils.type_url import TypeUrl +from src.utils.uuid_util import new_uuid class CloudOnboardService(AbstractService): diff --git a/agrirouter/messaging/services/commons.py b/src/messaging/services/commons.py similarity index 85% rename from agrirouter/messaging/services/commons.py rename to src/messaging/services/commons.py index 2a86fe83..bc66318e 100644 --- a/agrirouter/messaging/services/commons.py +++ b/src/messaging/services/commons.py @@ -1,14 +1,14 @@ import json from abc import ABC, abstractmethod -from agrirouter.messaging.clients.http import HttpClient -from agrirouter.messaging.clients.mqtt import MqttClient -from agrirouter.messaging.messages import Message -from agrirouter.messaging.parameters.service import MessageParameters -from agrirouter.messaging.request import MessageRequest -from agrirouter.messaging.result import MessagingResult -from agrirouter.api.exceptions import BadMessagingResult -from agrirouter.onboarding.response import OnboardResponse +from src.messaging.clients.http import HttpClient +from src.messaging.clients.mqtt import MqttClient +from src.messaging.messages import Message +from src.messaging.parameters.service import MessageParameters +from src.messaging.request import MessageRequest +from src.messaging.result import MessagingResult +from src.api.exceptions import BadMessagingResult +from src.onboarding.response import OnboardResponse class AbstractMessagingClient(ABC): diff --git a/agrirouter/onboarding/__init__.py b/src/messaging/services/http/__init__.py similarity index 100% rename from agrirouter/onboarding/__init__.py rename to src/messaging/services/http/__init__.py diff --git a/agrirouter/messaging/services/http/fetch_message_service.py b/src/messaging/services/http/fetch_message_service.py similarity index 77% rename from agrirouter/messaging/services/http/fetch_message_service.py rename to src/messaging/services/http/fetch_message_service.py index 80db2f56..a5593a96 100644 --- a/agrirouter/messaging/services/http/fetch_message_service.py +++ b/src/messaging/services/http/fetch_message_service.py @@ -1,6 +1,6 @@ -from agrirouter.messaging.clients.http import HttpClient -from agrirouter.api.exceptions import CanNotFetchOutboxMessage -from agrirouter.messaging.result import OutboxResponse +from src.messaging.clients.http import HttpClient +from src.api.exceptions import CanNotFetchOutboxMessage +from src.messaging.result import OutboxResponse class FetchMessageService: diff --git a/agrirouter/messaging/services/messaging.py b/src/messaging/services/messaging.py similarity index 92% rename from agrirouter/messaging/services/messaging.py rename to src/messaging/services/messaging.py index bd4063eb..8d4e6dc2 100644 --- a/agrirouter/messaging/services/messaging.py +++ b/src/messaging/services/messaging.py @@ -1,24 +1,24 @@ import logging -from agrirouter.generated.commons.chunk_pb2 import ChunkComponent -from agrirouter.generated.commons.message_pb2 import Metadata -from agrirouter.generated.messaging.request.payload.account.endpoints_pb2 import ListEndpointsQuery -from agrirouter.generated.messaging.request.payload.efdi.efdi_pb2 import TimeLog, ISO11783_TaskData -from agrirouter.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification -from agrirouter.generated.messaging.request.payload.endpoint.subscription_pb2 import Subscription -from agrirouter.generated.messaging.request.payload.feed.feed_requests_pb2 import MessageConfirm, MessageDelete, \ +from src.generated.commons.chunk_pb2 import ChunkComponent +from src.generated.commons.message_pb2 import Metadata +from src.generated.messaging.request.payload.account.endpoints_pb2 import ListEndpointsQuery +from src.generated.messaging.request.payload.efdi.efdi_pb2 import TimeLog, ISO11783_TaskData +from src.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification +from src.generated.messaging.request.payload.endpoint.subscription_pb2 import Subscription +from src.generated.messaging.request.payload.feed.feed_requests_pb2 import MessageConfirm, MessageDelete, \ MessageQuery -from agrirouter.generated.messaging.request.request_pb2 import RequestEnvelope -from agrirouter.messaging.encode import encode_message -from agrirouter.messaging.enums import TechnicalMessageType, CapabilityType -from agrirouter.messaging.messages import EncodedMessage -from agrirouter.messaging.parameters.dto import MessagingParameters, SendMessageParameters, ChunkedMessageParameters -from agrirouter.messaging.parameters.service import MessageHeaderParameters, MessagePayloadParameters, \ +from src.generated.messaging.request.request_pb2 import RequestEnvelope +from src.messaging.encode import encode_message +from src.messaging.enums import TechnicalMessageType, CapabilityType +from src.messaging.messages import EncodedMessage +from src.messaging.parameters.dto import MessagingParameters, SendMessageParameters, ChunkedMessageParameters +from src.messaging.parameters.service import MessageHeaderParameters, MessagePayloadParameters, \ CapabilitiesParameters, FeedConfirmParameters, FeedDeleteParameters, ListEndpointsParameters, \ SubscriptionParameters, QueryHeaderParameters, QueryMessageParameters, ImageParameters, TaskParameters, \ EfdiParameters -from agrirouter.utils.type_url import TypeUrl -from agrirouter.utils.uuid_util import new_uuid +from src.utils.type_url import TypeUrl +from src.utils.uuid_util import new_uuid class AbstractService: @@ -32,10 +32,10 @@ def __init__(self, messaging_service): def send(self, parameters): """ - Send a message to the agrirouter. + Send a message to the src. :param parameters: Parameters for the message. """ - self._log.debug("Sending message to the agrirouter.") + self._log.debug("Sending message to the src.") messaging_parameters = MessagingParameters( onboarding_response=parameters.get_onboarding_response(), application_message_id=parameters.get_application_message_id(), @@ -56,7 +56,7 @@ def encode(*args, **kwargs) -> EncodedMessage: class CapabilitiesService(AbstractService): """ - Service for sending capabilities to the agrirouter. + Service for sending capabilities to the src. """ @staticmethod @@ -262,7 +262,7 @@ def encode(parameters: QueryHeaderParameters) -> EncodedMessage: class SubscriptionService(AbstractService): """ - Service for sending subscription messages to the agrirouter. + Service for sending subscription messages to the src. """ @staticmethod @@ -299,7 +299,7 @@ def encode(parameters: SubscriptionParameters) -> EncodedMessage: class SendMessageService(AbstractService): """ - Service for sending messages to the agrirouter + Service for sending messages to the src """ @staticmethod @@ -335,7 +335,7 @@ def encode(parameters: SendMessageParameters) -> EncodedMessage: class SendChunkedMessageService(AbstractService): """ - Service for sending chunked messages to the agrirouter + Service for sending chunked messages to the src """ @staticmethod diff --git a/agrirouter/messaging/services/sequence_number_service.py b/src/messaging/services/sequence_number_service.py similarity index 96% rename from agrirouter/messaging/services/sequence_number_service.py rename to src/messaging/services/sequence_number_service.py index 30238f1a..31d537b8 100644 --- a/agrirouter/messaging/services/sequence_number_service.py +++ b/src/messaging/services/sequence_number_service.py @@ -3,7 +3,7 @@ class SequenceNumberService: """ - Service to generate sequence numbers while sending messages to the agrirouter. The sequence + Service to generate sequence numbers while sending messages to the src. The sequence number generation is based on the ID of the endpoint, therefore a sequence number can be used multiple times for different endpoints. """ diff --git a/agrirouter/revoking/__init__.py b/src/onboarding/__init__.py similarity index 100% rename from agrirouter/revoking/__init__.py rename to src/onboarding/__init__.py diff --git a/agrirouter/onboarding/dto.py b/src/onboarding/dto.py similarity index 99% rename from agrirouter/onboarding/dto.py rename to src/onboarding/dto.py index a0c9e13e..87d333d3 100644 --- a/agrirouter/onboarding/dto.py +++ b/src/onboarding/dto.py @@ -1,7 +1,7 @@ import json from typing import Union -from agrirouter.api.exceptions import WrongField +from src.api.exceptions import WrongField class ConnectionCriteria: diff --git a/agrirouter/onboarding/enums.py b/src/onboarding/enums.py similarity index 75% rename from agrirouter/onboarding/enums.py rename to src/onboarding/enums.py index 5572621a..d8e2d3e8 100644 --- a/agrirouter/onboarding/enums.py +++ b/src/onboarding/enums.py @@ -1,4 +1,4 @@ -from agrirouter.api.enums import BaseEnum +from src.api.enums import BaseEnum class CertificateTypes(BaseEnum): diff --git a/agrirouter/onboarding/headers.py b/src/onboarding/headers.py similarity index 91% rename from agrirouter/onboarding/headers.py rename to src/onboarding/headers.py index b09101c8..16b9f66c 100644 --- a/agrirouter/onboarding/headers.py +++ b/src/onboarding/headers.py @@ -1,7 +1,7 @@ import logging -from agrirouter.api.enums import ContentTypes, RequestHeaders -from agrirouter.api.exceptions import MissingRegistrationCode +from src.api.enums import ContentTypes, RequestHeaders +from src.api.exceptions import MissingRegistrationCode class SoftwareOnboardingHeader: diff --git a/agrirouter/onboarding/onboarding.py b/src/onboarding/onboarding.py similarity index 83% rename from agrirouter/onboarding/onboarding.py rename to src/onboarding/onboarding.py index 0cebec16..fed83db6 100644 --- a/agrirouter/onboarding/onboarding.py +++ b/src/onboarding/onboarding.py @@ -1,12 +1,12 @@ import requests -from agrirouter.api.exceptions import UnexpectedErrorDuringOnboarding, RequestNotSigned -from agrirouter.environments.environmental_services import EnvironmentalService -from agrirouter.onboarding.headers import SoftwareOnboardingHeader -from agrirouter.onboarding.parameters import OnboardParameters -from agrirouter.onboarding.request import OnboardRequest -from agrirouter.onboarding.request_body import SoftwareOnboardingBody -from agrirouter.onboarding.response import VerificationResponse, OnboardResponse +from src.api.exceptions import UnexpectedErrorDuringOnboarding, RequestNotSigned +from src.environments.environmental_services import EnvironmentalService +from src.onboarding.headers import SoftwareOnboardingHeader +from src.onboarding.parameters import OnboardParameters +from src.onboarding.request import OnboardRequest +from src.onboarding.request_body import SoftwareOnboardingBody +from src.onboarding.response import VerificationResponse, OnboardResponse class SecuredOnboardingService(EnvironmentalService): @@ -68,7 +68,7 @@ def _perform_request(params: OnboardParameters, url: str) -> requests.Response: def onboard(self, params: OnboardParameters) -> OnboardResponse: """ - Onboard a device to the agrirouter. + Onboard a device to the src. """ url = self._environment.get_onboard_url() http_response = self._perform_request(params=params, url=url) diff --git a/agrirouter/onboarding/parameters.py b/src/onboarding/parameters.py similarity index 89% rename from agrirouter/onboarding/parameters.py rename to src/onboarding/parameters.py index 409fec2e..9f30f042 100644 --- a/agrirouter/onboarding/parameters.py +++ b/src/onboarding/parameters.py @@ -1,6 +1,6 @@ -from agrirouter.api.enums import ContentTypes -from agrirouter.onboarding.enums import CertificateTypes -from agrirouter.utils.utc_time_util import now_as_utc_str +from src.api.enums import ContentTypes +from src.onboarding.enums import CertificateTypes +from src.utils.utc_time_util import now_as_utc_str class OnboardParameters: diff --git a/agrirouter/onboarding/request.py b/src/onboarding/request.py similarity index 79% rename from agrirouter/onboarding/request.py rename to src/onboarding/request.py index 77ee8a75..dd63662a 100644 --- a/agrirouter/onboarding/request.py +++ b/src/onboarding/request.py @@ -1,8 +1,8 @@ -from agrirouter.api.enums import RequestHeaders -from agrirouter.onboarding.headers import SoftwareOnboardingHeader -from agrirouter.onboarding.parameters import OnboardParameters -from agrirouter.onboarding.request_body import SoftwareOnboardingBody -from agrirouter.onboarding.signature import create_signature, verify_signature +from src.api.enums import RequestHeaders +from src.onboarding.headers import SoftwareOnboardingHeader +from src.onboarding.parameters import OnboardParameters +from src.onboarding.request_body import SoftwareOnboardingBody +from src.onboarding.signature import create_signature, verify_signature class OnboardRequest: diff --git a/agrirouter/onboarding/request_body.py b/src/onboarding/request_body.py similarity index 93% rename from agrirouter/onboarding/request_body.py rename to src/onboarding/request_body.py index e6c89c2d..4b94493d 100644 --- a/agrirouter/onboarding/request_body.py +++ b/src/onboarding/request_body.py @@ -1,8 +1,8 @@ import json from datetime import datetime -from agrirouter.api.exceptions import WrongCertificationType, WrongGateWayType -from agrirouter.onboarding.enums import CertificateTypes, Gateways +from src.api.exceptions import WrongCertificationType, WrongGateWayType +from src.onboarding.enums import CertificateTypes, Gateways class SoftwareOnboardingBody: diff --git a/agrirouter/onboarding/response.py b/src/onboarding/response.py similarity index 97% rename from agrirouter/onboarding/response.py rename to src/onboarding/response.py index 78b0f53c..52b6426d 100644 --- a/agrirouter/onboarding/response.py +++ b/src/onboarding/response.py @@ -3,8 +3,8 @@ from requests import Response -from agrirouter.api.exceptions import WrongField -from agrirouter.onboarding.dto import ErrorResponse, ConnectionCriteria, Authentication +from src.api.exceptions import WrongField +from src.onboarding.dto import ErrorResponse, ConnectionCriteria, Authentication class BaseOnboardingResponse: diff --git a/agrirouter/onboarding/signature.py b/src/onboarding/signature.py similarity index 100% rename from agrirouter/onboarding/signature.py rename to src/onboarding/signature.py diff --git a/agrirouter/utils/__init__.py b/src/revoking/__init__.py similarity index 100% rename from agrirouter/utils/__init__.py rename to src/revoking/__init__.py diff --git a/agrirouter/revoking/headers.py b/src/revoking/headers.py similarity index 94% rename from agrirouter/revoking/headers.py rename to src/revoking/headers.py index 24e90226..5b518bf3 100644 --- a/agrirouter/revoking/headers.py +++ b/src/revoking/headers.py @@ -1,4 +1,4 @@ -from agrirouter.api.enums import ContentTypes +from src.api.enums import ContentTypes class RevokingHeader: diff --git a/agrirouter/revoking/parameters.py b/src/revoking/parameters.py similarity index 95% rename from agrirouter/revoking/parameters.py rename to src/revoking/parameters.py index cb35f6d2..db1dc679 100644 --- a/agrirouter/revoking/parameters.py +++ b/src/revoking/parameters.py @@ -1,4 +1,4 @@ -from agrirouter.api.enums import ContentTypes +from src.api.enums import ContentTypes class RevokingParameter: diff --git a/agrirouter/revoking/request.py b/src/revoking/request.py similarity index 82% rename from agrirouter/revoking/request.py rename to src/revoking/request.py index 1fea09e1..635bb8f2 100644 --- a/agrirouter/revoking/request.py +++ b/src/revoking/request.py @@ -1,6 +1,6 @@ -from agrirouter.onboarding.signature import create_signature -from agrirouter.revoking.headers import RevokingHeader -from agrirouter.revoking.request_body import RevokingBody +from src.onboarding.signature import create_signature +from src.revoking.headers import RevokingHeader +from src.revoking.request_body import RevokingBody class RevokingRequest: diff --git a/agrirouter/revoking/request_body.py b/src/revoking/request_body.py similarity index 100% rename from agrirouter/revoking/request_body.py rename to src/revoking/request_body.py diff --git a/agrirouter/revoking/response.py b/src/revoking/response.py similarity index 100% rename from agrirouter/revoking/response.py rename to src/revoking/response.py diff --git a/agrirouter/revoking/revoking.py b/src/revoking/revoking.py similarity index 75% rename from agrirouter/revoking/revoking.py rename to src/revoking/revoking.py index 469947b5..360e0ca1 100644 --- a/agrirouter/revoking/revoking.py +++ b/src/revoking/revoking.py @@ -1,12 +1,12 @@ import requests -from agrirouter.environments.environmental_services import EnvironmentalService -from agrirouter.api.exceptions import RequestNotSigned -from agrirouter.revoking.headers import RevokingHeader -from agrirouter.revoking.parameters import RevokingParameter -from agrirouter.revoking.request import RevokingRequest -from agrirouter.revoking.request_body import RevokingBody -from agrirouter.revoking.response import RevokingResponse +from src.environments.environmental_services import EnvironmentalService +from src.api.exceptions import RequestNotSigned +from src.revoking.headers import RevokingHeader +from src.revoking.parameters import RevokingParameter +from src.revoking.request import RevokingRequest +from src.revoking.request_body import RevokingBody +from src.revoking.response import RevokingResponse class Revoking(EnvironmentalService): diff --git a/src/utils/__init__.py b/src/utils/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/src/utils/type_url.py b/src/utils/type_url.py new file mode 100644 index 00000000..3c499b7e --- /dev/null +++ b/src/utils/type_url.py @@ -0,0 +1,47 @@ +from src.generated.cloud_provider_integration.cloud_virtualized_app_registration_pb2 import OnboardingResponse, \ + OnboardingRequest +from src.generated.commons.message_pb2 import Messages +from src.generated.messaging.request.payload.account.endpoints_pb2 import ListEndpointsQuery +from src.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification +from src.generated.messaging.request.payload.endpoint.subscription_pb2 import Subscription +from src.generated.messaging.request.payload.feed.feed_requests_pb2 import MessageDelete, MessageConfirm, \ + MessageQuery +from src.generated.messaging.response.payload.account.endpoints_pb2 import ListEndpointsResponse +from src.generated.messaging.response.payload.feed.feed_response_pb2 import HeaderQueryResponse, \ + MessageQueryResponse + +from src.generated.messaging.request.payload.efdi.efdi_pb2 import TimeLog, ISO11783_TaskData + +from src.generated.messaging.response.payload.feed.push_notification_pb2 import PushNotification +from src.api.exceptions import TypeUrlNotFound + + +class TypeUrl: + prefix = "types.src.com/" + commands = ( + Messages, + ListEndpointsResponse, + HeaderQueryResponse, + MessageQueryResponse, + MessageDelete, + MessageConfirm, + OnboardingResponse, + OnboardingRequest, + CapabilitySpecification, + Subscription, + MessageQuery, + ListEndpointsQuery, + PushNotification, + TimeLog, + ISO11783_TaskData + ) + + @classmethod + def get_type_url(cls, class_): + return TypeUrl.get_command(class_) + + @classmethod + def get_command(cls, class_) -> str: + if class_ not in cls.commands: + raise TypeUrlNotFound(f"The {class_} type url not found") + return cls.prefix + class_.DESCRIPTOR.full_name diff --git a/agrirouter/utils/utc_time_util.py b/src/utils/utc_time_util.py similarity index 96% rename from agrirouter/utils/utc_time_util.py rename to src/utils/utc_time_util.py index 0c099bac..a72d559c 100644 --- a/agrirouter/utils/utc_time_util.py +++ b/src/utils/utc_time_util.py @@ -2,7 +2,7 @@ from google.protobuf.timestamp_pb2 import Timestamp -from agrirouter.generated.messaging.request.payload.feed.feed_requests_pb2 import ValidityPeriod +from src.generated.messaging.request.payload.feed.feed_requests_pb2 import ValidityPeriod def now_as_utc_timestamp() -> datetime: diff --git a/agrirouter/utils/uuid_util.py b/src/utils/uuid_util.py similarity index 100% rename from agrirouter/utils/uuid_util.py rename to src/utils/uuid_util.py diff --git a/tests/common/constants.py b/tests/common/constants.py index 50601797..0b505c80 100644 --- a/tests/common/constants.py +++ b/tests/common/constants.py @@ -1,4 +1,4 @@ -from agrirouter.api.enums import Environments +from src.api.enums import Environments APPLICATION_ID = "8c947a45-c57d-42d2-affc-206e21d63a50" diff --git a/tests/common/onboarding.py b/tests/common/onboarding.py index f5a483de..40384f5f 100644 --- a/tests/common/onboarding.py +++ b/tests/common/onboarding.py @@ -1,5 +1,5 @@ -from agrirouter import OnboardingService, OnboardParameters -from agrirouter.onboarding.response import OnboardResponse +from src import OnboardingService, OnboardParameters +from src.onboarding.response import OnboardResponse from tests.data.applications import CommunicationUnit diff --git a/tests/common/sleeper.py b/tests/common/sleeper.py index 53776c1b..153dcaf8 100644 --- a/tests/common/sleeper.py +++ b/tests/common/sleeper.py @@ -6,12 +6,12 @@ class Sleeper: @staticmethod def process_the_command(seconds: int = 15): - """ Let the agrirouter process the command. To ensure clean message handling, + """ Let the src process the command. To ensure clean message handling, we need to set the sleep time to 15 seconds. """ time.sleep(seconds) @staticmethod def process_the_message(seconds: int = 30): - """ Let the agrirouter process and route the message. To ensure clean message handling, + """ Let the src process and route the message. To ensure clean message handling, we need to set the sleep time to 30 seconds. """ time.sleep(seconds) diff --git a/tests/data/onboard_response_integration_service.py b/tests/data/onboard_response_integration_service.py index a4ad38c9..48980776 100644 --- a/tests/data/onboard_response_integration_service.py +++ b/tests/data/onboard_response_integration_service.py @@ -2,7 +2,7 @@ import os import tests -from agrirouter.onboarding.response import OnboardResponse +from src.onboarding.response import OnboardResponse def read_onboard_response(identifier: str) -> OnboardResponse: diff --git a/tests/fixtures/update_http_onboard_responses.py b/tests/fixtures/update_http_onboard_responses.py index 0ce2c0e9..56e150b9 100644 --- a/tests/fixtures/update_http_onboard_responses.py +++ b/tests/fixtures/update_http_onboard_responses.py @@ -5,15 +5,15 @@ from applications import CommunicationUnit from onboard_response_integration_service import save_onboard_response -from agrirouter import CapabilitiesService, CapabilitiesParameters -from agrirouter.api.environments import QA -from agrirouter.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification -from agrirouter.messaging.enums import CapabilityType, CapabilityDirectionType -from agrirouter.messaging.services.commons import HttpMessagingService -from agrirouter.messaging.services.http.fetch_message_service import FetchMessageService -from agrirouter.onboarding.enums import CertificateTypes, Gateways -from agrirouter.onboarding.response import OnboardResponse -from agrirouter.utils.uuid_util import new_uuid +from src import CapabilitiesService, CapabilitiesParameters +from src.api.environments import QA +from src.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification +from src.messaging.enums import CapabilityType, CapabilityDirectionType +from src.messaging.services.commons import HttpMessagingService +from src.messaging.services.http.fetch_message_service import FetchMessageService +from src.onboarding.enums import CertificateTypes, Gateways +from src.onboarding.response import OnboardResponse +from src.utils.uuid_util import new_uuid from tests.common.onboarding import onboard_communication_unit from tests.common.sleeper import Sleeper from tests.data.identifier import Identifier diff --git a/tests/fixtures/update_mqtt_onboard_responses.py b/tests/fixtures/update_mqtt_onboard_responses.py index 66be0512..58240256 100644 --- a/tests/fixtures/update_mqtt_onboard_responses.py +++ b/tests/fixtures/update_mqtt_onboard_responses.py @@ -1,15 +1,15 @@ import pytest -from agrirouter import CapabilitiesParameters, CapabilitiesService -from agrirouter.api.environments import QA -from agrirouter.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification -from agrirouter.messaging.decode import decode_response -from agrirouter.messaging.enums import CapabilityType, CapabilityDirectionType -from agrirouter.messaging.messages import OutboxMessage -from agrirouter.messaging.services.commons import MqttMessagingService -from agrirouter.messaging.services.sequence_number_service import SequenceNumberService -from agrirouter.onboarding.enums import CertificateTypes, Gateways -from agrirouter.utils.uuid_util import new_uuid +from src import CapabilitiesParameters, CapabilitiesService +from src.api.environments import QA +from src.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification +from src.messaging.decode import decode_response +from src.messaging.enums import CapabilityType, CapabilityDirectionType +from src.messaging.messages import OutboxMessage +from src.messaging.services.commons import MqttMessagingService +from src.messaging.services.sequence_number_service import SequenceNumberService +from src.onboarding.enums import CertificateTypes, Gateways +from src.utils.uuid_util import new_uuid from tests.common.onboarding import onboard_communication_unit from tests.common.sleeper import Sleeper from tests.data.applications import CommunicationUnit diff --git a/tests/internal/auth_test/test_auth.py b/tests/internal/auth_test/test_auth.py index 9cd04e39..f02b2d8f 100644 --- a/tests/internal/auth_test/test_auth.py +++ b/tests/internal/auth_test/test_auth.py @@ -1,8 +1,8 @@ -"""Tests agrirouter/auth/auth.py""" +"""Tests src/auth/auth.py""" -from agrirouter import AuthUrlParameter -from agrirouter.api.enums import Environments -from agrirouter.auth.auth import Authorization +from src import AuthUrlParameter +from src.api.enums import Environments +from src.auth.auth import Authorization from tests.common.constants import ( PUBLIC_KEY, PRIVATE_KEY, diff --git a/tests/internal/auth_test/test_auth_dto.py b/tests/internal/auth_test/test_auth_dto.py index deb1f5b7..16bdc258 100644 --- a/tests/internal/auth_test/test_auth_dto.py +++ b/tests/internal/auth_test/test_auth_dto.py @@ -1,8 +1,8 @@ -"""Tests agrirouter/auth/dto.py""" +"""Tests src/auth/dto.py""" import pytest -from agrirouter.auth.dto import AuthorizationToken -from agrirouter.api.exceptions import WrongField +from src.auth.dto import AuthorizationToken +from src.api.exceptions import WrongField class TestAuthorizationToken: diff --git a/tests/internal/auth_test/test_response.py b/tests/internal/auth_test/test_response.py index cb315a79..750d8530 100644 --- a/tests/internal/auth_test/test_response.py +++ b/tests/internal/auth_test/test_response.py @@ -1,10 +1,10 @@ -"""Tests agrirouter/auth/response.py""" +"""Tests src/auth/response.py""" import re import pytest -from agrirouter.auth.response import AuthResponse +from src.auth.response import AuthResponse from tests.common.constants import VALID_RESPONSE_SIGNATURE, VALID_RESPONSE_TOKEN, AR_PUBLIC_KEY diff --git a/tests/internal/enviroments_test/test_environmental_services.py b/tests/internal/enviroments_test/test_environmental_services.py index d88a0d77..f1f440c9 100644 --- a/tests/internal/enviroments_test/test_environmental_services.py +++ b/tests/internal/enviroments_test/test_environmental_services.py @@ -1,10 +1,10 @@ -"""Test agrirouter/environments/environmental_services.py""" +"""Test src/environments/environmental_services.py""" import pytest -from agrirouter.api.enums import Environments -from agrirouter.api.exceptions import InvalidEnvironmentSetup -from agrirouter.environments.environmental_services import EnvironmentalService +from src.api.enums import Environments +from src.api.exceptions import InvalidEnvironmentSetup +from src.environments.environmental_services import EnvironmentalService from tests.common.constants import ENV diff --git a/tests/internal/enviroments_test/test_environments.py b/tests/internal/enviroments_test/test_environments.py index 9f043108..6e534a66 100644 --- a/tests/internal/enviroments_test/test_environments.py +++ b/tests/internal/enviroments_test/test_environments.py @@ -1,7 +1,7 @@ -"""Test agrirouter/environments/environments.py""" +"""Test src/environments/environments.py""" -from agrirouter.api.environments import Production as PE -from agrirouter.api.environments import QA as QAE +from src.api.environments import Production as PE +from src.api.environments import QA as QAE from tests.common.constants import APPLICATION_ID diff --git a/tests/internal/messaging_test/test_decode.py b/tests/internal/messaging_test/test_decode.py index 78a2ea0c..4f8ceb4d 100644 --- a/tests/internal/messaging_test/test_decode.py +++ b/tests/internal/messaging_test/test_decode.py @@ -1,8 +1,8 @@ import json -from agrirouter.generated.messaging.response.response_pb2 import ResponseEnvelope -from agrirouter.messaging.decode import decode_details -from agrirouter.messaging.decode import decode_response +from src.generated.messaging.response.response_pb2 import ResponseEnvelope +from src.messaging.decode import decode_details +from src.messaging.decode import decode_response MESSAGING_RESULT = b'[{"sensorAlternateId":"185cd97b-ed0b-4e75-a6e2-6be1cdd38a06","capabilityAlternateId":"bbe9f361-b551-48d9-9fca-1b4dc768287c","command":{"message":"XwjIARAKGiQ5NWUzNWE0Zi1jNWM4LTQ1NDEtODE4OS03NmJlMzM0OTc0NDUiJDUzNzYyM2ZjLWY2NmYtNDc5Yi1hMmJhLWVjZjNlNWM3ZjhlMCoMCNTV5YsGEICI8LIDzQIKygIKTnR5cGVzLmFncmlyb3V0ZXIuY29tL2Fncmlyb3V0ZXIucmVzcG9uc2UucGF5bG9hZC5hY2NvdW50Lkxpc3RFbmRwb2ludHNSZXNwb25zZRL3AQp4CiRkNzA0YTQ0My05OWY3LTQ3YjQtYmU1NS1lMmZhMDk2ODllYmUSJFB5dGhvblNES19kZXYgLSAyMDIxLTEwLTI1LCAxMDo1MToxOBoLYXBwbGljYXRpb24iBmFjdGl2ZTIVdXJuOm15YXBwOnNucjAwMDAzMjM0CnsKJDE4NWNkOTdiLWVkMGItNGU3NS1hNmUyLTZiZTFjZGQzOGEwNhIkUHl0aG9uU0RLX2RldiAtIDIwMjEtMTAtMjEsIDIxOjQxOjI0GgthcHBsaWNhdGlvbiIGYWN0aXZlMhh1cm46bXlhcHA6c25yMDAwMDMyMzRzZGY="}}]' # noqa @@ -15,7 +15,7 @@ def test_decode_response(): assert message.response_payload.details - assert message.response_payload.details.type_url == "types.agrirouter.com/agrirouter.response.payload.account.ListEndpointsResponse" # noqa + assert message.response_payload.details.type_url == "types.src.com/src.response.payload.account.ListEndpointsResponse" # noqa assert message.response_payload.details.value == b'\nx\n$d704a443-99f7-47b4-be55-e2fa09689ebe\x12$PythonSDK_dev - 2021-10-25, 10:51:18\x1a\x0bapplication"\x06active2\x15urn:myapp:snr00003234\n{\n$185cd97b-ed0b-4e75-a6e2-6be1cdd38a06\x12$PythonSDK_dev - 2021-10-21, 21:41:24\x1a\x0bapplication"\x06active2\x18urn:myapp:snr00003234sdf' # noqa assert message.response_envelope.response_code == 200 diff --git a/tests/internal/messaging_test/test_encode.py b/tests/internal/messaging_test/test_encode.py index 886f4965..2cf2de45 100644 --- a/tests/internal/messaging_test/test_encode.py +++ b/tests/internal/messaging_test/test_encode.py @@ -1,9 +1,9 @@ from google.protobuf.any_pb2 import Any -from agrirouter.generated.commons.message_pb2 import Message, Messages -from agrirouter.generated.messaging.request.request_pb2 import RequestEnvelope, RequestPayloadWrapper -from agrirouter.messaging.decode import read_properties_buffers_from_input_stream -from agrirouter.messaging.encode import write_proto_parts_to_buffer +from src.generated.commons.message_pb2 import Message, Messages +from src.generated.messaging.request.request_pb2 import RequestEnvelope, RequestPayloadWrapper +from src.messaging.decode import read_properties_buffers_from_input_stream +from src.messaging.encode import write_proto_parts_to_buffer def test_write_proto_parts_to_buffer(): diff --git a/tests/internal/messaging_test/test_request.py b/tests/internal/messaging_test/test_request.py index 25771cef..b14cb907 100644 --- a/tests/internal/messaging_test/test_request.py +++ b/tests/internal/messaging_test/test_request.py @@ -1,7 +1,7 @@ -"""Test agrirouter/messaging/request.py""" +"""Test src/messaging/request.py""" -from agrirouter.messaging.messages import Message -from agrirouter.messaging.request import MessageRequest +from src.messaging.messages import Message +from src.messaging.request import MessageRequest def test_json_serialize(): diff --git a/tests/internal/onboarding_test/test_headers.py b/tests/internal/onboarding_test/test_headers.py index c4665ca5..b98abb99 100644 --- a/tests/internal/onboarding_test/test_headers.py +++ b/tests/internal/onboarding_test/test_headers.py @@ -1,6 +1,6 @@ -"""Test agrirouter/onboarding/headers.py""" -from agrirouter.api.enums import ContentTypes -from agrirouter.onboarding.headers import SoftwareOnboardingHeader +"""Test src/onboarding/headers.py""" +from src.api.enums import ContentTypes +from src.onboarding.headers import SoftwareOnboardingHeader class TestSoftwareOnboardingHeader: diff --git a/tests/internal/onboarding_test/test_onboarding.py b/tests/internal/onboarding_test/test_onboarding.py index a00e9db9..3e53701b 100644 --- a/tests/internal/onboarding_test/test_onboarding.py +++ b/tests/internal/onboarding_test/test_onboarding.py @@ -1,11 +1,11 @@ -"""Test agrirouter/onboarding/onboarding.py""" +"""Test src/onboarding/onboarding.py""" import pytest -from agrirouter.api.exceptions import WrongCertificationType, WrongGateWayType -from agrirouter.onboarding.enums import Gateways, CertificateTypes -from agrirouter.onboarding.onboarding import SecuredOnboardingService -from agrirouter.onboarding.parameters import OnboardParameters +from src.api.exceptions import WrongCertificationType, WrongGateWayType +from src.onboarding.enums import Gateways, CertificateTypes +from src.onboarding.onboarding import SecuredOnboardingService +from src.onboarding.parameters import OnboardParameters from tests.common.constants import PUBLIC_KEY, PRIVATE_KEY, ENV, APPLICATION_ID diff --git a/tests/internal/onboarding_test/test_onboarding_dto.py b/tests/internal/onboarding_test/test_onboarding_dto.py index ea725896..d61ee1df 100644 --- a/tests/internal/onboarding_test/test_onboarding_dto.py +++ b/tests/internal/onboarding_test/test_onboarding_dto.py @@ -1,8 +1,8 @@ -"""Tests agrirouter/onboarding/dto.py""" +"""Tests src/onboarding/dto.py""" import pytest -from agrirouter.api.exceptions import WrongField -from agrirouter.onboarding.dto import ConnectionCriteria, Authentication, ErrorResponse +from src.api.exceptions import WrongField +from src.onboarding.dto import ConnectionCriteria, Authentication, ErrorResponse class TestConnectionCriteria: diff --git a/tests/internal/onboarding_test/test_request_onboarding.py b/tests/internal/onboarding_test/test_request_onboarding.py index d62f26a3..ef5cb059 100644 --- a/tests/internal/onboarding_test/test_request_onboarding.py +++ b/tests/internal/onboarding_test/test_request_onboarding.py @@ -1,7 +1,7 @@ -"""Test agrirouter/onboarding/request.py""" +"""Test src/onboarding/request.py""" -from agrirouter import OnboardParameters, SecuredOnboardingService -from agrirouter.onboarding.enums import Gateways, CertificateTypes +from src import OnboardParameters, SecuredOnboardingService +from src.onboarding.enums import Gateways, CertificateTypes from tests.common.constants import APPLICATION_ID, PUBLIC_KEY, PRIVATE_KEY, ENV diff --git a/tests/internal/onboarding_test/test_signature.py b/tests/internal/onboarding_test/test_signature.py index f1bbde01..2fd0bf7d 100644 --- a/tests/internal/onboarding_test/test_signature.py +++ b/tests/internal/onboarding_test/test_signature.py @@ -1,9 +1,9 @@ -"""Test agrirouter/onboarding/signature.py""" +"""Test src/onboarding/signature.py""" import pytest from cryptography.exceptions import InvalidSignature -from agrirouter.onboarding.signature import create_signature, verify_signature +from src.onboarding.signature import create_signature, verify_signature from tests.common.constants import PRIVATE_KEY, PUBLIC_KEY diff --git a/tests/internal/test_revoking/test_parameters.py b/tests/internal/test_revoking/test_parameters.py index 5417e280..9eb2e5c0 100644 --- a/tests/internal/test_revoking/test_parameters.py +++ b/tests/internal/test_revoking/test_parameters.py @@ -1,6 +1,6 @@ -"""Test agrirouter/revoking/parameters.py""" +"""Test src/revoking/parameters.py""" -from agrirouter import RevokingParameter +from src import RevokingParameter from tests.common.constants import APPLICATION_ID diff --git a/tests/internal/test_validate_toml.py b/tests/internal/test_validate_toml.py new file mode 100644 index 00000000..2ef68e4b --- /dev/null +++ b/tests/internal/test_validate_toml.py @@ -0,0 +1,8 @@ +import toml + + +class TestTomlValidation: + + def test_validate_toml(self): + toml.load("../../pyproject.toml") + pass diff --git a/tests/service/messaging/mqtt/test_capability_service.py b/tests/service/messaging/mqtt/test_capability_service.py index b62c5d27..a192df2a 100644 --- a/tests/service/messaging/mqtt/test_capability_service.py +++ b/tests/service/messaging/mqtt/test_capability_service.py @@ -3,16 +3,16 @@ import pytest -from agrirouter.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification -from agrirouter.messaging.decode import decode_response, decode_details -from agrirouter.messaging.enums import CapabilityDirectionType -from agrirouter.messaging.enums import CapabilityType -from agrirouter.messaging.messages import OutboxMessage -from agrirouter.messaging.parameters.service import CapabilitiesParameters -from agrirouter.messaging.services.commons import MqttMessagingService -from agrirouter.messaging.services.messaging import CapabilitiesService -from agrirouter.messaging.services.sequence_number_service import SequenceNumberService -from agrirouter.utils.uuid_util import new_uuid +from src.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification +from src.messaging.decode import decode_response, decode_details +from src.messaging.enums import CapabilityDirectionType +from src.messaging.enums import CapabilityType +from src.messaging.messages import OutboxMessage +from src.messaging.parameters.service import CapabilitiesParameters +from src.messaging.services.commons import MqttMessagingService +from src.messaging.services.messaging import CapabilitiesService +from src.messaging.services.sequence_number_service import SequenceNumberService +from src.utils.uuid_util import new_uuid from tests.common.sleeper import Sleeper from tests.data.applications import CommunicationUnit from tests.data.identifier import Identifier diff --git a/tests/service/messaging/mqtt/test_feed_confirm_service.py b/tests/service/messaging/mqtt/test_feed_confirm_service.py index 33563c6d..00d749b1 100644 --- a/tests/service/messaging/mqtt/test_feed_confirm_service.py +++ b/tests/service/messaging/mqtt/test_feed_confirm_service.py @@ -3,18 +3,18 @@ import pytest -from agrirouter import FeedConfirmService, FeedDeleteService, FeedDeleteParameters, \ +from src import FeedConfirmService, FeedDeleteService, FeedDeleteParameters, \ FeedConfirmParameters -from agrirouter.generated.messaging.request.request_pb2 import RequestEnvelope -from agrirouter.messaging.decode import decode_response, decode_details -from agrirouter.messaging.enums import CapabilityType -from agrirouter.messaging.messages import OutboxMessage -from agrirouter.messaging.parameters.dto import SendMessageParameters -from agrirouter.messaging.services.commons import MqttMessagingService -from agrirouter.messaging.services.messaging import SendMessageService -from agrirouter.messaging.services.sequence_number_service import SequenceNumberService -from agrirouter.onboarding.response import OnboardResponse -from agrirouter.utils.uuid_util import new_uuid +from src.generated.messaging.request.request_pb2 import RequestEnvelope +from src.messaging.decode import decode_response, decode_details +from src.messaging.enums import CapabilityType +from src.messaging.messages import OutboxMessage +from src.messaging.parameters.dto import SendMessageParameters +from src.messaging.services.commons import MqttMessagingService +from src.messaging.services.messaging import SendMessageService +from src.messaging.services.sequence_number_service import SequenceNumberService +from src.onboarding.response import OnboardResponse +from src.utils.uuid_util import new_uuid from tests.common.data_provider import DataProvider from tests.common.sleeper import Sleeper from tests.data.identifier import Identifier @@ -63,7 +63,7 @@ def fixture(self): def send_message_before_the_test_run(self): """ Send a valid message content to a single recipient after enabling IMG_PNG capability with - sender and recipient. Open Connection between Recipient and agrirouter is required. The setup between the + sender and recipient. Open Connection between Recipient and src is required. The setup between the sender and the recipient has been done before running the test. """ self._log.info("Sending a message before the test run") @@ -216,7 +216,7 @@ def _inner_function(client, userdata, msg): """ Callback to set the received message ids """ - self._log.info("Received message for recipient from the agrirouter: %s", + self._log.info("Received message for recipient from the src: %s", msg.payload.decode()) outbox_message = OutboxMessage() outbox_message.json_deserialize(msg.payload.decode().replace("'", '"')) @@ -224,7 +224,7 @@ def _inner_function(client, userdata, msg): if decoded_message.response_envelope.type != 12: decoded_details = decode_details(decoded_message.response_payload.details) self._log.error( - f"Received wrong message from the agrirouter: {str(decoded_details)}") + f"Received wrong message from the src: {str(decoded_details)}") push_notification = decode_details(decoded_message.response_payload.details) assert decoded_message.response_envelope.response_code == 200 self._received_messages = push_notification.messages[0] diff --git a/tests/service/messaging/mqtt/test_feed_delete_service.py b/tests/service/messaging/mqtt/test_feed_delete_service.py index c28fe646..cb1b000d 100644 --- a/tests/service/messaging/mqtt/test_feed_delete_service.py +++ b/tests/service/messaging/mqtt/test_feed_delete_service.py @@ -3,16 +3,16 @@ import pytest -from agrirouter import FeedDeleteService, FeedDeleteParameters -from agrirouter.generated.messaging.request.request_pb2 import RequestEnvelope -from agrirouter.messaging.decode import decode_response, decode_details -from agrirouter.messaging.enums import CapabilityType -from agrirouter.messaging.messages import OutboxMessage -from agrirouter.messaging.services.commons import MqttMessagingService -from agrirouter.messaging.services.messaging import SendMessageService, SendMessageParameters -from agrirouter.messaging.services.sequence_number_service import SequenceNumberService -from agrirouter.utils.utc_time_util import max_validity_period, validity_period_for_seconds -from agrirouter.utils.uuid_util import new_uuid +from src import FeedDeleteService, FeedDeleteParameters +from src.generated.messaging.request.request_pb2 import RequestEnvelope +from src.messaging.decode import decode_response, decode_details +from src.messaging.enums import CapabilityType +from src.messaging.messages import OutboxMessage +from src.messaging.services.commons import MqttMessagingService +from src.messaging.services.messaging import SendMessageService, SendMessageParameters +from src.messaging.services.sequence_number_service import SequenceNumberService +from src.utils.utc_time_util import max_validity_period, validity_period_for_seconds +from src.utils.uuid_util import new_uuid from tests.common.data_provider import DataProvider from tests.common.sleeper import Sleeper from tests.data.identifier import Identifier @@ -57,7 +57,7 @@ def fixture(self): def send_message_before_the_test_run(self): """ Send a valid message content to a single recipient after enabling IMG_PNG capability with - sender and recipient. Open Connection between Recipient and agrirouter is required. The setup between the + sender and recipient. Open Connection between Recipient and src is required. The setup between the sender and the recipient has been done before running the test. """ self._log.info("Sending a message before the test run") @@ -308,7 +308,7 @@ def _inner_function(client, userdata, msg): """ Callback to set the received message ids """ - self._log.info("Received message for recipient from the agrirouter: %s", + self._log.info("Received message for recipient from the src: %s", msg.payload.decode()) outbox_message = OutboxMessage() outbox_message.json_deserialize(msg.payload.decode().replace("'", '"')) @@ -316,7 +316,7 @@ def _inner_function(client, userdata, msg): if decoded_message.response_envelope.type != 12: decoded_details = decode_details(decoded_message.response_payload.details) self._log.error( - f"Received wrong message from the agrirouter: {str(decoded_details)}") + f"Received wrong message from the src: {str(decoded_details)}") push_notification = decode_details(decoded_message.response_payload.details) assert decoded_message.response_envelope.response_code == 200 self._received_messages = push_notification.messages[0] diff --git a/tests/service/messaging/mqtt/test_list_endpoints_service.py b/tests/service/messaging/mqtt/test_list_endpoints_service.py index a443a446..46c3dbe0 100644 --- a/tests/service/messaging/mqtt/test_list_endpoints_service.py +++ b/tests/service/messaging/mqtt/test_list_endpoints_service.py @@ -3,13 +3,13 @@ import pytest -from agrirouter import ListEndpointsService, ListEndpointsParameters -from agrirouter.messaging.decode import decode_response, decode_details -from agrirouter.messaging.enums import CapabilityType, CapabilityDirectionType -from agrirouter.messaging.messages import OutboxMessage -from agrirouter.messaging.services.commons import MqttMessagingService -from agrirouter.messaging.services.sequence_number_service import SequenceNumberService -from agrirouter.utils.uuid_util import new_uuid +from src import ListEndpointsService, ListEndpointsParameters +from src.messaging.decode import decode_response, decode_details +from src.messaging.enums import CapabilityType, CapabilityDirectionType +from src.messaging.messages import OutboxMessage +from src.messaging.services.commons import MqttMessagingService +from src.messaging.services.sequence_number_service import SequenceNumberService +from src.utils.uuid_util import new_uuid from tests.common.sleeper import Sleeper from tests.data.identifier import Identifier from tests.data.onboard_response_integration_service import read_onboard_response diff --git a/tests/service/messaging/mqtt/test_publish_message_service.py b/tests/service/messaging/mqtt/test_publish_message_service.py index a8113260..7001cf47 100644 --- a/tests/service/messaging/mqtt/test_publish_message_service.py +++ b/tests/service/messaging/mqtt/test_publish_message_service.py @@ -3,16 +3,16 @@ import pytest -from agrirouter import FeedDeleteParameters -from agrirouter.generated.messaging.request.request_pb2 import RequestEnvelope -from agrirouter.messaging.decode import decode_response, decode_details -from agrirouter.messaging.enums import CapabilityType -from agrirouter.messaging.messages import OutboxMessage -from agrirouter.messaging.services.commons import MqttMessagingService -from agrirouter.messaging.services.messaging import SendMessageService, SendMessageParameters, FeedDeleteService -from agrirouter.messaging.services.sequence_number_service import SequenceNumberService -from agrirouter.onboarding.response import OnboardResponse -from agrirouter.utils.uuid_util import new_uuid +from src import FeedDeleteParameters +from src.generated.messaging.request.request_pb2 import RequestEnvelope +from src.messaging.decode import decode_response, decode_details +from src.messaging.enums import CapabilityType +from src.messaging.messages import OutboxMessage +from src.messaging.services.commons import MqttMessagingService +from src.messaging.services.messaging import SendMessageService, SendMessageParameters, FeedDeleteService +from src.messaging.services.sequence_number_service import SequenceNumberService +from src.onboarding.response import OnboardResponse +from src.utils.uuid_util import new_uuid from tests.common.data_provider import DataProvider from tests.common.sleeper import Sleeper from tests.data.identifier import Identifier @@ -62,7 +62,7 @@ def test_given_valid_message_content_when_sending_message_to_single_recipient_th self): """ Test for publishing the valid message content to a single recipient after enabling IMG_PNG capability with - sender and recipient Open Connection between Recipient and agrirouter is required. The setup between the + sender and recipient Open Connection between Recipient and src is required. The setup between the sender and the recipient are done before running the test. """ @@ -98,7 +98,7 @@ def _inner_function(client, userdata, msg): """ Callback to handle the incoming messages from the MQTT broker """ - self._log.info("Received message for sender from the agrirouter: %s", + self._log.info("Received message for sender from the src: %s", msg.payload.decode()) outbox_message = OutboxMessage() outbox_message.json_deserialize(msg.payload.decode().replace("'", '"')) @@ -106,7 +106,7 @@ def _inner_function(client, userdata, msg): if decoded_message.response_envelope.type != 1: decoded_details = decode_details(decoded_message.response_payload.details) self._log.error( - f"Received wrong message from the agrirouter: {str(decoded_details)}") + f"Received wrong message from the src: {str(decoded_details)}") assert decoded_message.response_envelope.response_code == 201 self._callback_for_sender_processed = True @@ -117,7 +117,7 @@ def _inner_function(client, userdata, msg): """ Callback to handle the incoming messages from the MQTT broker """ - self._log.info("Received message for recipient from the agrirouter: %s", + self._log.info("Received message for recipient from the src: %s", msg.payload.decode()) outbox_message = OutboxMessage() outbox_message.json_deserialize(msg.payload.decode().replace("'", '"')) @@ -125,7 +125,7 @@ def _inner_function(client, userdata, msg): if decoded_message.response_envelope.type != 12: decoded_details = decode_details(decoded_message.response_payload.details) self._log.error( - f"Received wrong message from the agrirouter: {str(decoded_details)}") + f"Received wrong message from the src: {str(decoded_details)}") push_notification = decode_details(decoded_message.response_payload.details) assert decoded_message.response_envelope.response_code == 200 assert DataProvider.get_hash( diff --git a/tests/service/messaging/mqtt/test_query_header_service.py b/tests/service/messaging/mqtt/test_query_header_service.py index 085dbda7..23373c0f 100644 --- a/tests/service/messaging/mqtt/test_query_header_service.py +++ b/tests/service/messaging/mqtt/test_query_header_service.py @@ -4,17 +4,17 @@ import pytest -from agrirouter import QueryHeaderService, QueryHeaderParameters, FeedDeleteService, FeedDeleteParameters -from agrirouter.generated.messaging.request.request_pb2 import RequestEnvelope -from agrirouter.messaging.decode import decode_response, decode_details -from agrirouter.messaging.enums import CapabilityType -from agrirouter.messaging.messages import OutboxMessage -from agrirouter.messaging.services.commons import MqttMessagingService -from agrirouter.messaging.services.messaging import SendMessageService, SendMessageParameters -from agrirouter.messaging.services.sequence_number_service import SequenceNumberService -from agrirouter.onboarding.response import OnboardResponse -from agrirouter.utils.utc_time_util import max_validity_period, validity_period_for_seconds -from agrirouter.utils.uuid_util import new_uuid +from src import QueryHeaderService, QueryHeaderParameters, FeedDeleteService, FeedDeleteParameters +from src.generated.messaging.request.request_pb2 import RequestEnvelope +from src.messaging.decode import decode_response, decode_details +from src.messaging.enums import CapabilityType +from src.messaging.messages import OutboxMessage +from src.messaging.services.commons import MqttMessagingService +from src.messaging.services.messaging import SendMessageService, SendMessageParameters +from src.messaging.services.sequence_number_service import SequenceNumberService +from src.onboarding.response import OnboardResponse +from src.utils.utc_time_util import max_validity_period, validity_period_for_seconds +from src.utils.uuid_util import new_uuid from tests.common.data_provider import DataProvider from tests.common.sleeper import Sleeper from tests.data.identifier import Identifier @@ -65,7 +65,7 @@ def fixture(self): def send_message_before_the_test_run(self): """ Send a valid message content to a single recipient after enabling IMG_PNG capability with - sender and recipient. Open Connection between Recipient and agrirouter is required. The setup between the + sender and recipient. Open Connection between Recipient and src is required. The setup between the sender and the recipient has been done before running the test. """ self._log.info("Sending a message before the test run") @@ -112,7 +112,7 @@ def _inner_function(client, userdata, msg): """ Callback to set the received message ids """ - self._log.info("Received message for recipient from the agrirouter: %s", + self._log.info("Received message for recipient from the src: %s", msg.payload.decode()) outbox_message = OutboxMessage() outbox_message.json_deserialize(msg.payload.decode().replace("'", '"')) @@ -120,7 +120,7 @@ def _inner_function(client, userdata, msg): if decoded_message.response_envelope.type != 12: decoded_details = decode_details(decoded_message.response_payload.details) self._log.error( - f"Received wrong message from the agrirouter: {str(decoded_details)}") + f"Received wrong message from the src: {str(decoded_details)}") push_notification = decode_details(decoded_message.response_payload.details) self._received_messages = push_notification.messages[0].header.message_id assert decoded_message.response_envelope.response_code == 200 @@ -410,7 +410,7 @@ def _inner_function(client, userdata, msg): """ Callback to handle the incoming messages from the MQTT broker """ - self._log.info("Received message for recipient from the agrirouter: %s", + self._log.info("Received message for recipient from the src: %s", msg.payload.decode()) outbox_message = OutboxMessage() outbox_message.json_deserialize(msg.payload.decode().replace("'", '"')) @@ -418,7 +418,7 @@ def _inner_function(client, userdata, msg): if decoded_message.response_envelope.type != 12: decoded_details = decode_details(decoded_message.response_payload.details) self._log.error( - f"Received wrong message from the agrirouter: {str(decoded_details)}") + f"Received wrong message from the src: {str(decoded_details)}") push_notification = decode_details(decoded_message.response_payload.details) assert decoded_message.response_envelope.response_code == 200 assert DataProvider.get_hash( diff --git a/tests/service/messaging/mqtt/test_query_message_service.py b/tests/service/messaging/mqtt/test_query_message_service.py index 5bc1c6f2..c4c35609 100644 --- a/tests/service/messaging/mqtt/test_query_message_service.py +++ b/tests/service/messaging/mqtt/test_query_message_service.py @@ -4,17 +4,17 @@ import pytest -from agrirouter import QueryMessagesService, QueryMessageParameters, FeedDeleteService, FeedDeleteParameters -from agrirouter.generated.messaging.request.request_pb2 import RequestEnvelope -from agrirouter.messaging.decode import decode_response, decode_details -from agrirouter.messaging.enums import CapabilityType -from agrirouter.messaging.messages import OutboxMessage -from agrirouter.messaging.services.commons import MqttMessagingService -from agrirouter.messaging.services.messaging import SendMessageService, SendMessageParameters -from agrirouter.messaging.services.sequence_number_service import SequenceNumberService -from agrirouter.onboarding.response import OnboardResponse -from agrirouter.utils.utc_time_util import max_validity_period, validity_period_for_seconds -from agrirouter.utils.uuid_util import new_uuid +from src import QueryMessagesService, QueryMessageParameters, FeedDeleteService, FeedDeleteParameters +from src.generated.messaging.request.request_pb2 import RequestEnvelope +from src.messaging.decode import decode_response, decode_details +from src.messaging.enums import CapabilityType +from src.messaging.messages import OutboxMessage +from src.messaging.services.commons import MqttMessagingService +from src.messaging.services.messaging import SendMessageService, SendMessageParameters +from src.messaging.services.sequence_number_service import SequenceNumberService +from src.onboarding.response import OnboardResponse +from src.utils.utc_time_util import max_validity_period, validity_period_for_seconds +from src.utils.uuid_util import new_uuid from tests.common.data_provider import DataProvider from tests.common.sleeper import Sleeper from tests.data.identifier import Identifier @@ -65,7 +65,7 @@ def fixture(self): def send_message_before_the_test_run(self): """ Send a valid message content to a single recipient after enabling IMG_PNG capability with - sender and recipient. Open Connection between Recipient and agrirouter is required. The setup between the + sender and recipient. Open Connection between Recipient and src is required. The setup between the sender and the recipient has been done before running the test. """ self._log.info("Sending a message before the test run") @@ -307,7 +307,7 @@ def _inner_function(client, userdata, msg): """ Callback to set the received message ids """ - self._log.info("Received message for recipient from the agrirouter: %s", + self._log.info("Received message for recipient from the src: %s", msg.payload.decode()) outbox_message = OutboxMessage() outbox_message.json_deserialize(msg.payload.decode().replace("'", '"')) @@ -315,7 +315,7 @@ def _inner_function(client, userdata, msg): if decoded_message.response_envelope.type != 12: decoded_details = decode_details(decoded_message.response_payload.details) self._log.error( - f"Received wrong message from the agrirouter: {str(decoded_details)}") + f"Received wrong message from the src: {str(decoded_details)}") push_notification = decode_details(decoded_message.response_payload.details) assert decoded_message.response_envelope.response_code == 200 self._received_messages = push_notification.messages[0] diff --git a/tests/service/messaging/mqtt/test_send_and_receive_chunked_messages_from_the_feed.py b/tests/service/messaging/mqtt/test_send_and_receive_chunked_messages_from_the_feed.py index 6e740d85..ab6d519d 100644 --- a/tests/service/messaging/mqtt/test_send_and_receive_chunked_messages_from_the_feed.py +++ b/tests/service/messaging/mqtt/test_send_and_receive_chunked_messages_from_the_feed.py @@ -4,18 +4,18 @@ import pytest -from agrirouter import FeedDeleteService, FeedDeleteParameters, MessageHeaderParameters, MessagePayloadParameters, \ +from src import FeedDeleteService, FeedDeleteParameters, MessageHeaderParameters, MessagePayloadParameters, \ SendChunkedMessageService, QueryHeaderService, QueryHeaderParameters -from agrirouter.generated.messaging.request.request_pb2 import RequestEnvelope -from agrirouter.messaging.decode import decode_response, decode_details -from agrirouter.messaging.encode import chunk_and_base64encode_each_chunk, encode_chunks_message -from agrirouter.messaging.enums import CapabilityType, TechnicalMessageType -from agrirouter.messaging.messages import OutboxMessage -from agrirouter.messaging.parameters.dto import ChunkedMessageParameters -from agrirouter.messaging.services.commons import MqttMessagingService -from agrirouter.messaging.services.sequence_number_service import SequenceNumberService -from agrirouter.onboarding.response import OnboardResponse -from agrirouter.utils.uuid_util import new_uuid +from src.generated.messaging.request.request_pb2 import RequestEnvelope +from src.messaging.decode import decode_response, decode_details +from src.messaging.encode import chunk_and_base64encode_each_chunk, encode_chunks_message +from src.messaging.enums import CapabilityType, TechnicalMessageType +from src.messaging.messages import OutboxMessage +from src.messaging.parameters.dto import ChunkedMessageParameters +from src.messaging.services.commons import MqttMessagingService +from src.messaging.services.sequence_number_service import SequenceNumberService +from src.onboarding.response import OnboardResponse +from src.utils.uuid_util import new_uuid from tests.common.data_provider import DataProvider from tests.common.sleeper import Sleeper from tests.data.identifier import Identifier @@ -186,7 +186,7 @@ def _inner_function(client, userdata, msg): """ Callback to handle the incoming messages from the MQTT broker """ - self._log.info("Received message for recipient from the agrirouter: %s", + self._log.info("Received message for recipient from the src: %s", msg.payload.decode()) outbox_message = OutboxMessage() outbox_message.json_deserialize(msg.payload.decode().replace("'", '"')) @@ -194,7 +194,7 @@ def _inner_function(client, userdata, msg): if decoded_message.response_envelope.type != 12: decoded_details = decode_details(decoded_message.response_payload.details) self._log.error( - f"Received wrong message from the agrirouter: {str(decoded_details)}") + f"Received wrong message from the src: {str(decoded_details)}") push_notification = decode_details(decoded_message.response_payload.details) current_chunked_message = push_notification.messages[0].content.value self._received_messages.append(push_notification.messages[0].header.message_id) diff --git a/tests/service/messaging/mqtt/test_send_chunked_messages_and_receive_with_push_notifications.py b/tests/service/messaging/mqtt/test_send_chunked_messages_and_receive_with_push_notifications.py index dafd1fd2..5e9cf31e 100644 --- a/tests/service/messaging/mqtt/test_send_chunked_messages_and_receive_with_push_notifications.py +++ b/tests/service/messaging/mqtt/test_send_chunked_messages_and_receive_with_push_notifications.py @@ -3,18 +3,18 @@ import pytest -from agrirouter import FeedDeleteService, FeedDeleteParameters, MessageHeaderParameters, MessagePayloadParameters, \ +from src import FeedDeleteService, FeedDeleteParameters, MessageHeaderParameters, MessagePayloadParameters, \ SendChunkedMessageService -from agrirouter.generated.messaging.request.request_pb2 import RequestEnvelope -from agrirouter.messaging.decode import decode_response, decode_details -from agrirouter.messaging.encode import chunk_and_base64encode_each_chunk, encode_chunks_message -from agrirouter.messaging.enums import CapabilityType, TechnicalMessageType -from agrirouter.messaging.messages import OutboxMessage -from agrirouter.messaging.parameters.dto import ChunkedMessageParameters -from agrirouter.messaging.services.commons import MqttMessagingService -from agrirouter.messaging.services.sequence_number_service import SequenceNumberService -from agrirouter.onboarding.response import OnboardResponse -from agrirouter.utils.uuid_util import new_uuid +from src.generated.messaging.request.request_pb2 import RequestEnvelope +from src.messaging.decode import decode_response, decode_details +from src.messaging.encode import chunk_and_base64encode_each_chunk, encode_chunks_message +from src.messaging.enums import CapabilityType, TechnicalMessageType +from src.messaging.messages import OutboxMessage +from src.messaging.parameters.dto import ChunkedMessageParameters +from src.messaging.services.commons import MqttMessagingService +from src.messaging.services.sequence_number_service import SequenceNumberService +from src.onboarding.response import OnboardResponse +from src.utils.uuid_util import new_uuid from tests.common.data_provider import DataProvider from tests.common.sleeper import Sleeper from tests.data.identifier import Identifier @@ -156,7 +156,7 @@ def _inner_function(client, userdata, msg): """ Callback to handle the incoming messages from the MQTT broker """ - self._log.info("Received message for recipient from the agrirouter: %s", + self._log.info("Received message for recipient from the src: %s", msg.payload.decode()) outbox_message = OutboxMessage() outbox_message.json_deserialize(msg.payload.decode().replace("'", '"')) @@ -164,7 +164,7 @@ def _inner_function(client, userdata, msg): if decoded_message.response_envelope.type != 12: decoded_details = decode_details(decoded_message.response_payload.details) self._log.error( - f"Received wrong message from the agrirouter: {str(decoded_details)}") + f"Received wrong message from the src: {str(decoded_details)}") push_notification = decode_details(decoded_message.response_payload.details) current_chunked_message = push_notification.messages[0].content.value assert decoded_message.response_envelope.response_code == 200 diff --git a/tests/service/messaging/mqtt/test_send_direct_message_service.py b/tests/service/messaging/mqtt/test_send_direct_message_service.py index 5920a9f1..967f32c5 100644 --- a/tests/service/messaging/mqtt/test_send_direct_message_service.py +++ b/tests/service/messaging/mqtt/test_send_direct_message_service.py @@ -3,16 +3,16 @@ import pytest -from agrirouter import FeedDeleteParameters -from agrirouter.generated.messaging.request.request_pb2 import RequestEnvelope -from agrirouter.messaging.decode import decode_response, decode_details -from agrirouter.messaging.enums import CapabilityType -from agrirouter.messaging.messages import OutboxMessage -from agrirouter.messaging.services.commons import MqttMessagingService -from agrirouter.messaging.services.messaging import SendMessageService, SendMessageParameters, FeedDeleteService -from agrirouter.messaging.services.sequence_number_service import SequenceNumberService -from agrirouter.onboarding.response import OnboardResponse -from agrirouter.utils.uuid_util import new_uuid +from src import FeedDeleteParameters +from src.generated.messaging.request.request_pb2 import RequestEnvelope +from src.messaging.decode import decode_response, decode_details +from src.messaging.enums import CapabilityType +from src.messaging.messages import OutboxMessage +from src.messaging.services.commons import MqttMessagingService +from src.messaging.services.messaging import SendMessageService, SendMessageParameters, FeedDeleteService +from src.messaging.services.sequence_number_service import SequenceNumberService +from src.onboarding.response import OnboardResponse +from src.utils.uuid_util import new_uuid from tests.common.data_provider import DataProvider from tests.common.sleeper import Sleeper from tests.data.identifier import Identifier @@ -62,7 +62,7 @@ def test_given_valid_message_content_when_sending_message_to_single_recipient_th self): """ Test for sending the valid message content to a single recipient after enabling IMG_PNG capability with - sender and recipient Open Connection between Recipient and agrirouter is required. The setup between the + sender and recipient Open Connection between Recipient and src is required. The setup between the sender and the recipient are done before running the test. """ @@ -100,7 +100,7 @@ def _inner_function(client, userdata, msg): """ Callback to handle the incoming messages from the MQTT broker """ - self._log.info("Received message for sender from the agrirouter: %s", + self._log.info("Received message for sender from the src: %s", msg.payload.decode()) outbox_message = OutboxMessage() outbox_message.json_deserialize(msg.payload.decode().replace("'", '"')) @@ -108,7 +108,7 @@ def _inner_function(client, userdata, msg): if decoded_message.response_envelope.type != 1: decoded_details = decode_details(decoded_message.response_payload.details) self._log.error( - f"Received wrong message from the agrirouter: {str(decoded_details)}") + f"Received wrong message from the src: {str(decoded_details)}") assert decoded_message.response_envelope.response_code == 201 self._callback_for_sender_processed = True @@ -119,7 +119,7 @@ def _inner_function(client, userdata, msg): """ Callback to handle the incoming messages from the MQTT broker """ - self._log.info("Received message for recipient from the agrirouter: %s", + self._log.info("Received message for recipient from the src: %s", msg.payload.decode()) outbox_message = OutboxMessage() outbox_message.json_deserialize(msg.payload.decode().replace("'", '"')) @@ -127,7 +127,7 @@ def _inner_function(client, userdata, msg): if decoded_message.response_envelope.type != 12: decoded_details = decode_details(decoded_message.response_payload.details) self._log.error( - f"Received wrong message from the agrirouter: {str(decoded_details)}") + f"Received wrong message from the src: {str(decoded_details)}") push_notification = decode_details(decoded_message.response_payload.details) assert decoded_message.response_envelope.response_code == 200 assert DataProvider.get_hash( diff --git a/tests/service/messaging/mqtt/test_subscription_service.py b/tests/service/messaging/mqtt/test_subscription_service.py index 7852871d..258cd052 100644 --- a/tests/service/messaging/mqtt/test_subscription_service.py +++ b/tests/service/messaging/mqtt/test_subscription_service.py @@ -3,16 +3,16 @@ import pytest -from agrirouter.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification -from agrirouter.generated.messaging.request.payload.endpoint.subscription_pb2 import Subscription -from agrirouter.messaging.decode import decode_response, decode_details -from agrirouter.messaging.enums import CapabilityType, CapabilityDirectionType -from agrirouter.messaging.messages import OutboxMessage -from agrirouter.messaging.parameters.service import SubscriptionParameters, CapabilitiesParameters -from agrirouter.messaging.services.commons import MqttMessagingService -from agrirouter.messaging.services.messaging import SubscriptionService, CapabilitiesService -from agrirouter.messaging.services.sequence_number_service import SequenceNumberService -from agrirouter.utils.uuid_util import new_uuid +from src.generated.messaging.request.payload.endpoint.capabilities_pb2 import CapabilitySpecification +from src.generated.messaging.request.payload.endpoint.subscription_pb2 import Subscription +from src.messaging.decode import decode_response, decode_details +from src.messaging.enums import CapabilityType, CapabilityDirectionType +from src.messaging.messages import OutboxMessage +from src.messaging.parameters.service import SubscriptionParameters, CapabilitiesParameters +from src.messaging.services.commons import MqttMessagingService +from src.messaging.services.messaging import SubscriptionService, CapabilitiesService +from src.messaging.services.sequence_number_service import SequenceNumberService +from src.utils.uuid_util import new_uuid from tests.common.sleeper import Sleeper from tests.data.applications import CommunicationUnit from tests.data.identifier import Identifier