diff --git a/Dockerfile b/Dockerfile index 5ba19fb2..82197d6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,83 +1,59 @@ -# Use an x86_64 specific base image -FROM --platform=linux/amd64 ubuntu:20.04 +# Use Python 3.11 slim image for reliable cross-platform builds +FROM --platform=linux/amd64 python:3.11-slim # Set up environment -ENV DEBIAN_FRONTEND=noninteractive -ENV PYTHONUNBUFFERED=1 -WORKDIR /workspace +ENV DEBIAN_FRONTEND=noninteractive \ + PYTHONUNBUFFERED=1 \ + POETRY_HOME="/opt/poetry" \ + POETRY_VIRTUALENVS_IN_PROJECT=true \ + POETRY_NO_INTERACTION=1 +ENV PATH="$POETRY_HOME/bin:$PATH" + +# Set shell to fail on errors in pipelines +SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Install system dependencies -RUN apt-get update && apt-get install -y \ - software-properties-common && \ - add-apt-repository ppa:deadsnakes/ppa && \ - apt-get update && apt-get install -y \ - python3.10 python3.10-venv python3.10-distutils \ - protobuf-compiler ffmpeg git curl build-essential libffi-dev libssl-dev \ - pkg-config libhdf5-dev openjdk-11-jdk wget gnupg unzip && \ +# Combining into a single RUN layer and cleaning up reduces image size +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + protobuf-compiler \ + ffmpeg \ + git \ + curl \ + unzip \ + build-essential \ + libffi-dev \ + libssl-dev \ + pkg-config \ + libhdf5-dev && \ rm -rf /var/lib/apt/lists/* -# Create virtual environment -RUN python3.10 -m venv /opt/venv - -# Install pip properly -RUN curl -sS https://bootstrap.pypa.io/get-pip.py | /opt/venv/bin/python - -# Upgrade pip and install essential packages -RUN /opt/venv/bin/pip install --upgrade pip setuptools wheel - # Install Poetry -RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry /opt/venv/bin/python - && \ - cd /usr/local/bin && \ - ln -s /opt/poetry/bin/poetry +RUN curl -sSL https://install.python-poetry.org | python3 - -# Add virtual environment and Poetry to PATH -ENV PATH="/opt/venv/bin:/opt/poetry/bin:$PATH" - -# Install Bazel (required for some dependencies) -RUN wget https://github.com/bazelbuild/bazel/releases/download/5.1.1/bazel-5.1.1-installer-linux-x86_64.sh && \ - chmod +x bazel-5.1.1-installer-linux-x86_64.sh && \ - ./bazel-5.1.1-installer-linux-x86_64.sh && \ - rm bazel-5.1.1-installer-linux-x86_64.sh - -# Clone the repository to a temporary location -RUN git clone https://github.com/google/sbsim.git /tmp/sbsim - -# Configure poetry -RUN cd /tmp/sbsim && \ - poetry config virtualenvs.create false && \ - poetry config installer.max-workers 10 +# Set main working directory +WORKDIR /workspace -# Install base dependencies first -RUN /opt/venv/bin/pip install \ - jupyter \ - notebook \ - dm-reverb==0.14.0 \ - urllib3 \ - html5lib \ - requests +# Copy only the necessary files for dependency installation first (layer caching) +COPY pyproject.toml poetry.lock ./ -# Install dependencies from the temporary location -RUN cd /tmp/sbsim && \ - poetry lock && \ - poetry install --no-root +# Install Python dependencies using Poetry (without root package) +RUN poetry install --no-root --with dev,notebooks -# Build .proto files -RUN cd /tmp/sbsim/smart_control/proto && \ - protoc --python_out=. smart_control_building.proto \ - smart_control_normalization.proto \ - smart_control_reward.proto +# Copy the rest of the application code +COPY . . -# Create a startup script that copies files on container start -RUN echo '#!/bin/bash\n\ -source /opt/venv/bin/activate\n\ -if [ ! -d "/workspace/sbsim/.git" ]; then\n\ - cp -r /tmp/sbsim/. /workspace/sbsim/\n\ -fi\n\ -cd /workspace/sbsim\n\ -jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root --NotebookApp.token="" --no-browser --notebook-dir=/workspace/sbsim' > /start.sh && \ - chmod +x /start.sh +# Install the project and regenerate protobuf files +RUN poetry install && \ + poetry run python -m grpc_tools.protoc \ + --proto_path=smart_control/proto \ + --python_out=smart_control/proto \ + smart_control/proto/smart_control_building.proto \ + smart_control/proto/smart_control_normalization.proto \ + smart_control/proto/smart_control_reward.proto -# Set up environment variables for Jupyter Notebook +# Expose port for Jupyter EXPOSE 8888 -CMD ["/start.sh"] +# Default command: launch Jupyter notebook +CMD ["poetry", "run", "jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--allow-root", "--no-browser", "--ServerApp.token=''"] diff --git a/docs/setup/docker.md b/docs/setup/docker.md index a723adb9..06fc82ff 100644 --- a/docs/setup/docker.md +++ b/docs/setup/docker.md @@ -1,127 +1,146 @@ # Docker Setup Guide -To get the repository set up on non-Linux environments, you can use the -pre-configured Docker environment ("Linux/amd64") specified by the "Dockerfile". +To get the repository set up on **non-Linux** environments (e.g. macOS on Apple Silicon), use the pre-configured Docker environment (`linux/amd64`) defined in the `Dockerfile`. -## Installing Docker +## 1. Prerequisites -First, install -[Docker Desktop](https://www.docker.com/products/docker-desktop/), and accept -the terms. +1. **Docker Desktop**: Download and install from [docker.com](https://www.docker.com/products/docker-desktop). +2. **Rosetta on Apple Silicon**: In Docker Desktop, enable **Use Rosetta for x86/amd64 images** under **Settings ▶ Experimental Features**. +3. **Verify** installation: -Open Docker Desktop, and wait until it is running before proceeding. + ```bash + docker --version + docker run --platform linux/amd64 hello-world + ``` -Verify the installation: +If `hello-world` succeeds, you're ready to proceed. -```sh -docker --version +> **Apple Silicon Note:** +> Some TensorFlow-related dependencies may not work properly on `linux/arm64`. +> If Docker build fails, add `--platform=linux/amd64` to force x86_64 emulation. +> Note that emulation may be slow and TensorFlow workloads may crash or hang +> due to resource constraints. For heavy TF workloads, consider using a native +> Linux environment or cloud-based compute. -docker run hello-world -``` +--- -### Troubleshooting Installation Issues on Mac +## 2. Build the Docker Image -On Mac, if verification fails, try: +From the project root (where `Dockerfile` lives), run: -```sh -/Applications/Docker.app/Contents/Resources/bin/docker --version +```bash +# Build the image (uses python:3.11-slim as base) +docker build -t sbsim:latest . ``` -If that works, as a one time setup step, update the ".zshrc" file to add the -installed location to the path: - -```sh -# this is the "~/.zshrc" file... -export PATH="/Applications/Docker.app/Contents/Resources/bin:$PATH" -``` +> On Apple Silicon, the Dockerfile already specifies `--platform=linux/amd64`. +> If you encounter issues, try explicitly passing the platform flag: +> +> ```bash +> docker build --platform linux/amd64 -t sbsim:latest . +> ``` -Remember to restart your shell afterwards: +Confirm the image exists: -```sh -source ~/.zshrc +```bash +docker images sbsim:latest ``` -Now you should be able to verify the installation: +--- + +## 3. Run the Container in Detached Mode -```sh -docker --version +We recommend running the container _detached_ so you can open shells, run tests, and launch Jupyter without tying up your terminal: -docker run hello-world +```bash +docker run -d \ + --name sbsim-container \ + -p 8888:8888 \ + -v "$(pwd)":/workspace \ + sbsim:latest ``` -## Image Operations +> **Note:** This mounts your local code into `/workspace` in the container, enabling live edits. -Ensure you have navigated to the root directory of the repository, where the -"Dockerfile" is located, before proceeding. +### 3.1 Access Jupyter -Build the image: +Open your browser at: -```bash -docker build -t sbsim-docker-env . ``` - -Listing images: - -```sh -docker images +http://localhost:8888 ``` -Removing the image, as necessary: +Because we disable the token in our `CMD`, no password is needed. If you see a deprecation warning for `NotebookApp.token`, you can instead use: -```sh -docker rmi sbsim-docker-env +```bash +jupyter notebook --no-browser --ServerApp.token='' ``` -## Container Operations +--- + +## 4. Exec into the Running Container -After the image is built, run the container (in interactive mode, with open -ports): +To run commands inside the live container: ```bash -docker run -it -p 8888:8888 -v $(pwd):/workspace sbsim-docker-env +# Open a shell in the container +docker exec -it sbsim-container bash ``` -> NOTE: the container will copy the repository into "/workspace/sbsim" on the -> first run. Use -v to persist changes. +Inside the container, you're already in `/workspace`. Use Poetry to run commands: -To access Jupyter notebooks, visit -[http://localhost:8888](http://localhost:8888) in the browser. +```bash +# Run tests +poetry run pytest -q + +# Run a Python script +poetry run python path/to/script.py -To run scripts or tests inside the actively running docker container: +# Check Python version (should be 3.11.x) +poetry run python --version -```sh -# activate the virtual environment: -source /opt/venv/bin/activate +# Launch Jupyter (if not already running via CMD) +poetry run jupyter notebook --ip=0.0.0.0 --no-browser --ServerApp.token='' +``` -# navigate to the repository: -cd /workspace/sbsim +Alternatively, run commands directly without exec: -# running scripts: -python path/to/script.py +```bash +# Run tests from outside the container +docker exec sbsim-container poetry run pytest -q -# running tests: -pytest +# Check Python version +docker exec sbsim-container python --version ``` -To stop the container: +--- -```sh -docker stop sbsim-docker-env -``` +## 5. Stop & Clean Up + +```bash +# Stop the container +docker stop sbsim-container -Listing containers (to get their identifiers): +# Remove the container +docker rm sbsim-container -```sh -docker ps -a +# Remove the image +docker rmi sbsim:latest ``` -Removing a container: +--- -```sh -docker rm -``` +## 6. Troubleshooting + +- **Daemon not running**: If you see `Cannot connect to the Docker daemon`, open Docker Desktop or run: + + ```bash + /Applications/Docker.app/Contents/Resources/bin/docker --version + ``` + +- **Platform mismatch**: If you still get a warning about `linux/amd64` vs `arm64`, ensure Rosetta support is enabled in Docker Desktop. +- **Permission errors**: By default, files created inside the container are owned by `root`. To write files to your host, either adjust volume permissions or run with `--user=$(id -u):$(id -g)`. + +--- -> NOTE: in the future we would like to further update these instructions and -> improve the Dockerfile. See -> [issue #80](https://github.com/google/sbsim/issues/80) (contributions -> welcome)! +_For ongoing improvements and discussion, see Issue [#80](https://github.com/google/sbsim/issues/80)._ diff --git a/poetry.lock b/poetry.lock index 0b77f13f..317470ac 100644 --- a/poetry.lock +++ b/poetry.lock @@ -41,7 +41,7 @@ version = "0.1.4" description = "Disable App Nap on macOS >= 10.9" optional = false python-versions = ">=3.6" -groups = ["main", "notebooks"] +groups = ["notebooks"] markers = "platform_system == \"Darwin\"" files = [ {file = "appnope-0.1.4-py2.py3-none-any.whl", hash = "sha256:502575ee11cd7a28c0205f379b525beefebab9d161b7c964670864014ed7213c"}, @@ -368,7 +368,7 @@ version = "1.17.1" description = "Foreign Function Interface for Python calling C code." optional = false python-versions = ">=3.8" -groups = ["main", "notebooks"] +groups = ["notebooks"] files = [ {file = "cffi-1.17.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:df8b1c11f177bc2313ec4b2d46baec87a5f3e71fc8b45dab2ee7cae86d9aba14"}, {file = "cffi-1.17.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8f2cdc858323644ab277e9bb925ad72ae0e67f69e804f4898c070998d50b1a67"}, @@ -438,7 +438,6 @@ files = [ {file = "cffi-1.17.1-cp39-cp39-win_amd64.whl", hash = "sha256:d016c76bdd850f3c626af19b0542c9677ba156e4ee4fccfdd7848803533ef662"}, {file = "cffi-1.17.1.tar.gz", hash = "sha256:1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824"}, ] -markers = {main = "implementation_name == \"pypy\""} [package.dependencies] pycparser = "*" @@ -603,7 +602,7 @@ version = "0.2.2" description = "Jupyter Python Comm implementation, for usage in ipykernel, xeus-python etc." optional = false python-versions = ">=3.8" -groups = ["main", "notebooks"] +groups = ["notebooks"] files = [ {file = "comm-0.2.2-py3-none-any.whl", hash = "sha256:e6fb86cb70ff661ee8c9c14e7d36d6de3b4066f1441be4063df9c5009f0a64d3"}, {file = "comm-0.2.2.tar.gz", hash = "sha256:3fd7a84065306e07bea1773df6eb8282de51ba82f77c72f9c85716ab11fe980e"}, @@ -714,7 +713,7 @@ version = "1.8.14" description = "An implementation of the Debug Adapter Protocol for Python" optional = false python-versions = ">=3.8" -groups = ["main", "notebooks"] +groups = ["notebooks"] files = [ {file = "debugpy-1.8.14-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:93fee753097e85623cab1c0e6a68c76308cd9f13ffdf44127e6fab4fbf024339"}, {file = "debugpy-1.8.14-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3d937d93ae4fa51cdc94d3e865f535f185d5f9748efb41d0d49e33bf3365bd79"}, @@ -1213,7 +1212,7 @@ version = "1.73.0" description = "HTTP/2-based RPC framework" optional = false python-versions = ">=3.9" -groups = ["main"] +groups = ["main", "dev"] files = [ {file = "grpcio-1.73.0-cp310-cp310-linux_armv7l.whl", hash = "sha256:d050197eeed50f858ef6c51ab09514856f957dba7b1f7812698260fc9cc417f6"}, {file = "grpcio-1.73.0-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:ebb8d5f4b0200916fb292a964a4d41210de92aba9007e33d8551d85800ea16cb"}, @@ -1271,6 +1270,69 @@ files = [ [package.extras] protobuf = ["grpcio-tools (>=1.73.0)"] +[[package]] +name = "grpcio-tools" +version = "1.62.3" +description = "Protobuf code generator for gRPC" +optional = false +python-versions = ">=3.7" +groups = ["dev"] +files = [ + {file = "grpcio-tools-1.62.3.tar.gz", hash = "sha256:7c7136015c3d62c3eef493efabaf9e3380e3e66d24ee8e94c01cb71377f57833"}, + {file = "grpcio_tools-1.62.3-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:2f968b049c2849540751ec2100ab05e8086c24bead769ca734fdab58698408c1"}, + {file = "grpcio_tools-1.62.3-cp310-cp310-manylinux_2_17_aarch64.whl", hash = "sha256:0a8c0c4724ae9c2181b7dbc9b186df46e4f62cb18dc184e46d06c0ebeccf569e"}, + {file = "grpcio_tools-1.62.3-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5782883a27d3fae8c425b29a9d3dcf5f47d992848a1b76970da3b5a28d424b26"}, + {file = "grpcio_tools-1.62.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f3d812daffd0c2d2794756bd45a353f89e55dc8f91eb2fc840c51b9f6be62667"}, + {file = "grpcio_tools-1.62.3-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:b47d0dda1bdb0a0ba7a9a6de88e5a1ed61f07fad613964879954961e36d49193"}, + {file = "grpcio_tools-1.62.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:ca246dffeca0498be9b4e1ee169b62e64694b0f92e6d0be2573e65522f39eea9"}, + {file = "grpcio_tools-1.62.3-cp310-cp310-win32.whl", hash = "sha256:6a56d344b0bab30bf342a67e33d386b0b3c4e65868ffe93c341c51e1a8853ca5"}, + {file = "grpcio_tools-1.62.3-cp310-cp310-win_amd64.whl", hash = "sha256:710fecf6a171dcbfa263a0a3e7070e0df65ba73158d4c539cec50978f11dad5d"}, + {file = "grpcio_tools-1.62.3-cp311-cp311-macosx_10_10_universal2.whl", hash = "sha256:703f46e0012af83a36082b5f30341113474ed0d91e36640da713355cd0ea5d23"}, + {file = "grpcio_tools-1.62.3-cp311-cp311-manylinux_2_17_aarch64.whl", hash = "sha256:7cc83023acd8bc72cf74c2edbe85b52098501d5b74d8377bfa06f3e929803492"}, + {file = "grpcio_tools-1.62.3-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7ff7d58a45b75df67d25f8f144936a3e44aabd91afec833ee06826bd02b7fbe7"}, + {file = "grpcio_tools-1.62.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7f2483ea232bd72d98a6dc6d7aefd97e5bc80b15cd909b9e356d6f3e326b6e43"}, + {file = "grpcio_tools-1.62.3-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:962c84b4da0f3b14b3cdb10bc3837ebc5f136b67d919aea8d7bb3fd3df39528a"}, + {file = "grpcio_tools-1.62.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:8ad0473af5544f89fc5a1ece8676dd03bdf160fb3230f967e05d0f4bf89620e3"}, + {file = "grpcio_tools-1.62.3-cp311-cp311-win32.whl", hash = "sha256:db3bc9fa39afc5e4e2767da4459df82b095ef0cab2f257707be06c44a1c2c3e5"}, + {file = "grpcio_tools-1.62.3-cp311-cp311-win_amd64.whl", hash = "sha256:e0898d412a434e768a0c7e365acabe13ff1558b767e400936e26b5b6ed1ee51f"}, + {file = "grpcio_tools-1.62.3-cp312-cp312-macosx_10_10_universal2.whl", hash = "sha256:d102b9b21c4e1e40af9a2ab3c6d41afba6bd29c0aa50ca013bf85c99cdc44ac5"}, + {file = "grpcio_tools-1.62.3-cp312-cp312-manylinux_2_17_aarch64.whl", hash = "sha256:0a52cc9444df978438b8d2332c0ca99000521895229934a59f94f37ed896b133"}, + {file = "grpcio_tools-1.62.3-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:141d028bf5762d4a97f981c501da873589df3f7e02f4c1260e1921e565b376fa"}, + {file = "grpcio_tools-1.62.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47a5c093ab256dec5714a7a345f8cc89315cb57c298b276fa244f37a0ba507f0"}, + {file = "grpcio_tools-1.62.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:f6831fdec2b853c9daa3358535c55eed3694325889aa714070528cf8f92d7d6d"}, + {file = "grpcio_tools-1.62.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:e02d7c1a02e3814c94ba0cfe43d93e872c758bd8fd5c2797f894d0c49b4a1dfc"}, + {file = "grpcio_tools-1.62.3-cp312-cp312-win32.whl", hash = "sha256:b881fd9505a84457e9f7e99362eeedd86497b659030cf57c6f0070df6d9c2b9b"}, + {file = "grpcio_tools-1.62.3-cp312-cp312-win_amd64.whl", hash = "sha256:11c625eebefd1fd40a228fc8bae385e448c7e32a6ae134e43cf13bbc23f902b7"}, + {file = "grpcio_tools-1.62.3-cp37-cp37m-macosx_10_10_universal2.whl", hash = "sha256:ec6fbded0c61afe6f84e3c2a43e6d656791d95747d6d28b73eff1af64108c434"}, + {file = "grpcio_tools-1.62.3-cp37-cp37m-manylinux_2_17_aarch64.whl", hash = "sha256:bfda6ee8990997a9df95c5606f3096dae65f09af7ca03a1e9ca28f088caca5cf"}, + {file = "grpcio_tools-1.62.3-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b77f9f9cee87cd798f0fe26b7024344d1b03a7cd2d2cba7035f8433b13986325"}, + {file = "grpcio_tools-1.62.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2e02d3b96f2d0e4bab9ceaa30f37d4f75571e40c6272e95364bff3125a64d184"}, + {file = "grpcio_tools-1.62.3-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:1da38070738da53556a4b35ab67c1b9884a5dd48fa2f243db35dc14079ea3d0c"}, + {file = "grpcio_tools-1.62.3-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:ace43b26d88a58dcff16c20d23ff72b04d0a415f64d2820f4ff06b1166f50557"}, + {file = "grpcio_tools-1.62.3-cp37-cp37m-win_amd64.whl", hash = "sha256:350a80485e302daaa95d335a931f97b693e170e02d43767ab06552c708808950"}, + {file = "grpcio_tools-1.62.3-cp38-cp38-macosx_10_10_universal2.whl", hash = "sha256:c3a1ac9d394f8e229eb28eec2e04b9a6f5433fa19c9d32f1cb6066e3c5114a1d"}, + {file = "grpcio_tools-1.62.3-cp38-cp38-manylinux_2_17_aarch64.whl", hash = "sha256:11f363570dea661dde99e04a51bd108a5807b5df32a6f8bdf4860e34e94a4dbf"}, + {file = "grpcio_tools-1.62.3-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dc9ad9950119d8ae27634e68b7663cc8d340ae535a0f80d85a55e56a6973ab1f"}, + {file = "grpcio_tools-1.62.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8c5d22b252dcef11dd1e0fbbe5bbfb9b4ae048e8880d33338215e8ccbdb03edc"}, + {file = "grpcio_tools-1.62.3-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:27cd9ef5c5d68d5ed104b6dcb96fe9c66b82050e546c9e255716903c3d8f0373"}, + {file = "grpcio_tools-1.62.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:f4b1615adf67bd8bb71f3464146a6f9949972d06d21a4f5e87e73f6464d97f57"}, + {file = "grpcio_tools-1.62.3-cp38-cp38-win32.whl", hash = "sha256:e18e15287c31baf574fcdf8251fb7f997d64e96c6ecf467906e576da0a079af6"}, + {file = "grpcio_tools-1.62.3-cp38-cp38-win_amd64.whl", hash = "sha256:6c3064610826f50bd69410c63101954676edc703e03f9e8f978a135f1aaf97c1"}, + {file = "grpcio_tools-1.62.3-cp39-cp39-macosx_10_10_universal2.whl", hash = "sha256:8e62cc7164b0b7c5128e637e394eb2ef3db0e61fc798e80c301de3b2379203ed"}, + {file = "grpcio_tools-1.62.3-cp39-cp39-manylinux_2_17_aarch64.whl", hash = "sha256:c8ad5cce554e2fcaf8842dee5d9462583b601a3a78f8b76a153c38c963f58c10"}, + {file = "grpcio_tools-1.62.3-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ec279dcf3518201fc592c65002754f58a6b542798cd7f3ecd4af086422f33f29"}, + {file = "grpcio_tools-1.62.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1c989246c2aebc13253f08be32538a4039a64e12d9c18f6d662d7aee641dc8b5"}, + {file = "grpcio_tools-1.62.3-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:ca4f5eeadbb57cf03317d6a2857823239a63a59cc935f5bd6cf6e8b7af7a7ecc"}, + {file = "grpcio_tools-1.62.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:0cb3a3436ac119cbd37a7d3331d9bdf85dad21a6ac233a3411dff716dcbf401e"}, + {file = "grpcio_tools-1.62.3-cp39-cp39-win32.whl", hash = "sha256:3eae6ea76d62fcac091e1f15c2dcedf1dc3f114f8df1a972a8a0745e89f4cf61"}, + {file = "grpcio_tools-1.62.3-cp39-cp39-win_amd64.whl", hash = "sha256:eec73a005443061f4759b71a056f745e3b000dc0dc125c9f20560232dfbcbd14"}, +] + +[package.dependencies] +grpcio = ">=1.62.3" +protobuf = ">=4.21.6,<5.0dev" +setuptools = "*" + [[package]] name = "gym" version = "0.23.0" @@ -1492,7 +1554,7 @@ version = "6.29.5" description = "IPython Kernel for Jupyter" optional = false python-versions = ">=3.8" -groups = ["main", "notebooks"] +groups = ["notebooks"] files = [ {file = "ipykernel-6.29.5-py3-none-any.whl", hash = "sha256:afdb66ba5aa354b09b91379bac28ae4afebbb30e8b39510c9690afb7a10421b5"}, {file = "ipykernel-6.29.5.tar.gz", hash = "sha256:f093a22c4a40f8828f8e330a9c297cb93dcab13bd9678ded6de8e5cf81c56215"}, @@ -1760,7 +1822,7 @@ version = "8.6.3" description = "Jupyter protocol implementation and client libraries" optional = false python-versions = ">=3.8" -groups = ["main", "notebooks"] +groups = ["notebooks"] files = [ {file = "jupyter_client-8.6.3-py3-none-any.whl", hash = "sha256:e8a19cc986cc45905ac3362915f410f3af85424b4c0905e94fa5f2cb08e8f23f"}, {file = "jupyter_client-8.6.3.tar.gz", hash = "sha256:35b3a0947c4a6e9d589eb97d7d4cd5e90f910ee73101611f01283732bd6d9419"}, @@ -1808,7 +1870,7 @@ version = "5.8.1" description = "Jupyter core package. A base package on which Jupyter projects rely." optional = false python-versions = ">=3.8" -groups = ["main", "notebooks"] +groups = ["notebooks"] files = [ {file = "jupyter_core-5.8.1-py3-none-any.whl", hash = "sha256:c28d268fc90fb53f1338ded2eb410704c5449a358406e8a948b75706e24863d0"}, {file = "jupyter_core-5.8.1.tar.gz", hash = "sha256:0a5f9706f70e64786b75acba995988915ebd4601c8a52e534a40b51c95f59941"}, @@ -2688,7 +2750,7 @@ version = "1.6.0" description = "Patch asyncio to allow nested event loops" optional = false python-versions = ">=3.5" -groups = ["main", "notebooks"] +groups = ["notebooks"] files = [ {file = "nest_asyncio-1.6.0-py3-none-any.whl", hash = "sha256:87af6efd6b5e897c81050477ef65c62e2b2f35d51703cae01aff2905b1852e1c"}, {file = "nest_asyncio-1.6.0.tar.gz", hash = "sha256:6f172d5449aca15afd6c646851f4e31e02c598d553a667e38cafa997cfec55fe"}, @@ -3259,34 +3321,23 @@ wcwidth = "*" [[package]] name = "protobuf" -version = "3.20.3" -description = "Protocol Buffers" +version = "4.25.8" +description = "" optional = false -python-versions = ">=3.7" -groups = ["main"] +python-versions = ">=3.8" +groups = ["main", "dev"] files = [ - {file = "protobuf-3.20.3-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:f4bd856d702e5b0d96a00ec6b307b0f51c1982c2bf9c0052cf9019e9a544ba99"}, - {file = "protobuf-3.20.3-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:9aae4406ea63d825636cc11ffb34ad3379335803216ee3a856787bcf5ccc751e"}, - {file = "protobuf-3.20.3-cp310-cp310-win32.whl", hash = "sha256:28545383d61f55b57cf4df63eebd9827754fd2dc25f80c5253f9184235db242c"}, - {file = "protobuf-3.20.3-cp310-cp310-win_amd64.whl", hash = "sha256:67a3598f0a2dcbc58d02dd1928544e7d88f764b47d4a286202913f0b2801c2e7"}, - {file = "protobuf-3.20.3-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:899dc660cd599d7352d6f10d83c95df430a38b410c1b66b407a6b29265d66469"}, - {file = "protobuf-3.20.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:e64857f395505ebf3d2569935506ae0dfc4a15cb80dc25261176c784662cdcc4"}, - {file = "protobuf-3.20.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:d9e4432ff660d67d775c66ac42a67cf2453c27cb4d738fc22cb53b5d84c135d4"}, - {file = "protobuf-3.20.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:74480f79a023f90dc6e18febbf7b8bac7508420f2006fabd512013c0c238f454"}, - {file = "protobuf-3.20.3-cp37-cp37m-win32.whl", hash = "sha256:b6cc7ba72a8850621bfec987cb72623e703b7fe2b9127a161ce61e61558ad905"}, - {file = "protobuf-3.20.3-cp37-cp37m-win_amd64.whl", hash = "sha256:8c0c984a1b8fef4086329ff8dd19ac77576b384079247c770f29cc8ce3afa06c"}, - {file = "protobuf-3.20.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:de78575669dddf6099a8a0f46a27e82a1783c557ccc38ee620ed8cc96d3be7d7"}, - {file = "protobuf-3.20.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:f4c42102bc82a51108e449cbb32b19b180022941c727bac0cfd50170341f16ee"}, - {file = "protobuf-3.20.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:44246bab5dd4b7fbd3c0c80b6f16686808fab0e4aca819ade6e8d294a29c7050"}, - {file = "protobuf-3.20.3-cp38-cp38-win32.whl", hash = "sha256:c02ce36ec760252242a33967d51c289fd0e1c0e6e5cc9397e2279177716add86"}, - {file = "protobuf-3.20.3-cp38-cp38-win_amd64.whl", hash = "sha256:447d43819997825d4e71bf5769d869b968ce96848b6479397e29fc24c4a5dfe9"}, - {file = "protobuf-3.20.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:398a9e0c3eaceb34ec1aee71894ca3299605fa8e761544934378bbc6c97de23b"}, - {file = "protobuf-3.20.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:bf01b5720be110540be4286e791db73f84a2b721072a3711efff6c324cdf074b"}, - {file = "protobuf-3.20.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:daa564862dd0d39c00f8086f88700fdbe8bc717e993a21e90711acfed02f2402"}, - {file = "protobuf-3.20.3-cp39-cp39-win32.whl", hash = "sha256:819559cafa1a373b7096a482b504ae8a857c89593cf3a25af743ac9ecbd23480"}, - {file = "protobuf-3.20.3-cp39-cp39-win_amd64.whl", hash = "sha256:03038ac1cfbc41aa21f6afcbcd357281d7521b4157926f30ebecc8d4ea59dcb7"}, - {file = "protobuf-3.20.3-py2.py3-none-any.whl", hash = "sha256:a7ca6d488aa8ff7f329d4c545b2dbad8ac31464f1d8b1c87ad1346717731e4db"}, - {file = "protobuf-3.20.3.tar.gz", hash = "sha256:2e3427429c9cffebf259491be0af70189607f365c2f41c7c3764af6f337105f2"}, + {file = "protobuf-4.25.8-cp310-abi3-win32.whl", hash = "sha256:504435d831565f7cfac9f0714440028907f1975e4bed228e58e72ecfff58a1e0"}, + {file = "protobuf-4.25.8-cp310-abi3-win_amd64.whl", hash = "sha256:bd551eb1fe1d7e92c1af1d75bdfa572eff1ab0e5bf1736716814cdccdb2360f9"}, + {file = "protobuf-4.25.8-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:ca809b42f4444f144f2115c4c1a747b9a404d590f18f37e9402422033e464e0f"}, + {file = "protobuf-4.25.8-cp37-abi3-manylinux2014_aarch64.whl", hash = "sha256:9ad7ef62d92baf5a8654fbb88dac7fa5594cfa70fd3440488a5ca3bfc6d795a7"}, + {file = "protobuf-4.25.8-cp37-abi3-manylinux2014_x86_64.whl", hash = "sha256:83e6e54e93d2b696a92cad6e6efc924f3850f82b52e1563778dfab8b355101b0"}, + {file = "protobuf-4.25.8-cp38-cp38-win32.whl", hash = "sha256:27d498ffd1f21fb81d987a041c32d07857d1d107909f5134ba3350e1ce80a4af"}, + {file = "protobuf-4.25.8-cp38-cp38-win_amd64.whl", hash = "sha256:d552c53d0415449c8d17ced5c341caba0d89dbf433698e1436c8fa0aae7808a3"}, + {file = "protobuf-4.25.8-cp39-cp39-win32.whl", hash = "sha256:077ff8badf2acf8bc474406706ad890466274191a48d0abd3bd6987107c9cde5"}, + {file = "protobuf-4.25.8-cp39-cp39-win_amd64.whl", hash = "sha256:f4510b93a3bec6eba8fd8f1093e9d7fb0d4a24d1a81377c10c0e5bbfe9e4ed24"}, + {file = "protobuf-4.25.8-py3-none-any.whl", hash = "sha256:15a0af558aa3b13efef102ae6e4f3efac06f1eea11afb3a57db2901447d9fb59"}, + {file = "protobuf-4.25.8.tar.gz", hash = "sha256:6135cf8affe1fc6f76cced2641e4ea8d3e59518d1f24ae41ba97bcad82d397cd"}, ] [[package]] @@ -3308,6 +3359,7 @@ files = [ {file = "psutil-7.0.0-cp37-abi3-win_amd64.whl", hash = "sha256:4cf3d4eb1aa9b348dec30105c55cd9b7d4629285735a102beb4441e38db90553"}, {file = "psutil-7.0.0.tar.gz", hash = "sha256:7be9c3eba38beccb6495ea33afd982a44074b78f28c434a1f51cc07fd315c456"}, ] +markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""} [package.extras] dev = ["abi3audit", "black (==24.10.0)", "check-manifest", "coverage", "packaging", "pylint", "pyperf", "pypinfo", "pytest", "pytest-cov", "pytest-xdist", "requests", "rstcheck", "ruff", "setuptools", "sphinx", "sphinx_rtd_theme", "toml-sort", "twine", "virtualenv", "vulture", "wheel"] @@ -3374,12 +3426,11 @@ version = "2.22" description = "C parser in Python" optional = false python-versions = ">=3.8" -groups = ["main", "notebooks"] +groups = ["notebooks"] files = [ {file = "pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc"}, {file = "pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"}, ] -markers = {main = "implementation_name == \"pypy\""} [[package]] name = "pygame" @@ -3669,7 +3720,7 @@ version = "310" description = "Python for Window Extensions" optional = false python-versions = "*" -groups = ["main", "notebooks"] +groups = ["notebooks"] markers = "sys_platform == \"win32\" and platform_python_implementation != \"PyPy\"" files = [ {file = "pywin32-310-cp310-cp310-win32.whl", hash = "sha256:6dd97011efc8bf51d6793a82292419eba2c71cf8e7250cfac03bba284454abc1"}, @@ -3792,7 +3843,7 @@ version = "26.4.0" description = "Python bindings for 0MQ" optional = false python-versions = ">=3.8" -groups = ["main", "notebooks"] +groups = ["notebooks"] files = [ {file = "pyzmq-26.4.0-cp310-cp310-macosx_10_15_universal2.whl", hash = "sha256:0329bdf83e170ac133f44a233fc651f6ed66ef8e66693b5af7d54f45d1ef5918"}, {file = "pyzmq-26.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:398a825d2dea96227cf6460ce0a174cf7657d6f6827807d4d1ae9d0f9ae64315"}, @@ -4278,7 +4329,7 @@ version = "80.9.0" description = "Easily download, build, install, upgrade, and uninstall Python packages" optional = false python-versions = ">=3.9" -groups = ["main", "notebooks"] +groups = ["main", "dev", "notebooks"] files = [ {file = "setuptools-80.9.0-py3-none-any.whl", hash = "sha256:062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922"}, {file = "setuptools-80.9.0.tar.gz", hash = "sha256:f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c"}, @@ -4749,7 +4800,7 @@ version = "6.5.1" description = "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed." optional = false python-versions = ">=3.9" -groups = ["main", "notebooks"] +groups = ["notebooks"] files = [ {file = "tornado-6.5.1-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:d50065ba7fd11d3bd41bcad0825227cc9a95154bad83239357094c36708001f7"}, {file = "tornado-6.5.1-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:9e9ca370f717997cb85606d074b0e5b247282cf5e2e1611568b8821afe0342d6"}, @@ -5099,5 +5150,5 @@ files = [ [metadata] lock-version = "2.1" -python-versions = ">=3.10.12,<3.12" -content-hash = "478f515b09f4590fb5782699e16ecb4e1290d81e1f1656bce8445ef4b2fe61ac" +python-versions = ">=3.10,<3.12" +content-hash = "a5546afc60e1bc606ee966b4a1776d4330c93ac8ab3e8b7c2e04f69e49687410" diff --git a/pyproject.toml b/pyproject.toml index 202f1d0d..14936ff2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = [] readme = "README.md" [tool.poetry.dependencies] -python = ">=3.10.12,<3.12" +python = ">=3.10,<3.12" tensorflow = "2.15.1" # The "dm-reverb" package is meant for Linux only, so we are conditionally @@ -24,7 +24,7 @@ gin-config = "^0.5.0" matplotlib = "^3.9.2" pandas = "^2.2.2" bidict = "^0.23.1" -protobuf = "3.20.3" +protobuf = "^4.25.0" # TF 2.15.1 supports >=3.20.3,<5.0.0 (excluding 4.21.0-4.21.5) pint = "^0.24.3" holidays = "^0.56" google3 = "^1.0.0" @@ -34,9 +34,7 @@ mediapy = "^1.2.2" seaborn = "^0.13.2" tf-agents = "0.18.0" scikit-learn = "^1.5.1" -ipykernel = "^6.29.5" typing-extensions = "^4.12.2" -ipython = "^8.27.0" importlib-resources = { version = "*", python = "<3.11" } python-dotenv = "^1.1.0" @@ -48,6 +46,7 @@ isort = "^6.0.1" pylint = "^3.3.6" pylint-per-file-ignores = "^1.4.0" mdformat = "^0.7.22" +grpcio-tools = "^1.60.0" [tool.poetry.group.docs.dependencies] mkdocs = "^1.6.1" @@ -58,6 +57,8 @@ mkdocs-autorefs = "^1.4.2" [tool.poetry.group.notebooks.dependencies] jupyter = "^1.1.1" +ipykernel = "^6.29.5" +ipython = "^8.27.0" [tool.pyink] line-length = 80 diff --git a/smart_control/proto/smart_control_building_pb2.py b/smart_control/proto/smart_control_building_pb2.py index 10a1b84f..3976e254 100644 --- a/smart_control/proto/smart_control_building_pb2.py +++ b/smart_control/proto/smart_control_building_pb2.py @@ -1,11 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: smart_control_building.proto - +# Protobuf Python Version: 4.25.1 +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -14,1101 +15,47 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor.FileDescriptor( - name='smart_control_building.proto', - package='smart_buildings.smart_control.proto', - syntax='proto3', - serialized_options=None, - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1csmart_control_building.proto\x12#smart_buildings.smart_control.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfe\x01\n\x08ZoneInfo\x12\x0f\n\x07zone_id\x18\x01 \x01(\t\x12\x13\n\x0b\x62uilding_id\x18\x02 \x01(\t\x12\x18\n\x10zone_description\x18\x03 \x01(\t\x12\x0c\n\x04\x61rea\x18\x04 \x01(\x02\x12\x0f\n\x07\x64\x65vices\x18\x05 \x03(\t\x12I\n\tzone_type\x18\x06 \x01(\x0e\x32\x36.smart_buildings.smart_control.proto.ZoneInfo.ZoneType\x12\r\n\x05\x66loor\x18\x07 \x01(\x05\"9\n\x08ZoneType\x12\r\n\tUNDEFINED\x10\x00\x12\x08\n\x04ROOM\x10\x01\x12\t\n\x05\x46LOOR\x10\x02\x12\t\n\x05OTHER\x10\n\"\xa5\x07\n\nDeviceInfo\x12\x11\n\tdevice_id\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\x12\x0f\n\x07zone_id\x18\x04 \x01(\t\x12O\n\x0b\x64\x65vice_type\x18\x05 \x01(\x0e\x32:.smart_buildings.smart_control.proto.DeviceInfo.DeviceType\x12`\n\x11observable_fields\x18\x06 \x03(\x0b\x32\x45.smart_buildings.smart_control.proto.DeviceInfo.ObservableFieldsEntry\x12X\n\raction_fields\x18\x07 \x03(\x0b\x32\x41.smart_buildings.smart_control.proto.DeviceInfo.ActionFieldsEntry\x1ar\n\x15ObservableFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12H\n\x05value\x18\x02 \x01(\x0e\x32\x39.smart_buildings.smart_control.proto.DeviceInfo.ValueType:\x02\x38\x01\x1an\n\x11\x41\x63tionFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12H\n\x05value\x18\x02 \x01(\x0e\x32\x39.smart_buildings.smart_control.proto.DeviceInfo.ValueType:\x02\x38\x01\"\xe7\x01\n\nDeviceType\x12\r\n\tUNDEFINED\x10\x00\x12\x07\n\x03\x46\x41N\x10\x01\x12\x07\n\x03PMP\x10\x02\x12\x07\n\x03\x46\x43U\x10\x03\x12\x07\n\x03VAV\x10\x04\x12\x06\n\x02\x44H\x10\x05\x12\x07\n\x03\x41HU\x10\x06\x12\x07\n\x03\x42LR\x10\x07\x12\x08\n\x04\x43\x44WS\x10\x08\x12\x06\n\x02\x43H\x10\t\x12\x08\n\x04\x43HWS\x10\n\x12\x06\n\x02\x43T\x10\x0b\x12\x06\n\x02\x44\x43\x10\x0c\x12\x07\n\x03\x44\x46R\x10\r\x12\x07\n\x03\x44MP\x10\x0e\x12\x07\n\x03HWS\x10\x0f\x12\x06\n\x02HX\x10\x10\x12\x07\n\x03MAU\x10\x11\x12\x07\n\x03SDC\x10\x12\x12\x06\n\x02UH\x10\x13\x12\x07\n\x03PWR\x10\x14\x12\x07\n\x03GAS\x10\x15\x12\x06\n\x02\x41\x43\x10\x16\x12\t\n\x05OTHER\x10\x17\"w\n\tValueType\x12\x18\n\x14VALUE_TYPE_UNDEFINED\x10\x00\x12\x14\n\x10VALUE_CONTINUOUS\x10\x01\x12\x11\n\rVALUE_INTEGER\x10\x02\x12\x15\n\x11VALUE_CATEGORICAL\x10\x03\x12\x10\n\x0cVALUE_BINARY\x10\x04\"G\n\x18SingleObservationRequest\x12\x11\n\tdevice_id\x18\x01 \x01(\t\x12\x18\n\x10measurement_name\x18\x02 \x01(\t\"\xdf\x02\n\x19SingleObservationResponse\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x61\n\x1asingle_observation_request\x18\x02 \x01(\x0b\x32=.smart_buildings.smart_control.proto.SingleObservationRequest\x12\x19\n\x11observation_valid\x18\x03 \x01(\x08\x12\x1a\n\x10\x63ontinuous_value\x18\x04 \x01(\x02H\x00\x12\x17\n\rinteger_value\x18\x05 \x01(\x05H\x00\x12\x1b\n\x11\x63\x61tegorical_value\x18\x06 \x01(\tH\x00\x12\x16\n\x0c\x62inary_value\x18\x07 \x01(\x08H\x00\x12\x16\n\x0cstring_value\x18\x08 \x01(\tH\x00\x42\x13\n\x11observation_value\"\xa7\x01\n\x12ObservationRequest\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x62\n\x1bsingle_observation_requests\x18\x02 \x03(\x0b\x32=.smart_buildings.smart_control.proto.SingleObservationRequest\"\xf4\x01\n\x13ObservationResponse\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12H\n\x07request\x18\x02 \x01(\x0b\x32\x37.smart_buildings.smart_control.proto.ObservationRequest\x12\x64\n\x1csingle_observation_responses\x18\x03 \x03(\x0b\x32>.smart_buildings.smart_control.proto.SingleObservationResponse\"\xd3\x01\n\x13SingleActionRequest\x12\x11\n\tdevice_id\x18\x01 \x01(\t\x12\x15\n\rsetpoint_name\x18\x02 \x01(\t\x12\x1a\n\x10\x63ontinuous_value\x18\x03 \x01(\x02H\x00\x12\x17\n\rinteger_value\x18\x04 \x01(\x05H\x00\x12\x1b\n\x11\x63\x61tegorical_value\x18\x05 \x01(\tH\x00\x12\x16\n\x0c\x62inary_value\x18\x06 \x01(\x08H\x00\x12\x16\n\x0cstring_value\x18\x07 \x01(\tH\x00\x42\x10\n\x0esetpoint_value\"\xdd\x03\n\x14SingleActionResponse\x12I\n\x07request\x18\x01 \x01(\x0b\x32\x38.smart_buildings.smart_control.proto.SingleActionRequest\x12\x63\n\rresponse_type\x18\x02 \x01(\x0e\x32L.smart_buildings.smart_control.proto.SingleActionResponse.ActionResponseType\x12\x17\n\x0f\x61\x64\x64itional_info\x18\x03 \x01(\t\"\xfb\x01\n\x12\x41\x63tionResponseType\x12\r\n\tUNDEFINED\x10\x00\x12\x0c\n\x08\x41\x43\x43\x45PTED\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\r\n\tTIMED_OUT\x10\x03\x12\x1c\n\x18REJECTED_INVALID_SETTING\x10\x04\x12%\n!REJECTED_NOT_ENABLED_OR_AVAILABLE\x10\x05\x12\x15\n\x11REJECTED_OVERRIDE\x10\x06\x12\x1b\n\x17REJECTED_INVALID_DEVICE\x10\x07\x12\x1b\n\x17REJECTED_DEVICE_OFFLINE\x10\x08\x12\x0b\n\x07UNKNOWN\x10\t\x12\t\n\x05OTHER\x10\n\"\x98\x01\n\rActionRequest\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12X\n\x16single_action_requests\x18\x02 \x03(\x0b\x32\x38.smart_buildings.smart_control.proto.SingleActionRequest\"\xe0\x01\n\x0e\x41\x63tionResponse\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x07request\x18\x02 \x01(\x0b\x32\x32.smart_buildings.smart_control.proto.ActionRequest\x12Z\n\x17single_action_responses\x18\x03 \x03(\x0b\x32\x39.smart_buildings.smart_control.proto.SingleActionResponseb\x06proto3' - , - dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - - -_ZONEINFO_ZONETYPE = _descriptor.EnumDescriptor( - name='ZoneType', - full_name='smart_buildings.smart_control.proto.ZoneInfo.ZoneType', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='UNDEFINED', index=0, number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='ROOM', index=1, number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='FLOOR', index=2, number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OTHER', index=3, number=10, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=300, - serialized_end=357, -) -_sym_db.RegisterEnumDescriptor(_ZONEINFO_ZONETYPE) - -_DEVICEINFO_DEVICETYPE = _descriptor.EnumDescriptor( - name='DeviceType', - full_name='smart_buildings.smart_control.proto.DeviceInfo.DeviceType', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='UNDEFINED', index=0, number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='FAN', index=1, number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PMP', index=2, number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='FCU', index=3, number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='VAV', index=4, number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='DH', index=5, number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='AHU', index=6, number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='BLR', index=7, number=7, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CDWS', index=8, number=8, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CH', index=9, number=9, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CHWS', index=10, number=10, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='CT', index=11, number=11, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='DC', index=12, number=12, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='DFR', index=13, number=13, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='DMP', index=14, number=14, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='HWS', index=15, number=15, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='HX', index=16, number=16, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='MAU', index=17, number=17, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='SDC', index=18, number=18, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='UH', index=19, number=19, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PWR', index=20, number=20, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='GAS', index=21, number=21, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='AC', index=22, number=22, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OTHER', index=23, number=23, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=941, - serialized_end=1172, -) -_sym_db.RegisterEnumDescriptor(_DEVICEINFO_DEVICETYPE) - -_DEVICEINFO_VALUETYPE = _descriptor.EnumDescriptor( - name='ValueType', - full_name='smart_buildings.smart_control.proto.DeviceInfo.ValueType', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='VALUE_TYPE_UNDEFINED', index=0, number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='VALUE_CONTINUOUS', index=1, number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='VALUE_INTEGER', index=2, number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='VALUE_CATEGORICAL', index=3, number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='VALUE_BINARY', index=4, number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=1174, - serialized_end=1293, -) -_sym_db.RegisterEnumDescriptor(_DEVICEINFO_VALUETYPE) - -_SINGLEACTIONRESPONSE_ACTIONRESPONSETYPE = _descriptor.EnumDescriptor( - name='ActionResponseType', - full_name='smart_buildings.smart_control.proto.SingleActionResponse.ActionResponseType', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='UNDEFINED', index=0, number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='ACCEPTED', index=1, number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='PENDING', index=2, number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='TIMED_OUT', index=3, number=3, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='REJECTED_INVALID_SETTING', index=4, number=4, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='REJECTED_NOT_ENABLED_OR_AVAILABLE', index=5, number=5, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='REJECTED_OVERRIDE', index=6, number=6, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='REJECTED_INVALID_DEVICE', index=7, number=7, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='REJECTED_DEVICE_OFFLINE', index=8, number=8, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=9, number=9, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='OTHER', index=10, number=10, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=2580, - serialized_end=2831, -) -_sym_db.RegisterEnumDescriptor(_SINGLEACTIONRESPONSE_ACTIONRESPONSETYPE) - - -_ZONEINFO = _descriptor.Descriptor( - name='ZoneInfo', - full_name='smart_buildings.smart_control.proto.ZoneInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='zone_id', full_name='smart_buildings.smart_control.proto.ZoneInfo.zone_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='building_id', full_name='smart_buildings.smart_control.proto.ZoneInfo.building_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='zone_description', full_name='smart_buildings.smart_control.proto.ZoneInfo.zone_description', 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='area', full_name='smart_buildings.smart_control.proto.ZoneInfo.area', index=3, - number=4, type=2, cpp_type=6, 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='devices', full_name='smart_buildings.smart_control.proto.ZoneInfo.devices', index=4, - number=5, 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='zone_type', full_name='smart_buildings.smart_control.proto.ZoneInfo.zone_type', index=5, - number=6, 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='floor', full_name='smart_buildings.smart_control.proto.ZoneInfo.floor', index=6, - number=7, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _ZONEINFO_ZONETYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=103, - serialized_end=357, -) - - -_DEVICEINFO_OBSERVABLEFIELDSENTRY = _descriptor.Descriptor( - name='ObservableFieldsEntry', - full_name='smart_buildings.smart_control.proto.DeviceInfo.ObservableFieldsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='smart_buildings.smart_control.proto.DeviceInfo.ObservableFieldsEntry.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='smart_buildings.smart_control.proto.DeviceInfo.ObservableFieldsEntry.value', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=712, - serialized_end=826, -) - -_DEVICEINFO_ACTIONFIELDSENTRY = _descriptor.Descriptor( - name='ActionFieldsEntry', - full_name='smart_buildings.smart_control.proto.DeviceInfo.ActionFieldsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='smart_buildings.smart_control.proto.DeviceInfo.ActionFieldsEntry.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='smart_buildings.smart_control.proto.DeviceInfo.ActionFieldsEntry.value', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=828, - serialized_end=938, -) - -_DEVICEINFO = _descriptor.Descriptor( - name='DeviceInfo', - full_name='smart_buildings.smart_control.proto.DeviceInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='device_id', full_name='smart_buildings.smart_control.proto.DeviceInfo.device_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='namespace', full_name='smart_buildings.smart_control.proto.DeviceInfo.namespace', 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='code', full_name='smart_buildings.smart_control.proto.DeviceInfo.code', 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='zone_id', full_name='smart_buildings.smart_control.proto.DeviceInfo.zone_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='device_type', full_name='smart_buildings.smart_control.proto.DeviceInfo.device_type', 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='observable_fields', full_name='smart_buildings.smart_control.proto.DeviceInfo.observable_fields', index=5, - number=6, 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='action_fields', full_name='smart_buildings.smart_control.proto.DeviceInfo.action_fields', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_DEVICEINFO_OBSERVABLEFIELDSENTRY, _DEVICEINFO_ACTIONFIELDSENTRY, ], - enum_types=[ - _DEVICEINFO_DEVICETYPE, - _DEVICEINFO_VALUETYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=360, - serialized_end=1293, -) - - -_SINGLEOBSERVATIONREQUEST = _descriptor.Descriptor( - name='SingleObservationRequest', - full_name='smart_buildings.smart_control.proto.SingleObservationRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='device_id', full_name='smart_buildings.smart_control.proto.SingleObservationRequest.device_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='measurement_name', full_name='smart_buildings.smart_control.proto.SingleObservationRequest.measurement_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, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1295, - serialized_end=1366, -) - - -_SINGLEOBSERVATIONRESPONSE = _descriptor.Descriptor( - name='SingleObservationResponse', - full_name='smart_buildings.smart_control.proto.SingleObservationResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='timestamp', full_name='smart_buildings.smart_control.proto.SingleObservationResponse.timestamp', 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='single_observation_request', full_name='smart_buildings.smart_control.proto.SingleObservationResponse.single_observation_request', 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='observation_valid', full_name='smart_buildings.smart_control.proto.SingleObservationResponse.observation_valid', 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, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='continuous_value', full_name='smart_buildings.smart_control.proto.SingleObservationResponse.continuous_value', index=3, - number=4, type=2, cpp_type=6, 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='integer_value', full_name='smart_buildings.smart_control.proto.SingleObservationResponse.integer_value', index=4, - number=5, 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='categorical_value', full_name='smart_buildings.smart_control.proto.SingleObservationResponse.categorical_value', 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, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='binary_value', full_name='smart_buildings.smart_control.proto.SingleObservationResponse.binary_value', index=6, - number=7, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='string_value', full_name='smart_buildings.smart_control.proto.SingleObservationResponse.string_value', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='observation_value', full_name='smart_buildings.smart_control.proto.SingleObservationResponse.observation_value', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=1369, - serialized_end=1720, -) - - -_OBSERVATIONREQUEST = _descriptor.Descriptor( - name='ObservationRequest', - full_name='smart_buildings.smart_control.proto.ObservationRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='timestamp', full_name='smart_buildings.smart_control.proto.ObservationRequest.timestamp', 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='single_observation_requests', full_name='smart_buildings.smart_control.proto.ObservationRequest.single_observation_requests', 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, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1723, - serialized_end=1890, -) - - -_OBSERVATIONRESPONSE = _descriptor.Descriptor( - name='ObservationResponse', - full_name='smart_buildings.smart_control.proto.ObservationResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='timestamp', full_name='smart_buildings.smart_control.proto.ObservationResponse.timestamp', 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='request', full_name='smart_buildings.smart_control.proto.ObservationResponse.request', 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='single_observation_responses', full_name='smart_buildings.smart_control.proto.ObservationResponse.single_observation_responses', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1893, - serialized_end=2137, -) - - -_SINGLEACTIONREQUEST = _descriptor.Descriptor( - name='SingleActionRequest', - full_name='smart_buildings.smart_control.proto.SingleActionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='device_id', full_name='smart_buildings.smart_control.proto.SingleActionRequest.device_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='setpoint_name', full_name='smart_buildings.smart_control.proto.SingleActionRequest.setpoint_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, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='continuous_value', full_name='smart_buildings.smart_control.proto.SingleActionRequest.continuous_value', index=2, - number=3, type=2, cpp_type=6, 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='integer_value', full_name='smart_buildings.smart_control.proto.SingleActionRequest.integer_value', index=3, - number=4, 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='categorical_value', full_name='smart_buildings.smart_control.proto.SingleActionRequest.categorical_value', index=4, - number=5, 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='binary_value', full_name='smart_buildings.smart_control.proto.SingleActionRequest.binary_value', index=5, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='string_value', full_name='smart_buildings.smart_control.proto.SingleActionRequest.string_value', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='setpoint_value', full_name='smart_buildings.smart_control.proto.SingleActionRequest.setpoint_value', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=2140, - serialized_end=2351, -) - - -_SINGLEACTIONRESPONSE = _descriptor.Descriptor( - name='SingleActionResponse', - full_name='smart_buildings.smart_control.proto.SingleActionResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='request', full_name='smart_buildings.smart_control.proto.SingleActionResponse.request', 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='response_type', full_name='smart_buildings.smart_control.proto.SingleActionResponse.response_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='additional_info', full_name='smart_buildings.smart_control.proto.SingleActionResponse.additional_info', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SINGLEACTIONRESPONSE_ACTIONRESPONSETYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2354, - serialized_end=2831, -) - - -_ACTIONREQUEST = _descriptor.Descriptor( - name='ActionRequest', - full_name='smart_buildings.smart_control.proto.ActionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='timestamp', full_name='smart_buildings.smart_control.proto.ActionRequest.timestamp', 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='single_action_requests', full_name='smart_buildings.smart_control.proto.ActionRequest.single_action_requests', 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, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2834, - serialized_end=2986, -) - - -_ACTIONRESPONSE = _descriptor.Descriptor( - name='ActionResponse', - full_name='smart_buildings.smart_control.proto.ActionResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='timestamp', full_name='smart_buildings.smart_control.proto.ActionResponse.timestamp', 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='request', full_name='smart_buildings.smart_control.proto.ActionResponse.request', 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='single_action_responses', full_name='smart_buildings.smart_control.proto.ActionResponse.single_action_responses', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2989, - serialized_end=3213, -) - -_ZONEINFO.fields_by_name['zone_type'].enum_type = _ZONEINFO_ZONETYPE -_ZONEINFO_ZONETYPE.containing_type = _ZONEINFO -_DEVICEINFO_OBSERVABLEFIELDSENTRY.fields_by_name['value'].enum_type = _DEVICEINFO_VALUETYPE -_DEVICEINFO_OBSERVABLEFIELDSENTRY.containing_type = _DEVICEINFO -_DEVICEINFO_ACTIONFIELDSENTRY.fields_by_name['value'].enum_type = _DEVICEINFO_VALUETYPE -_DEVICEINFO_ACTIONFIELDSENTRY.containing_type = _DEVICEINFO -_DEVICEINFO.fields_by_name['device_type'].enum_type = _DEVICEINFO_DEVICETYPE -_DEVICEINFO.fields_by_name['observable_fields'].message_type = _DEVICEINFO_OBSERVABLEFIELDSENTRY -_DEVICEINFO.fields_by_name['action_fields'].message_type = _DEVICEINFO_ACTIONFIELDSENTRY -_DEVICEINFO_DEVICETYPE.containing_type = _DEVICEINFO -_DEVICEINFO_VALUETYPE.containing_type = _DEVICEINFO -_SINGLEOBSERVATIONRESPONSE.fields_by_name['timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_SINGLEOBSERVATIONRESPONSE.fields_by_name['single_observation_request'].message_type = _SINGLEOBSERVATIONREQUEST -_SINGLEOBSERVATIONRESPONSE.oneofs_by_name['observation_value'].fields.append( - _SINGLEOBSERVATIONRESPONSE.fields_by_name['continuous_value']) -_SINGLEOBSERVATIONRESPONSE.fields_by_name['continuous_value'].containing_oneof = _SINGLEOBSERVATIONRESPONSE.oneofs_by_name['observation_value'] -_SINGLEOBSERVATIONRESPONSE.oneofs_by_name['observation_value'].fields.append( - _SINGLEOBSERVATIONRESPONSE.fields_by_name['integer_value']) -_SINGLEOBSERVATIONRESPONSE.fields_by_name['integer_value'].containing_oneof = _SINGLEOBSERVATIONRESPONSE.oneofs_by_name['observation_value'] -_SINGLEOBSERVATIONRESPONSE.oneofs_by_name['observation_value'].fields.append( - _SINGLEOBSERVATIONRESPONSE.fields_by_name['categorical_value']) -_SINGLEOBSERVATIONRESPONSE.fields_by_name['categorical_value'].containing_oneof = _SINGLEOBSERVATIONRESPONSE.oneofs_by_name['observation_value'] -_SINGLEOBSERVATIONRESPONSE.oneofs_by_name['observation_value'].fields.append( - _SINGLEOBSERVATIONRESPONSE.fields_by_name['binary_value']) -_SINGLEOBSERVATIONRESPONSE.fields_by_name['binary_value'].containing_oneof = _SINGLEOBSERVATIONRESPONSE.oneofs_by_name['observation_value'] -_SINGLEOBSERVATIONRESPONSE.oneofs_by_name['observation_value'].fields.append( - _SINGLEOBSERVATIONRESPONSE.fields_by_name['string_value']) -_SINGLEOBSERVATIONRESPONSE.fields_by_name['string_value'].containing_oneof = _SINGLEOBSERVATIONRESPONSE.oneofs_by_name['observation_value'] -_OBSERVATIONREQUEST.fields_by_name['timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_OBSERVATIONREQUEST.fields_by_name['single_observation_requests'].message_type = _SINGLEOBSERVATIONREQUEST -_OBSERVATIONRESPONSE.fields_by_name['timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_OBSERVATIONRESPONSE.fields_by_name['request'].message_type = _OBSERVATIONREQUEST -_OBSERVATIONRESPONSE.fields_by_name['single_observation_responses'].message_type = _SINGLEOBSERVATIONRESPONSE -_SINGLEACTIONREQUEST.oneofs_by_name['setpoint_value'].fields.append( - _SINGLEACTIONREQUEST.fields_by_name['continuous_value']) -_SINGLEACTIONREQUEST.fields_by_name['continuous_value'].containing_oneof = _SINGLEACTIONREQUEST.oneofs_by_name['setpoint_value'] -_SINGLEACTIONREQUEST.oneofs_by_name['setpoint_value'].fields.append( - _SINGLEACTIONREQUEST.fields_by_name['integer_value']) -_SINGLEACTIONREQUEST.fields_by_name['integer_value'].containing_oneof = _SINGLEACTIONREQUEST.oneofs_by_name['setpoint_value'] -_SINGLEACTIONREQUEST.oneofs_by_name['setpoint_value'].fields.append( - _SINGLEACTIONREQUEST.fields_by_name['categorical_value']) -_SINGLEACTIONREQUEST.fields_by_name['categorical_value'].containing_oneof = _SINGLEACTIONREQUEST.oneofs_by_name['setpoint_value'] -_SINGLEACTIONREQUEST.oneofs_by_name['setpoint_value'].fields.append( - _SINGLEACTIONREQUEST.fields_by_name['binary_value']) -_SINGLEACTIONREQUEST.fields_by_name['binary_value'].containing_oneof = _SINGLEACTIONREQUEST.oneofs_by_name['setpoint_value'] -_SINGLEACTIONREQUEST.oneofs_by_name['setpoint_value'].fields.append( - _SINGLEACTIONREQUEST.fields_by_name['string_value']) -_SINGLEACTIONREQUEST.fields_by_name['string_value'].containing_oneof = _SINGLEACTIONREQUEST.oneofs_by_name['setpoint_value'] -_SINGLEACTIONRESPONSE.fields_by_name['request'].message_type = _SINGLEACTIONREQUEST -_SINGLEACTIONRESPONSE.fields_by_name['response_type'].enum_type = _SINGLEACTIONRESPONSE_ACTIONRESPONSETYPE -_SINGLEACTIONRESPONSE_ACTIONRESPONSETYPE.containing_type = _SINGLEACTIONRESPONSE -_ACTIONREQUEST.fields_by_name['timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ACTIONREQUEST.fields_by_name['single_action_requests'].message_type = _SINGLEACTIONREQUEST -_ACTIONRESPONSE.fields_by_name['timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_ACTIONRESPONSE.fields_by_name['request'].message_type = _ACTIONREQUEST -_ACTIONRESPONSE.fields_by_name['single_action_responses'].message_type = _SINGLEACTIONRESPONSE -DESCRIPTOR.message_types_by_name['ZoneInfo'] = _ZONEINFO -DESCRIPTOR.message_types_by_name['DeviceInfo'] = _DEVICEINFO -DESCRIPTOR.message_types_by_name['SingleObservationRequest'] = _SINGLEOBSERVATIONREQUEST -DESCRIPTOR.message_types_by_name['SingleObservationResponse'] = _SINGLEOBSERVATIONRESPONSE -DESCRIPTOR.message_types_by_name['ObservationRequest'] = _OBSERVATIONREQUEST -DESCRIPTOR.message_types_by_name['ObservationResponse'] = _OBSERVATIONRESPONSE -DESCRIPTOR.message_types_by_name['SingleActionRequest'] = _SINGLEACTIONREQUEST -DESCRIPTOR.message_types_by_name['SingleActionResponse'] = _SINGLEACTIONRESPONSE -DESCRIPTOR.message_types_by_name['ActionRequest'] = _ACTIONREQUEST -DESCRIPTOR.message_types_by_name['ActionResponse'] = _ACTIONRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ZoneInfo = _reflection.GeneratedProtocolMessageType('ZoneInfo', (_message.Message,), { - 'DESCRIPTOR' : _ZONEINFO, - '__module__' : 'smart_control_building_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.ZoneInfo) - }) -_sym_db.RegisterMessage(ZoneInfo) - -DeviceInfo = _reflection.GeneratedProtocolMessageType('DeviceInfo', (_message.Message,), { - - 'ObservableFieldsEntry' : _reflection.GeneratedProtocolMessageType('ObservableFieldsEntry', (_message.Message,), { - 'DESCRIPTOR' : _DEVICEINFO_OBSERVABLEFIELDSENTRY, - '__module__' : 'smart_control_building_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.DeviceInfo.ObservableFieldsEntry) - }) - , - - 'ActionFieldsEntry' : _reflection.GeneratedProtocolMessageType('ActionFieldsEntry', (_message.Message,), { - 'DESCRIPTOR' : _DEVICEINFO_ACTIONFIELDSENTRY, - '__module__' : 'smart_control_building_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.DeviceInfo.ActionFieldsEntry) - }) - , - 'DESCRIPTOR' : _DEVICEINFO, - '__module__' : 'smart_control_building_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.DeviceInfo) - }) -_sym_db.RegisterMessage(DeviceInfo) -_sym_db.RegisterMessage(DeviceInfo.ObservableFieldsEntry) -_sym_db.RegisterMessage(DeviceInfo.ActionFieldsEntry) - -SingleObservationRequest = _reflection.GeneratedProtocolMessageType('SingleObservationRequest', (_message.Message,), { - 'DESCRIPTOR' : _SINGLEOBSERVATIONREQUEST, - '__module__' : 'smart_control_building_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.SingleObservationRequest) - }) -_sym_db.RegisterMessage(SingleObservationRequest) - -SingleObservationResponse = _reflection.GeneratedProtocolMessageType('SingleObservationResponse', (_message.Message,), { - 'DESCRIPTOR' : _SINGLEOBSERVATIONRESPONSE, - '__module__' : 'smart_control_building_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.SingleObservationResponse) - }) -_sym_db.RegisterMessage(SingleObservationResponse) - -ObservationRequest = _reflection.GeneratedProtocolMessageType('ObservationRequest', (_message.Message,), { - 'DESCRIPTOR' : _OBSERVATIONREQUEST, - '__module__' : 'smart_control_building_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.ObservationRequest) - }) -_sym_db.RegisterMessage(ObservationRequest) - -ObservationResponse = _reflection.GeneratedProtocolMessageType('ObservationResponse', (_message.Message,), { - 'DESCRIPTOR' : _OBSERVATIONRESPONSE, - '__module__' : 'smart_control_building_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.ObservationResponse) - }) -_sym_db.RegisterMessage(ObservationResponse) - -SingleActionRequest = _reflection.GeneratedProtocolMessageType('SingleActionRequest', (_message.Message,), { - 'DESCRIPTOR' : _SINGLEACTIONREQUEST, - '__module__' : 'smart_control_building_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.SingleActionRequest) - }) -_sym_db.RegisterMessage(SingleActionRequest) - -SingleActionResponse = _reflection.GeneratedProtocolMessageType('SingleActionResponse', (_message.Message,), { - 'DESCRIPTOR' : _SINGLEACTIONRESPONSE, - '__module__' : 'smart_control_building_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.SingleActionResponse) - }) -_sym_db.RegisterMessage(SingleActionResponse) - -ActionRequest = _reflection.GeneratedProtocolMessageType('ActionRequest', (_message.Message,), { - 'DESCRIPTOR' : _ACTIONREQUEST, - '__module__' : 'smart_control_building_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.ActionRequest) - }) -_sym_db.RegisterMessage(ActionRequest) - -ActionResponse = _reflection.GeneratedProtocolMessageType('ActionResponse', (_message.Message,), { - 'DESCRIPTOR' : _ACTIONRESPONSE, - '__module__' : 'smart_control_building_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.ActionResponse) - }) -_sym_db.RegisterMessage(ActionResponse) - - -_DEVICEINFO_OBSERVABLEFIELDSENTRY._options = None -_DEVICEINFO_ACTIONFIELDSENTRY._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1csmart_control_building.proto\x12#smart_buildings.smart_control.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfe\x01\n\x08ZoneInfo\x12\x0f\n\x07zone_id\x18\x01 \x01(\t\x12\x13\n\x0b\x62uilding_id\x18\x02 \x01(\t\x12\x18\n\x10zone_description\x18\x03 \x01(\t\x12\x0c\n\x04\x61rea\x18\x04 \x01(\x02\x12\x0f\n\x07\x64\x65vices\x18\x05 \x03(\t\x12I\n\tzone_type\x18\x06 \x01(\x0e\x32\x36.smart_buildings.smart_control.proto.ZoneInfo.ZoneType\x12\r\n\x05\x66loor\x18\x07 \x01(\x05\"9\n\x08ZoneType\x12\r\n\tUNDEFINED\x10\x00\x12\x08\n\x04ROOM\x10\x01\x12\t\n\x05\x46LOOR\x10\x02\x12\t\n\x05OTHER\x10\n\"\xa5\x07\n\nDeviceInfo\x12\x11\n\tdevice_id\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\x12\x0f\n\x07zone_id\x18\x04 \x01(\t\x12O\n\x0b\x64\x65vice_type\x18\x05 \x01(\x0e\x32:.smart_buildings.smart_control.proto.DeviceInfo.DeviceType\x12`\n\x11observable_fields\x18\x06 \x03(\x0b\x32\x45.smart_buildings.smart_control.proto.DeviceInfo.ObservableFieldsEntry\x12X\n\raction_fields\x18\x07 \x03(\x0b\x32\x41.smart_buildings.smart_control.proto.DeviceInfo.ActionFieldsEntry\x1ar\n\x15ObservableFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12H\n\x05value\x18\x02 \x01(\x0e\x32\x39.smart_buildings.smart_control.proto.DeviceInfo.ValueType:\x02\x38\x01\x1an\n\x11\x41\x63tionFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12H\n\x05value\x18\x02 \x01(\x0e\x32\x39.smart_buildings.smart_control.proto.DeviceInfo.ValueType:\x02\x38\x01\"\xe7\x01\n\nDeviceType\x12\r\n\tUNDEFINED\x10\x00\x12\x07\n\x03\x46\x41N\x10\x01\x12\x07\n\x03PMP\x10\x02\x12\x07\n\x03\x46\x43U\x10\x03\x12\x07\n\x03VAV\x10\x04\x12\x06\n\x02\x44H\x10\x05\x12\x07\n\x03\x41HU\x10\x06\x12\x07\n\x03\x42LR\x10\x07\x12\x08\n\x04\x43\x44WS\x10\x08\x12\x06\n\x02\x43H\x10\t\x12\x08\n\x04\x43HWS\x10\n\x12\x06\n\x02\x43T\x10\x0b\x12\x06\n\x02\x44\x43\x10\x0c\x12\x07\n\x03\x44\x46R\x10\r\x12\x07\n\x03\x44MP\x10\x0e\x12\x07\n\x03HWS\x10\x0f\x12\x06\n\x02HX\x10\x10\x12\x07\n\x03MAU\x10\x11\x12\x07\n\x03SDC\x10\x12\x12\x06\n\x02UH\x10\x13\x12\x07\n\x03PWR\x10\x14\x12\x07\n\x03GAS\x10\x15\x12\x06\n\x02\x41\x43\x10\x16\x12\t\n\x05OTHER\x10\x17\"w\n\tValueType\x12\x18\n\x14VALUE_TYPE_UNDEFINED\x10\x00\x12\x14\n\x10VALUE_CONTINUOUS\x10\x01\x12\x11\n\rVALUE_INTEGER\x10\x02\x12\x15\n\x11VALUE_CATEGORICAL\x10\x03\x12\x10\n\x0cVALUE_BINARY\x10\x04\"G\n\x18SingleObservationRequest\x12\x11\n\tdevice_id\x18\x01 \x01(\t\x12\x18\n\x10measurement_name\x18\x02 \x01(\t\"\xdf\x02\n\x19SingleObservationResponse\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x61\n\x1asingle_observation_request\x18\x02 \x01(\x0b\x32=.smart_buildings.smart_control.proto.SingleObservationRequest\x12\x19\n\x11observation_valid\x18\x03 \x01(\x08\x12\x1a\n\x10\x63ontinuous_value\x18\x04 \x01(\x02H\x00\x12\x17\n\rinteger_value\x18\x05 \x01(\x05H\x00\x12\x1b\n\x11\x63\x61tegorical_value\x18\x06 \x01(\tH\x00\x12\x16\n\x0c\x62inary_value\x18\x07 \x01(\x08H\x00\x12\x16\n\x0cstring_value\x18\x08 \x01(\tH\x00\x42\x13\n\x11observation_value\"\xa7\x01\n\x12ObservationRequest\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x62\n\x1bsingle_observation_requests\x18\x02 \x03(\x0b\x32=.smart_buildings.smart_control.proto.SingleObservationRequest\"\xf4\x01\n\x13ObservationResponse\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12H\n\x07request\x18\x02 \x01(\x0b\x32\x37.smart_buildings.smart_control.proto.ObservationRequest\x12\x64\n\x1csingle_observation_responses\x18\x03 \x03(\x0b\x32>.smart_buildings.smart_control.proto.SingleObservationResponse\"\xd3\x01\n\x13SingleActionRequest\x12\x11\n\tdevice_id\x18\x01 \x01(\t\x12\x15\n\rsetpoint_name\x18\x02 \x01(\t\x12\x1a\n\x10\x63ontinuous_value\x18\x03 \x01(\x02H\x00\x12\x17\n\rinteger_value\x18\x04 \x01(\x05H\x00\x12\x1b\n\x11\x63\x61tegorical_value\x18\x05 \x01(\tH\x00\x12\x16\n\x0c\x62inary_value\x18\x06 \x01(\x08H\x00\x12\x16\n\x0cstring_value\x18\x07 \x01(\tH\x00\x42\x10\n\x0esetpoint_value\"\xdd\x03\n\x14SingleActionResponse\x12I\n\x07request\x18\x01 \x01(\x0b\x32\x38.smart_buildings.smart_control.proto.SingleActionRequest\x12\x63\n\rresponse_type\x18\x02 \x01(\x0e\x32L.smart_buildings.smart_control.proto.SingleActionResponse.ActionResponseType\x12\x17\n\x0f\x61\x64\x64itional_info\x18\x03 \x01(\t\"\xfb\x01\n\x12\x41\x63tionResponseType\x12\r\n\tUNDEFINED\x10\x00\x12\x0c\n\x08\x41\x43\x43\x45PTED\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\r\n\tTIMED_OUT\x10\x03\x12\x1c\n\x18REJECTED_INVALID_SETTING\x10\x04\x12%\n!REJECTED_NOT_ENABLED_OR_AVAILABLE\x10\x05\x12\x15\n\x11REJECTED_OVERRIDE\x10\x06\x12\x1b\n\x17REJECTED_INVALID_DEVICE\x10\x07\x12\x1b\n\x17REJECTED_DEVICE_OFFLINE\x10\x08\x12\x0b\n\x07UNKNOWN\x10\t\x12\t\n\x05OTHER\x10\n\"\x98\x01\n\rActionRequest\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12X\n\x16single_action_requests\x18\x02 \x03(\x0b\x32\x38.smart_buildings.smart_control.proto.SingleActionRequest\"\xe0\x01\n\x0e\x41\x63tionResponse\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x07request\x18\x02 \x01(\x0b\x32\x32.smart_buildings.smart_control.proto.ActionRequest\x12Z\n\x17single_action_responses\x18\x03 \x03(\x0b\x32\x39.smart_buildings.smart_control.proto.SingleActionResponseb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'smart_control_building_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + _globals['_DEVICEINFO_OBSERVABLEFIELDSENTRY']._options = None + _globals['_DEVICEINFO_OBSERVABLEFIELDSENTRY']._serialized_options = b'8\001' + _globals['_DEVICEINFO_ACTIONFIELDSENTRY']._options = None + _globals['_DEVICEINFO_ACTIONFIELDSENTRY']._serialized_options = b'8\001' + _globals['_ZONEINFO']._serialized_start=103 + _globals['_ZONEINFO']._serialized_end=357 + _globals['_ZONEINFO_ZONETYPE']._serialized_start=300 + _globals['_ZONEINFO_ZONETYPE']._serialized_end=357 + _globals['_DEVICEINFO']._serialized_start=360 + _globals['_DEVICEINFO']._serialized_end=1293 + _globals['_DEVICEINFO_OBSERVABLEFIELDSENTRY']._serialized_start=712 + _globals['_DEVICEINFO_OBSERVABLEFIELDSENTRY']._serialized_end=826 + _globals['_DEVICEINFO_ACTIONFIELDSENTRY']._serialized_start=828 + _globals['_DEVICEINFO_ACTIONFIELDSENTRY']._serialized_end=938 + _globals['_DEVICEINFO_DEVICETYPE']._serialized_start=941 + _globals['_DEVICEINFO_DEVICETYPE']._serialized_end=1172 + _globals['_DEVICEINFO_VALUETYPE']._serialized_start=1174 + _globals['_DEVICEINFO_VALUETYPE']._serialized_end=1293 + _globals['_SINGLEOBSERVATIONREQUEST']._serialized_start=1295 + _globals['_SINGLEOBSERVATIONREQUEST']._serialized_end=1366 + _globals['_SINGLEOBSERVATIONRESPONSE']._serialized_start=1369 + _globals['_SINGLEOBSERVATIONRESPONSE']._serialized_end=1720 + _globals['_OBSERVATIONREQUEST']._serialized_start=1723 + _globals['_OBSERVATIONREQUEST']._serialized_end=1890 + _globals['_OBSERVATIONRESPONSE']._serialized_start=1893 + _globals['_OBSERVATIONRESPONSE']._serialized_end=2137 + _globals['_SINGLEACTIONREQUEST']._serialized_start=2140 + _globals['_SINGLEACTIONREQUEST']._serialized_end=2351 + _globals['_SINGLEACTIONRESPONSE']._serialized_start=2354 + _globals['_SINGLEACTIONRESPONSE']._serialized_end=2831 + _globals['_SINGLEACTIONRESPONSE_ACTIONRESPONSETYPE']._serialized_start=2580 + _globals['_SINGLEACTIONRESPONSE_ACTIONRESPONSETYPE']._serialized_end=2831 + _globals['_ACTIONREQUEST']._serialized_start=2834 + _globals['_ACTIONREQUEST']._serialized_end=2986 + _globals['_ACTIONRESPONSE']._serialized_start=2989 + _globals['_ACTIONRESPONSE']._serialized_end=3213 # @@protoc_insertion_point(module_scope) diff --git a/smart_control/proto/smart_control_normalization_pb2.py b/smart_control/proto/smart_control_normalization_pb2.py index 36b64c0d..192da2f1 100644 --- a/smart_control/proto/smart_control_normalization_pb2.py +++ b/smart_control/proto/smart_control_normalization_pb2.py @@ -1,11 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: smart_control_normalization.proto - +# Protobuf Python Version: 4.25.1 +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -14,117 +15,13 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor.FileDescriptor( - name='smart_control_normalization.proto', - package='smart_buildings.smart_control.proto', - syntax='proto3', - serialized_options=None, - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n!smart_control_normalization.proto\x12#smart_buildings.smart_control.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x90\x02\n\x16\x43ontinuousVariableInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12\x30\n\x0csample_start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nsample_end\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bsample_size\x18\x04 \x01(\x05\x12\x17\n\x0fsample_variance\x18\x05 \x01(\x02\x12\x13\n\x0bsample_mean\x18\x06 \x01(\x02\x12\x15\n\rsample_median\x18\x07 \x01(\x02\x12\x16\n\x0esample_maximum\x18\x08 \x01(\x02\x12\x16\n\x0esample_minimum\x18\t \x01(\x02\x62\x06proto3' - , - dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - - - -_CONTINUOUSVARIABLEINFO = _descriptor.Descriptor( - name='ContinuousVariableInfo', - full_name='smart_buildings.smart_control.proto.ContinuousVariableInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='smart_buildings.smart_control.proto.ContinuousVariableInfo.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='sample_start', full_name='smart_buildings.smart_control.proto.ContinuousVariableInfo.sample_start', 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='sample_end', full_name='smart_buildings.smart_control.proto.ContinuousVariableInfo.sample_end', 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='sample_size', full_name='smart_buildings.smart_control.proto.ContinuousVariableInfo.sample_size', index=3, - number=4, 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='sample_variance', full_name='smart_buildings.smart_control.proto.ContinuousVariableInfo.sample_variance', index=4, - number=5, type=2, cpp_type=6, 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='sample_mean', full_name='smart_buildings.smart_control.proto.ContinuousVariableInfo.sample_mean', index=5, - number=6, type=2, cpp_type=6, 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='sample_median', full_name='smart_buildings.smart_control.proto.ContinuousVariableInfo.sample_median', index=6, - number=7, type=2, cpp_type=6, 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='sample_maximum', full_name='smart_buildings.smart_control.proto.ContinuousVariableInfo.sample_maximum', index=7, - number=8, type=2, cpp_type=6, 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='sample_minimum', full_name='smart_buildings.smart_control.proto.ContinuousVariableInfo.sample_minimum', index=8, - number=9, type=2, cpp_type=6, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=108, - serialized_end=380, -) - -_CONTINUOUSVARIABLEINFO.fields_by_name['sample_start'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_CONTINUOUSVARIABLEINFO.fields_by_name['sample_end'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name['ContinuousVariableInfo'] = _CONTINUOUSVARIABLEINFO -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ContinuousVariableInfo = _reflection.GeneratedProtocolMessageType('ContinuousVariableInfo', (_message.Message,), { - 'DESCRIPTOR' : _CONTINUOUSVARIABLEINFO, - '__module__' : 'smart_control_normalization_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.ContinuousVariableInfo) - }) -_sym_db.RegisterMessage(ContinuousVariableInfo) - +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!smart_control_normalization.proto\x12#smart_buildings.smart_control.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x90\x02\n\x16\x43ontinuousVariableInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12\x30\n\x0csample_start\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nsample_end\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bsample_size\x18\x04 \x01(\x05\x12\x17\n\x0fsample_variance\x18\x05 \x01(\x02\x12\x13\n\x0bsample_mean\x18\x06 \x01(\x02\x12\x15\n\rsample_median\x18\x07 \x01(\x02\x12\x16\n\x0esample_maximum\x18\x08 \x01(\x02\x12\x16\n\x0esample_minimum\x18\t \x01(\x02\x62\x06proto3') +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'smart_control_normalization_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + _globals['_CONTINUOUSVARIABLEINFO']._serialized_start=108 + _globals['_CONTINUOUSVARIABLEINFO']._serialized_end=380 # @@protoc_insertion_point(module_scope) diff --git a/smart_control/proto/smart_control_reward_pb2.py b/smart_control/proto/smart_control_reward_pb2.py index 9e67d36e..e6816ea6 100644 --- a/smart_control/proto/smart_control_reward_pb2.py +++ b/smart_control/proto/smart_control_reward_pb2.py @@ -1,11 +1,12 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: smart_control_reward.proto - +# Protobuf Python Version: 4.25.1 +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -14,590 +15,33 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor.FileDescriptor( - name='smart_control_reward.proto', - package='smart_buildings.smart_control.proto', - syntax='proto3', - serialized_options=None, - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x1asmart_control_reward.proto\x12#smart_buildings.smart_control.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\t\n\nRewardInfo\x12\x33\n\x0fstart_timestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rend_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08\x61gent_id\x18\x03 \x01(\t\x12\x13\n\x0bscenario_id\x18\x04 \x01(\t\x12_\n\x11zone_reward_infos\x18\x05 \x03(\x0b\x32\x44.smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfosEntry\x12l\n\x18\x61ir_handler_reward_infos\x18\x06 \x03(\x0b\x32J.smart_buildings.smart_control.proto.RewardInfo.AirHandlerRewardInfosEntry\x12\x63\n\x13\x62oiler_reward_infos\x18\x07 \x03(\x0b\x32\x46.smart_buildings.smart_control.proto.RewardInfo.BoilerRewardInfosEntry\x1a\xcc\x01\n\x0eZoneRewardInfo\x12$\n\x1cheating_setpoint_temperature\x18\x01 \x01(\x02\x12$\n\x1c\x63ooling_setpoint_temperature\x18\x02 \x01(\x02\x12\x1c\n\x14zone_air_temperature\x18\x03 \x01(\x02\x12\x1e\n\x16\x61ir_flow_rate_setpoint\x18\x04 \x01(\x02\x12\x15\n\rair_flow_rate\x18\x05 \x01(\x02\x12\x19\n\x11\x61verage_occupancy\x18\x06 \x01(\x02\x1an\n\x14\x41irHandlerRewardInfo\x12%\n\x1d\x62lower_electrical_energy_rate\x18\x01 \x01(\x02\x12/\n\'air_conditioning_electrical_energy_rate\x18\x02 \x01(\x02\x1a`\n\x10\x42oilerRewardInfo\x12\'\n\x1fnatural_gas_heating_energy_rate\x18\x01 \x01(\x02\x12#\n\x1bpump_electrical_energy_rate\x18\x02 \x01(\x02\x1av\n\x14ZoneRewardInfosEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12M\n\x05value\x18\x02 \x01(\x0b\x32>.smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfo:\x02\x38\x01\x1a\x82\x01\n\x1a\x41irHandlerRewardInfosEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12S\n\x05value\x18\x02 \x01(\x0b\x32\x44.smart_buildings.smart_control.proto.RewardInfo.AirHandlerRewardInfo:\x02\x38\x01\x1az\n\x16\x42oilerRewardInfosEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12O\n\x05value\x18\x02 \x01(\x0b\x32@.smart_buildings.smart_control.proto.RewardInfo.BoilerRewardInfo:\x02\x38\x01\"\xe4\x04\n\x0eRewardResponse\x12\x1a\n\x12\x61gent_reward_value\x18\x01 \x01(\x02\x12\x1b\n\x13productivity_reward\x18\x02 \x01(\x02\x12\x1f\n\x17\x65lectricity_energy_cost\x18\x03 \x01(\x02\x12\x1f\n\x17natural_gas_energy_cost\x18\x04 \x01(\x02\x12\x16\n\x0e\x63\x61rbon_emitted\x18\x05 \x01(\x02\x12\x13\n\x0b\x63\x61rbon_cost\x18\x06 \x01(\x02\x12\x1b\n\x13productivity_weight\x18\x07 \x01(\x02\x12\x1a\n\x12\x65nergy_cost_weight\x18\x08 \x01(\x02\x12\x1e\n\x16\x63\x61rbon_emission_weight\x18\t \x01(\x02\x12\x1b\n\x13person_productivity\x18\n \x01(\x02\x12\x17\n\x0ftotal_occupancy\x18\x0b \x01(\x02\x12\x14\n\x0creward_scale\x18\x0c \x01(\x02\x12\x14\n\x0creward_shift\x18\r \x01(\x02\x12\x1b\n\x13productivity_regret\x18\x0e \x01(\x02\x12&\n\x1enormalized_productivity_regret\x18\x0f \x01(\x02\x12\x1e\n\x16normalized_energy_cost\x18\x10 \x01(\x02\x12\"\n\x1anormalized_carbon_emission\x18\x11 \x01(\x02\x12\x33\n\x0fstart_timestamp\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rend_timestamp\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestampb\x06proto3' - , - dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) - - - - -_REWARDINFO_ZONEREWARDINFO = _descriptor.Descriptor( - name='ZoneRewardInfo', - full_name='smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='heating_setpoint_temperature', full_name='smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfo.heating_setpoint_temperature', index=0, - number=1, type=2, cpp_type=6, 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='cooling_setpoint_temperature', full_name='smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfo.cooling_setpoint_temperature', index=1, - number=2, type=2, cpp_type=6, 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='zone_air_temperature', full_name='smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfo.zone_air_temperature', index=2, - number=3, type=2, cpp_type=6, 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='air_flow_rate_setpoint', full_name='smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfo.air_flow_rate_setpoint', index=3, - number=4, type=2, cpp_type=6, 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='air_flow_rate', full_name='smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfo.air_flow_rate', index=4, - number=5, type=2, cpp_type=6, 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='average_occupancy', full_name='smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfo.average_occupancy', index=5, - number=6, type=2, cpp_type=6, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=567, - serialized_end=771, -) - -_REWARDINFO_AIRHANDLERREWARDINFO = _descriptor.Descriptor( - name='AirHandlerRewardInfo', - full_name='smart_buildings.smart_control.proto.RewardInfo.AirHandlerRewardInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='blower_electrical_energy_rate', full_name='smart_buildings.smart_control.proto.RewardInfo.AirHandlerRewardInfo.blower_electrical_energy_rate', index=0, - number=1, type=2, cpp_type=6, 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='air_conditioning_electrical_energy_rate', full_name='smart_buildings.smart_control.proto.RewardInfo.AirHandlerRewardInfo.air_conditioning_electrical_energy_rate', index=1, - number=2, type=2, cpp_type=6, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=773, - serialized_end=883, -) - -_REWARDINFO_BOILERREWARDINFO = _descriptor.Descriptor( - name='BoilerRewardInfo', - full_name='smart_buildings.smart_control.proto.RewardInfo.BoilerRewardInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='natural_gas_heating_energy_rate', full_name='smart_buildings.smart_control.proto.RewardInfo.BoilerRewardInfo.natural_gas_heating_energy_rate', index=0, - number=1, type=2, cpp_type=6, 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='pump_electrical_energy_rate', full_name='smart_buildings.smart_control.proto.RewardInfo.BoilerRewardInfo.pump_electrical_energy_rate', index=1, - number=2, type=2, cpp_type=6, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=885, - serialized_end=981, -) - -_REWARDINFO_ZONEREWARDINFOSENTRY = _descriptor.Descriptor( - name='ZoneRewardInfosEntry', - full_name='smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfosEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfosEntry.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='smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfosEntry.value', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=983, - serialized_end=1101, -) - -_REWARDINFO_AIRHANDLERREWARDINFOSENTRY = _descriptor.Descriptor( - name='AirHandlerRewardInfosEntry', - full_name='smart_buildings.smart_control.proto.RewardInfo.AirHandlerRewardInfosEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='smart_buildings.smart_control.proto.RewardInfo.AirHandlerRewardInfosEntry.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='smart_buildings.smart_control.proto.RewardInfo.AirHandlerRewardInfosEntry.value', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1104, - serialized_end=1234, -) - -_REWARDINFO_BOILERREWARDINFOSENTRY = _descriptor.Descriptor( - name='BoilerRewardInfosEntry', - full_name='smart_buildings.smart_control.proto.RewardInfo.BoilerRewardInfosEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='smart_buildings.smart_control.proto.RewardInfo.BoilerRewardInfosEntry.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='smart_buildings.smart_control.proto.RewardInfo.BoilerRewardInfosEntry.value', 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1236, - serialized_end=1358, -) - -_REWARDINFO = _descriptor.Descriptor( - name='RewardInfo', - full_name='smart_buildings.smart_control.proto.RewardInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='start_timestamp', full_name='smart_buildings.smart_control.proto.RewardInfo.start_timestamp', 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='end_timestamp', full_name='smart_buildings.smart_control.proto.RewardInfo.end_timestamp', 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='agent_id', full_name='smart_buildings.smart_control.proto.RewardInfo.agent_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='scenario_id', full_name='smart_buildings.smart_control.proto.RewardInfo.scenario_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='zone_reward_infos', full_name='smart_buildings.smart_control.proto.RewardInfo.zone_reward_infos', 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, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='air_handler_reward_infos', full_name='smart_buildings.smart_control.proto.RewardInfo.air_handler_reward_infos', index=5, - number=6, 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='boiler_reward_infos', full_name='smart_buildings.smart_control.proto.RewardInfo.boiler_reward_infos', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_REWARDINFO_ZONEREWARDINFO, _REWARDINFO_AIRHANDLERREWARDINFO, _REWARDINFO_BOILERREWARDINFO, _REWARDINFO_ZONEREWARDINFOSENTRY, _REWARDINFO_AIRHANDLERREWARDINFOSENTRY, _REWARDINFO_BOILERREWARDINFOSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=101, - serialized_end=1358, -) - - -_REWARDRESPONSE = _descriptor.Descriptor( - name='RewardResponse', - full_name='smart_buildings.smart_control.proto.RewardResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='agent_reward_value', full_name='smart_buildings.smart_control.proto.RewardResponse.agent_reward_value', index=0, - number=1, type=2, cpp_type=6, 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='productivity_reward', full_name='smart_buildings.smart_control.proto.RewardResponse.productivity_reward', index=1, - number=2, type=2, cpp_type=6, 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='electricity_energy_cost', full_name='smart_buildings.smart_control.proto.RewardResponse.electricity_energy_cost', index=2, - number=3, type=2, cpp_type=6, 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='natural_gas_energy_cost', full_name='smart_buildings.smart_control.proto.RewardResponse.natural_gas_energy_cost', index=3, - number=4, type=2, cpp_type=6, 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='carbon_emitted', full_name='smart_buildings.smart_control.proto.RewardResponse.carbon_emitted', index=4, - number=5, type=2, cpp_type=6, 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='carbon_cost', full_name='smart_buildings.smart_control.proto.RewardResponse.carbon_cost', index=5, - number=6, type=2, cpp_type=6, 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='productivity_weight', full_name='smart_buildings.smart_control.proto.RewardResponse.productivity_weight', index=6, - number=7, type=2, cpp_type=6, 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='energy_cost_weight', full_name='smart_buildings.smart_control.proto.RewardResponse.energy_cost_weight', index=7, - number=8, type=2, cpp_type=6, 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='carbon_emission_weight', full_name='smart_buildings.smart_control.proto.RewardResponse.carbon_emission_weight', index=8, - number=9, type=2, cpp_type=6, 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='person_productivity', full_name='smart_buildings.smart_control.proto.RewardResponse.person_productivity', index=9, - number=10, type=2, cpp_type=6, 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='total_occupancy', full_name='smart_buildings.smart_control.proto.RewardResponse.total_occupancy', index=10, - number=11, type=2, cpp_type=6, 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='reward_scale', full_name='smart_buildings.smart_control.proto.RewardResponse.reward_scale', index=11, - number=12, type=2, cpp_type=6, 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='reward_shift', full_name='smart_buildings.smart_control.proto.RewardResponse.reward_shift', index=12, - number=13, type=2, cpp_type=6, 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='productivity_regret', full_name='smart_buildings.smart_control.proto.RewardResponse.productivity_regret', index=13, - number=14, type=2, cpp_type=6, 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='normalized_productivity_regret', full_name='smart_buildings.smart_control.proto.RewardResponse.normalized_productivity_regret', index=14, - number=15, type=2, cpp_type=6, 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='normalized_energy_cost', full_name='smart_buildings.smart_control.proto.RewardResponse.normalized_energy_cost', index=15, - number=16, type=2, cpp_type=6, 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='normalized_carbon_emission', full_name='smart_buildings.smart_control.proto.RewardResponse.normalized_carbon_emission', index=16, - number=17, type=2, cpp_type=6, 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='start_timestamp', full_name='smart_buildings.smart_control.proto.RewardResponse.start_timestamp', index=17, - number=18, 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='end_timestamp', full_name='smart_buildings.smart_control.proto.RewardResponse.end_timestamp', index=18, - number=19, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1361, - serialized_end=1973, -) - -_REWARDINFO_ZONEREWARDINFO.containing_type = _REWARDINFO -_REWARDINFO_AIRHANDLERREWARDINFO.containing_type = _REWARDINFO -_REWARDINFO_BOILERREWARDINFO.containing_type = _REWARDINFO -_REWARDINFO_ZONEREWARDINFOSENTRY.fields_by_name['value'].message_type = _REWARDINFO_ZONEREWARDINFO -_REWARDINFO_ZONEREWARDINFOSENTRY.containing_type = _REWARDINFO -_REWARDINFO_AIRHANDLERREWARDINFOSENTRY.fields_by_name['value'].message_type = _REWARDINFO_AIRHANDLERREWARDINFO -_REWARDINFO_AIRHANDLERREWARDINFOSENTRY.containing_type = _REWARDINFO -_REWARDINFO_BOILERREWARDINFOSENTRY.fields_by_name['value'].message_type = _REWARDINFO_BOILERREWARDINFO -_REWARDINFO_BOILERREWARDINFOSENTRY.containing_type = _REWARDINFO -_REWARDINFO.fields_by_name['start_timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_REWARDINFO.fields_by_name['end_timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_REWARDINFO.fields_by_name['zone_reward_infos'].message_type = _REWARDINFO_ZONEREWARDINFOSENTRY -_REWARDINFO.fields_by_name['air_handler_reward_infos'].message_type = _REWARDINFO_AIRHANDLERREWARDINFOSENTRY -_REWARDINFO.fields_by_name['boiler_reward_infos'].message_type = _REWARDINFO_BOILERREWARDINFOSENTRY -_REWARDRESPONSE.fields_by_name['start_timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -_REWARDRESPONSE.fields_by_name['end_timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP -DESCRIPTOR.message_types_by_name['RewardInfo'] = _REWARDINFO -DESCRIPTOR.message_types_by_name['RewardResponse'] = _REWARDRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -RewardInfo = _reflection.GeneratedProtocolMessageType('RewardInfo', (_message.Message,), { - - 'ZoneRewardInfo' : _reflection.GeneratedProtocolMessageType('ZoneRewardInfo', (_message.Message,), { - 'DESCRIPTOR' : _REWARDINFO_ZONEREWARDINFO, - '__module__' : 'smart_control_reward_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfo) - }) - , - - 'AirHandlerRewardInfo' : _reflection.GeneratedProtocolMessageType('AirHandlerRewardInfo', (_message.Message,), { - 'DESCRIPTOR' : _REWARDINFO_AIRHANDLERREWARDINFO, - '__module__' : 'smart_control_reward_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.RewardInfo.AirHandlerRewardInfo) - }) - , - - 'BoilerRewardInfo' : _reflection.GeneratedProtocolMessageType('BoilerRewardInfo', (_message.Message,), { - 'DESCRIPTOR' : _REWARDINFO_BOILERREWARDINFO, - '__module__' : 'smart_control_reward_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.RewardInfo.BoilerRewardInfo) - }) - , - - 'ZoneRewardInfosEntry' : _reflection.GeneratedProtocolMessageType('ZoneRewardInfosEntry', (_message.Message,), { - 'DESCRIPTOR' : _REWARDINFO_ZONEREWARDINFOSENTRY, - '__module__' : 'smart_control_reward_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfosEntry) - }) - , - - 'AirHandlerRewardInfosEntry' : _reflection.GeneratedProtocolMessageType('AirHandlerRewardInfosEntry', (_message.Message,), { - 'DESCRIPTOR' : _REWARDINFO_AIRHANDLERREWARDINFOSENTRY, - '__module__' : 'smart_control_reward_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.RewardInfo.AirHandlerRewardInfosEntry) - }) - , - - 'BoilerRewardInfosEntry' : _reflection.GeneratedProtocolMessageType('BoilerRewardInfosEntry', (_message.Message,), { - 'DESCRIPTOR' : _REWARDINFO_BOILERREWARDINFOSENTRY, - '__module__' : 'smart_control_reward_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.RewardInfo.BoilerRewardInfosEntry) - }) - , - 'DESCRIPTOR' : _REWARDINFO, - '__module__' : 'smart_control_reward_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.RewardInfo) - }) -_sym_db.RegisterMessage(RewardInfo) -_sym_db.RegisterMessage(RewardInfo.ZoneRewardInfo) -_sym_db.RegisterMessage(RewardInfo.AirHandlerRewardInfo) -_sym_db.RegisterMessage(RewardInfo.BoilerRewardInfo) -_sym_db.RegisterMessage(RewardInfo.ZoneRewardInfosEntry) -_sym_db.RegisterMessage(RewardInfo.AirHandlerRewardInfosEntry) -_sym_db.RegisterMessage(RewardInfo.BoilerRewardInfosEntry) - -RewardResponse = _reflection.GeneratedProtocolMessageType('RewardResponse', (_message.Message,), { - 'DESCRIPTOR' : _REWARDRESPONSE, - '__module__' : 'smart_control_reward_pb2' - # @@protoc_insertion_point(class_scope:smart_buildings.smart_control.proto.RewardResponse) - }) -_sym_db.RegisterMessage(RewardResponse) - - -_REWARDINFO_ZONEREWARDINFOSENTRY._options = None -_REWARDINFO_AIRHANDLERREWARDINFOSENTRY._options = None -_REWARDINFO_BOILERREWARDINFOSENTRY._options = None +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1asmart_control_reward.proto\x12#smart_buildings.smart_control.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\t\n\nRewardInfo\x12\x33\n\x0fstart_timestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rend_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08\x61gent_id\x18\x03 \x01(\t\x12\x13\n\x0bscenario_id\x18\x04 \x01(\t\x12_\n\x11zone_reward_infos\x18\x05 \x03(\x0b\x32\x44.smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfosEntry\x12l\n\x18\x61ir_handler_reward_infos\x18\x06 \x03(\x0b\x32J.smart_buildings.smart_control.proto.RewardInfo.AirHandlerRewardInfosEntry\x12\x63\n\x13\x62oiler_reward_infos\x18\x07 \x03(\x0b\x32\x46.smart_buildings.smart_control.proto.RewardInfo.BoilerRewardInfosEntry\x1a\xcc\x01\n\x0eZoneRewardInfo\x12$\n\x1cheating_setpoint_temperature\x18\x01 \x01(\x02\x12$\n\x1c\x63ooling_setpoint_temperature\x18\x02 \x01(\x02\x12\x1c\n\x14zone_air_temperature\x18\x03 \x01(\x02\x12\x1e\n\x16\x61ir_flow_rate_setpoint\x18\x04 \x01(\x02\x12\x15\n\rair_flow_rate\x18\x05 \x01(\x02\x12\x19\n\x11\x61verage_occupancy\x18\x06 \x01(\x02\x1an\n\x14\x41irHandlerRewardInfo\x12%\n\x1d\x62lower_electrical_energy_rate\x18\x01 \x01(\x02\x12/\n\'air_conditioning_electrical_energy_rate\x18\x02 \x01(\x02\x1a`\n\x10\x42oilerRewardInfo\x12\'\n\x1fnatural_gas_heating_energy_rate\x18\x01 \x01(\x02\x12#\n\x1bpump_electrical_energy_rate\x18\x02 \x01(\x02\x1av\n\x14ZoneRewardInfosEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12M\n\x05value\x18\x02 \x01(\x0b\x32>.smart_buildings.smart_control.proto.RewardInfo.ZoneRewardInfo:\x02\x38\x01\x1a\x82\x01\n\x1a\x41irHandlerRewardInfosEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12S\n\x05value\x18\x02 \x01(\x0b\x32\x44.smart_buildings.smart_control.proto.RewardInfo.AirHandlerRewardInfo:\x02\x38\x01\x1az\n\x16\x42oilerRewardInfosEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12O\n\x05value\x18\x02 \x01(\x0b\x32@.smart_buildings.smart_control.proto.RewardInfo.BoilerRewardInfo:\x02\x38\x01\"\xe4\x04\n\x0eRewardResponse\x12\x1a\n\x12\x61gent_reward_value\x18\x01 \x01(\x02\x12\x1b\n\x13productivity_reward\x18\x02 \x01(\x02\x12\x1f\n\x17\x65lectricity_energy_cost\x18\x03 \x01(\x02\x12\x1f\n\x17natural_gas_energy_cost\x18\x04 \x01(\x02\x12\x16\n\x0e\x63\x61rbon_emitted\x18\x05 \x01(\x02\x12\x13\n\x0b\x63\x61rbon_cost\x18\x06 \x01(\x02\x12\x1b\n\x13productivity_weight\x18\x07 \x01(\x02\x12\x1a\n\x12\x65nergy_cost_weight\x18\x08 \x01(\x02\x12\x1e\n\x16\x63\x61rbon_emission_weight\x18\t \x01(\x02\x12\x1b\n\x13person_productivity\x18\n \x01(\x02\x12\x17\n\x0ftotal_occupancy\x18\x0b \x01(\x02\x12\x14\n\x0creward_scale\x18\x0c \x01(\x02\x12\x14\n\x0creward_shift\x18\r \x01(\x02\x12\x1b\n\x13productivity_regret\x18\x0e \x01(\x02\x12&\n\x1enormalized_productivity_regret\x18\x0f \x01(\x02\x12\x1e\n\x16normalized_energy_cost\x18\x10 \x01(\x02\x12\"\n\x1anormalized_carbon_emission\x18\x11 \x01(\x02\x12\x33\n\x0fstart_timestamp\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rend_timestamp\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestampb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'smart_control_reward_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + _globals['_REWARDINFO_ZONEREWARDINFOSENTRY']._options = None + _globals['_REWARDINFO_ZONEREWARDINFOSENTRY']._serialized_options = b'8\001' + _globals['_REWARDINFO_AIRHANDLERREWARDINFOSENTRY']._options = None + _globals['_REWARDINFO_AIRHANDLERREWARDINFOSENTRY']._serialized_options = b'8\001' + _globals['_REWARDINFO_BOILERREWARDINFOSENTRY']._options = None + _globals['_REWARDINFO_BOILERREWARDINFOSENTRY']._serialized_options = b'8\001' + _globals['_REWARDINFO']._serialized_start=101 + _globals['_REWARDINFO']._serialized_end=1358 + _globals['_REWARDINFO_ZONEREWARDINFO']._serialized_start=567 + _globals['_REWARDINFO_ZONEREWARDINFO']._serialized_end=771 + _globals['_REWARDINFO_AIRHANDLERREWARDINFO']._serialized_start=773 + _globals['_REWARDINFO_AIRHANDLERREWARDINFO']._serialized_end=883 + _globals['_REWARDINFO_BOILERREWARDINFO']._serialized_start=885 + _globals['_REWARDINFO_BOILERREWARDINFO']._serialized_end=981 + _globals['_REWARDINFO_ZONEREWARDINFOSENTRY']._serialized_start=983 + _globals['_REWARDINFO_ZONEREWARDINFOSENTRY']._serialized_end=1101 + _globals['_REWARDINFO_AIRHANDLERREWARDINFOSENTRY']._serialized_start=1104 + _globals['_REWARDINFO_AIRHANDLERREWARDINFOSENTRY']._serialized_end=1234 + _globals['_REWARDINFO_BOILERREWARDINFOSENTRY']._serialized_start=1236 + _globals['_REWARDINFO_BOILERREWARDINFOSENTRY']._serialized_end=1358 + _globals['_REWARDRESPONSE']._serialized_start=1361 + _globals['_REWARDRESPONSE']._serialized_end=1973 # @@protoc_insertion_point(module_scope)