From bd3078bdefa3892b3c8714a4d4035391f4984529 Mon Sep 17 00:00:00 2001 From: Markus Lehr Date: Tue, 25 Jun 2024 20:46:54 +0200 Subject: [PATCH] we could read the kernel data and make a json file --- .vscode/settings.json | 78 + CMakeLists.txt | 31 +- __doc/.~lock.ECAL_Infos.odt# | 1 - __logicsample/RPMSGDriver.c | 287 +++ .../api/v1/query/client-vscode/.gitignore | 1 + build/.cmake/api/v1/reply/.gitignore | 7 + build/.gitignore | 6 + build/CMakeFiles/.gitignore | 6 + build/CMakeFiles/3.29.2/.gitignore | 5 + .../CMakeFiles/3.29.2/CompilerIdC/.gitignore | 2 + .../3.29.2/CompilerIdCXX/.gitignore | 2 + build/CMakeFiles/3.29.3/.gitignore | 5 + .../CMakeFiles/3.29.3/CompilerIdC/.gitignore | 2 + .../3.29.3/CompilerIdCXX/.gitignore | 2 + build/CMakeFiles/RTService.dir/.gitignore | 9 + build/CMakeFiles/RTService.dir/src/.gitignore | 2 + .../src/monitoringTask/.gitignore | 2 + .../RTService.dir/src/utilities/.gitignore | 2 + include/RTCreateMonitoring.h | 32 + include/RTSCoproHelper.h | 4 +- include/RTSMonFrame.h | 12 +- include/RTSMonitoringTask.h | 5 +- include/RTSMonitoringTask.h.old | 39 - protobuf/RTService.pb.cc | 2040 ---------------- protobuf/RTService.pb.h | 2130 ----------------- src/RTService.cpp | 139 +- src/monitoringTask/RTSMonitoringTask.cpp | 28 +- src/monitoringTask/RTSMonitoringTask.cpp.old | 231 -- .../{RTService.proto => RTService.proto.old} | 0 src/utilities/RTSCoproHelper.cpp | 29 +- 30 files changed, 536 insertions(+), 4603 deletions(-) create mode 100644 .vscode/settings.json delete mode 100644 __doc/.~lock.ECAL_Infos.odt# create mode 100644 __logicsample/RPMSGDriver.c create mode 100644 build/.cmake/api/v1/query/client-vscode/.gitignore create mode 100644 build/.cmake/api/v1/reply/.gitignore create mode 100644 build/.gitignore create mode 100644 build/CMakeFiles/.gitignore create mode 100644 build/CMakeFiles/3.29.2/.gitignore create mode 100644 build/CMakeFiles/3.29.2/CompilerIdC/.gitignore create mode 100644 build/CMakeFiles/3.29.2/CompilerIdCXX/.gitignore create mode 100644 build/CMakeFiles/3.29.3/.gitignore create mode 100644 build/CMakeFiles/3.29.3/CompilerIdC/.gitignore create mode 100644 build/CMakeFiles/3.29.3/CompilerIdCXX/.gitignore create mode 100644 build/CMakeFiles/RTService.dir/.gitignore create mode 100644 build/CMakeFiles/RTService.dir/src/.gitignore create mode 100644 build/CMakeFiles/RTService.dir/src/monitoringTask/.gitignore create mode 100644 build/CMakeFiles/RTService.dir/src/utilities/.gitignore create mode 100644 include/RTCreateMonitoring.h delete mode 100644 include/RTSMonitoringTask.h.old delete mode 100644 protobuf/RTService.pb.cc delete mode 100644 protobuf/RTService.pb.h delete mode 100644 src/monitoringTask/RTSMonitoringTask.cpp.old rename src/proto_messages/{RTService.proto => RTService.proto.old} (100%) diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..5b65c8f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,78 @@ +{ + "files.associations": { + "string": "cpp", + "cctype": "cpp", + "clocale": "cpp", + "cmath": "cpp", + "csignal": "cpp", + "cstdarg": "cpp", + "cstddef": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cstring": "cpp", + "ctime": "cpp", + "cwchar": "cpp", + "cwctype": "cpp", + "any": "cpp", + "array": "cpp", + "atomic": "cpp", + "strstream": "cpp", + "bit": "cpp", + "*.tcc": "cpp", + "bitset": "cpp", + "chrono": "cpp", + "codecvt": "cpp", + "compare": "cpp", + "complex": "cpp", + "concepts": "cpp", + "condition_variable": "cpp", + "cstdint": "cpp", + "deque": "cpp", + "forward_list": "cpp", + "list": "cpp", + "map": "cpp", + "set": "cpp", + "unordered_map": "cpp", + "unordered_set": "cpp", + "vector": "cpp", + "exception": "cpp", + "algorithm": "cpp", + "functional": "cpp", + "iterator": "cpp", + "memory": "cpp", + "memory_resource": "cpp", + "numeric": "cpp", + "optional": "cpp", + "random": "cpp", + "ratio": "cpp", + "string_view": "cpp", + "system_error": "cpp", + "tuple": "cpp", + "type_traits": "cpp", + "utility": "cpp", + "fstream": "cpp", + "initializer_list": "cpp", + "iomanip": "cpp", + "iosfwd": "cpp", + "iostream": "cpp", + "istream": "cpp", + "limits": "cpp", + "mutex": "cpp", + "new": "cpp", + "numbers": "cpp", + "ostream": "cpp", + "ranges": "cpp", + "semaphore": "cpp", + "sstream": "cpp", + "stdexcept": "cpp", + "stop_token": "cpp", + "streambuf": "cpp", + "thread": "cpp", + "cfenv": "cpp", + "cinttypes": "cpp", + "typeindex": "cpp", + "typeinfo": "cpp", + "valarray": "cpp", + "variant": "cpp" + } +} \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 5016010..f8a6515 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,8 +13,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) # Find python and Boost - both are required dependencies #find_package(PythonLibs 3.10 REQUIRED) find_package(Boost COMPONENTS python REQUIRED) -find_package(eCAL REQUIRED) -find_package(Protobuf REQUIRED) +#find_package(eCAL REQUIRED) +#find_package(Protobuf REQUIRED) set(source_files @@ -26,21 +26,21 @@ set(source_files ) -set(rtservice_proto +# set(rtservice_proto - ${CMAKE_CURRENT_SOURCE_DIR}/src/proto_messages/RTService.proto +# ${CMAKE_CURRENT_SOURCE_DIR}/src/proto_messages/RTService.proto -) +# ) add_executable(${PROJECT_NAME} ${source_files}) #ecal_add_sample(${PROJECT_NAME} ${math_client_src}) #PROTOBUF_TARGET_CPP(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/src ${rtservice_proto}) -PROTOBUF_TARGET_CPP(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/src/proto_messages/ ${rtservice_proto}) +#PROTOBUF_TARGET_CPP(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/src/proto_messages/ ${rtservice_proto}) #set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) -set (CMAKE_RUNTIME_OUTPUT_DIRECTORY /home/markus/git/vrpmdvweb/vrpmdvserver/extensions/rt_service) -set (RTSERVICEINCLUDE ./include) +#set (CMAKE_RUNTIME_OUTPUT_DIRECTORY /home/markus/git/vrpmdvweb/vrpmdvserver/extensions/rt_service) +#set (RTSERVICEINCLUDE ./include) file( GLOB LIB_SOURCES .src/*.cpp ) @@ -54,11 +54,16 @@ file( GLOB LIB_HEADERS lib/*.h ) # Set up the libraries and header search paths for this target #target_link_libraries(rt_service ${Boost_LIBRARIES} ${PYTHON_LIBRARIES}) #target_include_directories(rt_service PRIVATE ${PYTHON_INCLUDE_DIRS} ${RTSERVICEINCLUDE}) -# target_link_libraries(RTService ${Boost_LIBRARIES} ) -target_link_libraries(${PROJECT_NAME} - eCAL::core - protobuf::libprotobuf -) +target_link_libraries(RTService ${Boost_LIBRARIES} ) +# target_link_libraries(${PROJECT_NAME} +# eCAL::core +# protobuf::libprotobuf +# ) + +# target_link_libraries(${PROJECT_NAME} +# eCAL::core +# ) + target_include_directories(${PROJECT_NAME} PRIVATE ${RTSERVICEINCLUDE}) diff --git a/__doc/.~lock.ECAL_Infos.odt# b/__doc/.~lock.ECAL_Infos.odt# deleted file mode 100644 index aef11a2..0000000 --- a/__doc/.~lock.ECAL_Infos.odt# +++ /dev/null @@ -1 +0,0 @@ -,markus,U2204VM,15.04.2024 12:29,file:///home/markus/.config/libreoffice/4; \ No newline at end of file diff --git a/__logicsample/RPMSGDriver.c b/__logicsample/RPMSGDriver.c new file mode 100644 index 0000000..ec89035 --- /dev/null +++ b/__logicsample/RPMSGDriver.c @@ -0,0 +1,287 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2021 STMicroelectronics - All Rights Reserved + * + * The rpmsg tty driver implements serial communication on the RPMsg bus to makes + * possible for user-space programs to send and receive rpmsg messages as a standard + * tty protocol. + * + * The remote processor can instantiate a new tty by requesting a "rpmsg-tty" RPMsg service. + * The "rpmsg-tty" service is directly used for data exchange. No flow control is implemented yet. + */ + +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + +#include +#include +#include +#include +#include + +#define RPMSG_TTY_NAME "ttyRPMSG" +#define MAX_TTY_RPMSG 32 + +static DEFINE_IDR(tty_idr); /* tty instance id */ +static DEFINE_MUTEX(idr_lock); /* protects tty_idr */ + +static struct tty_driver *rpmsg_tty_driver; + +struct rpmsg_tty_port { + struct tty_port port; /* TTY port data */ + int id; /* TTY rpmsg index */ + struct rpmsg_device *rpdev; /* rpmsg device */ +}; + +static int rpmsg_tty_cb(struct rpmsg_device *rpdev, void *data, int len, void *priv, u32 src) +{ + struct rpmsg_tty_port *cport = dev_get_drvdata(&rpdev->dev); + int copied; + + if (!len) + return -EINVAL; + copied = tty_insert_flip_string(&cport->port, data, len); + if (copied != len) + dev_err_ratelimited(&rpdev->dev, "Trunc buffer: available space is %d\n", copied); + tty_flip_buffer_push(&cport->port); + + return 0; +} + +static int rpmsg_tty_install(struct tty_driver *driver, struct tty_struct *tty) +{ + struct rpmsg_tty_port *cport = idr_find(&tty_idr, tty->index); + struct tty_port *port; + + tty->driver_data = cport; + + port = tty_port_get(&cport->port); + return tty_port_install(port, driver, tty); +} + +static void rpmsg_tty_cleanup(struct tty_struct *tty) +{ + tty_port_put(tty->port); +} + +static int rpmsg_tty_open(struct tty_struct *tty, struct file *filp) +{ + return tty_port_open(tty->port, tty, filp); +} + +static void rpmsg_tty_close(struct tty_struct *tty, struct file *filp) +{ + return tty_port_close(tty->port, tty, filp); +} + +static int rpmsg_tty_write(struct tty_struct *tty, const u8 *buf, int len) +{ + struct rpmsg_tty_port *cport = tty->driver_data; + struct rpmsg_device *rpdev; + int msg_max_size, msg_size; + int ret; + + rpdev = cport->rpdev; + + msg_max_size = rpmsg_get_mtu(rpdev->ept); + if (msg_max_size < 0) + return msg_max_size; + + msg_size = min(len, msg_max_size); + + /* + * Use rpmsg_trysend instead of rpmsg_send to send the message so the caller is not + * hung until a rpmsg buffer is available. In such case rpmsg_trysend returns -ENOMEM. + */ + ret = rpmsg_trysend(rpdev->ept, (void *)buf, msg_size); + if (ret) { + dev_dbg_ratelimited(&rpdev->dev, "rpmsg_send failed: %d\n", ret); + return ret; + } + + return msg_size; +} + +static unsigned int rpmsg_tty_write_room(struct tty_struct *tty) +{ + struct rpmsg_tty_port *cport = tty->driver_data; + int size; + + size = rpmsg_get_mtu(cport->rpdev->ept); + if (size < 0) + return 0; + + return size; +} + +static void rpmsg_tty_hangup(struct tty_struct *tty) +{ + tty_port_hangup(tty->port); +} + +static const struct tty_operations rpmsg_tty_ops = { + .install = rpmsg_tty_install, + .open = rpmsg_tty_open, + .close = rpmsg_tty_close, + .write = rpmsg_tty_write, + .write_room = rpmsg_tty_write_room, + .hangup = rpmsg_tty_hangup, + .cleanup = rpmsg_tty_cleanup, +}; + +static struct rpmsg_tty_port *rpmsg_tty_alloc_cport(void) +{ + struct rpmsg_tty_port *cport; + int ret; + + cport = kzalloc(sizeof(*cport), GFP_KERNEL); + if (!cport) + return ERR_PTR(-ENOMEM); + + mutex_lock(&idr_lock); + ret = idr_alloc(&tty_idr, cport, 0, MAX_TTY_RPMSG, GFP_KERNEL); + mutex_unlock(&idr_lock); + + if (ret < 0) { + kfree(cport); + return ERR_PTR(ret); + } + + cport->id = ret; + + return cport; +} + +static void rpmsg_tty_destruct_port(struct tty_port *port) +{ + struct rpmsg_tty_port *cport = container_of(port, struct rpmsg_tty_port, port); + + mutex_lock(&idr_lock); + idr_remove(&tty_idr, cport->id); + mutex_unlock(&idr_lock); + + kfree(cport); +} + +static const struct tty_port_operations rpmsg_tty_port_ops = { + .destruct = rpmsg_tty_destruct_port, +}; + + +static int rpmsg_tty_probe(struct rpmsg_device *rpdev) +{ + struct rpmsg_tty_port *cport; + struct device *dev = &rpdev->dev; + struct device *tty_dev; + int ret; + + cport = rpmsg_tty_alloc_cport(); + if (IS_ERR(cport)) + return dev_err_probe(dev, PTR_ERR(cport), "Failed to alloc tty port\n"); + + tty_port_init(&cport->port); + cport->port.ops = &rpmsg_tty_port_ops; + + tty_dev = tty_port_register_device(&cport->port, rpmsg_tty_driver, + cport->id, dev); + if (IS_ERR(tty_dev)) { + ret = dev_err_probe(dev, PTR_ERR(tty_dev), "Failed to register tty port\n"); + tty_port_put(&cport->port); + return ret; + } + + cport->rpdev = rpdev; + + dev_set_drvdata(dev, cport); + + dev_dbg(dev, "New channel: 0x%x -> 0x%x: " RPMSG_TTY_NAME "%d\n", + rpdev->src, rpdev->dst, cport->id); + + return 0; +} + +static void rpmsg_tty_remove(struct rpmsg_device *rpdev) +{ + struct rpmsg_tty_port *cport = dev_get_drvdata(&rpdev->dev); + + dev_dbg(&rpdev->dev, "Removing rpmsg tty device %d\n", cport->id); + + /* User hang up to release the tty */ + tty_port_tty_hangup(&cport->port, false); + + tty_unregister_device(rpmsg_tty_driver, cport->id); + + tty_port_put(&cport->port); +} + +static struct rpmsg_device_id rpmsg_driver_tty_id_table[] = { + { .name = "rpmsg-tty" }, + { }, +}; +MODULE_DEVICE_TABLE(rpmsg, rpmsg_driver_tty_id_table); + +static struct rpmsg_driver rpmsg_tty_rpmsg_drv = { + .drv.name = KBUILD_MODNAME, + .id_table = rpmsg_driver_tty_id_table, + .probe = rpmsg_tty_probe, + .callback = rpmsg_tty_cb, + .remove = rpmsg_tty_remove, +}; + +static int __init rpmsg_tty_init(void) +{ + int ret; + + rpmsg_tty_driver = tty_alloc_driver(MAX_TTY_RPMSG, TTY_DRIVER_REAL_RAW | + TTY_DRIVER_DYNAMIC_DEV); + if (IS_ERR(rpmsg_tty_driver)) + return PTR_ERR(rpmsg_tty_driver); + + rpmsg_tty_driver->driver_name = "rpmsg_tty"; + rpmsg_tty_driver->name = RPMSG_TTY_NAME; + rpmsg_tty_driver->major = 0; + rpmsg_tty_driver->type = TTY_DRIVER_TYPE_CONSOLE; + + /* Disable unused mode by default */ + rpmsg_tty_driver->init_termios = tty_std_termios; + rpmsg_tty_driver->init_termios.c_lflag &= ~(ECHO | ICANON); + rpmsg_tty_driver->init_termios.c_oflag &= ~(OPOST | ONLCR); + + tty_set_operations(rpmsg_tty_driver, &rpmsg_tty_ops); + + ret = tty_register_driver(rpmsg_tty_driver); + if (ret < 0) { + pr_err("Couldn't install driver: %d\n", ret); + goto error_put; + } + + ret = register_rpmsg_driver(&rpmsg_tty_rpmsg_drv); + if (ret < 0) { + pr_err("Couldn't register driver: %d\n", ret); + goto error_unregister; + } + + return 0; + +error_unregister: + tty_unregister_driver(rpmsg_tty_driver); + +error_put: + tty_driver_kref_put(rpmsg_tty_driver); + + return ret; +} + +static void __exit rpmsg_tty_exit(void) +{ + unregister_rpmsg_driver(&rpmsg_tty_rpmsg_drv); + tty_unregister_driver(rpmsg_tty_driver); + tty_driver_kref_put(rpmsg_tty_driver); + idr_destroy(&tty_idr); +} + +module_init(rpmsg_tty_init); +module_exit(rpmsg_tty_exit); + +MODULE_AUTHOR("Arnaud Pouliquen "); +MODULE_DESCRIPTION("remote processor messaging tty driver"); +MODULE_LICENSE("GPL v2"); \ No newline at end of file diff --git a/build/.cmake/api/v1/query/client-vscode/.gitignore b/build/.cmake/api/v1/query/client-vscode/.gitignore new file mode 100644 index 0000000..2db83e2 --- /dev/null +++ b/build/.cmake/api/v1/query/client-vscode/.gitignore @@ -0,0 +1 @@ +/query.json diff --git a/build/.cmake/api/v1/reply/.gitignore b/build/.cmake/api/v1/reply/.gitignore new file mode 100644 index 0000000..240310f --- /dev/null +++ b/build/.cmake/api/v1/reply/.gitignore @@ -0,0 +1,7 @@ +/cache-v2-b083f9b25e5fcd6a2264.json +/cmakeFiles-v1-74273e290dadc9250fe0.json +/codemodel-v2-1dafefaac836f38d91b3.json +/directory-.-Debug-f5ebdc15457944623624.json +/index-2024-05-28T12-15-27-0540.json +/target-RTService-Debug-5a1ae4d2709fa8a6e973.json +/toolchains-v1-8f001b8fbe957a6b9d5a.json diff --git a/build/.gitignore b/build/.gitignore new file mode 100644 index 0000000..39b5ef1 --- /dev/null +++ b/build/.gitignore @@ -0,0 +1,6 @@ +/CMakeCache.txt +/Makefile +/RTService +/build.ninja +/cmake_install.cmake +/compile_commands.json diff --git a/build/CMakeFiles/.gitignore b/build/CMakeFiles/.gitignore new file mode 100644 index 0000000..99fbbcf --- /dev/null +++ b/build/CMakeFiles/.gitignore @@ -0,0 +1,6 @@ +/CMakeConfigureLog.yaml +/Makefile2 +/TargetDirectories.txt +/cmake.check_cache +/progress.marks +/rules.ninja diff --git a/build/CMakeFiles/3.29.2/.gitignore b/build/CMakeFiles/3.29.2/.gitignore new file mode 100644 index 0000000..1675f1a --- /dev/null +++ b/build/CMakeFiles/3.29.2/.gitignore @@ -0,0 +1,5 @@ +/CMakeCCompiler.cmake +/CMakeCXXCompiler.cmake +/CMakeDetermineCompilerABI_C.bin +/CMakeDetermineCompilerABI_CXX.bin +/CMakeSystem.cmake diff --git a/build/CMakeFiles/3.29.2/CompilerIdC/.gitignore b/build/CMakeFiles/3.29.2/CompilerIdC/.gitignore new file mode 100644 index 0000000..4377608 --- /dev/null +++ b/build/CMakeFiles/3.29.2/CompilerIdC/.gitignore @@ -0,0 +1,2 @@ +/CMakeCCompilerId.c +/a.out diff --git a/build/CMakeFiles/3.29.2/CompilerIdCXX/.gitignore b/build/CMakeFiles/3.29.2/CompilerIdCXX/.gitignore new file mode 100644 index 0000000..44b2e04 --- /dev/null +++ b/build/CMakeFiles/3.29.2/CompilerIdCXX/.gitignore @@ -0,0 +1,2 @@ +/CMakeCXXCompilerId.cpp +/a.out diff --git a/build/CMakeFiles/3.29.3/.gitignore b/build/CMakeFiles/3.29.3/.gitignore new file mode 100644 index 0000000..1675f1a --- /dev/null +++ b/build/CMakeFiles/3.29.3/.gitignore @@ -0,0 +1,5 @@ +/CMakeCCompiler.cmake +/CMakeCXXCompiler.cmake +/CMakeDetermineCompilerABI_C.bin +/CMakeDetermineCompilerABI_CXX.bin +/CMakeSystem.cmake diff --git a/build/CMakeFiles/3.29.3/CompilerIdC/.gitignore b/build/CMakeFiles/3.29.3/CompilerIdC/.gitignore new file mode 100644 index 0000000..4377608 --- /dev/null +++ b/build/CMakeFiles/3.29.3/CompilerIdC/.gitignore @@ -0,0 +1,2 @@ +/CMakeCCompilerId.c +/a.out diff --git a/build/CMakeFiles/3.29.3/CompilerIdCXX/.gitignore b/build/CMakeFiles/3.29.3/CompilerIdCXX/.gitignore new file mode 100644 index 0000000..44b2e04 --- /dev/null +++ b/build/CMakeFiles/3.29.3/CompilerIdCXX/.gitignore @@ -0,0 +1,2 @@ +/CMakeCXXCompilerId.cpp +/a.out diff --git a/build/CMakeFiles/RTService.dir/.gitignore b/build/CMakeFiles/RTService.dir/.gitignore new file mode 100644 index 0000000..9f65431 --- /dev/null +++ b/build/CMakeFiles/RTService.dir/.gitignore @@ -0,0 +1,9 @@ +/DependInfo.cmake +/build.make +/cmake_clean.cmake +/compiler_depend.make +/compiler_depend.ts +/depend.make +/flags.make +/link.txt +/progress.make diff --git a/build/CMakeFiles/RTService.dir/src/.gitignore b/build/CMakeFiles/RTService.dir/src/.gitignore new file mode 100644 index 0000000..b1cb1c6 --- /dev/null +++ b/build/CMakeFiles/RTService.dir/src/.gitignore @@ -0,0 +1,2 @@ +/RTService.cpp.o +/RTService.cpp.o.d diff --git a/build/CMakeFiles/RTService.dir/src/monitoringTask/.gitignore b/build/CMakeFiles/RTService.dir/src/monitoringTask/.gitignore new file mode 100644 index 0000000..70f3e6c --- /dev/null +++ b/build/CMakeFiles/RTService.dir/src/monitoringTask/.gitignore @@ -0,0 +1,2 @@ +/RTSMonitoringTask.cpp.o +/RTSMonitoringTask.cpp.o.d diff --git a/build/CMakeFiles/RTService.dir/src/utilities/.gitignore b/build/CMakeFiles/RTService.dir/src/utilities/.gitignore new file mode 100644 index 0000000..236a537 --- /dev/null +++ b/build/CMakeFiles/RTService.dir/src/utilities/.gitignore @@ -0,0 +1,2 @@ +/RTSCoproHelper.cpp.o +/RTSCoproHelper.cpp.o.d diff --git a/include/RTCreateMonitoring.h b/include/RTCreateMonitoring.h new file mode 100644 index 0000000..854d68c --- /dev/null +++ b/include/RTCreateMonitoring.h @@ -0,0 +1,32 @@ +#include +#include +#include +#include +#include +#include "RTSMonitoringTask.h" + + + +class RTCreateMonitoring +{ + private: + /* data */ + + std::shared_ptr rtsMonTask; + + + public: + RTCreateMonitoring(std::shared_ptr rtsMonTask) { + + this->rtsMonTask = rtsMonTask; + } + + int operator()(const std::string& method_, const std::string& req_type_, const std::string& resp_type_ , const std::string& request_, std::string& response_) { + //make data from json + + bool res = true; //this->rtsMonTask.CreateMonitoring(id, name, samplerate, sampleperiod, downtime, status); + return res ? 0 : -1; + } +}; + + diff --git a/include/RTSCoproHelper.h b/include/RTSCoproHelper.h index 127ed7e..4b1de71 100644 --- a/include/RTSCoproHelper.h +++ b/include/RTSCoproHelper.h @@ -30,8 +30,8 @@ public: private: int Copro_getFwPath(char* pathStr); - int Copro_setFwPath(char* pathStr); + int Copro_setFwPath(const char* pathStr); int Copro_getFwName(char* pathStr); - int Copro_setFwName(char* nameStr); + int Copro_setFwName(const char* nameStr); }; diff --git a/include/RTSMonFrame.h b/include/RTSMonFrame.h index 93b0789..a66ca96 100644 --- a/include/RTSMonFrame.h +++ b/include/RTSMonFrame.h @@ -9,7 +9,8 @@ class RTSMonFrame { private: /* data */ - std::string id; + int id; + std::string name; int samplerate; int sampleperiod; int downtime; @@ -17,14 +18,14 @@ private: public: - RTSMonFrame(std::string id, int samplerate, int sampleperiod, int downtime) { + RTSMonFrame(int id, std::string name, int samplerate, int sampleperiod, int downtime) { this->id = id; this->samplerate = samplerate; this->sampleperiod = sampleperiod; this->downtime = downtime; } - RTSMonFrame(std::string id) { + RTSMonFrame(int id) { this->id = id; } @@ -37,10 +38,13 @@ public: void Add(std::string item){ this->items.push_back(item); } - std::string GetId() { + int GetId() { return this->id; } + std::string GetName() { + return name; + } int GetSampleRate() { return this->samplerate; } diff --git a/include/RTSMonitoringTask.h b/include/RTSMonitoringTask.h index f4bd9ef..0eb8a67 100644 --- a/include/RTSMonitoringTask.h +++ b/include/RTSMonitoringTask.h @@ -19,7 +19,7 @@ private: int mFdRpmsg[2] = {-1, -1}; RTSCoproHelper coproHelper; - std::map rtsMonFrames; + std::map rtsMonFrames; pthread_t monThread; @@ -30,12 +30,13 @@ public: //static RTSMonitoringTask& Instance(); bool Init(); - bool CreateMonitoring(std::string id, int samplerate, int sampleperiod, int downtime, std::string status); + bool CreateMonitoring(int id, std::string name, int samplerate, int sampleperiod, int downtime, std::string status); bool LoadFW(); bool Start(); bool Stop(); private: static void* Run(void *obj); + bool Load(); }; diff --git a/include/RTSMonitoringTask.h.old b/include/RTSMonitoringTask.h.old deleted file mode 100644 index efff49e..0000000 --- a/include/RTSMonitoringTask.h.old +++ /dev/null @@ -1,39 +0,0 @@ -/* -*/ -#include "../../include/RTSCoproHelper.h" - - -class RTSMonitoringTask -{ -public: - - typedef enum RTSMonitoringTaskState { - OFF= 0, - LOADED = 1, - READY = 2, - }; - -private: - /* data */ - //lock Element - - /* The file descriptor used to manage our TTY over RPMSG */ - int mFdRpmsg[2] = {-1, -1}; - RTSCoproHelper coproHelper; - RTSMonitoringTaskState rtsState=RTSMonitoringTaskState::OFF; - -public: - - RTSMonitoringTask(/* args */); - - ~RTSMonitoringTask(); - - bool Init(); - bool LoadFW(); - bool Start(); - bool Stop(); - - -private: - -}; diff --git a/protobuf/RTService.pb.cc b/protobuf/RTService.pb.cc deleted file mode 100644 index 40ff074..0000000 --- a/protobuf/RTService.pb.cc +++ /dev/null @@ -1,2040 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: RTService.proto -// Protobuf C++ Version: 5.26.1 - -#include "RTService.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -#include "google/protobuf/generated_message_tctable_impl.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace proto_messages { - -inline constexpr SStateResult::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : result_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SStateResult::SStateResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SStateResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR SStateResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SStateResultDefaultTypeInternal() {} - union { - SStateResult _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SStateResultDefaultTypeInternal _SStateResult_default_instance_; - -inline constexpr SSetMonStateIn::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - status_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SSetMonStateIn::SSetMonStateIn(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SSetMonStateInDefaultTypeInternal { - PROTOBUF_CONSTEXPR SSetMonStateInDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SSetMonStateInDefaultTypeInternal() {} - union { - SSetMonStateIn _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SSetMonStateInDefaultTypeInternal _SSetMonStateIn_default_instance_; - -inline constexpr SResult::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : result_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SResult::SResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR SResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SResultDefaultTypeInternal() {} - union { - SResult _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SResultDefaultTypeInternal _SResult_default_instance_; - -inline constexpr SMonStatesIn::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : query_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SMonStatesIn::SMonStatesIn(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SMonStatesInDefaultTypeInternal { - PROTOBUF_CONSTEXPR SMonStatesInDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SMonStatesInDefaultTypeInternal() {} - union { - SMonStatesIn _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SMonStatesInDefaultTypeInternal _SMonStatesIn_default_instance_; - -inline constexpr SMonStateIn::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SMonStateIn::SMonStateIn(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SMonStateInDefaultTypeInternal { - PROTOBUF_CONSTEXPR SMonStateInDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SMonStateInDefaultTypeInternal() {} - union { - SMonStateIn _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SMonStateInDefaultTypeInternal _SMonStateIn_default_instance_; - -inline constexpr SDeleteIn::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SDeleteIn::SDeleteIn(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SDeleteInDefaultTypeInternal { - PROTOBUF_CONSTEXPR SDeleteInDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SDeleteInDefaultTypeInternal() {} - union { - SDeleteIn _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SDeleteInDefaultTypeInternal _SDeleteIn_default_instance_; - -inline constexpr SCreateIn::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - status_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - samplerate_{::int64_t{0}}, - sampleperiod_{::int64_t{0}}, - downtime_{::int64_t{0}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SCreateIn::SCreateIn(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SCreateInDefaultTypeInternal { - PROTOBUF_CONSTEXPR SCreateInDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SCreateInDefaultTypeInternal() {} - union { - SCreateIn _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SCreateInDefaultTypeInternal _SCreateIn_default_instance_; -} // namespace proto_messages -static ::_pb::Metadata file_level_metadata_RTService_2eproto[7]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_RTService_2eproto = nullptr; -static const ::_pb::ServiceDescriptor* - file_level_service_descriptors_RTService_2eproto[1]; -const ::uint32_t - TableStruct_RTService_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto_messages::SCreateIn, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto_messages::SCreateIn, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::proto_messages::SCreateIn, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::proto_messages::SCreateIn, _impl_.samplerate_), - PROTOBUF_FIELD_OFFSET(::proto_messages::SCreateIn, _impl_.sampleperiod_), - PROTOBUF_FIELD_OFFSET(::proto_messages::SCreateIn, _impl_.downtime_), - PROTOBUF_FIELD_OFFSET(::proto_messages::SCreateIn, _impl_.status_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto_messages::SDeleteIn, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto_messages::SDeleteIn, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto_messages::SMonStateIn, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto_messages::SMonStateIn, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto_messages::SMonStatesIn, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto_messages::SMonStatesIn, _impl_.query_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto_messages::SSetMonStateIn, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto_messages::SSetMonStateIn, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::proto_messages::SSetMonStateIn, _impl_.status_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto_messages::SResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto_messages::SResult, _impl_.result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::proto_messages::SStateResult, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::proto_messages::SStateResult, _impl_.result_), -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::proto_messages::SCreateIn)}, - {14, -1, -1, sizeof(::proto_messages::SDeleteIn)}, - {23, -1, -1, sizeof(::proto_messages::SMonStateIn)}, - {32, -1, -1, sizeof(::proto_messages::SMonStatesIn)}, - {41, -1, -1, sizeof(::proto_messages::SSetMonStateIn)}, - {51, -1, -1, sizeof(::proto_messages::SResult)}, - {60, -1, -1, sizeof(::proto_messages::SStateResult)}, -}; -static const ::_pb::Message* const file_default_instances[] = { - &::proto_messages::_SCreateIn_default_instance_._instance, - &::proto_messages::_SDeleteIn_default_instance_._instance, - &::proto_messages::_SMonStateIn_default_instance_._instance, - &::proto_messages::_SMonStatesIn_default_instance_._instance, - &::proto_messages::_SSetMonStateIn_default_instance_._instance, - &::proto_messages::_SResult_default_instance_._instance, - &::proto_messages::_SStateResult_default_instance_._instance, -}; -const char descriptor_table_protodef_RTService_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\017RTService.proto\022\016proto_messages\"q\n\tSCr" - "eateIn\022\014\n\004name\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\022\n\nsamp" - "lerate\030\003 \001(\003\022\024\n\014sampleperiod\030\004 \001(\003\022\020\n\010do" - "wntime\030\005 \001(\003\022\016\n\006status\030\006 \001(\t\"\027\n\tSDeleteI" - "n\022\n\n\002id\030\001 \001(\t\"\031\n\013SMonStateIn\022\n\n\002id\030\001 \001(\t" - "\"\035\n\014SMonStatesIn\022\r\n\005query\030\001 \001(\t\",\n\016SSetM" - "onStateIn\022\n\n\002id\030\001 \001(\t\022\016\n\006status\030\002 \001(\t\"\031\n" - "\007SResult\022\016\n\006result\030\001 \001(\010\"\036\n\014SStateResult" - "\022\016\n\006result\030\001 \003(\t2\211\003\n\tRTService\022F\n\020Create" - "Monitoring\022\031.proto_messages.SCreateIn\032\027." - "proto_messages.SResult\022F\n\020DeleteMonitori" - "ng\022\031.proto_messages.SDeleteIn\032\027.proto_me" - "ssages.SResult\022J\n\022GetMonitoringState\022\033.p" - "roto_messages.SMonStateIn\032\027.proto_messag" - "es.SResult\022Q\n\023GetMonitoringStates\022\034.prot" - "o_messages.SMonStatesIn\032\034.proto_messages" - ".SStateResult\022M\n\022SetMonitoringState\022\036.pr" - "oto_messages.SSetMonStateIn\032\027.proto_mess" - "ages.SResultB\003\200\001\001b\006proto3" -}; -static ::absl::once_flag descriptor_table_RTService_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_RTService_2eproto = { - false, - false, - 745, - descriptor_table_protodef_RTService_2eproto, - "RTService.proto", - &descriptor_table_RTService_2eproto_once, - nullptr, - 0, - 7, - schemas, - file_default_instances, - TableStruct_RTService_2eproto::offsets, - file_level_metadata_RTService_2eproto, - file_level_enum_descriptors_RTService_2eproto, - file_level_service_descriptors_RTService_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_RTService_2eproto_getter() { - return &descriptor_table_RTService_2eproto; -} -namespace proto_messages { -// =================================================================== - -class SCreateIn::_Internal { - public: -}; - -SCreateIn::SCreateIn(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:proto_messages.SCreateIn) -} -inline PROTOBUF_NDEBUG_INLINE SCreateIn::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : name_(arena, from.name_), - id_(arena, from.id_), - status_(arena, from.status_), - _cached_size_{0} {} - -SCreateIn::SCreateIn( - ::google::protobuf::Arena* arena, - const SCreateIn& from) - : ::google::protobuf::Message(arena) { - SCreateIn* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, samplerate_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, samplerate_), - offsetof(Impl_, downtime_) - - offsetof(Impl_, samplerate_) + - sizeof(Impl_::downtime_)); - - // @@protoc_insertion_point(copy_constructor:proto_messages.SCreateIn) -} -inline PROTOBUF_NDEBUG_INLINE SCreateIn::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - id_(arena), - status_(arena), - _cached_size_{0} {} - -inline void SCreateIn::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, samplerate_), - 0, - offsetof(Impl_, downtime_) - - offsetof(Impl_, samplerate_) + - sizeof(Impl_::downtime_)); -} -SCreateIn::~SCreateIn() { - // @@protoc_insertion_point(destructor:proto_messages.SCreateIn) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SCreateIn::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.id_.Destroy(); - _impl_.status_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SCreateIn::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_._cached_size_), - false, - }, - &SCreateIn::MergeImpl, - &SCreateIn::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SCreateIn::Clear() { -// @@protoc_insertion_point(message_clear_start:proto_messages.SCreateIn) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - _impl_.id_.ClearToEmpty(); - _impl_.status_.ClearToEmpty(); - ::memset(&_impl_.samplerate_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.downtime_) - - reinterpret_cast(&_impl_.samplerate_)) + sizeof(_impl_.downtime_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SCreateIn::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 45, 2> SCreateIn::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SCreateIn_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::proto_messages::SCreateIn>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.name_)}}, - // string id = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.id_)}}, - // int64 samplerate = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SCreateIn, _impl_.samplerate_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.samplerate_)}}, - // int64 sampleperiod = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SCreateIn, _impl_.sampleperiod_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.sampleperiod_)}}, - // int64 downtime = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SCreateIn, _impl_.downtime_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.downtime_)}}, - // string status = 6; - {::_pbi::TcParser::FastUS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.status_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string id = 2; - {PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int64 samplerate = 3; - {PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.samplerate_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 sampleperiod = 4; - {PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.sampleperiod_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // int64 downtime = 5; - {PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.downtime_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, - // string status = 6; - {PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.status_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\30\4\2\0\0\0\6\0" - "proto_messages.SCreateIn" - "name" - "id" - "status" - }}, -}; - -::uint8_t* SCreateIn::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:proto_messages.SCreateIn) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string name = 1; - if (!this->_internal_name().empty()) { - const std::string& _s = this->_internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto_messages.SCreateIn.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string id = 2; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto_messages.SCreateIn.id"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // int64 samplerate = 3; - if (this->_internal_samplerate() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this->_internal_samplerate(), target); - } - - // int64 sampleperiod = 4; - if (this->_internal_sampleperiod() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<4>( - stream, this->_internal_sampleperiod(), target); - } - - // int64 downtime = 5; - if (this->_internal_downtime() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<5>( - stream, this->_internal_downtime(), target); - } - - // string status = 6; - if (!this->_internal_status().empty()) { - const std::string& _s = this->_internal_status(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto_messages.SCreateIn.status"); - target = stream->WriteStringMaybeAliased(6, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:proto_messages.SCreateIn) - return target; -} - -::size_t SCreateIn::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:proto_messages.SCreateIn) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string name = 1; - if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // string id = 2; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); - } - - // string status = 6; - if (!this->_internal_status().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_status()); - } - - // int64 samplerate = 3; - if (this->_internal_samplerate() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_samplerate()); - } - - // int64 sampleperiod = 4; - if (this->_internal_sampleperiod() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_sampleperiod()); - } - - // int64 downtime = 5; - if (this->_internal_downtime() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this->_internal_downtime()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SCreateIn::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto_messages.SCreateIn) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); - } - if (!from._internal_status().empty()) { - _this->_internal_set_status(from._internal_status()); - } - if (from._internal_samplerate() != 0) { - _this->_impl_.samplerate_ = from._impl_.samplerate_; - } - if (from._internal_sampleperiod() != 0) { - _this->_impl_.sampleperiod_ = from._impl_.sampleperiod_; - } - if (from._internal_downtime() != 0) { - _this->_impl_.downtime_ = from._impl_.downtime_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SCreateIn::CopyFrom(const SCreateIn& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:proto_messages.SCreateIn) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SCreateIn::IsInitialized() const { - return true; -} - -void SCreateIn::InternalSwap(SCreateIn* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.status_, &other->_impl_.status_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.downtime_) - + sizeof(SCreateIn::_impl_.downtime_) - - PROTOBUF_FIELD_OFFSET(SCreateIn, _impl_.samplerate_)>( - reinterpret_cast(&_impl_.samplerate_), - reinterpret_cast(&other->_impl_.samplerate_)); -} - -::google::protobuf::Metadata SCreateIn::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_RTService_2eproto_getter, - &descriptor_table_RTService_2eproto_once, - file_level_metadata_RTService_2eproto[0]); -} -// =================================================================== - -class SDeleteIn::_Internal { - public: -}; - -SDeleteIn::SDeleteIn(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:proto_messages.SDeleteIn) -} -inline PROTOBUF_NDEBUG_INLINE SDeleteIn::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -SDeleteIn::SDeleteIn( - ::google::protobuf::Arena* arena, - const SDeleteIn& from) - : ::google::protobuf::Message(arena) { - SDeleteIn* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:proto_messages.SDeleteIn) -} -inline PROTOBUF_NDEBUG_INLINE SDeleteIn::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} - -inline void SDeleteIn::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -SDeleteIn::~SDeleteIn() { - // @@protoc_insertion_point(destructor:proto_messages.SDeleteIn) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SDeleteIn::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SDeleteIn::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SDeleteIn, _impl_._cached_size_), - false, - }, - &SDeleteIn::MergeImpl, - &SDeleteIn::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SDeleteIn::Clear() { -// @@protoc_insertion_point(message_clear_start:proto_messages.SDeleteIn) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SDeleteIn::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 35, 2> SDeleteIn::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SDeleteIn_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::proto_messages::SDeleteIn>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string id = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SDeleteIn, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1; - {PROTOBUF_FIELD_OFFSET(SDeleteIn, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\30\2\0\0\0\0\0\0" - "proto_messages.SDeleteIn" - "id" - }}, -}; - -::uint8_t* SDeleteIn::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:proto_messages.SDeleteIn) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string id = 1; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto_messages.SDeleteIn.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:proto_messages.SDeleteIn) - return target; -} - -::size_t SDeleteIn::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:proto_messages.SDeleteIn) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string id = 1; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SDeleteIn::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto_messages.SDeleteIn) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SDeleteIn::CopyFrom(const SDeleteIn& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:proto_messages.SDeleteIn) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SDeleteIn::IsInitialized() const { - return true; -} - -void SDeleteIn::InternalSwap(SDeleteIn* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); -} - -::google::protobuf::Metadata SDeleteIn::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_RTService_2eproto_getter, - &descriptor_table_RTService_2eproto_once, - file_level_metadata_RTService_2eproto[1]); -} -// =================================================================== - -class SMonStateIn::_Internal { - public: -}; - -SMonStateIn::SMonStateIn(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:proto_messages.SMonStateIn) -} -inline PROTOBUF_NDEBUG_INLINE SMonStateIn::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - _cached_size_{0} {} - -SMonStateIn::SMonStateIn( - ::google::protobuf::Arena* arena, - const SMonStateIn& from) - : ::google::protobuf::Message(arena) { - SMonStateIn* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:proto_messages.SMonStateIn) -} -inline PROTOBUF_NDEBUG_INLINE SMonStateIn::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - _cached_size_{0} {} - -inline void SMonStateIn::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -SMonStateIn::~SMonStateIn() { - // @@protoc_insertion_point(destructor:proto_messages.SMonStateIn) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SMonStateIn::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SMonStateIn::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SMonStateIn, _impl_._cached_size_), - false, - }, - &SMonStateIn::MergeImpl, - &SMonStateIn::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SMonStateIn::Clear() { -// @@protoc_insertion_point(message_clear_start:proto_messages.SMonStateIn) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SMonStateIn::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 37, 2> SMonStateIn::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SMonStateIn_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::proto_messages::SMonStateIn>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string id = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SMonStateIn, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1; - {PROTOBUF_FIELD_OFFSET(SMonStateIn, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\32\2\0\0\0\0\0\0" - "proto_messages.SMonStateIn" - "id" - }}, -}; - -::uint8_t* SMonStateIn::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:proto_messages.SMonStateIn) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string id = 1; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto_messages.SMonStateIn.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:proto_messages.SMonStateIn) - return target; -} - -::size_t SMonStateIn::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:proto_messages.SMonStateIn) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string id = 1; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SMonStateIn::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto_messages.SMonStateIn) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SMonStateIn::CopyFrom(const SMonStateIn& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:proto_messages.SMonStateIn) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SMonStateIn::IsInitialized() const { - return true; -} - -void SMonStateIn::InternalSwap(SMonStateIn* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); -} - -::google::protobuf::Metadata SMonStateIn::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_RTService_2eproto_getter, - &descriptor_table_RTService_2eproto_once, - file_level_metadata_RTService_2eproto[2]); -} -// =================================================================== - -class SMonStatesIn::_Internal { - public: -}; - -SMonStatesIn::SMonStatesIn(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:proto_messages.SMonStatesIn) -} -inline PROTOBUF_NDEBUG_INLINE SMonStatesIn::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : query_(arena, from.query_), - _cached_size_{0} {} - -SMonStatesIn::SMonStatesIn( - ::google::protobuf::Arena* arena, - const SMonStatesIn& from) - : ::google::protobuf::Message(arena) { - SMonStatesIn* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:proto_messages.SMonStatesIn) -} -inline PROTOBUF_NDEBUG_INLINE SMonStatesIn::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : query_(arena), - _cached_size_{0} {} - -inline void SMonStatesIn::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -SMonStatesIn::~SMonStatesIn() { - // @@protoc_insertion_point(destructor:proto_messages.SMonStatesIn) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SMonStatesIn::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.query_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SMonStatesIn::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SMonStatesIn, _impl_._cached_size_), - false, - }, - &SMonStatesIn::MergeImpl, - &SMonStatesIn::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SMonStatesIn::Clear() { -// @@protoc_insertion_point(message_clear_start:proto_messages.SMonStatesIn) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.query_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SMonStatesIn::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 41, 2> SMonStatesIn::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SMonStatesIn_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::proto_messages::SMonStatesIn>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string query = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SMonStatesIn, _impl_.query_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string query = 1; - {PROTOBUF_FIELD_OFFSET(SMonStatesIn, _impl_.query_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\33\5\0\0\0\0\0\0" - "proto_messages.SMonStatesIn" - "query" - }}, -}; - -::uint8_t* SMonStatesIn::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:proto_messages.SMonStatesIn) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string query = 1; - if (!this->_internal_query().empty()) { - const std::string& _s = this->_internal_query(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto_messages.SMonStatesIn.query"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:proto_messages.SMonStatesIn) - return target; -} - -::size_t SMonStatesIn::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:proto_messages.SMonStatesIn) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string query = 1; - if (!this->_internal_query().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_query()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SMonStatesIn::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto_messages.SMonStatesIn) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_query().empty()) { - _this->_internal_set_query(from._internal_query()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SMonStatesIn::CopyFrom(const SMonStatesIn& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:proto_messages.SMonStatesIn) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SMonStatesIn::IsInitialized() const { - return true; -} - -void SMonStatesIn::InternalSwap(SMonStatesIn* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.query_, &other->_impl_.query_, arena); -} - -::google::protobuf::Metadata SMonStatesIn::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_RTService_2eproto_getter, - &descriptor_table_RTService_2eproto_once, - file_level_metadata_RTService_2eproto[3]); -} -// =================================================================== - -class SSetMonStateIn::_Internal { - public: -}; - -SSetMonStateIn::SSetMonStateIn(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:proto_messages.SSetMonStateIn) -} -inline PROTOBUF_NDEBUG_INLINE SSetMonStateIn::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : id_(arena, from.id_), - status_(arena, from.status_), - _cached_size_{0} {} - -SSetMonStateIn::SSetMonStateIn( - ::google::protobuf::Arena* arena, - const SSetMonStateIn& from) - : ::google::protobuf::Message(arena) { - SSetMonStateIn* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:proto_messages.SSetMonStateIn) -} -inline PROTOBUF_NDEBUG_INLINE SSetMonStateIn::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : id_(arena), - status_(arena), - _cached_size_{0} {} - -inline void SSetMonStateIn::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -SSetMonStateIn::~SSetMonStateIn() { - // @@protoc_insertion_point(destructor:proto_messages.SSetMonStateIn) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SSetMonStateIn::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.id_.Destroy(); - _impl_.status_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SSetMonStateIn::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SSetMonStateIn, _impl_._cached_size_), - false, - }, - &SSetMonStateIn::MergeImpl, - &SSetMonStateIn::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SSetMonStateIn::Clear() { -// @@protoc_insertion_point(message_clear_start:proto_messages.SSetMonStateIn) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.id_.ClearToEmpty(); - _impl_.status_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SSetMonStateIn::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 46, 2> SSetMonStateIn::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SSetMonStateIn_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::proto_messages::SSetMonStateIn>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string status = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SSetMonStateIn, _impl_.status_)}}, - // string id = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SSetMonStateIn, _impl_.id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string id = 1; - {PROTOBUF_FIELD_OFFSET(SSetMonStateIn, _impl_.id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string status = 2; - {PROTOBUF_FIELD_OFFSET(SSetMonStateIn, _impl_.status_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\35\2\6\0\0\0\0\0" - "proto_messages.SSetMonStateIn" - "id" - "status" - }}, -}; - -::uint8_t* SSetMonStateIn::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:proto_messages.SSetMonStateIn) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string id = 1; - if (!this->_internal_id().empty()) { - const std::string& _s = this->_internal_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto_messages.SSetMonStateIn.id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string status = 2; - if (!this->_internal_status().empty()) { - const std::string& _s = this->_internal_status(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto_messages.SSetMonStateIn.status"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:proto_messages.SSetMonStateIn) - return target; -} - -::size_t SSetMonStateIn::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:proto_messages.SSetMonStateIn) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string id = 1; - if (!this->_internal_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_id()); - } - - // string status = 2; - if (!this->_internal_status().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_status()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SSetMonStateIn::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto_messages.SSetMonStateIn) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_id().empty()) { - _this->_internal_set_id(from._internal_id()); - } - if (!from._internal_status().empty()) { - _this->_internal_set_status(from._internal_status()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SSetMonStateIn::CopyFrom(const SSetMonStateIn& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:proto_messages.SSetMonStateIn) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SSetMonStateIn::IsInitialized() const { - return true; -} - -void SSetMonStateIn::InternalSwap(SSetMonStateIn* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, &other->_impl_.id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.status_, &other->_impl_.status_, arena); -} - -::google::protobuf::Metadata SSetMonStateIn::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_RTService_2eproto_getter, - &descriptor_table_RTService_2eproto_once, - file_level_metadata_RTService_2eproto[4]); -} -// =================================================================== - -class SResult::_Internal { - public: -}; - -SResult::SResult(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:proto_messages.SResult) -} -SResult::SResult( - ::google::protobuf::Arena* arena, const SResult& from) - : SResult(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE SResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SResult::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.result_ = {}; -} -SResult::~SResult() { - // @@protoc_insertion_point(destructor:proto_messages.SResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SResult::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SResult, _impl_._cached_size_), - false, - }, - &SResult::MergeImpl, - &SResult::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SResult::Clear() { -// @@protoc_insertion_point(message_clear_start:proto_messages.SResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SResult::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SResult_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::proto_messages::SResult>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bool result = 1; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SResult, _impl_.result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool result = 1; - {PROTOBUF_FIELD_OFFSET(SResult, _impl_.result_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* SResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:proto_messages.SResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_result(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:proto_messages.SResult) - return target; -} - -::size_t SResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:proto_messages.SResult) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // bool result = 1; - if (this->_internal_result() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SResult::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto_messages.SResult) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_result() != 0) { - _this->_impl_.result_ = from._impl_.result_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SResult::CopyFrom(const SResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:proto_messages.SResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SResult::IsInitialized() const { - return true; -} - -void SResult::InternalSwap(SResult* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.result_, other->_impl_.result_); -} - -::google::protobuf::Metadata SResult::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_RTService_2eproto_getter, - &descriptor_table_RTService_2eproto_once, - file_level_metadata_RTService_2eproto[5]); -} -// =================================================================== - -class SStateResult::_Internal { - public: -}; - -SStateResult::SStateResult(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:proto_messages.SStateResult) -} -inline PROTOBUF_NDEBUG_INLINE SStateResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : result_{visibility, arena, from.result_}, - _cached_size_{0} {} - -SStateResult::SStateResult( - ::google::protobuf::Arena* arena, - const SStateResult& from) - : ::google::protobuf::Message(arena) { - SStateResult* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:proto_messages.SStateResult) -} -inline PROTOBUF_NDEBUG_INLINE SStateResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : result_{visibility, arena}, - _cached_size_{0} {} - -inline void SStateResult::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -SStateResult::~SStateResult() { - // @@protoc_insertion_point(destructor:proto_messages.SStateResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SStateResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SStateResult::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SStateResult, _impl_._cached_size_), - false, - }, - &SStateResult::MergeImpl, - &SStateResult::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SStateResult::Clear() { -// @@protoc_insertion_point(message_clear_start:proto_messages.SStateResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SStateResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 42, 2> SStateResult::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SStateResult_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::proto_messages::SStateResult>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated string result = 1; - {::_pbi::TcParser::FastUR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SStateResult, _impl_.result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated string result = 1; - {PROTOBUF_FIELD_OFFSET(SStateResult, _impl_.result_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - "\33\6\0\0\0\0\0\0" - "proto_messages.SStateResult" - "result" - }}, -}; - -::uint8_t* SStateResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:proto_messages.SStateResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated string result = 1; - for (int i = 0, n = this->_internal_result_size(); i < n; ++i) { - const auto& s = this->_internal_result().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "proto_messages.SStateResult.result"); - target = stream->WriteString(1, s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:proto_messages.SStateResult) - return target; -} - -::size_t SStateResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:proto_messages.SStateResult) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string result = 1; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_result().size()); - for (int i = 0, n = _internal_result().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_result().Get(i)); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SStateResult::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:proto_messages.SStateResult) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_result()->MergeFrom(from._internal_result()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SStateResult::CopyFrom(const SStateResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:proto_messages.SStateResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SStateResult::IsInitialized() const { - return true; -} - -void SStateResult::InternalSwap(SStateResult* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.result_.InternalSwap(&other->_impl_.result_); -} - -::google::protobuf::Metadata SStateResult::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_RTService_2eproto_getter, - &descriptor_table_RTService_2eproto_once, - file_level_metadata_RTService_2eproto[6]); -} -// =================================================================== - -const ::google::protobuf::ServiceDescriptor* RTService::descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_RTService_2eproto); - return file_level_service_descriptors_RTService_2eproto[0]; -} - -const ::google::protobuf::ServiceDescriptor* RTService::GetDescriptor() { - return descriptor(); -} - -void RTService::CreateMonitoring(::google::protobuf::RpcController* controller, - const ::proto_messages::SCreateIn*, ::proto_messages::SResult*, ::google::protobuf::Closure* done) { - controller->SetFailed("Method CreateMonitoring() not implemented."); - done->Run(); -} -void RTService::DeleteMonitoring(::google::protobuf::RpcController* controller, - const ::proto_messages::SDeleteIn*, ::proto_messages::SResult*, ::google::protobuf::Closure* done) { - controller->SetFailed("Method DeleteMonitoring() not implemented."); - done->Run(); -} -void RTService::GetMonitoringState(::google::protobuf::RpcController* controller, - const ::proto_messages::SMonStateIn*, ::proto_messages::SResult*, ::google::protobuf::Closure* done) { - controller->SetFailed("Method GetMonitoringState() not implemented."); - done->Run(); -} -void RTService::GetMonitoringStates(::google::protobuf::RpcController* controller, - const ::proto_messages::SMonStatesIn*, ::proto_messages::SStateResult*, ::google::protobuf::Closure* done) { - controller->SetFailed("Method GetMonitoringStates() not implemented."); - done->Run(); -} -void RTService::SetMonitoringState(::google::protobuf::RpcController* controller, - const ::proto_messages::SSetMonStateIn*, ::proto_messages::SResult*, ::google::protobuf::Closure* done) { - controller->SetFailed("Method SetMonitoringState() not implemented."); - done->Run(); -} - -void RTService::CallMethod( - const ::google::protobuf::MethodDescriptor* method, - ::google::protobuf::RpcController* controller, - const ::google::protobuf::Message* request, - ::google::protobuf::Message* response, ::google::protobuf::Closure* done) { - ABSL_DCHECK_EQ(method->service(), file_level_service_descriptors_RTService_2eproto[0]); - switch (method->index()) { - case 0: - CreateMonitoring(controller, - ::google::protobuf::internal::DownCast(request), - ::google::protobuf::internal::DownCast<::proto_messages::SResult*>(response), done); - break; - case 1: - DeleteMonitoring(controller, - ::google::protobuf::internal::DownCast(request), - ::google::protobuf::internal::DownCast<::proto_messages::SResult*>(response), done); - break; - case 2: - GetMonitoringState(controller, - ::google::protobuf::internal::DownCast(request), - ::google::protobuf::internal::DownCast<::proto_messages::SResult*>(response), done); - break; - case 3: - GetMonitoringStates(controller, - ::google::protobuf::internal::DownCast(request), - ::google::protobuf::internal::DownCast<::proto_messages::SStateResult*>(response), done); - break; - case 4: - SetMonitoringState(controller, - ::google::protobuf::internal::DownCast(request), - ::google::protobuf::internal::DownCast<::proto_messages::SResult*>(response), done); - break; - - default: - ABSL_LOG(FATAL) << "Bad method index; this should never happen."; - break; - } -} - -const ::google::protobuf::Message& RTService::GetRequestPrototype( - const ::google::protobuf::MethodDescriptor* method) const { - ABSL_DCHECK_EQ(method->service(), descriptor()); - switch (method->index()) { - case 0: - return ::proto_messages::SCreateIn::default_instance(); - case 1: - return ::proto_messages::SDeleteIn::default_instance(); - case 2: - return ::proto_messages::SMonStateIn::default_instance(); - case 3: - return ::proto_messages::SMonStatesIn::default_instance(); - case 4: - return ::proto_messages::SSetMonStateIn::default_instance(); - - default: - ABSL_LOG(FATAL) << "Bad method index; this should never happen."; - return *::google::protobuf::MessageFactory::generated_factory() - ->GetPrototype(method->input_type()); - } -} - -const ::google::protobuf::Message& RTService::GetResponsePrototype( - const ::google::protobuf::MethodDescriptor* method) const { - ABSL_DCHECK_EQ(method->service(), descriptor()); - switch (method->index()) { - case 0: - return ::proto_messages::SResult::default_instance(); - case 1: - return ::proto_messages::SResult::default_instance(); - case 2: - return ::proto_messages::SResult::default_instance(); - case 3: - return ::proto_messages::SStateResult::default_instance(); - case 4: - return ::proto_messages::SResult::default_instance(); - - default: - ABSL_LOG(FATAL) << "Bad method index; this should never happen."; - return *::google::protobuf::MessageFactory::generated_factory() - ->GetPrototype(method->output_type()); - } -} - -RTService_Stub::RTService_Stub(::google::protobuf::RpcChannel* channel) - : channel_(channel), owns_channel_(false) {} - -RTService_Stub::RTService_Stub( - ::google::protobuf::RpcChannel* channel, - ::google::protobuf::Service::ChannelOwnership ownership) - : channel_(channel), - owns_channel_(ownership == - ::google::protobuf::Service::STUB_OWNS_CHANNEL) {} - -RTService_Stub::~RTService_Stub() { - if (owns_channel_) delete channel_; -} - -void RTService_Stub::CreateMonitoring(::google::protobuf::RpcController* controller, - const ::proto_messages::SCreateIn* request, - ::proto_messages::SResult* response, ::google::protobuf::Closure* done) { - channel_->CallMethod(descriptor()->method(0), controller, - request, response, done); -} -void RTService_Stub::DeleteMonitoring(::google::protobuf::RpcController* controller, - const ::proto_messages::SDeleteIn* request, - ::proto_messages::SResult* response, ::google::protobuf::Closure* done) { - channel_->CallMethod(descriptor()->method(1), controller, - request, response, done); -} -void RTService_Stub::GetMonitoringState(::google::protobuf::RpcController* controller, - const ::proto_messages::SMonStateIn* request, - ::proto_messages::SResult* response, ::google::protobuf::Closure* done) { - channel_->CallMethod(descriptor()->method(2), controller, - request, response, done); -} -void RTService_Stub::GetMonitoringStates(::google::protobuf::RpcController* controller, - const ::proto_messages::SMonStatesIn* request, - ::proto_messages::SStateResult* response, ::google::protobuf::Closure* done) { - channel_->CallMethod(descriptor()->method(3), controller, - request, response, done); -} -void RTService_Stub::SetMonitoringState(::google::protobuf::RpcController* controller, - const ::proto_messages::SSetMonStateIn* request, - ::proto_messages::SResult* response, ::google::protobuf::Closure* done) { - channel_->CallMethod(descriptor()->method(4), controller, - request, response, done); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace proto_messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_RTService_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/protobuf/RTService.pb.h b/protobuf/RTService.pb.h deleted file mode 100644 index c01aa5a..0000000 --- a/protobuf/RTService.pb.h +++ /dev/null @@ -1,2130 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: RTService.proto -// Protobuf C++ Version: 5.26.1 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_RTService_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_RTService_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026001 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/service.h" -#include "google/protobuf/unknown_field_set.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_RTService_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_RTService_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_RTService_2eproto; -namespace proto_messages { -class SCreateIn; -struct SCreateInDefaultTypeInternal; -extern SCreateInDefaultTypeInternal _SCreateIn_default_instance_; -class SDeleteIn; -struct SDeleteInDefaultTypeInternal; -extern SDeleteInDefaultTypeInternal _SDeleteIn_default_instance_; -class SMonStateIn; -struct SMonStateInDefaultTypeInternal; -extern SMonStateInDefaultTypeInternal _SMonStateIn_default_instance_; -class SMonStatesIn; -struct SMonStatesInDefaultTypeInternal; -extern SMonStatesInDefaultTypeInternal _SMonStatesIn_default_instance_; -class SResult; -struct SResultDefaultTypeInternal; -extern SResultDefaultTypeInternal _SResult_default_instance_; -class SSetMonStateIn; -struct SSetMonStateInDefaultTypeInternal; -extern SSetMonStateInDefaultTypeInternal _SSetMonStateIn_default_instance_; -class SStateResult; -struct SStateResultDefaultTypeInternal; -extern SStateResultDefaultTypeInternal _SStateResult_default_instance_; -} // namespace proto_messages -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace proto_messages { - -// =================================================================== - - -// ------------------------------------------------------------------- - -class SStateResult final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:proto_messages.SStateResult) */ { - public: - inline SStateResult() : SStateResult(nullptr) {} - ~SStateResult() override; - template - explicit PROTOBUF_CONSTEXPR SStateResult( - ::google::protobuf::internal::ConstantInitialized); - - inline SStateResult(const SStateResult& from) : SStateResult(nullptr, from) {} - inline SStateResult(SStateResult&& from) noexcept - : SStateResult(nullptr, std::move(from)) {} - inline SStateResult& operator=(const SStateResult& from) { - CopyFrom(from); - return *this; - } - inline SStateResult& operator=(SStateResult&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SStateResult& default_instance() { - return *internal_default_instance(); - } - static inline const SStateResult* internal_default_instance() { - return reinterpret_cast( - &_SStateResult_default_instance_); - } - static constexpr int kIndexInFileMessages = 6; - friend void swap(SStateResult& a, SStateResult& b) { a.Swap(&b); } - inline void Swap(SStateResult* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SStateResult* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SStateResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SStateResult& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SStateResult& from) { SStateResult::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SStateResult* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "proto_messages.SStateResult"; } - - protected: - explicit SStateResult(::google::protobuf::Arena* arena); - SStateResult(::google::protobuf::Arena* arena, const SStateResult& from); - SStateResult(::google::protobuf::Arena* arena, SStateResult&& from) noexcept - : SStateResult(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kResultFieldNumber = 1, - }; - // repeated string result = 1; - int result_size() const; - private: - int _internal_result_size() const; - - public: - void clear_result() ; - const std::string& result(int index) const; - std::string* mutable_result(int index); - void set_result(int index, const std::string& value); - void set_result(int index, std::string&& value); - void set_result(int index, const char* value); - void set_result(int index, const char* value, std::size_t size); - void set_result(int index, absl::string_view value); - std::string* add_result(); - void add_result(const std::string& value); - void add_result(std::string&& value); - void add_result(const char* value); - void add_result(const char* value, std::size_t size); - void add_result(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& result() const; - ::google::protobuf::RepeatedPtrField* mutable_result(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_result() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_result(); - - public: - // @@protoc_insertion_point(class_scope:proto_messages.SStateResult) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 42, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_RTService_2eproto; -}; -// ------------------------------------------------------------------- - -class SSetMonStateIn final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:proto_messages.SSetMonStateIn) */ { - public: - inline SSetMonStateIn() : SSetMonStateIn(nullptr) {} - ~SSetMonStateIn() override; - template - explicit PROTOBUF_CONSTEXPR SSetMonStateIn( - ::google::protobuf::internal::ConstantInitialized); - - inline SSetMonStateIn(const SSetMonStateIn& from) : SSetMonStateIn(nullptr, from) {} - inline SSetMonStateIn(SSetMonStateIn&& from) noexcept - : SSetMonStateIn(nullptr, std::move(from)) {} - inline SSetMonStateIn& operator=(const SSetMonStateIn& from) { - CopyFrom(from); - return *this; - } - inline SSetMonStateIn& operator=(SSetMonStateIn&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SSetMonStateIn& default_instance() { - return *internal_default_instance(); - } - static inline const SSetMonStateIn* internal_default_instance() { - return reinterpret_cast( - &_SSetMonStateIn_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(SSetMonStateIn& a, SSetMonStateIn& b) { a.Swap(&b); } - inline void Swap(SSetMonStateIn* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SSetMonStateIn* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SSetMonStateIn* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SSetMonStateIn& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SSetMonStateIn& from) { SSetMonStateIn::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SSetMonStateIn* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "proto_messages.SSetMonStateIn"; } - - protected: - explicit SSetMonStateIn(::google::protobuf::Arena* arena); - SSetMonStateIn(::google::protobuf::Arena* arena, const SSetMonStateIn& from); - SSetMonStateIn(::google::protobuf::Arena* arena, SSetMonStateIn&& from) noexcept - : SSetMonStateIn(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kIdFieldNumber = 1, - kStatusFieldNumber = 2, - }; - // string id = 1; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string status = 2; - void clear_status() ; - const std::string& status() const; - template - void set_status(Arg_&& arg, Args_... args); - std::string* mutable_status(); - PROTOBUF_NODISCARD std::string* release_status(); - void set_allocated_status(std::string* value); - - private: - const std::string& _internal_status() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_status( - const std::string& value); - std::string* _internal_mutable_status(); - - public: - // @@protoc_insertion_point(class_scope:proto_messages.SSetMonStateIn) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 46, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr status_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_RTService_2eproto; -}; -// ------------------------------------------------------------------- - -class SResult final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:proto_messages.SResult) */ { - public: - inline SResult() : SResult(nullptr) {} - ~SResult() override; - template - explicit PROTOBUF_CONSTEXPR SResult( - ::google::protobuf::internal::ConstantInitialized); - - inline SResult(const SResult& from) : SResult(nullptr, from) {} - inline SResult(SResult&& from) noexcept - : SResult(nullptr, std::move(from)) {} - inline SResult& operator=(const SResult& from) { - CopyFrom(from); - return *this; - } - inline SResult& operator=(SResult&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SResult& default_instance() { - return *internal_default_instance(); - } - static inline const SResult* internal_default_instance() { - return reinterpret_cast( - &_SResult_default_instance_); - } - static constexpr int kIndexInFileMessages = 5; - friend void swap(SResult& a, SResult& b) { a.Swap(&b); } - inline void Swap(SResult* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SResult* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SResult& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SResult& from) { SResult::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SResult* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "proto_messages.SResult"; } - - protected: - explicit SResult(::google::protobuf::Arena* arena); - SResult(::google::protobuf::Arena* arena, const SResult& from); - SResult(::google::protobuf::Arena* arena, SResult&& from) noexcept - : SResult(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kResultFieldNumber = 1, - }; - // bool result = 1; - void clear_result() ; - bool result() const; - void set_result(bool value); - - private: - bool _internal_result() const; - void _internal_set_result(bool value); - - public: - // @@protoc_insertion_point(class_scope:proto_messages.SResult) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - bool result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_RTService_2eproto; -}; -// ------------------------------------------------------------------- - -class SMonStatesIn final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:proto_messages.SMonStatesIn) */ { - public: - inline SMonStatesIn() : SMonStatesIn(nullptr) {} - ~SMonStatesIn() override; - template - explicit PROTOBUF_CONSTEXPR SMonStatesIn( - ::google::protobuf::internal::ConstantInitialized); - - inline SMonStatesIn(const SMonStatesIn& from) : SMonStatesIn(nullptr, from) {} - inline SMonStatesIn(SMonStatesIn&& from) noexcept - : SMonStatesIn(nullptr, std::move(from)) {} - inline SMonStatesIn& operator=(const SMonStatesIn& from) { - CopyFrom(from); - return *this; - } - inline SMonStatesIn& operator=(SMonStatesIn&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SMonStatesIn& default_instance() { - return *internal_default_instance(); - } - static inline const SMonStatesIn* internal_default_instance() { - return reinterpret_cast( - &_SMonStatesIn_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(SMonStatesIn& a, SMonStatesIn& b) { a.Swap(&b); } - inline void Swap(SMonStatesIn* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SMonStatesIn* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SMonStatesIn* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SMonStatesIn& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SMonStatesIn& from) { SMonStatesIn::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SMonStatesIn* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "proto_messages.SMonStatesIn"; } - - protected: - explicit SMonStatesIn(::google::protobuf::Arena* arena); - SMonStatesIn(::google::protobuf::Arena* arena, const SMonStatesIn& from); - SMonStatesIn(::google::protobuf::Arena* arena, SMonStatesIn&& from) noexcept - : SMonStatesIn(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; - // string query = 1; - void clear_query() ; - const std::string& query() const; - template - void set_query(Arg_&& arg, Args_... args); - std::string* mutable_query(); - PROTOBUF_NODISCARD std::string* release_query(); - void set_allocated_query(std::string* value); - - private: - const std::string& _internal_query() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_query( - const std::string& value); - std::string* _internal_mutable_query(); - - public: - // @@protoc_insertion_point(class_scope:proto_messages.SMonStatesIn) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 41, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr query_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_RTService_2eproto; -}; -// ------------------------------------------------------------------- - -class SMonStateIn final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:proto_messages.SMonStateIn) */ { - public: - inline SMonStateIn() : SMonStateIn(nullptr) {} - ~SMonStateIn() override; - template - explicit PROTOBUF_CONSTEXPR SMonStateIn( - ::google::protobuf::internal::ConstantInitialized); - - inline SMonStateIn(const SMonStateIn& from) : SMonStateIn(nullptr, from) {} - inline SMonStateIn(SMonStateIn&& from) noexcept - : SMonStateIn(nullptr, std::move(from)) {} - inline SMonStateIn& operator=(const SMonStateIn& from) { - CopyFrom(from); - return *this; - } - inline SMonStateIn& operator=(SMonStateIn&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SMonStateIn& default_instance() { - return *internal_default_instance(); - } - static inline const SMonStateIn* internal_default_instance() { - return reinterpret_cast( - &_SMonStateIn_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(SMonStateIn& a, SMonStateIn& b) { a.Swap(&b); } - inline void Swap(SMonStateIn* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SMonStateIn* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SMonStateIn* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SMonStateIn& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SMonStateIn& from) { SMonStateIn::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SMonStateIn* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "proto_messages.SMonStateIn"; } - - protected: - explicit SMonStateIn(::google::protobuf::Arena* arena); - SMonStateIn(::google::protobuf::Arena* arena, const SMonStateIn& from); - SMonStateIn(::google::protobuf::Arena* arena, SMonStateIn&& from) noexcept - : SMonStateIn(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kIdFieldNumber = 1, - }; - // string id = 1; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // @@protoc_insertion_point(class_scope:proto_messages.SMonStateIn) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 37, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_RTService_2eproto; -}; -// ------------------------------------------------------------------- - -class SDeleteIn final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:proto_messages.SDeleteIn) */ { - public: - inline SDeleteIn() : SDeleteIn(nullptr) {} - ~SDeleteIn() override; - template - explicit PROTOBUF_CONSTEXPR SDeleteIn( - ::google::protobuf::internal::ConstantInitialized); - - inline SDeleteIn(const SDeleteIn& from) : SDeleteIn(nullptr, from) {} - inline SDeleteIn(SDeleteIn&& from) noexcept - : SDeleteIn(nullptr, std::move(from)) {} - inline SDeleteIn& operator=(const SDeleteIn& from) { - CopyFrom(from); - return *this; - } - inline SDeleteIn& operator=(SDeleteIn&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SDeleteIn& default_instance() { - return *internal_default_instance(); - } - static inline const SDeleteIn* internal_default_instance() { - return reinterpret_cast( - &_SDeleteIn_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(SDeleteIn& a, SDeleteIn& b) { a.Swap(&b); } - inline void Swap(SDeleteIn* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SDeleteIn* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SDeleteIn* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SDeleteIn& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SDeleteIn& from) { SDeleteIn::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SDeleteIn* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "proto_messages.SDeleteIn"; } - - protected: - explicit SDeleteIn(::google::protobuf::Arena* arena); - SDeleteIn(::google::protobuf::Arena* arena, const SDeleteIn& from); - SDeleteIn(::google::protobuf::Arena* arena, SDeleteIn&& from) noexcept - : SDeleteIn(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kIdFieldNumber = 1, - }; - // string id = 1; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // @@protoc_insertion_point(class_scope:proto_messages.SDeleteIn) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 35, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_RTService_2eproto; -}; -// ------------------------------------------------------------------- - -class SCreateIn final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:proto_messages.SCreateIn) */ { - public: - inline SCreateIn() : SCreateIn(nullptr) {} - ~SCreateIn() override; - template - explicit PROTOBUF_CONSTEXPR SCreateIn( - ::google::protobuf::internal::ConstantInitialized); - - inline SCreateIn(const SCreateIn& from) : SCreateIn(nullptr, from) {} - inline SCreateIn(SCreateIn&& from) noexcept - : SCreateIn(nullptr, std::move(from)) {} - inline SCreateIn& operator=(const SCreateIn& from) { - CopyFrom(from); - return *this; - } - inline SCreateIn& operator=(SCreateIn&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SCreateIn& default_instance() { - return *internal_default_instance(); - } - static inline const SCreateIn* internal_default_instance() { - return reinterpret_cast( - &_SCreateIn_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(SCreateIn& a, SCreateIn& b) { a.Swap(&b); } - inline void Swap(SCreateIn* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SCreateIn* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SCreateIn* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SCreateIn& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SCreateIn& from) { SCreateIn::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SCreateIn* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "proto_messages.SCreateIn"; } - - protected: - explicit SCreateIn(::google::protobuf::Arena* arena); - SCreateIn(::google::protobuf::Arena* arena, const SCreateIn& from); - SCreateIn(::google::protobuf::Arena* arena, SCreateIn&& from) noexcept - : SCreateIn(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kIdFieldNumber = 2, - kStatusFieldNumber = 6, - kSamplerateFieldNumber = 3, - kSampleperiodFieldNumber = 4, - kDowntimeFieldNumber = 5, - }; - // string name = 1; - void clear_name() ; - const std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string id = 2; - void clear_id() ; - const std::string& id() const; - template - void set_id(Arg_&& arg, Args_... args); - std::string* mutable_id(); - PROTOBUF_NODISCARD std::string* release_id(); - void set_allocated_id(std::string* value); - - private: - const std::string& _internal_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_id( - const std::string& value); - std::string* _internal_mutable_id(); - - public: - // string status = 6; - void clear_status() ; - const std::string& status() const; - template - void set_status(Arg_&& arg, Args_... args); - std::string* mutable_status(); - PROTOBUF_NODISCARD std::string* release_status(); - void set_allocated_status(std::string* value); - - private: - const std::string& _internal_status() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_status( - const std::string& value); - std::string* _internal_mutable_status(); - - public: - // int64 samplerate = 3; - void clear_samplerate() ; - ::int64_t samplerate() const; - void set_samplerate(::int64_t value); - - private: - ::int64_t _internal_samplerate() const; - void _internal_set_samplerate(::int64_t value); - - public: - // int64 sampleperiod = 4; - void clear_sampleperiod() ; - ::int64_t sampleperiod() const; - void set_sampleperiod(::int64_t value); - - private: - ::int64_t _internal_sampleperiod() const; - void _internal_set_sampleperiod(::int64_t value); - - public: - // int64 downtime = 5; - void clear_downtime() ; - ::int64_t downtime() const; - void set_downtime(::int64_t value); - - private: - ::int64_t _internal_downtime() const; - void _internal_set_downtime(::int64_t value); - - public: - // @@protoc_insertion_point(class_scope:proto_messages.SCreateIn) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 45, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr status_; - ::int64_t samplerate_; - ::int64_t sampleperiod_; - ::int64_t downtime_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_RTService_2eproto; -}; - -// =================================================================== - - -// ------------------------------------------------------------------- - -class RTService_Stub; -class RTService : public ::google::protobuf::Service { - protected: - RTService() = default; - - public: - using Stub = RTService_Stub; - - RTService(const RTService&) = delete; - RTService& operator=(const RTService&) = delete; - virtual ~RTService() = default; - - static const ::google::protobuf::ServiceDescriptor* descriptor(); - - virtual void CreateMonitoring(::google::protobuf::RpcController* controller, - const ::proto_messages::SCreateIn* request, - ::proto_messages::SResult* response, - ::google::protobuf::Closure* done); - virtual void DeleteMonitoring(::google::protobuf::RpcController* controller, - const ::proto_messages::SDeleteIn* request, - ::proto_messages::SResult* response, - ::google::protobuf::Closure* done); - virtual void GetMonitoringState(::google::protobuf::RpcController* controller, - const ::proto_messages::SMonStateIn* request, - ::proto_messages::SResult* response, - ::google::protobuf::Closure* done); - virtual void GetMonitoringStates(::google::protobuf::RpcController* controller, - const ::proto_messages::SMonStatesIn* request, - ::proto_messages::SStateResult* response, - ::google::protobuf::Closure* done); - virtual void SetMonitoringState(::google::protobuf::RpcController* controller, - const ::proto_messages::SSetMonStateIn* request, - ::proto_messages::SResult* response, - ::google::protobuf::Closure* done); - - // implements Service ---------------------------------------------- - const ::google::protobuf::ServiceDescriptor* GetDescriptor() override; - - void CallMethod(const ::google::protobuf::MethodDescriptor* method, - ::google::protobuf::RpcController* controller, - const ::google::protobuf::Message* request, - ::google::protobuf::Message* response, - ::google::protobuf::Closure* done) override; - - const ::google::protobuf::Message& GetRequestPrototype( - const ::google::protobuf::MethodDescriptor* method) const override; - - const ::google::protobuf::Message& GetResponsePrototype( - const ::google::protobuf::MethodDescriptor* method) const override; -}; - -class RTService_Stub final : public RTService { - public: - RTService_Stub(::google::protobuf::RpcChannel* channel); - RTService_Stub(::google::protobuf::RpcChannel* channel, - ::google::protobuf::Service::ChannelOwnership ownership); - - RTService_Stub(const RTService_Stub&) = delete; - RTService_Stub& operator=(const RTService_Stub&) = delete; - - ~RTService_Stub() override; - - inline ::google::protobuf::RpcChannel* channel() { return channel_; } - - // implements RTService ------------------------------------------ - void CreateMonitoring(::google::protobuf::RpcController* controller, - const ::proto_messages::SCreateIn* request, - ::proto_messages::SResult* response, - ::google::protobuf::Closure* done) override; - void DeleteMonitoring(::google::protobuf::RpcController* controller, - const ::proto_messages::SDeleteIn* request, - ::proto_messages::SResult* response, - ::google::protobuf::Closure* done) override; - void GetMonitoringState(::google::protobuf::RpcController* controller, - const ::proto_messages::SMonStateIn* request, - ::proto_messages::SResult* response, - ::google::protobuf::Closure* done) override; - void GetMonitoringStates(::google::protobuf::RpcController* controller, - const ::proto_messages::SMonStatesIn* request, - ::proto_messages::SStateResult* response, - ::google::protobuf::Closure* done) override; - void SetMonitoringState(::google::protobuf::RpcController* controller, - const ::proto_messages::SSetMonStateIn* request, - ::proto_messages::SResult* response, - ::google::protobuf::Closure* done) override; - - private: - ::google::protobuf::RpcChannel* channel_; - bool owns_channel_; -}; -// =================================================================== - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// SCreateIn - -// string name = 1; -inline void SCreateIn::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& SCreateIn::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:proto_messages.SCreateIn.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SCreateIn::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:proto_messages.SCreateIn.name) -} -inline std::string* SCreateIn::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:proto_messages.SCreateIn.name) - return _s; -} -inline const std::string& SCreateIn::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void SCreateIn::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(value, GetArena()); -} -inline std::string* SCreateIn::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* SCreateIn::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:proto_messages.SCreateIn.name) - return _impl_.name_.Release(); -} -inline void SCreateIn::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:proto_messages.SCreateIn.name) -} - -// string id = 2; -inline void SCreateIn::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& SCreateIn::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:proto_messages.SCreateIn.id) - return _internal_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SCreateIn::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:proto_messages.SCreateIn.id) -} -inline std::string* SCreateIn::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:proto_messages.SCreateIn.id) - return _s; -} -inline const std::string& SCreateIn::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void SCreateIn::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.Set(value, GetArena()); -} -inline std::string* SCreateIn::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* SCreateIn::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:proto_messages.SCreateIn.id) - return _impl_.id_.Release(); -} -inline void SCreateIn::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:proto_messages.SCreateIn.id) -} - -// int64 samplerate = 3; -inline void SCreateIn::clear_samplerate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.samplerate_ = ::int64_t{0}; -} -inline ::int64_t SCreateIn::samplerate() const { - // @@protoc_insertion_point(field_get:proto_messages.SCreateIn.samplerate) - return _internal_samplerate(); -} -inline void SCreateIn::set_samplerate(::int64_t value) { - _internal_set_samplerate(value); - // @@protoc_insertion_point(field_set:proto_messages.SCreateIn.samplerate) -} -inline ::int64_t SCreateIn::_internal_samplerate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.samplerate_; -} -inline void SCreateIn::_internal_set_samplerate(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.samplerate_ = value; -} - -// int64 sampleperiod = 4; -inline void SCreateIn::clear_sampleperiod() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sampleperiod_ = ::int64_t{0}; -} -inline ::int64_t SCreateIn::sampleperiod() const { - // @@protoc_insertion_point(field_get:proto_messages.SCreateIn.sampleperiod) - return _internal_sampleperiod(); -} -inline void SCreateIn::set_sampleperiod(::int64_t value) { - _internal_set_sampleperiod(value); - // @@protoc_insertion_point(field_set:proto_messages.SCreateIn.sampleperiod) -} -inline ::int64_t SCreateIn::_internal_sampleperiod() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sampleperiod_; -} -inline void SCreateIn::_internal_set_sampleperiod(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sampleperiod_ = value; -} - -// int64 downtime = 5; -inline void SCreateIn::clear_downtime() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.downtime_ = ::int64_t{0}; -} -inline ::int64_t SCreateIn::downtime() const { - // @@protoc_insertion_point(field_get:proto_messages.SCreateIn.downtime) - return _internal_downtime(); -} -inline void SCreateIn::set_downtime(::int64_t value) { - _internal_set_downtime(value); - // @@protoc_insertion_point(field_set:proto_messages.SCreateIn.downtime) -} -inline ::int64_t SCreateIn::_internal_downtime() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.downtime_; -} -inline void SCreateIn::_internal_set_downtime(::int64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.downtime_ = value; -} - -// string status = 6; -inline void SCreateIn::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.ClearToEmpty(); -} -inline const std::string& SCreateIn::status() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:proto_messages.SCreateIn.status) - return _internal_status(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SCreateIn::set_status(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:proto_messages.SCreateIn.status) -} -inline std::string* SCreateIn::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_status(); - // @@protoc_insertion_point(field_mutable:proto_messages.SCreateIn.status) - return _s; -} -inline const std::string& SCreateIn::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.status_.Get(); -} -inline void SCreateIn::_internal_set_status(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.Set(value, GetArena()); -} -inline std::string* SCreateIn::_internal_mutable_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.status_.Mutable( GetArena()); -} -inline std::string* SCreateIn::release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:proto_messages.SCreateIn.status) - return _impl_.status_.Release(); -} -inline void SCreateIn::set_allocated_status(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.status_.IsDefault()) { - _impl_.status_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:proto_messages.SCreateIn.status) -} - -// ------------------------------------------------------------------- - -// SDeleteIn - -// string id = 1; -inline void SDeleteIn::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& SDeleteIn::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:proto_messages.SDeleteIn.id) - return _internal_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SDeleteIn::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:proto_messages.SDeleteIn.id) -} -inline std::string* SDeleteIn::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:proto_messages.SDeleteIn.id) - return _s; -} -inline const std::string& SDeleteIn::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void SDeleteIn::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.Set(value, GetArena()); -} -inline std::string* SDeleteIn::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* SDeleteIn::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:proto_messages.SDeleteIn.id) - return _impl_.id_.Release(); -} -inline void SDeleteIn::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:proto_messages.SDeleteIn.id) -} - -// ------------------------------------------------------------------- - -// SMonStateIn - -// string id = 1; -inline void SMonStateIn::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& SMonStateIn::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:proto_messages.SMonStateIn.id) - return _internal_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SMonStateIn::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:proto_messages.SMonStateIn.id) -} -inline std::string* SMonStateIn::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:proto_messages.SMonStateIn.id) - return _s; -} -inline const std::string& SMonStateIn::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void SMonStateIn::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.Set(value, GetArena()); -} -inline std::string* SMonStateIn::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* SMonStateIn::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:proto_messages.SMonStateIn.id) - return _impl_.id_.Release(); -} -inline void SMonStateIn::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:proto_messages.SMonStateIn.id) -} - -// ------------------------------------------------------------------- - -// SMonStatesIn - -// string query = 1; -inline void SMonStatesIn::clear_query() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.query_.ClearToEmpty(); -} -inline const std::string& SMonStatesIn::query() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:proto_messages.SMonStatesIn.query) - return _internal_query(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SMonStatesIn::set_query(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.query_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:proto_messages.SMonStatesIn.query) -} -inline std::string* SMonStatesIn::mutable_query() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_query(); - // @@protoc_insertion_point(field_mutable:proto_messages.SMonStatesIn.query) - return _s; -} -inline const std::string& SMonStatesIn::_internal_query() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.query_.Get(); -} -inline void SMonStatesIn::_internal_set_query(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.query_.Set(value, GetArena()); -} -inline std::string* SMonStatesIn::_internal_mutable_query() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.query_.Mutable( GetArena()); -} -inline std::string* SMonStatesIn::release_query() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:proto_messages.SMonStatesIn.query) - return _impl_.query_.Release(); -} -inline void SMonStatesIn::set_allocated_query(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.query_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.query_.IsDefault()) { - _impl_.query_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:proto_messages.SMonStatesIn.query) -} - -// ------------------------------------------------------------------- - -// SSetMonStateIn - -// string id = 1; -inline void SSetMonStateIn::clear_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.ClearToEmpty(); -} -inline const std::string& SSetMonStateIn::id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:proto_messages.SSetMonStateIn.id) - return _internal_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SSetMonStateIn::set_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:proto_messages.SSetMonStateIn.id) -} -inline std::string* SSetMonStateIn::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_id(); - // @@protoc_insertion_point(field_mutable:proto_messages.SSetMonStateIn.id) - return _s; -} -inline const std::string& SSetMonStateIn::_internal_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.id_.Get(); -} -inline void SSetMonStateIn::_internal_set_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.Set(value, GetArena()); -} -inline std::string* SSetMonStateIn::_internal_mutable_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.id_.Mutable( GetArena()); -} -inline std::string* SSetMonStateIn::release_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:proto_messages.SSetMonStateIn.id) - return _impl_.id_.Release(); -} -inline void SSetMonStateIn::set_allocated_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.id_.IsDefault()) { - _impl_.id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:proto_messages.SSetMonStateIn.id) -} - -// string status = 2; -inline void SSetMonStateIn::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.ClearToEmpty(); -} -inline const std::string& SSetMonStateIn::status() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:proto_messages.SSetMonStateIn.status) - return _internal_status(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SSetMonStateIn::set_status(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:proto_messages.SSetMonStateIn.status) -} -inline std::string* SSetMonStateIn::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_status(); - // @@protoc_insertion_point(field_mutable:proto_messages.SSetMonStateIn.status) - return _s; -} -inline const std::string& SSetMonStateIn::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.status_.Get(); -} -inline void SSetMonStateIn::_internal_set_status(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.Set(value, GetArena()); -} -inline std::string* SSetMonStateIn::_internal_mutable_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.status_.Mutable( GetArena()); -} -inline std::string* SSetMonStateIn::release_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:proto_messages.SSetMonStateIn.status) - return _impl_.status_.Release(); -} -inline void SSetMonStateIn::set_allocated_status(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.status_.IsDefault()) { - _impl_.status_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:proto_messages.SSetMonStateIn.status) -} - -// ------------------------------------------------------------------- - -// SResult - -// bool result = 1; -inline void SResult::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_ = false; -} -inline bool SResult::result() const { - // @@protoc_insertion_point(field_get:proto_messages.SResult.result) - return _internal_result(); -} -inline void SResult::set_result(bool value) { - _internal_set_result(value); - // @@protoc_insertion_point(field_set:proto_messages.SResult.result) -} -inline bool SResult::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.result_; -} -inline void SResult::_internal_set_result(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_ = value; -} - -// ------------------------------------------------------------------- - -// SStateResult - -// repeated string result = 1; -inline int SStateResult::_internal_result_size() const { - return _internal_result().size(); -} -inline int SStateResult::result_size() const { - return _internal_result_size(); -} -inline void SStateResult::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_.Clear(); -} -inline std::string* SStateResult::add_result() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_result()->Add(); - // @@protoc_insertion_point(field_add_mutable:proto_messages.SStateResult.result) - return _s; -} -inline const std::string& SStateResult::result(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:proto_messages.SStateResult.result) - return _internal_result().Get(index); -} -inline std::string* SStateResult::mutable_result(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:proto_messages.SStateResult.result) - return _internal_mutable_result()->Mutable(index); -} -inline void SStateResult::set_result(int index, const std::string& value) { - _internal_mutable_result()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:proto_messages.SStateResult.result) -} -inline void SStateResult::set_result(int index, std::string&& value) { - _internal_mutable_result()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:proto_messages.SStateResult.result) -} -inline void SStateResult::set_result(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_result()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:proto_messages.SStateResult.result) -} -inline void SStateResult::set_result(int index, const char* value, - std::size_t size) { - _internal_mutable_result()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:proto_messages.SStateResult.result) -} -inline void SStateResult::set_result(int index, absl::string_view value) { - _internal_mutable_result()->Mutable(index)->assign( - value.data(), value.size()); - // @@protoc_insertion_point(field_set_string_piece:proto_messages.SStateResult.result) -} -inline void SStateResult::add_result(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_result()->Add()->assign(value); - // @@protoc_insertion_point(field_add:proto_messages.SStateResult.result) -} -inline void SStateResult::add_result(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_result()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:proto_messages.SStateResult.result) -} -inline void SStateResult::add_result(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_result()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:proto_messages.SStateResult.result) -} -inline void SStateResult::add_result(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_result()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:proto_messages.SStateResult.result) -} -inline void SStateResult::add_result(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_result()->Add()->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_add_string_piece:proto_messages.SStateResult.result) -} -inline const ::google::protobuf::RepeatedPtrField& -SStateResult::result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:proto_messages.SStateResult.result) - return _internal_result(); -} -inline ::google::protobuf::RepeatedPtrField* -SStateResult::mutable_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:proto_messages.SStateResult.result) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_result(); -} -inline const ::google::protobuf::RepeatedPtrField& -SStateResult::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.result_; -} -inline ::google::protobuf::RepeatedPtrField* -SStateResult::_internal_mutable_result() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.result_; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace proto_messages - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_RTService_2eproto_2epb_2eh diff --git a/src/RTService.cpp b/src/RTService.cpp index c16fbeb..56baaf5 100644 --- a/src/RTService.cpp +++ b/src/RTService.cpp @@ -1,147 +1,22 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "RTService.pb.h" #include "../include/RTSMonitoringTask.h" - -using namespace boost::interprocess; -using namespace proto_messages; - - -class RTServiceImpl : public RTService -{ - private: - /* data */ - - RTSMonitoringTask rtsMonTask; - - const std::string RTSCOMMANDQUEUE = "RTSSERVICECOMMANDQUEUE"; - const int MAXMSGSIZE = 250; - const int MAXMSGCOUNT = 25; - -// message_queue shared_ptr rtsMQ; - - private: - - - public: - - - virtual void createMonitoring(::google::protobuf::RpcController* /* controller_ */, const SCreateIn* request_, ::SResult* response_, ::google::protobuf::Closure* /* done_ */) - { - // print request and - std::cout << "Received request RTService / CreateMonitoring : " << request_->id() << " and " << request_->name() << std::endl << std::endl; - bool res = rtsMonTask.CreateMonitoring(request_->id(), request_->samplerate(), request_->sampleperiod(), request_->downtime(), request_->status()); - - // create response - response_->set_result(res); - } - - // we need all parameters like id, samplerate, sampletime, downtime, later: HW-channels with the configurations - bool createMonitoring(std::string id, int samplerate, int sampleperiod, int downtime, std::string status) { - //TODO ML: add this to the M4Core - if (rtsMonTask.Init()) { - return rtsMonTask.CreateMonitoring(id, samplerate, sampleperiod, downtime, status); - } - return false; - } - - bool deleteMonitoring(std::string id) { - //TODO ML: add this to the M4Core - return true; - } - - std::string getMonitoringState(std::string id) { - //TODO ask the M4Core for the Monitpring Status - return "Start"; - } - - std::list getMonitoringStates() { - //TODO ask the M4Core for the Monitpring Status - std::list list; - return list; - } - - bool setMonitoringStatus(std::string id, std::string status) { - //set the Status - return true; - } - - - void Run() { - BOOST_TRY{ - //Erase previous message queue - message_queue::remove(RTSCOMMANDQUEUE.c_str()); - - //Create a message_queue. - message_queue rtsMQ - (create_only //only create - ,RTSCOMMANDQUEUE.c_str() //name - ,MAXMSGCOUNT //max message number - ,MAXMSGSIZE //max message size - ); - - bool bCmdQueueRun = true; - unsigned int priority; - message_queue::size_type recvd_size; - boost::property_tree::ptree pt; - - while (bCmdQueueRun) { - char rtsCmdbuffer [MAXMSGSIZE]; - //mq.receive(buffer, sizeof(buffer), recvd_size, pri); - - rtsMQ.receive(rtsCmdbuffer, sizeof(rtsCmdbuffer), recvd_size, priority); - //read json and go to cmd execution - boost::property_tree::read_json(rtsCmdbuffer,pt); - - } - - - // //Send 100 numbers - // for(int i = 0; i < 100; ++i){ - // mq.send(&i, sizeof(i), 0); - // } - } - BOOST_CATCH(interprocess_exception &ex){ - std::cout << ex.what() << std::endl; - message_queue::remove(RTSCOMMANDQUEUE.c_str()); - } BOOST_CATCH_END - - } - -}; +#include +#include int main(int argc, char **argv) { - // initialize eCAL API - eCAL::Initialize(argc, argv, "RTService"); - - // create minimal service server - eCAL::CServiceServer rtService("RTSMonService"); - - - // create Math service server - std::shared_ptr rt_service = std::make_shared(); - eCAL::protobuf::CServiceServer math_server(rt_service); - - + + RTSMonitoringTask rtMon; + rtMon.Init(); // idle - while(eCAL::Ok()) + while(1) { + // sleep 100 ms std::this_thread::sleep_for(std::chrono::milliseconds(100)); } - // finalize eCAL API - eCAL::Finalize(); return 0; } diff --git a/src/monitoringTask/RTSMonitoringTask.cpp b/src/monitoringTask/RTSMonitoringTask.cpp index 6817a8e..515974f 100644 --- a/src/monitoringTask/RTSMonitoringTask.cpp +++ b/src/monitoringTask/RTSMonitoringTask.cpp @@ -20,21 +20,39 @@ RTSMonitoringTask::~RTSMonitoringTask() { } +bool RTSMonitoringTask::Load() { + //later load the file + int id = 1; + RTSMonFrame* rtsMonFrame = new RTSMonFrame(id, "Monitoring1", 3750, 1, 4); + rtsMonFrames[id]= rtsMonFrame; + return true; +} + bool RTSMonitoringTask::Init() { + + bool ret = false; + //load the Monitorings + if (this->Load()) { + printf("CA7 : Monitorings loaded\n"); + } + const std::string fwPath = "home/root/elffile/"; + const std::string fwName = "zephyr_openamp_rsc_table.elf"; + //check if the FWIsRunning - //if (coproHelper.) - if (1) { + if (coproHelper.Init(fwPath, fwName)) { + if (pthread_create( &monThread, NULL, &RTSMonitoringTask::Run, this) == 0) { printf("CA7 : virtual_tty_thread creation fails\n"); return true; } } + printf("CA7 : starting of Zephy.elf fails\n"); return false; } -bool RTSMonitoringTask::CreateMonitoring(std::string id, int samplerate, int sampleperiod, int downtime, std::string status){ - this->rtsMonFrames[id] = new RTSMonFrame(id, samplerate, sampleperiod, downtime); +bool RTSMonitoringTask::CreateMonitoring(int id, std::string name, int samplerate, int sampleperiod, int downtime, std::string status){ + this->rtsMonFrames[id] = new RTSMonFrame(id, name, samplerate, sampleperiod, downtime); return true; } @@ -48,7 +66,7 @@ void* RTSMonitoringTask::Run(void *obj) { int i = 1; newItem = "New Item"; //new std::string("New Item: ").concat(new std::string(i)); i++; - std::map rtsMonFrame = rtsMonTask->rtsMonFrames; + std::map rtsMonFrame = rtsMonTask->rtsMonFrames; if (rtsMonFrame.size() > 0) { RTSMonFrame* prtsMonFrame = rtsMonFrame.begin()->second; diff --git a/src/monitoringTask/RTSMonitoringTask.cpp.old b/src/monitoringTask/RTSMonitoringTask.cpp.old deleted file mode 100644 index 3b7bcde..0000000 --- a/src/monitoringTask/RTSMonitoringTask.cpp.old +++ /dev/null @@ -1,231 +0,0 @@ -/* -*/ - -#include "../../include/RTSMonitoring.h" - -//static RTSMonitoringTask* RTMonitoringTask::rTSMonitoringTask = NULL; - - -RTMonitoringTask::RTMonitoringTask(/* args */) -{ -} - - - - -RTSMonitoringTask::~RTSMonitoringTask() -{ -} - -// static RTSMonitoringTask& RTSMonitoringTask::Instance() { -// if (rTSMonitoringTask == NULL) { -// rTSMonitoringTask = new RTSMonitoringTask(); -// } -// return *rTSMonitoringTask; -// } - - -bool RTSMonitoringTask::Init() { - //check if the FWIsRunning - //if (coproHelper.) - if (1) { - return true; - } - - return false; -} - -/******************************************************************************** - * Threading: Run Method - *******************************************************************************/ -void *virtual_tty_thread(void *arg) -{ - int read0, read1; - int32_t wsize; - int nb2copy = 0; - char cmdmsg[20]; - - // open tty0 - if (copro_openTtyRpmsg(0, 1)) { - printf("CA7 : fails to open the ttyRPMSG0\n"); - return (errno * -1); - } - //system("stty -F /dev/ttyRPMGS0 -isig"); - - // needed to allow M4 to send any data over virtualTTY - copro_writeTtyRpmsg(0, 1, "r"); - - // open tty1 - if (copro_openTtyRpmsg(1, 1)) { - printf("CA7 : fails to open the ttyRPMSG0\n"); - return (errno * -1); - } - // needed to allow M4 to send any data over virtualTTY - copro_writeTtyRpmsg(1, 1, "r"); - - usleep(500000); - sprintf(cmdmsg, "B%02d", NB_BUF); - copro_writeTtyRpmsg(0, strlen(cmdmsg), cmdmsg); - - while (1) { - if (mThreadCancel) break; // kill thread requested - - // tty0 is used for low rate compressed data transfer (less or equal to 5MHz sampling) - read0 = copro_readTtyRpmsg(0, SAMP_SRAM_PACKET_SIZE, mByteBuffer); - if (read0 > 0) { - mNbTty0Frame++; - mNbUncompData += read0; - - mNbUncompMB = mNbUncompData / 1024 / 1024; - if (mNbUncompMB != mNbPrevUncompMB) { - // a new MB has been received, update display - mNbPrevUncompMB = mNbUncompMB; - mByteBuffCpy[0] = mByteBuffer[0]; - gdk_threads_add_idle (refreshUI_CB, window); - } - } - - // tty1 is dedicated to trace of M4 - read1 = copro_readTtyRpmsg(1, 512, mRxTraceBuffer); - mRxTraceBuffer[read1] = 0; // to be sure to get a end of string - if (read1 > 0) { - if (strcmp(mRxTraceBuffer, "CM4 : DMA TransferError") == 0) { - // sampling is aborted, refresh the UI - mErrorDetected = 1; - //mMachineState = STATE_READY; - //gdk_threads_add_idle (refreshUI_CB, window); - } - gettimeofday(&tval_after, NULL); - timersub(&tval_after, &tval_before, &tval_result); - if (mRxTraceBuffer[0] == 'C') { - printf("[%ld.%06ld] : %s\n", - (long int)tval_result.tv_sec, (long int)tval_result.tv_usec, - mRxTraceBuffer); - } else { - printf("[%ld.%06ld] : CA7 : tty1 got %d [%x] bytes\n", - (long int)tval_result.tv_sec, (long int)tval_result.tv_usec, - read1, mRxTraceBuffer[0]); - } - } - //usleep(500); - - //sleep_ms(1); // give time to UI - } - return 0; -} - - - - -/******************************************************************************** - * Threading: Run Method - *******************************************************************************/ -int main(int argc, char **argv) -{ - int ret = 0, i, cmd; - char FwName[30]; - strcpy(FIRM_NAME, "how2eldb04140.elf"); //!!! check the name ML - /* check if copro is already running */ - ret = copro_isFwRunning(); - if (ret) { - // check FW name - int nameLn = copro_getFwName(FwName); - if (FwName[nameLn-1] == 0x0a) { - FwName[nameLn-1] = 0x00; // replace \n by \0 - } - if (strcmp(FwName, FIRM_NAME) == 0) { - printf("CA7 : %s is already running.\n", FIRM_NAME); - goto fwrunning; - }else { - printf("CA7 : wrong FW running. Try to stop it... \n"); - if (copro_stopFw()) { - printf("CA7 : fails to stop firmware\n"); - goto end; - } - } - } - -setname: - /* set the firmware name to load */ - ret = copro_setFwName(FIRM_NAME); - if (ret <= 0) { - printf("CA7 : fails to change the firmware name\n"); - goto end; - } - - /* start the firmware */ - if (copro_startFw()) { - printf("CA7 : fails to start firmware\n"); - goto end; - } - /* wait for 1 seconds the creation of the virtual ttyRPMSGx */ - sleep_ms(1000); - -fwrunning: -// signal(SIGINT, exit_fct); /* Ctrl-C signal */ -// signal(SIGTERM, exit_fct); /* kill command */ -// gettimeofday(&tval_before, NULL); // get current time - - if (pthread_create( &threadTTY, NULL, virtual_tty_thread, NULL) != 0) { - printf("CA7 : virtual_tty_thread creation fails\n"); - goto end; - } - - // sleep_ms(500); // let tty send the DDR buffer command - // if (pthread_create( &threadSDB, NULL, sdb_thread, NULL) != 0) { - // printf("CA7 : sdb_thread creation fails\n"); - // goto end; - // } - -/****** new production way => use rpmsg-sdb driver to perform CMA buff allocation ******/ - - mMachineState = STATE_READY; - mSampFreq_Hz = 4; - mSampParmCount = 0; - -// gtk_init (&argc, &argv); - - // if (pthread_create( &threadUI, NULL, ui_thread, NULL) != 0) { - // printf("CA7 : ui_thread creation fails\n"); - // goto end; - // } - - // printf("CA7 : Entering in Main loop\n"); - -// while (1) { -// if (mExitRequested) break; -// if (mErrorDetected) { -// if (mMachineState >= STATE_SAMPLING_LOW) { -// virtual_tty_send_command(strlen("Exit"), "Exit"); -// if (mErrorDetected == 2) printf("CA7 : ERROR in DDR Buffer order => Stop sampling!!!\n"); -// //else if (mErrorDetected == 2) printf("CA7 : File System full => Stop sampling!!!\n"); -// else if (mErrorDetected == 1) printf("CA7 : M4 reported DMA error !!!\n"); -// mErrorDetected = 0; -// mMachineState = STATE_READY; -// gdk_threads_add_idle (refreshUI_CB, window); -// #if 0 -// close_raw_file(); -// #endif -// } -// } -// sleep_ms(1); // give time to UI -// } - for (i=0;iCopro_isFwRunning() != 0){ - return 1; + //copro is already Runnibng nothing TODO + return 0; } - return 0; + //load Firmware + //set firmware path + res = this->Copro_setFwPath(fwPath.c_str()); + if (res == 0) { + res = this->Copro_setFwName(fwName.c_str()); + if (res == 0) { + res = this->Copro_startFw(); + if (res != 0) { + printf("CA7 : Error starting Copro, err=-%d\n", res); + } + } + else { + printf("CA7 : Error setting the fwName, err=-%d\n", res); + } + } + else { + printf("CA7 : Error setting the fwpath, err=-%d\n", res); + } + return res; } @@ -145,7 +166,7 @@ int RTSCoproHelper::Copro_getFwPath(char* pathStr) return byte_read; } -int RTSCoproHelper::Copro_setFwPath(char* pathStr) +int RTSCoproHelper::Copro_setFwPath(const char* pathStr) { int fd; int result = 0; @@ -186,7 +207,7 @@ int RTSCoproHelper::Copro_getFwName(char* pathStr) return byte_read; } -int RTSCoproHelper::Copro_setFwName(char* nameStr) +int RTSCoproHelper::Copro_setFwName(const char* nameStr) { int fd; int result = 0;