From 48aa477f3f3f7a8067ce51d4d64a301aa887ef94 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 3 Nov 2023 10:46:34 -0400 Subject: [PATCH] Automated Protos Update (#173) Co-authored-by: viambot Co-authored-by: Cheuk Tse --- .github/workflows/update_protos.yml | 2 +- src/viam/api/app/v1/robot.pb.cc | 1073 +++++++++++++---- src/viam/api/app/v1/robot.pb.h | 813 ++++++++++++- src/viam/api/buf.lock | 2 +- src/viam/api/common/v1/common.pb.cc | 575 ++++++++- src/viam/api/common/v1/common.pb.h | 541 +++++++++ .../v1/movementsensor.grpc.pb.cc | 42 + .../v1/movementsensor.grpc.pb.h | 168 ++- .../movementsensor/v1/movementsensor.pb.cc | 14 +- .../powersensor/v1/powersensor.grpc.pb.cc | 44 +- .../powersensor/v1/powersensor.grpc.pb.h | 186 ++- .../powersensor/v1/powersensor.pb.cc | 22 +- .../api/component/sensor/v1/sensor.grpc.pb.cc | 24 +- .../api/component/sensor/v1/sensor.grpc.pb.h | 68 +- src/viam/api/component/sensor/v1/sensor.pb.cc | 605 +--------- src/viam/api/component/sensor/v1/sensor.pb.h | 548 --------- src/viam/api/robot/v1/robot.pb.cc | 244 ++-- src/viam/api/robot/v1/robot.pb.h | 105 ++ src/viam/api/service/motion/v1/motion.pb.cc | 735 +++++++---- src/viam/api/service/motion/v1/motion.pb.h | 485 +++++++- 20 files changed, 4430 insertions(+), 1866 deletions(-) diff --git a/.github/workflows/update_protos.yml b/.github/workflows/update_protos.yml index 50e1a790f..2fa972cf4 100644 --- a/.github/workflows/update_protos.yml +++ b/.github/workflows/update_protos.yml @@ -50,7 +50,7 @@ jobs: uses: peter-evans/create-pull-request@v3 with: commit-message: '[WORKFLOW] Updating protos from ${{ github.event.client_payload.repo_name }}, commit: ${{ github.event.client_payload.sha }}' - branch: 'origin/update-protos' + branch: 'workflow/update-protos' add-paths: src/viam/api/* delete-branch: true title: Automated Protos Update diff --git a/src/viam/api/app/v1/robot.pb.cc b/src/viam/api/app/v1/robot.pb.cc index fe5fad064..757cb734c 100644 --- a/src/viam/api/app/v1/robot.pb.cc +++ b/src/viam/api/app/v1/robot.pb.cc @@ -58,6 +58,18 @@ struct LocationSecretDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationSecretDefaultTypeInternal _LocationSecret_default_instance_; +PROTOBUF_CONSTEXPR AppValidationStatus::AppValidationStatus( + ::_pbi::ConstantInitialized) + : error_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} +struct AppValidationStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR AppValidationStatusDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AppValidationStatusDefaultTypeInternal() {} + union { + AppValidationStatus _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppValidationStatusDefaultTypeInternal _AppValidationStatus_default_instance_; PROTOBUF_CONSTEXPR CloudConfig::CloudConfig( ::_pbi::ConstantInitialized) : location_secrets_() @@ -111,9 +123,21 @@ struct ResourceLevelServiceConfigDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceLevelServiceConfigDefaultTypeInternal _ResourceLevelServiceConfig_default_instance_; +PROTOBUF_CONSTEXPR ProcessConfig_EnvEntry_DoNotUse::ProcessConfig_EnvEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct ProcessConfig_EnvEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ProcessConfig_EnvEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ProcessConfig_EnvEntry_DoNotUseDefaultTypeInternal() {} + union { + ProcessConfig_EnvEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProcessConfig_EnvEntry_DoNotUseDefaultTypeInternal _ProcessConfig_EnvEntry_DoNotUse_default_instance_; PROTOBUF_CONSTEXPR ProcessConfig::ProcessConfig( ::_pbi::ConstantInitialized) : args_() + , env_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) , id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , cwd_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) @@ -521,11 +545,26 @@ struct NeedsRestartResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NeedsRestartResponseDefaultTypeInternal _NeedsRestartResponse_default_instance_; +PROTOBUF_CONSTEXPR ModuleConfig_EnvEntry_DoNotUse::ModuleConfig_EnvEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct ModuleConfig_EnvEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ModuleConfig_EnvEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ModuleConfig_EnvEntry_DoNotUseDefaultTypeInternal() {} + union { + ModuleConfig_EnvEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModuleConfig_EnvEntry_DoNotUseDefaultTypeInternal _ModuleConfig_EnvEntry_DoNotUse_default_instance_; PROTOBUF_CONSTEXPR ModuleConfig::ModuleConfig( ::_pbi::ConstantInitialized) - : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + : env_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) + , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , path_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , log_level_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} + , log_level_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , module_id_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , status_(nullptr){} struct ModuleConfigDefaultTypeInternal { PROTOBUF_CONSTEXPR ModuleConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -540,7 +579,8 @@ PROTOBUF_CONSTEXPR PackageConfig::PackageConfig( : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , package_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) , version_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){} + , type_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , status_(nullptr){} struct PackageConfigDefaultTypeInternal { PROTOBUF_CONSTEXPR PackageConfigDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -553,7 +593,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace v1 } // namespace app } // namespace viam -static ::_pb::Metadata file_level_metadata_app_2fv1_2frobot_2eproto[36]; +static ::_pb::Metadata file_level_metadata_app_2fv1_2frobot_2eproto[39]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_app_2fv1_2frobot_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_app_2fv1_2frobot_2eproto = nullptr; @@ -595,6 +635,13 @@ const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationSecret, id_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::LocationSecret, secret_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AppValidationStatus, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::AppValidationStatus, error_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::CloudConfig, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -632,6 +679,16 @@ const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceLevelServiceConfig, type_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::ResourceLevelServiceConfig, attributes_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse, value_), + 0, + 1, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, _internal_metadata_), ~0u, // no _extensions_ @@ -646,6 +703,7 @@ const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, log_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, stop_signal_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, stop_timeout_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ProcessConfig, env_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::ServiceConfig, _internal_metadata_), ~0u, // no _extensions_ @@ -912,6 +970,16 @@ const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartResponse, id_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartResponse, must_restart_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::NeedsRestartResponse, restart_check_interval_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse, value_), + 0, + 1, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, _internal_metadata_), ~0u, // no _extensions_ @@ -921,6 +989,10 @@ const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, name_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, path_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, log_level_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, module_id_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, env_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::ModuleConfig, status_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, _internal_metadata_), ~0u, // no _extensions_ @@ -931,52 +1003,58 @@ const uint32_t TableStruct_app_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTION_ PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, package_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, version_), PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, type_), + PROTOBUF_FIELD_OFFSET(::viam::app::v1::PackageConfig, status_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 17, -1, sizeof(::viam::app::v1::RobotConfig)}, { 28, -1, -1, sizeof(::viam::app::v1::LocationSecret)}, - { 36, -1, -1, sizeof(::viam::app::v1::CloudConfig)}, - { 51, -1, -1, sizeof(::viam::app::v1::ComponentConfig)}, - { 66, -1, -1, sizeof(::viam::app::v1::ResourceLevelServiceConfig)}, - { 74, -1, -1, sizeof(::viam::app::v1::ProcessConfig)}, - { 88, -1, -1, sizeof(::viam::app::v1::ServiceConfig)}, - { 102, -1, -1, sizeof(::viam::app::v1::NetworkConfig)}, - { 113, -1, -1, sizeof(::viam::app::v1::SessionsConfig)}, - { 120, 129, -1, sizeof(::viam::app::v1::AuthConfig)}, - { 132, -1, -1, sizeof(::viam::app::v1::JWKSFile)}, - { 139, -1, -1, sizeof(::viam::app::v1::ExternalAuthConfig)}, - { 146, -1, -1, sizeof(::viam::app::v1::AuthHandlerConfig)}, - { 154, -1, -1, sizeof(::viam::app::v1::Frame)}, - { 164, -1, -1, sizeof(::viam::app::v1::Translation)}, - { 173, -1, -1, sizeof(::viam::app::v1::Orientation_NoOrientation)}, - { 179, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorRadians)}, - { 189, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorDegrees)}, - { 199, -1, -1, sizeof(::viam::app::v1::Orientation_EulerAngles)}, - { 208, -1, -1, sizeof(::viam::app::v1::Orientation_AxisAngles)}, - { 218, -1, -1, sizeof(::viam::app::v1::Orientation_Quaternion)}, - { 228, -1, -1, sizeof(::viam::app::v1::Orientation)}, - { 241, -1, -1, sizeof(::viam::app::v1::RemoteConfig)}, - { 257, -1, -1, sizeof(::viam::app::v1::RemoteAuth_Credentials)}, - { 265, -1, -1, sizeof(::viam::app::v1::RemoteAuth)}, - { 273, 285, -1, sizeof(::viam::app::v1::AgentInfo)}, - { 291, 299, -1, sizeof(::viam::app::v1::ConfigRequest)}, - { 301, -1, -1, sizeof(::viam::app::v1::ConfigResponse)}, - { 308, -1, -1, sizeof(::viam::app::v1::CertificateRequest)}, - { 315, -1, -1, sizeof(::viam::app::v1::CertificateResponse)}, - { 324, -1, -1, sizeof(::viam::app::v1::LogRequest)}, - { 332, -1, -1, sizeof(::viam::app::v1::LogResponse)}, - { 338, -1, -1, sizeof(::viam::app::v1::NeedsRestartRequest)}, - { 345, -1, -1, sizeof(::viam::app::v1::NeedsRestartResponse)}, - { 354, -1, -1, sizeof(::viam::app::v1::ModuleConfig)}, - { 363, -1, -1, sizeof(::viam::app::v1::PackageConfig)}, + { 36, -1, -1, sizeof(::viam::app::v1::AppValidationStatus)}, + { 43, -1, -1, sizeof(::viam::app::v1::CloudConfig)}, + { 58, -1, -1, sizeof(::viam::app::v1::ComponentConfig)}, + { 73, -1, -1, sizeof(::viam::app::v1::ResourceLevelServiceConfig)}, + { 81, 89, -1, sizeof(::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse)}, + { 91, -1, -1, sizeof(::viam::app::v1::ProcessConfig)}, + { 106, -1, -1, sizeof(::viam::app::v1::ServiceConfig)}, + { 120, -1, -1, sizeof(::viam::app::v1::NetworkConfig)}, + { 131, -1, -1, sizeof(::viam::app::v1::SessionsConfig)}, + { 138, 147, -1, sizeof(::viam::app::v1::AuthConfig)}, + { 150, -1, -1, sizeof(::viam::app::v1::JWKSFile)}, + { 157, -1, -1, sizeof(::viam::app::v1::ExternalAuthConfig)}, + { 164, -1, -1, sizeof(::viam::app::v1::AuthHandlerConfig)}, + { 172, -1, -1, sizeof(::viam::app::v1::Frame)}, + { 182, -1, -1, sizeof(::viam::app::v1::Translation)}, + { 191, -1, -1, sizeof(::viam::app::v1::Orientation_NoOrientation)}, + { 197, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorRadians)}, + { 207, -1, -1, sizeof(::viam::app::v1::Orientation_OrientationVectorDegrees)}, + { 217, -1, -1, sizeof(::viam::app::v1::Orientation_EulerAngles)}, + { 226, -1, -1, sizeof(::viam::app::v1::Orientation_AxisAngles)}, + { 236, -1, -1, sizeof(::viam::app::v1::Orientation_Quaternion)}, + { 246, -1, -1, sizeof(::viam::app::v1::Orientation)}, + { 259, -1, -1, sizeof(::viam::app::v1::RemoteConfig)}, + { 275, -1, -1, sizeof(::viam::app::v1::RemoteAuth_Credentials)}, + { 283, -1, -1, sizeof(::viam::app::v1::RemoteAuth)}, + { 291, 303, -1, sizeof(::viam::app::v1::AgentInfo)}, + { 309, 317, -1, sizeof(::viam::app::v1::ConfigRequest)}, + { 319, -1, -1, sizeof(::viam::app::v1::ConfigResponse)}, + { 326, -1, -1, sizeof(::viam::app::v1::CertificateRequest)}, + { 333, -1, -1, sizeof(::viam::app::v1::CertificateResponse)}, + { 342, -1, -1, sizeof(::viam::app::v1::LogRequest)}, + { 350, -1, -1, sizeof(::viam::app::v1::LogResponse)}, + { 356, -1, -1, sizeof(::viam::app::v1::NeedsRestartRequest)}, + { 363, -1, -1, sizeof(::viam::app::v1::NeedsRestartResponse)}, + { 372, 380, -1, sizeof(::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse)}, + { 382, -1, -1, sizeof(::viam::app::v1::ModuleConfig)}, + { 395, -1, -1, sizeof(::viam::app::v1::PackageConfig)}, }; static const ::_pb::Message* const file_default_instances[] = { &::viam::app::v1::_RobotConfig_default_instance_._instance, &::viam::app::v1::_LocationSecret_default_instance_._instance, + &::viam::app::v1::_AppValidationStatus_default_instance_._instance, &::viam::app::v1::_CloudConfig_default_instance_._instance, &::viam::app::v1::_ComponentConfig_default_instance_._instance, &::viam::app::v1::_ResourceLevelServiceConfig_default_instance_._instance, + &::viam::app::v1::_ProcessConfig_EnvEntry_DoNotUse_default_instance_._instance, &::viam::app::v1::_ProcessConfig_default_instance_._instance, &::viam::app::v1::_ServiceConfig_default_instance_._instance, &::viam::app::v1::_NetworkConfig_default_instance_._instance, @@ -1006,6 +1084,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::app::v1::_LogResponse_default_instance_._instance, &::viam::app::v1::_NeedsRestartRequest_default_instance_._instance, &::viam::app::v1::_NeedsRestartResponse_default_instance_._instance, + &::viam::app::v1::_ModuleConfig_EnvEntry_DoNotUse_default_instance_._instance, &::viam::app::v1::_ModuleConfig_default_instance_._instance, &::viam::app::v1::_PackageConfig_default_instance_._instance, }; @@ -1032,148 +1111,159 @@ const char descriptor_table_protodef_app_2fv1_2frobot_2eproto[] PROTOBUF_SECTION ".viam.app.v1.PackageConfigR\010packagesB\n\n\010" "_networkB\007\n\005_authB\010\n\006_debugB\030\n\026_disable_" "partial_start\"8\n\016LocationSecret\022\016\n\002id\030\001 " - "\001(\tR\002id\022\026\n\006secret\030\002 \001(\tR\006secret\"\330\002\n\013Clou" - "dConfig\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004fqdn\030\002 \001(\tR\004f" - "qdn\022\035\n\nlocal_fqdn\030\003 \001(\tR\tlocalFqdn\022\035\n\nma" - "naged_by\030\004 \001(\tR\tmanagedBy\022+\n\021signaling_a" - "ddress\030\005 \001(\tR\020signalingAddress\022-\n\022signal" - "ing_insecure\030\006 \001(\010R\021signalingInsecure\022+\n" - "\017location_secret\030\007 \001(\tB\002\030\001R\016locationSecr" - "et\022\026\n\006secret\030\010 \001(\tR\006secret\022F\n\020location_s" - "ecrets\030\t \003(\0132\033.viam.app.v1.LocationSecre" - "tR\017locationSecrets\"\357\002\n\017ComponentConfig\022\022" - "\n\004name\030\001 \001(\tR\004name\022\034\n\tnamespace\030\002 \001(\tR\tn" - "amespace\022\022\n\004type\030\003 \001(\tR\004type\022\024\n\005model\030\004 " - "\001(\tR\005model\022(\n\005frame\030\005 \001(\0132\022.viam.app.v1." - "FrameR\005frame\022\035\n\ndepends_on\030\006 \003(\tR\tdepend" - "sOn\022l\n\017service_configs\030\007 \003(\0132\'.viam.app." - "v1.ResourceLevelServiceConfigB\032\232\204\236\003\025json" - ":\"service_config\"R\016serviceConfigs\0227\n\natt" - "ributes\030\010 \001(\0132\027.google.protobuf.StructR\n" - "attributes\022\020\n\003api\030\t \001(\tR\003api\"i\n\032Resource" - "LevelServiceConfig\022\022\n\004type\030\001 \001(\tR\004type\0227" - "\n\nattributes\030\002 \001(\0132\027.google.protobuf.Str" - "uctR\nattributes\"\345\001\n\rProcessConfig\022\016\n\002id\030" - "\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022\022\n\004args\030\003 " - "\003(\tR\004args\022\020\n\003cwd\030\004 \001(\tR\003cwd\022\031\n\010one_shot\030" - "\005 \001(\010R\007oneShot\022\020\n\003log\030\006 \001(\010R\003log\022\037\n\013stop" - "_signal\030\007 \001(\005R\nstopSignal\022<\n\014stop_timeou" - "t\030\010 \001(\0132\031.google.protobuf.DurationR\013stop" - "Timeout\"\303\002\n\rServiceConfig\022\022\n\004name\030\001 \001(\tR" - "\004name\022\034\n\tnamespace\030\002 \001(\tR\tnamespace\022\022\n\004t" - "ype\030\003 \001(\tR\004type\0227\n\nattributes\030\004 \001(\0132\027.go" - "ogle.protobuf.StructR\nattributes\022\035\n\ndepe" - "nds_on\030\005 \003(\tR\tdependsOn\022\024\n\005model\030\006 \001(\tR\005" - "model\022\020\n\003api\030\t \001(\tR\003api\022l\n\017service_confi" - "gs\030\n \003(\0132\'.viam.app.v1.ResourceLevelServ" - "iceConfigB\032\232\204\236\003\025json:\"service_config\"R\016s" - "erviceConfigs\"\305\001\n\rNetworkConfig\022\022\n\004fqdn\030" - "\001 \001(\tR\004fqdn\022!\n\014bind_address\030\002 \001(\tR\013bindA" - "ddress\022\"\n\rtls_cert_file\030\003 \001(\tR\013tlsCertFi" - "le\022 \n\014tls_key_file\030\004 \001(\tR\ntlsKeyFile\0227\n\010" - "sessions\030\005 \001(\0132\033.viam.app.v1.SessionsCon" - "figR\010sessions\"V\n\016SessionsConfig\022D\n\020heart" - "beat_window\030\001 \001(\0132\031.google.protobuf.Dura" - "tionR\017heartbeatWindow\"\345\001\n\nAuthConfig\022:\n\010" - "handlers\030\001 \003(\0132\036.viam.app.v1.AuthHandler" - "ConfigR\010handlers\022*\n\021tls_auth_entities\030\002 " - "\003(\tR\017tlsAuthEntities\022V\n\024external_auth_co" - "nfig\030\003 \001(\0132\037.viam.app.v1.ExternalAuthCon" - "figH\000R\022externalAuthConfig\210\001\001B\027\n\025_externa" - "l_auth_config\"7\n\010JWKSFile\022+\n\004json\030\001 \001(\0132" - "\027.google.protobuf.StructR\004json\"\?\n\022Extern" - "alAuthConfig\022)\n\004jwks\030\001 \001(\0132\025.viam.app.v1" - ".JWKSFileR\004jwks\"v\n\021AuthHandlerConfig\0220\n\004" - "type\030\001 \001(\0162\034.viam.app.v1.CredentialsType" - "R\004type\022/\n\006config\030\005 \001(\0132\027.google.protobuf" - ".StructR\006config\"\315\001\n\005Frame\022\026\n\006parent\030\001 \001(" - "\tR\006parent\022:\n\013translation\030\002 \001(\0132\030.viam.ap" - "p.v1.TranslationR\013translation\022:\n\013orienta" - "tion\030\003 \001(\0132\030.viam.app.v1.OrientationR\013or" - "ientation\0224\n\010geometry\030\004 \001(\0132\030.viam.commo" - "n.v1.GeometryR\010geometry\"7\n\013Translation\022\014" - "\n\001x\030\001 \001(\001R\001x\022\014\n\001y\030\002 \001(\001R\001y\022\014\n\001z\030\003 \001(\001R\001z" - "\"\320\007\n\013Orientation\022O\n\016no_orientation\030\001 \001(\013" - "2&.viam.app.v1.Orientation.NoOrientation" - "H\000R\rnoOrientation\022Z\n\016vector_radians\030\002 \001(" - "\01321.viam.app.v1.Orientation.OrientationV" - "ectorRadiansH\000R\rvectorRadians\022Z\n\016vector_" - "degrees\030\003 \001(\01321.viam.app.v1.Orientation." - "OrientationVectorDegreesH\000R\rvectorDegree" - "s\022I\n\014euler_angles\030\004 \001(\0132$.viam.app.v1.Or" - "ientation.EulerAnglesH\000R\013eulerAngles\022F\n\013" - "axis_angles\030\005 \001(\0132#.viam.app.v1.Orientat" - "ion.AxisAnglesH\000R\naxisAngles\022E\n\nquaterni" - "on\030\006 \001(\0132#.viam.app.v1.Orientation.Quate" - "rnionH\000R\nquaternion\032\017\n\rNoOrientation\032j\n\030" - "OrientationVectorRadians\022$\n\005theta\030\001 \001(\001B" - "\016\232\204\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001" - "y\030\003 \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032j\n\030OrientationV" - "ectorDegrees\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003\tjson:\"" - "th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014" - "\n\001z\030\004 \001(\001R\001z\032I\n\013EulerAngles\022\022\n\004roll\030\001 \001(" - "\001R\004roll\022\024\n\005pitch\030\002 \001(\001R\005pitch\022\020\n\003yaw\030\003 \001" - "(\001R\003yaw\032\\\n\nAxisAngles\022$\n\005theta\030\001 \001(\001B\016\232\204" - "\236\003\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003" - " \001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032D\n\nQuaternion\022\014\n\001w" - "\030\001 \001(\001R\001w\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n" - "\001z\030\004 \001(\001R\001zB\006\n\004type\"\365\003\n\014RemoteConfig\022\022\n\004" - "name\030\001 \001(\tR\004name\022\030\n\007address\030\002 \001(\tR\007addre" - "ss\022(\n\005frame\030\003 \001(\0132\022.viam.app.v1.FrameR\005f" - "rame\022+\n\004auth\030\004 \001(\0132\027.viam.app.v1.RemoteA" - "uthR\004auth\022\035\n\nmanaged_by\030\005 \001(\tR\tmanagedBy" - "\022\032\n\010insecure\030\006 \001(\010R\010insecure\022U\n\031connecti" - "on_check_interval\030\007 \001(\0132\031.google.protobu" - "f.DurationR\027connectionCheckInterval\022H\n\022r" - "econnect_interval\030\010 \001(\0132\031.google.protobu" - "f.DurationR\021reconnectInterval\022l\n\017service" - "_configs\030\t \003(\0132\'.viam.app.v1.ResourceLev" - "elServiceConfigB\032\232\204\236\003\025json:\"service_conf" - "ig\"R\016serviceConfigs\022\026\n\006secret\030\n \001(\tR\006sec" - "ret\"\306\001\n\nRemoteAuth\022E\n\013credentials\030\001 \001(\0132" - "#.viam.app.v1.RemoteAuth.CredentialsR\013cr" - "edentials\022\026\n\006entity\030\002 \001(\tR\006entity\032Y\n\013Cre" - "dentials\0220\n\004type\030\001 \001(\0162\034.viam.app.v1.Cre" - "dentialsTypeR\004type\022\030\n\007payload\030\002 \001(\tR\007pay" - "load\"\254\001\n\tAgentInfo\022\022\n\004host\030\001 \001(\tR\004host\022\016" - "\n\002os\030\002 \001(\tR\002os\022\020\n\003ips\030\003 \003(\tR\003ips\022\030\n\007vers" - "ion\030\004 \001(\tR\007version\022!\n\014git_revision\030\005 \001(\t" - "R\013gitRevision\022\037\n\010platform\030\006 \001(\tH\000R\010platf" - "orm\210\001\001B\013\n\t_platform\"j\n\rConfigRequest\022\016\n\002" - "id\030\001 \001(\tR\002id\022:\n\nagent_info\030\002 \001(\0132\026.viam." - "app.v1.AgentInfoH\000R\tagentInfo\210\001\001B\r\n\013_age" - "nt_info\"B\n\016ConfigResponse\0220\n\006config\030\001 \001(" - "\0132\030.viam.app.v1.RobotConfigR\006config\"$\n\022C" - "ertificateRequest\022\016\n\002id\030\001 \001(\tR\002id\"v\n\023Cer" - "tificateResponse\022\016\n\002id\030\001 \001(\tR\002id\022\'\n\017tls_" - "certificate\030\002 \001(\tR\016tlsCertificate\022&\n\017tls" - "_private_key\030\003 \001(\tR\rtlsPrivateKey\"G\n\nLog" - "Request\022\016\n\002id\030\001 \001(\tR\002id\022)\n\004logs\030\002 \003(\0132\025." - "viam.app.v1.LogEntryR\004logs\"\r\n\013LogRespons" - "e\"%\n\023NeedsRestartRequest\022\016\n\002id\030\001 \001(\tR\002id" - "\"\232\001\n\024NeedsRestartResponse\022\016\n\002id\030\001 \001(\tR\002i" - "d\022!\n\014must_restart\030\002 \001(\010R\013mustRestart\022O\n\026" - "restart_check_interval\030\003 \001(\0132\031.google.pr" - "otobuf.DurationR\024restartCheckInterval\"S\n" - "\014ModuleConfig\022\022\n\004name\030\001 \001(\tR\004name\022\022\n\004pat" - "h\030\002 \001(\tR\004path\022\033\n\tlog_level\030\003 \001(\tR\010logLev" - "el\"k\n\rPackageConfig\022\022\n\004name\030\001 \001(\tR\004name\022" - "\030\n\007package\030\002 \001(\tR\007package\022\030\n\007version\030\003 \001" - "(\tR\007version\022\022\n\004type\030\004 \001(\tR\004type*\277\001\n\017Cred" - "entialsType\022 \n\034CREDENTIALS_TYPE_UNSPECIF" - "IED\020\000\022\035\n\031CREDENTIALS_TYPE_INTERNAL\020\001\022\034\n\030" - "CREDENTIALS_TYPE_API_KEY\020\002\022!\n\035CREDENTIAL" - "S_TYPE_ROBOT_SECRET\020\003\022*\n&CREDENTIALS_TYP" - "E_ROBOT_LOCATION_SECRET\020\0042\262\002\n\014RobotServi" - "ce\022A\n\006Config\022\032.viam.app.v1.ConfigRequest" - "\032\033.viam.app.v1.ConfigResponse\022P\n\013Certifi" - "cate\022\037.viam.app.v1.CertificateRequest\032 ." - "viam.app.v1.CertificateResponse\0228\n\003Log\022\027" - ".viam.app.v1.LogRequest\032\030.viam.app.v1.Lo" - "gResponse\022S\n\014NeedsRestart\022 .viam.app.v1." - "NeedsRestartRequest\032!.viam.app.v1.NeedsR" - "estartResponseB\030Z\026go.viam.com/api/app/v1" - "b\006proto3" + "\001(\tR\002id\022\026\n\006secret\030\002 \001(\tR\006secret\"+\n\023AppVa" + "lidationStatus\022\024\n\005error\030\001 \001(\tR\005error\"\330\002\n" + "\013CloudConfig\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004fqdn\030\002 \001" + "(\tR\004fqdn\022\035\n\nlocal_fqdn\030\003 \001(\tR\tlocalFqdn\022" + "\035\n\nmanaged_by\030\004 \001(\tR\tmanagedBy\022+\n\021signal" + "ing_address\030\005 \001(\tR\020signalingAddress\022-\n\022s" + "ignaling_insecure\030\006 \001(\010R\021signalingInsecu" + "re\022+\n\017location_secret\030\007 \001(\tB\002\030\001R\016locatio" + "nSecret\022\026\n\006secret\030\010 \001(\tR\006secret\022F\n\020locat" + "ion_secrets\030\t \003(\0132\033.viam.app.v1.Location" + "SecretR\017locationSecrets\"\357\002\n\017ComponentCon" + "fig\022\022\n\004name\030\001 \001(\tR\004name\022\034\n\tnamespace\030\002 \001" + "(\tR\tnamespace\022\022\n\004type\030\003 \001(\tR\004type\022\024\n\005mod" + "el\030\004 \001(\tR\005model\022(\n\005frame\030\005 \001(\0132\022.viam.ap" + "p.v1.FrameR\005frame\022\035\n\ndepends_on\030\006 \003(\tR\td" + "ependsOn\022l\n\017service_configs\030\007 \003(\0132\'.viam" + ".app.v1.ResourceLevelServiceConfigB\032\232\204\236\003" + "\025json:\"service_config\"R\016serviceConfigs\0227" + "\n\nattributes\030\010 \001(\0132\027.google.protobuf.Str" + "uctR\nattributes\022\020\n\003api\030\t \001(\tR\003api\"i\n\032Res" + "ourceLevelServiceConfig\022\022\n\004type\030\001 \001(\tR\004t" + "ype\0227\n\nattributes\030\002 \001(\0132\027.google.protobu" + "f.StructR\nattributes\"\324\002\n\rProcessConfig\022\016" + "\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022\022\n\004ar" + "gs\030\003 \003(\tR\004args\022\020\n\003cwd\030\004 \001(\tR\003cwd\022\031\n\010one_" + "shot\030\005 \001(\010R\007oneShot\022\020\n\003log\030\006 \001(\010R\003log\022\037\n" + "\013stop_signal\030\007 \001(\005R\nstopSignal\022<\n\014stop_t" + "imeout\030\010 \001(\0132\031.google.protobuf.DurationR" + "\013stopTimeout\0225\n\003env\030\t \003(\0132#.viam.app.v1." + "ProcessConfig.EnvEntryR\003env\0326\n\010EnvEntry\022" + "\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:" + "\0028\001\"\303\002\n\rServiceConfig\022\022\n\004name\030\001 \001(\tR\004nam" + "e\022\034\n\tnamespace\030\002 \001(\tR\tnamespace\022\022\n\004type\030" + "\003 \001(\tR\004type\0227\n\nattributes\030\004 \001(\0132\027.google" + ".protobuf.StructR\nattributes\022\035\n\ndepends_" + "on\030\005 \003(\tR\tdependsOn\022\024\n\005model\030\006 \001(\tR\005mode" + "l\022\020\n\003api\030\t \001(\tR\003api\022l\n\017service_configs\030\n" + " \003(\0132\'.viam.app.v1.ResourceLevelServiceC" + "onfigB\032\232\204\236\003\025json:\"service_config\"R\016servi" + "ceConfigs\"\305\001\n\rNetworkConfig\022\022\n\004fqdn\030\001 \001(" + "\tR\004fqdn\022!\n\014bind_address\030\002 \001(\tR\013bindAddre" + "ss\022\"\n\rtls_cert_file\030\003 \001(\tR\013tlsCertFile\022 " + "\n\014tls_key_file\030\004 \001(\tR\ntlsKeyFile\0227\n\010sess" + "ions\030\005 \001(\0132\033.viam.app.v1.SessionsConfigR" + "\010sessions\"V\n\016SessionsConfig\022D\n\020heartbeat" + "_window\030\001 \001(\0132\031.google.protobuf.Duration" + "R\017heartbeatWindow\"\345\001\n\nAuthConfig\022:\n\010hand" + "lers\030\001 \003(\0132\036.viam.app.v1.AuthHandlerConf" + "igR\010handlers\022*\n\021tls_auth_entities\030\002 \003(\tR" + "\017tlsAuthEntities\022V\n\024external_auth_config" + "\030\003 \001(\0132\037.viam.app.v1.ExternalAuthConfigH" + "\000R\022externalAuthConfig\210\001\001B\027\n\025_external_au" + "th_config\"7\n\010JWKSFile\022+\n\004json\030\001 \001(\0132\027.go" + "ogle.protobuf.StructR\004json\"\?\n\022ExternalAu" + "thConfig\022)\n\004jwks\030\001 \001(\0132\025.viam.app.v1.JWK" + "SFileR\004jwks\"v\n\021AuthHandlerConfig\0220\n\004type" + "\030\001 \001(\0162\034.viam.app.v1.CredentialsTypeR\004ty" + "pe\022/\n\006config\030\005 \001(\0132\027.google.protobuf.Str" + "uctR\006config\"\315\001\n\005Frame\022\026\n\006parent\030\001 \001(\tR\006p" + "arent\022:\n\013translation\030\002 \001(\0132\030.viam.app.v1" + ".TranslationR\013translation\022:\n\013orientation" + "\030\003 \001(\0132\030.viam.app.v1.OrientationR\013orient" + "ation\0224\n\010geometry\030\004 \001(\0132\030.viam.common.v1" + ".GeometryR\010geometry\"7\n\013Translation\022\014\n\001x\030" + "\001 \001(\001R\001x\022\014\n\001y\030\002 \001(\001R\001y\022\014\n\001z\030\003 \001(\001R\001z\"\320\007\n" + "\013Orientation\022O\n\016no_orientation\030\001 \001(\0132&.v" + "iam.app.v1.Orientation.NoOrientationH\000R\r" + "noOrientation\022Z\n\016vector_radians\030\002 \001(\01321." + "viam.app.v1.Orientation.OrientationVecto" + "rRadiansH\000R\rvectorRadians\022Z\n\016vector_degr" + "ees\030\003 \001(\01321.viam.app.v1.Orientation.Orie" + "ntationVectorDegreesH\000R\rvectorDegrees\022I\n" + "\014euler_angles\030\004 \001(\0132$.viam.app.v1.Orient" + "ation.EulerAnglesH\000R\013eulerAngles\022F\n\013axis" + "_angles\030\005 \001(\0132#.viam.app.v1.Orientation." + "AxisAnglesH\000R\naxisAngles\022E\n\nquaternion\030\006" + " \001(\0132#.viam.app.v1.Orientation.Quaternio" + "nH\000R\nquaternion\032\017\n\rNoOrientation\032j\n\030Orie" + "ntationVectorRadians\022$\n\005theta\030\001 \001(\001B\016\232\204\236" + "\003\tjson:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 " + "\001(\001R\001y\022\014\n\001z\030\004 \001(\001R\001z\032j\n\030OrientationVecto" + "rDegrees\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003\tjson:\"th\"R" + "\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030" + "\004 \001(\001R\001z\032I\n\013EulerAngles\022\022\n\004roll\030\001 \001(\001R\004r" + "oll\022\024\n\005pitch\030\002 \001(\001R\005pitch\022\020\n\003yaw\030\003 \001(\001R\003" + "yaw\032\\\n\nAxisAngles\022$\n\005theta\030\001 \001(\001B\016\232\204\236\003\tj" + "son:\"th\"R\005theta\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001" + "R\001y\022\014\n\001z\030\004 \001(\001R\001z\032D\n\nQuaternion\022\014\n\001w\030\001 \001" + "(\001R\001w\022\014\n\001x\030\002 \001(\001R\001x\022\014\n\001y\030\003 \001(\001R\001y\022\014\n\001z\030\004" + " \001(\001R\001zB\006\n\004type\"\365\003\n\014RemoteConfig\022\022\n\004name" + "\030\001 \001(\tR\004name\022\030\n\007address\030\002 \001(\tR\007address\022(" + "\n\005frame\030\003 \001(\0132\022.viam.app.v1.FrameR\005frame" + "\022+\n\004auth\030\004 \001(\0132\027.viam.app.v1.RemoteAuthR" + "\004auth\022\035\n\nmanaged_by\030\005 \001(\tR\tmanagedBy\022\032\n\010" + "insecure\030\006 \001(\010R\010insecure\022U\n\031connection_c" + "heck_interval\030\007 \001(\0132\031.google.protobuf.Du" + "rationR\027connectionCheckInterval\022H\n\022recon" + "nect_interval\030\010 \001(\0132\031.google.protobuf.Du" + "rationR\021reconnectInterval\022l\n\017service_con" + "figs\030\t \003(\0132\'.viam.app.v1.ResourceLevelSe" + "rviceConfigB\032\232\204\236\003\025json:\"service_config\"R" + "\016serviceConfigs\022\026\n\006secret\030\n \001(\tR\006secret\"" + "\306\001\n\nRemoteAuth\022E\n\013credentials\030\001 \001(\0132#.vi" + "am.app.v1.RemoteAuth.CredentialsR\013creden" + "tials\022\026\n\006entity\030\002 \001(\tR\006entity\032Y\n\013Credent" + "ials\0220\n\004type\030\001 \001(\0162\034.viam.app.v1.Credent" + "ialsTypeR\004type\022\030\n\007payload\030\002 \001(\tR\007payload" + "\"\254\001\n\tAgentInfo\022\022\n\004host\030\001 \001(\tR\004host\022\016\n\002os" + "\030\002 \001(\tR\002os\022\020\n\003ips\030\003 \003(\tR\003ips\022\030\n\007version\030" + "\004 \001(\tR\007version\022!\n\014git_revision\030\005 \001(\tR\013gi" + "tRevision\022\037\n\010platform\030\006 \001(\tH\000R\010platform\210" + "\001\001B\013\n\t_platform\"j\n\rConfigRequest\022\016\n\002id\030\001" + " \001(\tR\002id\022:\n\nagent_info\030\002 \001(\0132\026.viam.app." + "v1.AgentInfoH\000R\tagentInfo\210\001\001B\r\n\013_agent_i" + "nfo\"B\n\016ConfigResponse\0220\n\006config\030\001 \001(\0132\030." + "viam.app.v1.RobotConfigR\006config\"$\n\022Certi" + "ficateRequest\022\016\n\002id\030\001 \001(\tR\002id\"v\n\023Certifi" + "cateResponse\022\016\n\002id\030\001 \001(\tR\002id\022\'\n\017tls_cert" + "ificate\030\002 \001(\tR\016tlsCertificate\022&\n\017tls_pri" + "vate_key\030\003 \001(\tR\rtlsPrivateKey\"G\n\nLogRequ" + "est\022\016\n\002id\030\001 \001(\tR\002id\022)\n\004logs\030\002 \003(\0132\025.viam" + ".app.v1.LogEntryR\004logs\"\r\n\013LogResponse\"%\n" + "\023NeedsRestartRequest\022\016\n\002id\030\001 \001(\tR\002id\"\232\001\n" + "\024NeedsRestartResponse\022\016\n\002id\030\001 \001(\tR\002id\022!\n" + "\014must_restart\030\002 \001(\010R\013mustRestart\022O\n\026rest" + "art_check_interval\030\003 \001(\0132\031.google.protob" + "uf.DurationR\024restartCheckInterval\"\254\002\n\014Mo" + "duleConfig\022\022\n\004name\030\001 \001(\tR\004name\022\022\n\004path\030\002" + " \001(\tR\004path\022\033\n\tlog_level\030\003 \001(\tR\010logLevel\022" + "\022\n\004type\030\004 \001(\tR\004type\022\033\n\tmodule_id\030\005 \001(\tR\010" + "moduleId\0224\n\003env\030\006 \003(\0132\".viam.app.v1.Modu" + "leConfig.EnvEntryR\003env\0228\n\006status\030\007 \001(\0132 " + ".viam.app.v1.AppValidationStatusR\006status" + "\0326\n\010EnvEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030" + "\002 \001(\tR\005value:\0028\001\"\245\001\n\rPackageConfig\022\022\n\004na" + "me\030\001 \001(\tR\004name\022\030\n\007package\030\002 \001(\tR\007package" + "\022\030\n\007version\030\003 \001(\tR\007version\022\022\n\004type\030\004 \001(\t" + "R\004type\0228\n\006status\030\005 \001(\0132 .viam.app.v1.App" + "ValidationStatusR\006status*\277\001\n\017Credentials" + "Type\022 \n\034CREDENTIALS_TYPE_UNSPECIFIED\020\000\022\035" + "\n\031CREDENTIALS_TYPE_INTERNAL\020\001\022\034\n\030CREDENT" + "IALS_TYPE_API_KEY\020\002\022!\n\035CREDENTIALS_TYPE_" + "ROBOT_SECRET\020\003\022*\n&CREDENTIALS_TYPE_ROBOT" + "_LOCATION_SECRET\020\0042\262\002\n\014RobotService\022A\n\006C" + "onfig\022\032.viam.app.v1.ConfigRequest\032\033.viam" + ".app.v1.ConfigResponse\022P\n\013Certificate\022\037." + "viam.app.v1.CertificateRequest\032 .viam.ap" + "p.v1.CertificateResponse\0228\n\003Log\022\027.viam.a" + "pp.v1.LogRequest\032\030.viam.app.v1.LogRespon" + "se\022S\n\014NeedsRestart\022 .viam.app.v1.NeedsRe" + "startRequest\032!.viam.app.v1.NeedsRestartR" + "esponseB\030Z\026go.viam.com/api/app/v1b\006proto" + "3" ; static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2frobot_2eproto_deps[5] = { &::descriptor_table_app_2fv1_2fapp_2eproto, @@ -1184,9 +1274,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_app_2fv1_2frobot_2e }; static ::_pbi::once_flag descriptor_table_app_2fv1_2frobot_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_app_2fv1_2frobot_2eproto = { - false, false, 6488, descriptor_table_protodef_app_2fv1_2frobot_2eproto, + false, false, 6921, descriptor_table_protodef_app_2fv1_2frobot_2eproto, "app/v1/robot.proto", - &descriptor_table_app_2fv1_2frobot_2eproto_once, descriptor_table_app_2fv1_2frobot_2eproto_deps, 5, 36, + &descriptor_table_app_2fv1_2frobot_2eproto_once, descriptor_table_app_2fv1_2frobot_2eproto_deps, 5, 39, schemas, file_default_instances, TableStruct_app_2fv1_2frobot_2eproto::offsets, file_level_metadata_app_2fv1_2frobot_2eproto, file_level_enum_descriptors_app_2fv1_2frobot_2eproto, file_level_service_descriptors_app_2fv1_2frobot_2eproto, @@ -2016,6 +2106,201 @@ ::PROTOBUF_NAMESPACE_ID::Metadata LocationSecret::GetMetadata() const { // =================================================================== +class AppValidationStatus::_Internal { + public: +}; + +AppValidationStatus::AppValidationStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.app.v1.AppValidationStatus) +} +AppValidationStatus::AppValidationStatus(const AppValidationStatus& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + error_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + error_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_error().empty()) { + error_.Set(from._internal_error(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:viam.app.v1.AppValidationStatus) +} + +inline void AppValidationStatus::SharedCtor() { +error_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + error_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AppValidationStatus::~AppValidationStatus() { + // @@protoc_insertion_point(destructor:viam.app.v1.AppValidationStatus) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AppValidationStatus::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + error_.Destroy(); +} + +void AppValidationStatus::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AppValidationStatus::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.app.v1.AppValidationStatus) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + error_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AppValidationStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string error = 1 [json_name = "error"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_error(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.AppValidationStatus.error")); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* AppValidationStatus::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.app.v1.AppValidationStatus) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string error = 1 [json_name = "error"]; + if (!this->_internal_error().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_error().data(), static_cast(this->_internal_error().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.AppValidationStatus.error"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_error(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.app.v1.AppValidationStatus) + return target; +} + +size_t AppValidationStatus::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.app.v1.AppValidationStatus) + 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 error = 1 [json_name = "error"]; + if (!this->_internal_error().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_error()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppValidationStatus::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AppValidationStatus::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppValidationStatus::GetClassData() const { return &_class_data_; } + +void AppValidationStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void AppValidationStatus::MergeFrom(const AppValidationStatus& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.app.v1.AppValidationStatus) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_error().empty()) { + _internal_set_error(from._internal_error()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AppValidationStatus::CopyFrom(const AppValidationStatus& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.app.v1.AppValidationStatus) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AppValidationStatus::IsInitialized() const { + return true; +} + +void AppValidationStatus::InternalSwap(AppValidationStatus* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &error_, lhs_arena, + &other->error_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AppValidationStatus::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[2]); +} + +// =================================================================== + class CloudConfig::_Internal { public: }; @@ -2553,7 +2838,7 @@ void CloudConfig::InternalSwap(CloudConfig* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CloudConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[2]); + file_level_metadata_app_2fv1_2frobot_2eproto[3]); } // =================================================================== @@ -3107,7 +3392,7 @@ void ComponentConfig::InternalSwap(ComponentConfig* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ComponentConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[3]); + file_level_metadata_app_2fv1_2frobot_2eproto[4]); } // =================================================================== @@ -3350,7 +3635,21 @@ void ResourceLevelServiceConfig::InternalSwap(ResourceLevelServiceConfig* other) ::PROTOBUF_NAMESPACE_ID::Metadata ResourceLevelServiceConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[4]); + file_level_metadata_app_2fv1_2frobot_2eproto[5]); +} + +// =================================================================== + +ProcessConfig_EnvEntry_DoNotUse::ProcessConfig_EnvEntry_DoNotUse() {} +ProcessConfig_EnvEntry_DoNotUse::ProcessConfig_EnvEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void ProcessConfig_EnvEntry_DoNotUse::MergeFrom(const ProcessConfig_EnvEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata ProcessConfig_EnvEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[6]); } // =================================================================== @@ -3373,14 +3672,19 @@ void ProcessConfig::clear_stop_timeout() { ProcessConfig::ProcessConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - args_(arena) { + args_(arena), + env_(arena) { SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &ProcessConfig::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:viam.app.v1.ProcessConfig) } ProcessConfig::ProcessConfig(const ProcessConfig& from) : ::PROTOBUF_NAMESPACE_ID::Message(), args_(from.args_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + env_.MergeFrom(from.env_); id_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING id_.Set("", GetArenaForAllocation()); @@ -3439,6 +3743,7 @@ ProcessConfig::~ProcessConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.ProcessConfig) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; + ArenaDtor(this); return; } SharedDtor(); @@ -3446,12 +3751,17 @@ ProcessConfig::~ProcessConfig() { inline void ProcessConfig::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + env_.Destruct(); id_.Destroy(); name_.Destroy(); cwd_.Destroy(); if (this != internal_default_instance()) delete stop_timeout_; } +void ProcessConfig::ArenaDtor(void* object) { + ProcessConfig* _this = reinterpret_cast< ProcessConfig* >(object); + _this->env_.Destruct(); +} void ProcessConfig::SetCachedSize(int size) const { _cached_size_.Set(size); } @@ -3463,6 +3773,7 @@ void ProcessConfig::Clear() { (void) cached_has_bits; args_.Clear(); + env_.Clear(); id_.ClearToEmpty(); name_.ClearToEmpty(); cwd_.ClearToEmpty(); @@ -3559,6 +3870,19 @@ const char* ProcessConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // map env = 9 [json_name = "env"]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&env_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -3653,6 +3977,36 @@ uint8_t* ProcessConfig::_InternalSerialize( _Internal::stop_timeout(this).GetCachedSize(), target, stream); } + // map env = 9 [json_name = "env"]; + if (!this->_internal_env().empty()) { + using MapType = ::_pb::Map; + using WireHelper = ProcessConfig_EnvEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_env(); + auto check_utf8 = [](const MapType::value_type& entry) { + (void)entry; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ProcessConfig.EnvEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ProcessConfig.EnvEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -3677,6 +4031,15 @@ size_t ProcessConfig::ByteSizeLong() const { args_.Get(i)); } + // map env = 9 [json_name = "env"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_env_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_env().begin(); + it != this->_internal_env().end(); ++it) { + total_size += ProcessConfig_EnvEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + // string id = 1 [json_name = "id"]; if (!this->_internal_id().empty()) { total_size += 1 + @@ -3743,6 +4106,7 @@ void ProcessConfig::MergeFrom(const ProcessConfig& from) { (void) cached_has_bits; args_.MergeFrom(from.args_); + env_.MergeFrom(from.env_); if (!from._internal_id().empty()) { _internal_set_id(from._internal_id()); } @@ -3784,6 +4148,7 @@ void ProcessConfig::InternalSwap(ProcessConfig* other) { auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); args_.InternalSwap(&other->args_); + env_.InternalSwap(&other->env_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &id_, lhs_arena, &other->id_, rhs_arena @@ -3807,7 +4172,7 @@ void ProcessConfig::InternalSwap(ProcessConfig* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ProcessConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[5]); + file_level_metadata_app_2fv1_2frobot_2eproto[7]); } // =================================================================== @@ -4313,7 +4678,7 @@ void ServiceConfig::InternalSwap(ServiceConfig* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ServiceConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[6]); + file_level_metadata_app_2fv1_2frobot_2eproto[8]); } // =================================================================== @@ -4694,7 +5059,7 @@ void NetworkConfig::InternalSwap(NetworkConfig* other) { ::PROTOBUF_NAMESPACE_ID::Metadata NetworkConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[7]); + file_level_metadata_app_2fv1_2frobot_2eproto[9]); } // =================================================================== @@ -4887,7 +5252,7 @@ void SessionsConfig::InternalSwap(SessionsConfig* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SessionsConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[8]); + file_level_metadata_app_2fv1_2frobot_2eproto[10]); } // =================================================================== @@ -5156,7 +5521,7 @@ void AuthConfig::InternalSwap(AuthConfig* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AuthConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[9]); + file_level_metadata_app_2fv1_2frobot_2eproto[11]); } // =================================================================== @@ -5349,7 +5714,7 @@ void JWKSFile::InternalSwap(JWKSFile* other) { ::PROTOBUF_NAMESPACE_ID::Metadata JWKSFile::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[10]); + file_level_metadata_app_2fv1_2frobot_2eproto[12]); } // =================================================================== @@ -5536,7 +5901,7 @@ void ExternalAuthConfig::InternalSwap(ExternalAuthConfig* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ExternalAuthConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[11]); + file_level_metadata_app_2fv1_2frobot_2eproto[13]); } // =================================================================== @@ -5764,7 +6129,7 @@ void AuthHandlerConfig::InternalSwap(AuthHandlerConfig* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AuthHandlerConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[12]); + file_level_metadata_app_2fv1_2frobot_2eproto[14]); } // =================================================================== @@ -6095,7 +6460,7 @@ void Frame::InternalSwap(Frame* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Frame::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[13]); + file_level_metadata_app_2fv1_2frobot_2eproto[15]); } // =================================================================== @@ -6358,7 +6723,7 @@ void Translation::InternalSwap(Translation* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Translation::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[14]); + file_level_metadata_app_2fv1_2frobot_2eproto[16]); } // =================================================================== @@ -6397,7 +6762,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Orientation_NoOrientation::Get ::PROTOBUF_NAMESPACE_ID::Metadata Orientation_NoOrientation::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[15]); + file_level_metadata_app_2fv1_2frobot_2eproto[17]); } // =================================================================== @@ -6694,7 +7059,7 @@ void Orientation_OrientationVectorRadians::InternalSwap(Orientation_OrientationV ::PROTOBUF_NAMESPACE_ID::Metadata Orientation_OrientationVectorRadians::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[16]); + file_level_metadata_app_2fv1_2frobot_2eproto[18]); } // =================================================================== @@ -6991,7 +7356,7 @@ void Orientation_OrientationVectorDegrees::InternalSwap(Orientation_OrientationV ::PROTOBUF_NAMESPACE_ID::Metadata Orientation_OrientationVectorDegrees::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[17]); + file_level_metadata_app_2fv1_2frobot_2eproto[19]); } // =================================================================== @@ -7254,7 +7619,7 @@ void Orientation_EulerAngles::InternalSwap(Orientation_EulerAngles* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Orientation_EulerAngles::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[18]); + file_level_metadata_app_2fv1_2frobot_2eproto[20]); } // =================================================================== @@ -7551,7 +7916,7 @@ void Orientation_AxisAngles::InternalSwap(Orientation_AxisAngles* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Orientation_AxisAngles::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[19]); + file_level_metadata_app_2fv1_2frobot_2eproto[21]); } // =================================================================== @@ -7848,7 +8213,7 @@ void Orientation_Quaternion::InternalSwap(Orientation_Quaternion* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Orientation_Quaternion::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[20]); + file_level_metadata_app_2fv1_2frobot_2eproto[22]); } // =================================================================== @@ -8363,7 +8728,7 @@ void Orientation::InternalSwap(Orientation* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Orientation::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[21]); + file_level_metadata_app_2fv1_2frobot_2eproto[23]); } // =================================================================== @@ -8941,7 +9306,7 @@ void RemoteConfig::InternalSwap(RemoteConfig* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RemoteConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[22]); + file_level_metadata_app_2fv1_2frobot_2eproto[24]); } // =================================================================== @@ -9165,7 +9530,7 @@ void RemoteAuth_Credentials::InternalSwap(RemoteAuth_Credentials* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RemoteAuth_Credentials::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[23]); + file_level_metadata_app_2fv1_2frobot_2eproto[25]); } // =================================================================== @@ -9402,7 +9767,7 @@ void RemoteAuth::InternalSwap(RemoteAuth* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RemoteAuth::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[24]); + file_level_metadata_app_2fv1_2frobot_2eproto[26]); } // =================================================================== @@ -9840,7 +10205,7 @@ void AgentInfo::InternalSwap(AgentInfo* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AgentInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[25]); + file_level_metadata_app_2fv1_2frobot_2eproto[27]); } // =================================================================== @@ -10088,7 +10453,7 @@ void ConfigRequest::InternalSwap(ConfigRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ConfigRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[26]); + file_level_metadata_app_2fv1_2frobot_2eproto[28]); } // =================================================================== @@ -10275,7 +10640,7 @@ void ConfigResponse::InternalSwap(ConfigResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ConfigResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[27]); + file_level_metadata_app_2fv1_2frobot_2eproto[29]); } // =================================================================== @@ -10470,7 +10835,7 @@ void CertificateRequest::InternalSwap(CertificateRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CertificateRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[28]); + file_level_metadata_app_2fv1_2frobot_2eproto[30]); } // =================================================================== @@ -10761,7 +11126,7 @@ void CertificateResponse::InternalSwap(CertificateResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CertificateResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[29]); + file_level_metadata_app_2fv1_2frobot_2eproto[31]); } // =================================================================== @@ -10992,7 +11357,7 @@ void LogRequest::InternalSwap(LogRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata LogRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[30]); + file_level_metadata_app_2fv1_2frobot_2eproto[32]); } // =================================================================== @@ -11031,7 +11396,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LogResponse::GetClassData() co ::PROTOBUF_NAMESPACE_ID::Metadata LogResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[31]); + file_level_metadata_app_2fv1_2frobot_2eproto[33]); } // =================================================================== @@ -11226,7 +11591,7 @@ void NeedsRestartRequest::InternalSwap(NeedsRestartRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata NeedsRestartRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[32]); + file_level_metadata_app_2fv1_2frobot_2eproto[34]); } // =================================================================== @@ -11501,24 +11866,48 @@ void NeedsRestartResponse::InternalSwap(NeedsRestartResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata NeedsRestartResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[33]); + file_level_metadata_app_2fv1_2frobot_2eproto[35]); +} + +// =================================================================== + +ModuleConfig_EnvEntry_DoNotUse::ModuleConfig_EnvEntry_DoNotUse() {} +ModuleConfig_EnvEntry_DoNotUse::ModuleConfig_EnvEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void ModuleConfig_EnvEntry_DoNotUse::MergeFrom(const ModuleConfig_EnvEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata ModuleConfig_EnvEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, + file_level_metadata_app_2fv1_2frobot_2eproto[36]); } // =================================================================== class ModuleConfig::_Internal { public: + static const ::viam::app::v1::AppValidationStatus& status(const ModuleConfig* msg); }; +const ::viam::app::v1::AppValidationStatus& +ModuleConfig::_Internal::status(const ModuleConfig* msg) { + return *msg->status_; +} ModuleConfig::ModuleConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + env_(arena) { SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &ModuleConfig::ArenaDtor); + } // @@protoc_insertion_point(arena_constructor:viam.app.v1.ModuleConfig) } ModuleConfig::ModuleConfig(const ModuleConfig& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + env_.MergeFrom(from.env_); name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING name_.Set("", GetArenaForAllocation()); @@ -11543,6 +11932,27 @@ ModuleConfig::ModuleConfig(const ModuleConfig& from) log_level_.Set(from._internal_log_level(), GetArenaForAllocation()); } + type_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_type().empty()) { + type_.Set(from._internal_type(), + GetArenaForAllocation()); + } + module_id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + module_id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_module_id().empty()) { + module_id_.Set(from._internal_module_id(), + GetArenaForAllocation()); + } + if (from._internal_has_status()) { + status_ = new ::viam::app::v1::AppValidationStatus(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.ModuleConfig) } @@ -11559,12 +11969,22 @@ log_level_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING log_level_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +type_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + type_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +module_id_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + module_id_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +status_ = nullptr; } ModuleConfig::~ModuleConfig() { // @@protoc_insertion_point(destructor:viam.app.v1.ModuleConfig) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; + ArenaDtor(this); return; } SharedDtor(); @@ -11572,11 +11992,19 @@ ModuleConfig::~ModuleConfig() { inline void ModuleConfig::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + env_.Destruct(); name_.Destroy(); path_.Destroy(); log_level_.Destroy(); + type_.Destroy(); + module_id_.Destroy(); + if (this != internal_default_instance()) delete status_; } +void ModuleConfig::ArenaDtor(void* object) { + ModuleConfig* _this = reinterpret_cast< ModuleConfig* >(object); + _this->env_.Destruct(); +} void ModuleConfig::SetCachedSize(int size) const { _cached_size_.Set(size); } @@ -11587,9 +12015,16 @@ void ModuleConfig::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + env_.Clear(); name_.ClearToEmpty(); path_.ClearToEmpty(); log_level_.ClearToEmpty(); + type_.ClearToEmpty(); + module_id_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -11629,6 +12064,47 @@ const char* ModuleConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // string type = 4 [json_name = "type"]; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_type(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ModuleConfig.type")); + } else + goto handle_unusual; + continue; + // string module_id = 5 [json_name = "moduleId"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_module_id(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.app.v1.ModuleConfig.module_id")); + } else + goto handle_unusual; + continue; + // map env = 6 [json_name = "env"]; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&env_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); + } else + goto handle_unusual; + continue; + // .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"]; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -11688,6 +12164,63 @@ uint8_t* ModuleConfig::_InternalSerialize( 3, this->_internal_log_level(), target); } + // string type = 4 [json_name = "type"]; + if (!this->_internal_type().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_type().data(), static_cast(this->_internal_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleConfig.type"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_type(), target); + } + + // string module_id = 5 [json_name = "moduleId"]; + if (!this->_internal_module_id().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_module_id().data(), static_cast(this->_internal_module_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleConfig.module_id"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_module_id(), target); + } + + // map env = 6 [json_name = "env"]; + if (!this->_internal_env().empty()) { + using MapType = ::_pb::Map; + using WireHelper = ModuleConfig_EnvEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_env(); + auto check_utf8 = [](const MapType::value_type& entry) { + (void)entry; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleConfig.EnvEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.app.v1.ModuleConfig.EnvEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + // .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"]; + if (this->_internal_has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::status(this), + _Internal::status(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -11704,6 +12237,15 @@ size_t ModuleConfig::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // map env = 6 [json_name = "env"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_env_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_env().begin(); + it != this->_internal_env().end(); ++it) { + total_size += ModuleConfig_EnvEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + // string name = 1 [json_name = "name"]; if (!this->_internal_name().empty()) { total_size += 1 + @@ -11725,6 +12267,27 @@ size_t ModuleConfig::ByteSizeLong() const { this->_internal_log_level()); } + // string type = 4 [json_name = "type"]; + if (!this->_internal_type().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_type()); + } + + // string module_id = 5 [json_name = "moduleId"]; + if (!this->_internal_module_id().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_module_id()); + } + + // .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"]; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } @@ -11747,6 +12310,7 @@ void ModuleConfig::MergeFrom(const ModuleConfig& from) { uint32_t cached_has_bits = 0; (void) cached_has_bits; + env_.MergeFrom(from.env_); if (!from._internal_name().empty()) { _internal_set_name(from._internal_name()); } @@ -11756,6 +12320,15 @@ void ModuleConfig::MergeFrom(const ModuleConfig& from) { if (!from._internal_log_level().empty()) { _internal_set_log_level(from._internal_log_level()); } + if (!from._internal_type().empty()) { + _internal_set_type(from._internal_type()); + } + if (!from._internal_module_id().empty()) { + _internal_set_module_id(from._internal_module_id()); + } + if (from._internal_has_status()) { + _internal_mutable_status()->::viam::app::v1::AppValidationStatus::MergeFrom(from._internal_status()); + } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -11775,6 +12348,7 @@ void ModuleConfig::InternalSwap(ModuleConfig* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + env_.InternalSwap(&other->env_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &name_, lhs_arena, &other->name_, rhs_arena @@ -11787,20 +12361,34 @@ void ModuleConfig::InternalSwap(ModuleConfig* other) { &log_level_, lhs_arena, &other->log_level_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &type_, lhs_arena, + &other->type_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &module_id_, lhs_arena, + &other->module_id_, rhs_arena + ); + swap(status_, other->status_); } ::PROTOBUF_NAMESPACE_ID::Metadata ModuleConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[34]); + file_level_metadata_app_2fv1_2frobot_2eproto[37]); } // =================================================================== class PackageConfig::_Internal { public: + static const ::viam::app::v1::AppValidationStatus& status(const PackageConfig* msg); }; +const ::viam::app::v1::AppValidationStatus& +PackageConfig::_Internal::status(const PackageConfig* msg) { + return *msg->status_; +} PackageConfig::PackageConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -11842,6 +12430,11 @@ PackageConfig::PackageConfig(const PackageConfig& from) type_.Set(from._internal_type(), GetArenaForAllocation()); } + if (from._internal_has_status()) { + status_ = new ::viam::app::v1::AppValidationStatus(*from.status_); + } else { + status_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.app.v1.PackageConfig) } @@ -11862,6 +12455,7 @@ type_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING type_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +status_ = nullptr; } PackageConfig::~PackageConfig() { @@ -11879,6 +12473,7 @@ inline void PackageConfig::SharedDtor() { package_.Destroy(); version_.Destroy(); type_.Destroy(); + if (this != internal_default_instance()) delete status_; } void PackageConfig::SetCachedSize(int size) const { @@ -11895,6 +12490,10 @@ void PackageConfig::Clear() { package_.ClearToEmpty(); version_.ClearToEmpty(); type_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -11944,6 +12543,14 @@ const char* PackageConfig::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"]; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -12013,6 +12620,13 @@ uint8_t* PackageConfig::_InternalSerialize( 4, this->_internal_type(), target); } + // .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"]; + if (this->_internal_has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::status(this), + _Internal::status(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -12057,6 +12671,13 @@ size_t PackageConfig::ByteSizeLong() const { this->_internal_type()); } + // .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"]; + if (this->_internal_has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } @@ -12091,6 +12712,9 @@ void PackageConfig::MergeFrom(const PackageConfig& from) { if (!from._internal_type().empty()) { _internal_set_type(from._internal_type()); } + if (from._internal_has_status()) { + _internal_mutable_status()->::viam::app::v1::AppValidationStatus::MergeFrom(from._internal_status()); + } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -12126,12 +12750,13 @@ void PackageConfig::InternalSwap(PackageConfig* other) { &type_, lhs_arena, &other->type_, rhs_arena ); + swap(status_, other->status_); } ::PROTOBUF_NAMESPACE_ID::Metadata PackageConfig::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_app_2fv1_2frobot_2eproto_getter, &descriptor_table_app_2fv1_2frobot_2eproto_once, - file_level_metadata_app_2fv1_2frobot_2eproto[35]); + file_level_metadata_app_2fv1_2frobot_2eproto[38]); } // @@protoc_insertion_point(namespace_scope) @@ -12147,6 +12772,10 @@ template<> PROTOBUF_NOINLINE ::viam::app::v1::LocationSecret* Arena::CreateMaybeMessage< ::viam::app::v1::LocationSecret >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::app::v1::LocationSecret >(arena); } +template<> PROTOBUF_NOINLINE ::viam::app::v1::AppValidationStatus* +Arena::CreateMaybeMessage< ::viam::app::v1::AppValidationStatus >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::AppValidationStatus >(arena); +} template<> PROTOBUF_NOINLINE ::viam::app::v1::CloudConfig* Arena::CreateMaybeMessage< ::viam::app::v1::CloudConfig >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::app::v1::CloudConfig >(arena); @@ -12159,6 +12788,10 @@ template<> PROTOBUF_NOINLINE ::viam::app::v1::ResourceLevelServiceConfig* Arena::CreateMaybeMessage< ::viam::app::v1::ResourceLevelServiceConfig >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::app::v1::ResourceLevelServiceConfig >(arena); } +template<> PROTOBUF_NOINLINE ::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse >(arena); +} template<> PROTOBUF_NOINLINE ::viam::app::v1::ProcessConfig* Arena::CreateMaybeMessage< ::viam::app::v1::ProcessConfig >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::app::v1::ProcessConfig >(arena); @@ -12275,6 +12908,10 @@ template<> PROTOBUF_NOINLINE ::viam::app::v1::NeedsRestartResponse* Arena::CreateMaybeMessage< ::viam::app::v1::NeedsRestartResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::app::v1::NeedsRestartResponse >(arena); } +template<> PROTOBUF_NOINLINE ::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse >(arena); +} template<> PROTOBUF_NOINLINE ::viam::app::v1::ModuleConfig* Arena::CreateMaybeMessage< ::viam::app::v1::ModuleConfig >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::app::v1::ModuleConfig >(arena); diff --git a/src/viam/api/app/v1/robot.pb.h b/src/viam/api/app/v1/robot.pb.h index f60efb8a9..d7392ff10 100644 --- a/src/viam/api/app/v1/robot.pb.h +++ b/src/viam/api/app/v1/robot.pb.h @@ -30,6 +30,9 @@ #include #include // IWYU pragma: export #include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include #include #include #include "app/v1/app.pb.h" @@ -57,6 +60,9 @@ namespace v1 { class AgentInfo; struct AgentInfoDefaultTypeInternal; extern AgentInfoDefaultTypeInternal _AgentInfo_default_instance_; +class AppValidationStatus; +struct AppValidationStatusDefaultTypeInternal; +extern AppValidationStatusDefaultTypeInternal _AppValidationStatus_default_instance_; class AuthConfig; struct AuthConfigDefaultTypeInternal; extern AuthConfigDefaultTypeInternal _AuthConfig_default_instance_; @@ -102,6 +108,9 @@ extern LogResponseDefaultTypeInternal _LogResponse_default_instance_; class ModuleConfig; struct ModuleConfigDefaultTypeInternal; extern ModuleConfigDefaultTypeInternal _ModuleConfig_default_instance_; +class ModuleConfig_EnvEntry_DoNotUse; +struct ModuleConfig_EnvEntry_DoNotUseDefaultTypeInternal; +extern ModuleConfig_EnvEntry_DoNotUseDefaultTypeInternal _ModuleConfig_EnvEntry_DoNotUse_default_instance_; class NeedsRestartRequest; struct NeedsRestartRequestDefaultTypeInternal; extern NeedsRestartRequestDefaultTypeInternal _NeedsRestartRequest_default_instance_; @@ -138,6 +147,9 @@ extern PackageConfigDefaultTypeInternal _PackageConfig_default_instance_; class ProcessConfig; struct ProcessConfigDefaultTypeInternal; extern ProcessConfigDefaultTypeInternal _ProcessConfig_default_instance_; +class ProcessConfig_EnvEntry_DoNotUse; +struct ProcessConfig_EnvEntry_DoNotUseDefaultTypeInternal; +extern ProcessConfig_EnvEntry_DoNotUseDefaultTypeInternal _ProcessConfig_EnvEntry_DoNotUse_default_instance_; class RemoteAuth; struct RemoteAuthDefaultTypeInternal; extern RemoteAuthDefaultTypeInternal _RemoteAuth_default_instance_; @@ -167,6 +179,7 @@ extern TranslationDefaultTypeInternal _Translation_default_instance_; } // namespace viam PROTOBUF_NAMESPACE_OPEN template<> ::viam::app::v1::AgentInfo* Arena::CreateMaybeMessage<::viam::app::v1::AgentInfo>(Arena*); +template<> ::viam::app::v1::AppValidationStatus* Arena::CreateMaybeMessage<::viam::app::v1::AppValidationStatus>(Arena*); template<> ::viam::app::v1::AuthConfig* Arena::CreateMaybeMessage<::viam::app::v1::AuthConfig>(Arena*); template<> ::viam::app::v1::AuthHandlerConfig* Arena::CreateMaybeMessage<::viam::app::v1::AuthHandlerConfig>(Arena*); template<> ::viam::app::v1::CertificateRequest* Arena::CreateMaybeMessage<::viam::app::v1::CertificateRequest>(Arena*); @@ -182,6 +195,7 @@ template<> ::viam::app::v1::LocationSecret* Arena::CreateMaybeMessage<::viam::ap template<> ::viam::app::v1::LogRequest* Arena::CreateMaybeMessage<::viam::app::v1::LogRequest>(Arena*); template<> ::viam::app::v1::LogResponse* Arena::CreateMaybeMessage<::viam::app::v1::LogResponse>(Arena*); template<> ::viam::app::v1::ModuleConfig* Arena::CreateMaybeMessage<::viam::app::v1::ModuleConfig>(Arena*); +template<> ::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::app::v1::ModuleConfig_EnvEntry_DoNotUse>(Arena*); template<> ::viam::app::v1::NeedsRestartRequest* Arena::CreateMaybeMessage<::viam::app::v1::NeedsRestartRequest>(Arena*); template<> ::viam::app::v1::NeedsRestartResponse* Arena::CreateMaybeMessage<::viam::app::v1::NeedsRestartResponse>(Arena*); template<> ::viam::app::v1::NetworkConfig* Arena::CreateMaybeMessage<::viam::app::v1::NetworkConfig>(Arena*); @@ -194,6 +208,7 @@ template<> ::viam::app::v1::Orientation_OrientationVectorRadians* Arena::CreateM template<> ::viam::app::v1::Orientation_Quaternion* Arena::CreateMaybeMessage<::viam::app::v1::Orientation_Quaternion>(Arena*); template<> ::viam::app::v1::PackageConfig* Arena::CreateMaybeMessage<::viam::app::v1::PackageConfig>(Arena*); template<> ::viam::app::v1::ProcessConfig* Arena::CreateMaybeMessage<::viam::app::v1::ProcessConfig>(Arena*); +template<> ::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::app::v1::ProcessConfig_EnvEntry_DoNotUse>(Arena*); template<> ::viam::app::v1::RemoteAuth* Arena::CreateMaybeMessage<::viam::app::v1::RemoteAuth>(Arena*); template<> ::viam::app::v1::RemoteAuth_Credentials* Arena::CreateMaybeMessage<::viam::app::v1::RemoteAuth_Credentials>(Arena*); template<> ::viam::app::v1::RemoteConfig* Arena::CreateMaybeMessage<::viam::app::v1::RemoteConfig>(Arena*); @@ -744,6 +759,154 @@ class LocationSecret final : }; // ------------------------------------------------------------------- +class AppValidationStatus final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.AppValidationStatus) */ { + public: + inline AppValidationStatus() : AppValidationStatus(nullptr) {} + ~AppValidationStatus() override; + explicit PROTOBUF_CONSTEXPR AppValidationStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AppValidationStatus(const AppValidationStatus& from); + AppValidationStatus(AppValidationStatus&& from) noexcept + : AppValidationStatus() { + *this = ::std::move(from); + } + + inline AppValidationStatus& operator=(const AppValidationStatus& from) { + CopyFrom(from); + return *this; + } + inline AppValidationStatus& operator=(AppValidationStatus&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const AppValidationStatus& default_instance() { + return *internal_default_instance(); + } + static inline const AppValidationStatus* internal_default_instance() { + return reinterpret_cast( + &_AppValidationStatus_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(AppValidationStatus& a, AppValidationStatus& b) { + a.Swap(&b); + } + inline void Swap(AppValidationStatus* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AppValidationStatus* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AppValidationStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AppValidationStatus& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AppValidationStatus& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AppValidationStatus* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.app.v1.AppValidationStatus"; + } + protected: + explicit AppValidationStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kErrorFieldNumber = 1, + }; + // string error = 1 [json_name = "error"]; + void clear_error(); + const std::string& error() const; + template + void set_error(ArgT0&& arg0, ArgT... args); + std::string* mutable_error(); + PROTOBUF_NODISCARD std::string* release_error(); + void set_allocated_error(std::string* error); + private: + const std::string& _internal_error() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_error(const std::string& value); + std::string* _internal_mutable_error(); + public: + + // @@protoc_insertion_point(class_scope:viam.app.v1.AppValidationStatus) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; +// ------------------------------------------------------------------- + class CloudConfig final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.CloudConfig) */ { public: @@ -792,7 +955,7 @@ class CloudConfig final : &_CloudConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 2; + 3; friend void swap(CloudConfig& a, CloudConfig& b) { a.Swap(&b); @@ -1067,7 +1230,7 @@ class ComponentConfig final : &_ComponentConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 4; friend void swap(ComponentConfig& a, ComponentConfig& b) { a.Swap(&b); @@ -1365,7 +1528,7 @@ class ResourceLevelServiceConfig final : &_ResourceLevelServiceConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 5; friend void swap(ResourceLevelServiceConfig& a, ResourceLevelServiceConfig& b) { a.Swap(&b); @@ -1485,6 +1648,34 @@ class ResourceLevelServiceConfig final : }; // ------------------------------------------------------------------- +class ProcessConfig_EnvEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ProcessConfig_EnvEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR ProcessConfig_EnvEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit ProcessConfig_EnvEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ProcessConfig_EnvEntry_DoNotUse& other); + static const ProcessConfig_EnvEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ProcessConfig_EnvEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "viam.app.v1.ProcessConfig.EnvEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "viam.app.v1.ProcessConfig.EnvEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; + +// ------------------------------------------------------------------- + class ProcessConfig final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ProcessConfig) */ { public: @@ -1533,7 +1724,7 @@ class ProcessConfig final : &_ProcessConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 7; friend void swap(ProcessConfig& a, ProcessConfig& b) { a.Swap(&b); @@ -1592,6 +1783,8 @@ class ProcessConfig final : protected: explicit ProcessConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; @@ -1601,10 +1794,12 @@ class ProcessConfig final : // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { kArgsFieldNumber = 3, + kEnvFieldNumber = 9, kIdFieldNumber = 1, kNameFieldNumber = 2, kCwdFieldNumber = 4, @@ -1637,6 +1832,23 @@ class ProcessConfig final : std::string* _internal_add_args(); public: + // map env = 9 [json_name = "env"]; + int env_size() const; + private: + int _internal_env_size() const; + public: + void clear_env(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_env() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_env(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + env() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_env(); + // string id = 1 [json_name = "id"]; void clear_id(); const std::string& id() const; @@ -1732,6 +1944,11 @@ class ProcessConfig final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField args_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + ProcessConfig_EnvEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> env_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cwd_; @@ -1792,7 +2009,7 @@ class ServiceConfig final : &_ServiceConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 8; friend void swap(ServiceConfig& a, ServiceConfig& b) { a.Swap(&b); @@ -2070,7 +2287,7 @@ class NetworkConfig final : &_NetworkConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 9; friend void swap(NetworkConfig& a, NetworkConfig& b) { a.Swap(&b); @@ -2286,7 +2503,7 @@ class SessionsConfig final : &_SessionsConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 10; friend void swap(SessionsConfig& a, SessionsConfig& b) { a.Swap(&b); @@ -2438,7 +2655,7 @@ class AuthConfig final : &_AuthConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 11; friend void swap(AuthConfig& a, AuthConfig& b) { a.Swap(&b); @@ -2637,7 +2854,7 @@ class JWKSFile final : &_JWKSFile_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 12; friend void swap(JWKSFile& a, JWKSFile& b) { a.Swap(&b); @@ -2789,7 +3006,7 @@ class ExternalAuthConfig final : &_ExternalAuthConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 13; friend void swap(ExternalAuthConfig& a, ExternalAuthConfig& b) { a.Swap(&b); @@ -2941,7 +3158,7 @@ class AuthHandlerConfig final : &_AuthHandlerConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 14; friend void swap(AuthHandlerConfig& a, AuthHandlerConfig& b) { a.Swap(&b); @@ -3104,7 +3321,7 @@ class Frame final : &_Frame_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 15; friend void swap(Frame& a, Frame& b) { a.Swap(&b); @@ -3312,7 +3529,7 @@ class Translation final : &_Translation_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 16; friend void swap(Translation& a, Translation& b) { a.Swap(&b); @@ -3476,7 +3693,7 @@ class Orientation_NoOrientation final : &_Orientation_NoOrientation_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 17; friend void swap(Orientation_NoOrientation& a, Orientation_NoOrientation& b) { a.Swap(&b); @@ -3593,7 +3810,7 @@ class Orientation_OrientationVectorRadians final : &_Orientation_OrientationVectorRadians_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 18; friend void swap(Orientation_OrientationVectorRadians& a, Orientation_OrientationVectorRadians& b) { a.Swap(&b); @@ -3769,7 +3986,7 @@ class Orientation_OrientationVectorDegrees final : &_Orientation_OrientationVectorDegrees_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 19; friend void swap(Orientation_OrientationVectorDegrees& a, Orientation_OrientationVectorDegrees& b) { a.Swap(&b); @@ -3945,7 +4162,7 @@ class Orientation_EulerAngles final : &_Orientation_EulerAngles_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 20; friend void swap(Orientation_EulerAngles& a, Orientation_EulerAngles& b) { a.Swap(&b); @@ -4110,7 +4327,7 @@ class Orientation_AxisAngles final : &_Orientation_AxisAngles_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 21; friend void swap(Orientation_AxisAngles& a, Orientation_AxisAngles& b) { a.Swap(&b); @@ -4286,7 +4503,7 @@ class Orientation_Quaternion final : &_Orientation_Quaternion_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 22; friend void swap(Orientation_Quaternion& a, Orientation_Quaternion& b) { a.Swap(&b); @@ -4472,7 +4689,7 @@ class Orientation final : &_Orientation_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 23; friend void swap(Orientation& a, Orientation& b) { a.Swap(&b); @@ -4748,7 +4965,7 @@ class RemoteConfig final : &_RemoteConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 24; friend void swap(RemoteConfig& a, RemoteConfig& b) { a.Swap(&b); @@ -5055,7 +5272,7 @@ class RemoteAuth_Credentials final : &_RemoteAuth_Credentials_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 25; friend void swap(RemoteAuth_Credentials& a, RemoteAuth_Credentials& b) { a.Swap(&b); @@ -5214,7 +5431,7 @@ class RemoteAuth final : &_RemoteAuth_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 26; friend void swap(RemoteAuth& a, RemoteAuth& b) { a.Swap(&b); @@ -5384,7 +5601,7 @@ class AgentInfo final : &_AgentInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 27; friend void swap(AgentInfo& a, AgentInfo& b) { a.Swap(&b); @@ -5627,7 +5844,7 @@ class ConfigRequest final : &_ConfigRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 28; friend void swap(ConfigRequest& a, ConfigRequest& b) { a.Swap(&b); @@ -5796,7 +6013,7 @@ class ConfigResponse final : &_ConfigResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 29; friend void swap(ConfigResponse& a, ConfigResponse& b) { a.Swap(&b); @@ -5948,7 +6165,7 @@ class CertificateRequest final : &_CertificateRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 30; friend void swap(CertificateRequest& a, CertificateRequest& b) { a.Swap(&b); @@ -6096,7 +6313,7 @@ class CertificateResponse final : &_CertificateResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 31; friend void swap(CertificateResponse& a, CertificateResponse& b) { a.Swap(&b); @@ -6276,7 +6493,7 @@ class LogRequest final : &_LogRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 32; friend void swap(LogRequest& a, LogRequest& b) { a.Swap(&b); @@ -6443,7 +6660,7 @@ class LogResponse final : &_LogResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 33; friend void swap(LogResponse& a, LogResponse& b) { a.Swap(&b); @@ -6560,7 +6777,7 @@ class NeedsRestartRequest final : &_NeedsRestartRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 34; friend void swap(NeedsRestartRequest& a, NeedsRestartRequest& b) { a.Swap(&b); @@ -6708,7 +6925,7 @@ class NeedsRestartResponse final : &_NeedsRestartResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 35; friend void swap(NeedsRestartResponse& a, NeedsRestartResponse& b) { a.Swap(&b); @@ -6839,6 +7056,34 @@ class NeedsRestartResponse final : }; // ------------------------------------------------------------------- +class ModuleConfig_EnvEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ModuleConfig_EnvEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR ModuleConfig_EnvEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit ModuleConfig_EnvEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ModuleConfig_EnvEntry_DoNotUse& other); + static const ModuleConfig_EnvEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ModuleConfig_EnvEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "viam.app.v1.ModuleConfig.EnvEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "viam.app.v1.ModuleConfig.EnvEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_app_2fv1_2frobot_2eproto; +}; + +// ------------------------------------------------------------------- + class ModuleConfig final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.app.v1.ModuleConfig) */ { public: @@ -6887,7 +7132,7 @@ class ModuleConfig final : &_ModuleConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 34; + 37; friend void swap(ModuleConfig& a, ModuleConfig& b) { a.Swap(&b); @@ -6946,6 +7191,8 @@ class ModuleConfig final : protected: explicit ModuleConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; @@ -6955,13 +7202,35 @@ class ModuleConfig final : // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { + kEnvFieldNumber = 6, kNameFieldNumber = 1, kPathFieldNumber = 2, kLogLevelFieldNumber = 3, + kTypeFieldNumber = 4, + kModuleIdFieldNumber = 5, + kStatusFieldNumber = 7, }; + // map env = 6 [json_name = "env"]; + int env_size() const; + private: + int _internal_env_size() const; + public: + void clear_env(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_env() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_env(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + env() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_env(); + // string name = 1 [json_name = "name"]; void clear_name(); const std::string& name() const; @@ -7004,6 +7273,52 @@ class ModuleConfig final : std::string* _internal_mutable_log_level(); public: + // string type = 4 [json_name = "type"]; + void clear_type(); + const std::string& type() const; + template + void set_type(ArgT0&& arg0, ArgT... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* type); + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); + std::string* _internal_mutable_type(); + public: + + // string module_id = 5 [json_name = "moduleId"]; + void clear_module_id(); + const std::string& module_id() const; + template + void set_module_id(ArgT0&& arg0, ArgT... args); + std::string* mutable_module_id(); + PROTOBUF_NODISCARD std::string* release_module_id(); + void set_allocated_module_id(std::string* module_id); + private: + const std::string& _internal_module_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_module_id(const std::string& value); + std::string* _internal_mutable_module_id(); + public: + + // .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"]; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::viam::app::v1::AppValidationStatus& status() const; + PROTOBUF_NODISCARD ::viam::app::v1::AppValidationStatus* release_status(); + ::viam::app::v1::AppValidationStatus* mutable_status(); + void set_allocated_status(::viam::app::v1::AppValidationStatus* status); + private: + const ::viam::app::v1::AppValidationStatus& _internal_status() const; + ::viam::app::v1::AppValidationStatus* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::viam::app::v1::AppValidationStatus* status); + ::viam::app::v1::AppValidationStatus* unsafe_arena_release_status(); + // @@protoc_insertion_point(class_scope:viam.app.v1.ModuleConfig) private: class _Internal; @@ -7011,9 +7326,17 @@ class ModuleConfig final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + ModuleConfig_EnvEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> env_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr log_level_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr module_id_; + ::viam::app::v1::AppValidationStatus* status_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; }; @@ -7067,7 +7390,7 @@ class PackageConfig final : &_PackageConfig_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 38; friend void swap(PackageConfig& a, PackageConfig& b) { a.Swap(&b); @@ -7142,6 +7465,7 @@ class PackageConfig final : kPackageFieldNumber = 2, kVersionFieldNumber = 3, kTypeFieldNumber = 4, + kStatusFieldNumber = 5, }; // string name = 1 [json_name = "name"]; void clear_name(); @@ -7199,6 +7523,24 @@ class PackageConfig final : std::string* _internal_mutable_type(); public: + // .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"]; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + const ::viam::app::v1::AppValidationStatus& status() const; + PROTOBUF_NODISCARD ::viam::app::v1::AppValidationStatus* release_status(); + ::viam::app::v1::AppValidationStatus* mutable_status(); + void set_allocated_status(::viam::app::v1::AppValidationStatus* status); + private: + const ::viam::app::v1::AppValidationStatus& _internal_status() const; + ::viam::app::v1::AppValidationStatus* _internal_mutable_status(); + public: + void unsafe_arena_set_allocated_status( + ::viam::app::v1::AppValidationStatus* status); + ::viam::app::v1::AppValidationStatus* unsafe_arena_release_status(); + // @@protoc_insertion_point(class_scope:viam.app.v1.PackageConfig) private: class _Internal; @@ -7210,6 +7552,7 @@ class PackageConfig final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr package_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; + ::viam::app::v1::AppValidationStatus* status_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_app_2fv1_2frobot_2eproto; }; @@ -7896,6 +8239,60 @@ inline void LocationSecret::set_allocated_secret(std::string* secret) { // ------------------------------------------------------------------- +// AppValidationStatus + +// string error = 1 [json_name = "error"]; +inline void AppValidationStatus::clear_error() { + error_.ClearToEmpty(); +} +inline const std::string& AppValidationStatus::error() const { + // @@protoc_insertion_point(field_get:viam.app.v1.AppValidationStatus.error) + return _internal_error(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AppValidationStatus::set_error(ArgT0&& arg0, ArgT... args) { + + error_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.AppValidationStatus.error) +} +inline std::string* AppValidationStatus::mutable_error() { + std::string* _s = _internal_mutable_error(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.AppValidationStatus.error) + return _s; +} +inline const std::string& AppValidationStatus::_internal_error() const { + return error_.Get(); +} +inline void AppValidationStatus::_internal_set_error(const std::string& value) { + + error_.Set(value, GetArenaForAllocation()); +} +inline std::string* AppValidationStatus::_internal_mutable_error() { + + return error_.Mutable(GetArenaForAllocation()); +} +inline std::string* AppValidationStatus::release_error() { + // @@protoc_insertion_point(field_release:viam.app.v1.AppValidationStatus.error) + return error_.Release(); +} +inline void AppValidationStatus::set_allocated_error(std::string* error) { + if (error != nullptr) { + + } else { + + } + error_.SetAllocated(error, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (error_.IsDefault()) { + error_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.AppValidationStatus.error) +} + +// ------------------------------------------------------------------- + // CloudConfig // string id = 1 [json_name = "id"]; @@ -8993,6 +9390,8 @@ inline void ResourceLevelServiceConfig::set_allocated_attributes(::PROTOBUF_NAME // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // ProcessConfig // string id = 1 [json_name = "id"]; @@ -9365,6 +9764,35 @@ inline void ProcessConfig::set_allocated_stop_timeout(::PROTOBUF_NAMESPACE_ID::D // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ProcessConfig.stop_timeout) } +// map env = 9 [json_name = "env"]; +inline int ProcessConfig::_internal_env_size() const { + return env_.size(); +} +inline int ProcessConfig::env_size() const { + return _internal_env_size(); +} +inline void ProcessConfig::clear_env() { + env_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ProcessConfig::_internal_env() const { + return env_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ProcessConfig::env() const { + // @@protoc_insertion_point(field_map:viam.app.v1.ProcessConfig.env) + return _internal_env(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ProcessConfig::_internal_mutable_env() { + return env_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ProcessConfig::mutable_env() { + // @@protoc_insertion_point(field_mutable_map:viam.app.v1.ProcessConfig.env) + return _internal_mutable_env(); +} + // ------------------------------------------------------------------- // ServiceConfig @@ -13882,6 +14310,8 @@ inline void NeedsRestartResponse::set_allocated_restart_check_interval(::PROTOBU // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // ModuleConfig // string name = 1 [json_name = "name"]; @@ -14034,6 +14464,225 @@ inline void ModuleConfig::set_allocated_log_level(std::string* log_level) { // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleConfig.log_level) } +// string type = 4 [json_name = "type"]; +inline void ModuleConfig::clear_type() { + type_.ClearToEmpty(); +} +inline const std::string& ModuleConfig::type() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleConfig.type) + return _internal_type(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleConfig::set_type(ArgT0&& arg0, ArgT... args) { + + type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ModuleConfig.type) +} +inline std::string* ModuleConfig::mutable_type() { + std::string* _s = _internal_mutable_type(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleConfig.type) + return _s; +} +inline const std::string& ModuleConfig::_internal_type() const { + return type_.Get(); +} +inline void ModuleConfig::_internal_set_type(const std::string& value) { + + type_.Set(value, GetArenaForAllocation()); +} +inline std::string* ModuleConfig::_internal_mutable_type() { + + return type_.Mutable(GetArenaForAllocation()); +} +inline std::string* ModuleConfig::release_type() { + // @@protoc_insertion_point(field_release:viam.app.v1.ModuleConfig.type) + return type_.Release(); +} +inline void ModuleConfig::set_allocated_type(std::string* type) { + if (type != nullptr) { + + } else { + + } + type_.SetAllocated(type, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (type_.IsDefault()) { + type_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleConfig.type) +} + +// string module_id = 5 [json_name = "moduleId"]; +inline void ModuleConfig::clear_module_id() { + module_id_.ClearToEmpty(); +} +inline const std::string& ModuleConfig::module_id() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleConfig.module_id) + return _internal_module_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ModuleConfig::set_module_id(ArgT0&& arg0, ArgT... args) { + + module_id_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.app.v1.ModuleConfig.module_id) +} +inline std::string* ModuleConfig::mutable_module_id() { + std::string* _s = _internal_mutable_module_id(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleConfig.module_id) + return _s; +} +inline const std::string& ModuleConfig::_internal_module_id() const { + return module_id_.Get(); +} +inline void ModuleConfig::_internal_set_module_id(const std::string& value) { + + module_id_.Set(value, GetArenaForAllocation()); +} +inline std::string* ModuleConfig::_internal_mutable_module_id() { + + return module_id_.Mutable(GetArenaForAllocation()); +} +inline std::string* ModuleConfig::release_module_id() { + // @@protoc_insertion_point(field_release:viam.app.v1.ModuleConfig.module_id) + return module_id_.Release(); +} +inline void ModuleConfig::set_allocated_module_id(std::string* module_id) { + if (module_id != nullptr) { + + } else { + + } + module_id_.SetAllocated(module_id, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (module_id_.IsDefault()) { + module_id_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleConfig.module_id) +} + +// map env = 6 [json_name = "env"]; +inline int ModuleConfig::_internal_env_size() const { + return env_.size(); +} +inline int ModuleConfig::env_size() const { + return _internal_env_size(); +} +inline void ModuleConfig::clear_env() { + env_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ModuleConfig::_internal_env() const { + return env_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ModuleConfig::env() const { + // @@protoc_insertion_point(field_map:viam.app.v1.ModuleConfig.env) + return _internal_env(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ModuleConfig::_internal_mutable_env() { + return env_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ModuleConfig::mutable_env() { + // @@protoc_insertion_point(field_mutable_map:viam.app.v1.ModuleConfig.env) + return _internal_mutable_env(); +} + +// .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"]; +inline bool ModuleConfig::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline bool ModuleConfig::has_status() const { + return _internal_has_status(); +} +inline void ModuleConfig::clear_status() { + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +inline const ::viam::app::v1::AppValidationStatus& ModuleConfig::_internal_status() const { + const ::viam::app::v1::AppValidationStatus* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_AppValidationStatus_default_instance_); +} +inline const ::viam::app::v1::AppValidationStatus& ModuleConfig::status() const { + // @@protoc_insertion_point(field_get:viam.app.v1.ModuleConfig.status) + return _internal_status(); +} +inline void ModuleConfig::unsafe_arena_set_allocated_status( + ::viam::app::v1::AppValidationStatus* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + status_ = status; + if (status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.ModuleConfig.status) +} +inline ::viam::app::v1::AppValidationStatus* ModuleConfig::release_status() { + + ::viam::app::v1::AppValidationStatus* temp = status_; + status_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::AppValidationStatus* ModuleConfig::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_release:viam.app.v1.ModuleConfig.status) + + ::viam::app::v1::AppValidationStatus* temp = status_; + status_ = nullptr; + return temp; +} +inline ::viam::app::v1::AppValidationStatus* ModuleConfig::_internal_mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::AppValidationStatus>(GetArenaForAllocation()); + status_ = p; + } + return status_; +} +inline ::viam::app::v1::AppValidationStatus* ModuleConfig::mutable_status() { + ::viam::app::v1::AppValidationStatus* _msg = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.ModuleConfig.status) + return _msg; +} +inline void ModuleConfig::set_allocated_status(::viam::app::v1::AppValidationStatus* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete status_; + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(status); + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.ModuleConfig.status) +} + // ------------------------------------------------------------------- // PackageConfig @@ -14238,6 +14887,96 @@ inline void PackageConfig::set_allocated_type(std::string* type) { // @@protoc_insertion_point(field_set_allocated:viam.app.v1.PackageConfig.type) } +// .viam.app.v1.AppValidationStatus status = 5 [json_name = "status"]; +inline bool PackageConfig::_internal_has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline bool PackageConfig::has_status() const { + return _internal_has_status(); +} +inline void PackageConfig::clear_status() { + if (GetArenaForAllocation() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +inline const ::viam::app::v1::AppValidationStatus& PackageConfig::_internal_status() const { + const ::viam::app::v1::AppValidationStatus* p = status_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::app::v1::_AppValidationStatus_default_instance_); +} +inline const ::viam::app::v1::AppValidationStatus& PackageConfig::status() const { + // @@protoc_insertion_point(field_get:viam.app.v1.PackageConfig.status) + return _internal_status(); +} +inline void PackageConfig::unsafe_arena_set_allocated_status( + ::viam::app::v1::AppValidationStatus* status) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + status_ = status; + if (status) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.app.v1.PackageConfig.status) +} +inline ::viam::app::v1::AppValidationStatus* PackageConfig::release_status() { + + ::viam::app::v1::AppValidationStatus* temp = status_; + status_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::app::v1::AppValidationStatus* PackageConfig::unsafe_arena_release_status() { + // @@protoc_insertion_point(field_release:viam.app.v1.PackageConfig.status) + + ::viam::app::v1::AppValidationStatus* temp = status_; + status_ = nullptr; + return temp; +} +inline ::viam::app::v1::AppValidationStatus* PackageConfig::_internal_mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::app::v1::AppValidationStatus>(GetArenaForAllocation()); + status_ = p; + } + return status_; +} +inline ::viam::app::v1::AppValidationStatus* PackageConfig::mutable_status() { + ::viam::app::v1::AppValidationStatus* _msg = _internal_mutable_status(); + // @@protoc_insertion_point(field_mutable:viam.app.v1.PackageConfig.status) + return _msg; +} +inline void PackageConfig::set_allocated_status(::viam::app::v1::AppValidationStatus* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete status_; + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(status); + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:viam.app.v1.PackageConfig.status) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -14311,6 +15050,12 @@ inline void PackageConfig::set_allocated_type(std::string* type) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/buf.lock b/src/viam/api/buf.lock index 503b75111..883954b76 100644 --- a/src/viam/api/buf.lock +++ b/src/viam/api/buf.lock @@ -8,7 +8,7 @@ deps: - remote: buf.build owner: viamrobotics repository: api - commit: 28bca33607b84feb999c17dfe6298436 + commit: db4372e839fc4ddab817a38a397686fb - remote: buf.build owner: viamrobotics repository: goutils diff --git a/src/viam/api/common/v1/common.pb.cc b/src/viam/api/common/v1/common.pb.cc index 15deb5d1b..7b87c5da9 100644 --- a/src/viam/api/common/v1/common.pb.cc +++ b/src/viam/api/common/v1/common.pb.cc @@ -388,10 +388,46 @@ struct GetGeometriesResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetGeometriesResponseDefaultTypeInternal _GetGeometriesResponse_default_instance_; +PROTOBUF_CONSTEXPR GetReadingsRequest::GetReadingsRequest( + ::_pbi::ConstantInitialized) + : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) + , extra_(nullptr){} +struct GetReadingsRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetReadingsRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetReadingsRequestDefaultTypeInternal() {} + union { + GetReadingsRequest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsRequestDefaultTypeInternal _GetReadingsRequest_default_instance_; +PROTOBUF_CONSTEXPR GetReadingsResponse_ReadingsEntry_DoNotUse::GetReadingsResponse_ReadingsEntry_DoNotUse( + ::_pbi::ConstantInitialized){} +struct GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal() {} + union { + GetReadingsResponse_ReadingsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal _GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR GetReadingsResponse::GetReadingsResponse( + ::_pbi::ConstantInitialized) + : readings_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} +struct GetReadingsResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetReadingsResponseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~GetReadingsResponseDefaultTypeInternal() {} + union { + GetReadingsResponse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_instance_; } // namespace v1 } // namespace common } // namespace viam -static ::_pb::Metadata file_level_metadata_common_2fv1_2fcommon_2eproto[28]; +static ::_pb::Metadata file_level_metadata_common_2fv1_2fcommon_2eproto[31]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_common_2fv1_2fcommon_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_common_2fv1_2fcommon_2eproto = nullptr; @@ -635,6 +671,31 @@ const uint32_t TableStruct_common_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECT ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetGeometriesResponse, geometries_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsRequest, name_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsRequest, extra_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::common::v1::GetReadingsResponse, readings_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::viam::common::v1::ResourceName)}, @@ -665,6 +726,9 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 216, -1, -1, sizeof(::viam::common::v1::GetKinematicsResponse)}, { 224, -1, -1, sizeof(::viam::common::v1::GetGeometriesRequest)}, { 232, -1, -1, sizeof(::viam::common::v1::GetGeometriesResponse)}, + { 239, -1, -1, sizeof(::viam::common::v1::GetReadingsRequest)}, + { 247, 255, -1, sizeof(::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse)}, + { 257, -1, -1, sizeof(::viam::common::v1::GetReadingsResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -696,6 +760,9 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::common::v1::_GetKinematicsResponse_default_instance_._instance, &::viam::common::v1::_GetGeometriesRequest_default_instance_._instance, &::viam::common::v1::_GetGeometriesResponse_default_instance_._instance, + &::viam::common::v1::_GetReadingsRequest_default_instance_._instance, + &::viam::common::v1::_GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_._instance, + &::viam::common::v1::_GetReadingsResponse_default_instance_._instance, }; const char descriptor_table_protodef_common_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -774,14 +841,21 @@ const char descriptor_table_protodef_common_2fv1_2fcommon_2eproto[] PROTOBUF_SEC "\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027.google.prot" "obuf.StructR\005extra\"Q\n\025GetGeometriesRespo" "nse\0228\n\ngeometries\030\001 \003(\0132\030.viam.common.v1" - ".GeometryR\ngeometries*\177\n\024KinematicsFileF" - "ormat\022&\n\"KINEMATICS_FILE_FORMAT_UNSPECIF" - "IED\020\000\022\036\n\032KINEMATICS_FILE_FORMAT_SVA\020\001\022\037\n" - "\033KINEMATICS_FILE_FORMAT_URDF\020\002:a\n\032safety" - "_heartbeat_monitored\022\036.google.protobuf.M" - "ethodOptions\030\244\222\005 \001(\010R\030safetyHeartbeatMon" - "itored\210\001\001B/\n\022com.viam.common.v1Z\031go.viam" - ".com/api/common/v1b\006proto3" + ".GeometryR\ngeometries\"W\n\022GetReadingsRequ" + "est\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(\0132\027" + ".google.protobuf.StructR\005extra\"\271\001\n\023GetRe" + "adingsResponse\022M\n\010readings\030\001 \003(\01321.viam." + "common.v1.GetReadingsResponse.ReadingsEn" + "tryR\010readings\032S\n\rReadingsEntry\022\020\n\003key\030\001 " + "\001(\tR\003key\022,\n\005value\030\002 \001(\0132\026.google.protobu" + "f.ValueR\005value:\0028\001*\177\n\024KinematicsFileForm" + "at\022&\n\"KINEMATICS_FILE_FORMAT_UNSPECIFIED" + "\020\000\022\036\n\032KINEMATICS_FILE_FORMAT_SVA\020\001\022\037\n\033KI" + "NEMATICS_FILE_FORMAT_URDF\020\002:a\n\032safety_he" + "artbeat_monitored\022\036.google.protobuf.Meth" + "odOptions\030\244\222\005 \001(\010R\030safetyHeartbeatMonito" + "red\210\001\001B/\n\022com.viam.common.v1Z\031go.viam.co" + "m/api/common/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_common_2fv1_2fcommon_2eproto_deps[3] = { &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, @@ -790,9 +864,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_common_2fv1_2fcommo }; static ::_pbi::once_flag descriptor_table_common_2fv1_2fcommon_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_common_2fv1_2fcommon_2eproto = { - false, false, 3306, descriptor_table_protodef_common_2fv1_2fcommon_2eproto, + false, false, 3583, descriptor_table_protodef_common_2fv1_2fcommon_2eproto, "common/v1/common.proto", - &descriptor_table_common_2fv1_2fcommon_2eproto_once, descriptor_table_common_2fv1_2fcommon_2eproto_deps, 3, 28, + &descriptor_table_common_2fv1_2fcommon_2eproto_once, descriptor_table_common_2fv1_2fcommon_2eproto_deps, 3, 31, schemas, file_default_instances, TableStruct_common_2fv1_2fcommon_2eproto::offsets, file_level_metadata_common_2fv1_2fcommon_2eproto, file_level_enum_descriptors_common_2fv1_2fcommon_2eproto, file_level_service_descriptors_common_2fv1_2fcommon_2eproto, @@ -7134,6 +7208,473 @@ ::PROTOBUF_NAMESPACE_ID::Metadata GetGeometriesResponse::GetMetadata() const { &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, file_level_metadata_common_2fv1_2fcommon_2eproto[27]); } + +// =================================================================== + +class GetReadingsRequest::_Internal { + public: + static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetReadingsRequest* msg); +}; + +const ::PROTOBUF_NAMESPACE_ID::Struct& +GetReadingsRequest::_Internal::extra(const GetReadingsRequest* msg) { + return *msg->extra_; +} +void GetReadingsRequest::clear_extra() { + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; +} +GetReadingsRequest::GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.common.v1.GetReadingsRequest) +} +GetReadingsRequest::GetReadingsRequest(const GetReadingsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + name_.Set(from._internal_name(), + GetArenaForAllocation()); + } + if (from._internal_has_extra()) { + extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); + } else { + extra_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.common.v1.GetReadingsRequest) +} + +inline void GetReadingsRequest::SharedCtor() { +name_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +extra_ = nullptr; +} + +GetReadingsRequest::~GetReadingsRequest() { + // @@protoc_insertion_point(destructor:viam.common.v1.GetReadingsRequest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void GetReadingsRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + name_.Destroy(); + if (this != internal_default_instance()) delete extra_; +} + +void GetReadingsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetReadingsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.GetReadingsRequest) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { + delete extra_; + } + extra_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetReadingsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1 [json_name = "name"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "viam.common.v1.GetReadingsRequest.name")); + } else + goto handle_unusual; + continue; + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + case 99: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetReadingsRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.GetReadingsRequest) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1 [json_name = "name"]; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.GetReadingsRequest.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(99, _Internal::extra(this), + _Internal::extra(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.common.v1.GetReadingsRequest) + return target; +} + +size_t GetReadingsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.GetReadingsRequest) + 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 [json_name = "name"]; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + if (this->_internal_has_extra()) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extra_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReadingsRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetReadingsRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetReadingsRequest::GetClassData() const { return &_class_data_; } + +void GetReadingsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetReadingsRequest::MergeFrom(const GetReadingsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GetReadingsRequest) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _internal_set_name(from._internal_name()); + } + if (from._internal_has_extra()) { + _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetReadingsRequest::CopyFrom(const GetReadingsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.GetReadingsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetReadingsRequest::IsInitialized() const { + return true; +} + +void GetReadingsRequest::InternalSwap(GetReadingsRequest* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &name_, lhs_arena, + &other->name_, rhs_arena + ); + swap(extra_, other->extra_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsRequest::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, + file_level_metadata_common_2fv1_2fcommon_2eproto[28]); +} + +// =================================================================== + +GetReadingsResponse_ReadingsEntry_DoNotUse::GetReadingsResponse_ReadingsEntry_DoNotUse() {} +GetReadingsResponse_ReadingsEntry_DoNotUse::GetReadingsResponse_ReadingsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void GetReadingsResponse_ReadingsEntry_DoNotUse::MergeFrom(const GetReadingsResponse_ReadingsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsResponse_ReadingsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, + file_level_metadata_common_2fv1_2fcommon_2eproto[29]); +} + +// =================================================================== + +class GetReadingsResponse::_Internal { + public: +}; + +void GetReadingsResponse::clear_readings() { + readings_.Clear(); +} +GetReadingsResponse::GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + readings_(arena) { + SharedCtor(); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &GetReadingsResponse::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:viam.common.v1.GetReadingsResponse) +} +GetReadingsResponse::GetReadingsResponse(const GetReadingsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + readings_.MergeFrom(from.readings_); + // @@protoc_insertion_point(copy_constructor:viam.common.v1.GetReadingsResponse) +} + +inline void GetReadingsResponse::SharedCtor() { +} + +GetReadingsResponse::~GetReadingsResponse() { + // @@protoc_insertion_point(destructor:viam.common.v1.GetReadingsResponse) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void GetReadingsResponse::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + readings_.Destruct(); +} + +void GetReadingsResponse::ArenaDtor(void* object) { + GetReadingsResponse* _this = reinterpret_cast< GetReadingsResponse* >(object); + _this->readings_.Destruct(); +} +void GetReadingsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void GetReadingsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.common.v1.GetReadingsResponse) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + readings_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* GetReadingsResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // map readings = 1 [json_name = "readings"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&readings_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* GetReadingsResponse::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.common.v1.GetReadingsResponse) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // map readings = 1 [json_name = "readings"]; + if (!this->_internal_readings().empty()) { + using MapType = ::_pb::Map; + using WireHelper = GetReadingsResponse_ReadingsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_readings(); + auto check_utf8 = [](const MapType::value_type& entry) { + (void)entry; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "viam.common.v1.GetReadingsResponse.ReadingsEntry.key"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.common.v1.GetReadingsResponse) + return target; +} + +size_t GetReadingsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.common.v1.GetReadingsResponse) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map readings = 1 [json_name = "readings"]; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_readings_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >::const_iterator + it = this->_internal_readings().begin(); + it != this->_internal_readings().end(); ++it) { + total_size += GetReadingsResponse_ReadingsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReadingsResponse::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GetReadingsResponse::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetReadingsResponse::GetClassData() const { return &_class_data_; } + +void GetReadingsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void GetReadingsResponse::MergeFrom(const GetReadingsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.common.v1.GetReadingsResponse) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + readings_.MergeFrom(from.readings_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void GetReadingsResponse::CopyFrom(const GetReadingsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.common.v1.GetReadingsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetReadingsResponse::IsInitialized() const { + return true; +} + +void GetReadingsResponse::InternalSwap(GetReadingsResponse* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + readings_.InternalSwap(&other->readings_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsResponse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_common_2fv1_2fcommon_2eproto_getter, &descriptor_table_common_2fv1_2fcommon_2eproto_once, + file_level_metadata_common_2fv1_2fcommon_2eproto[30]); +} PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< bool >, 8, false> safety_heartbeat_monitored(kSafetyHeartbeatMonitoredFieldNumber, false, nullptr); @@ -7255,6 +7796,18 @@ template<> PROTOBUF_NOINLINE ::viam::common::v1::GetGeometriesResponse* Arena::CreateMaybeMessage< ::viam::common::v1::GetGeometriesResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::common::v1::GetGeometriesResponse >(arena); } +template<> PROTOBUF_NOINLINE ::viam::common::v1::GetReadingsRequest* +Arena::CreateMaybeMessage< ::viam::common::v1::GetReadingsRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::GetReadingsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::viam::common::v1::GetReadingsResponse* +Arena::CreateMaybeMessage< ::viam::common::v1::GetReadingsResponse >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::common::v1::GetReadingsResponse >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/src/viam/api/common/v1/common.pb.h b/src/viam/api/common/v1/common.pb.h index b8bc79885..ea310ff4e 100644 --- a/src/viam/api/common/v1/common.pb.h +++ b/src/viam/api/common/v1/common.pb.h @@ -105,6 +105,15 @@ extern GetKinematicsRequestDefaultTypeInternal _GetKinematicsRequest_default_ins class GetKinematicsResponse; struct GetKinematicsResponseDefaultTypeInternal; extern GetKinematicsResponseDefaultTypeInternal _GetKinematicsResponse_default_instance_; +class GetReadingsRequest; +struct GetReadingsRequestDefaultTypeInternal; +extern GetReadingsRequestDefaultTypeInternal _GetReadingsRequest_default_instance_; +class GetReadingsResponse; +struct GetReadingsResponseDefaultTypeInternal; +extern GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_instance_; +class GetReadingsResponse_ReadingsEntry_DoNotUse; +struct GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal; +extern GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal _GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_; class Orientation; struct OrientationDefaultTypeInternal; extern OrientationDefaultTypeInternal _Orientation_default_instance_; @@ -159,6 +168,9 @@ template<> ::viam::common::v1::GetGeometriesRequest* Arena::CreateMaybeMessage<: template<> ::viam::common::v1::GetGeometriesResponse* Arena::CreateMaybeMessage<::viam::common::v1::GetGeometriesResponse>(Arena*); template<> ::viam::common::v1::GetKinematicsRequest* Arena::CreateMaybeMessage<::viam::common::v1::GetKinematicsRequest>(Arena*); template<> ::viam::common::v1::GetKinematicsResponse* Arena::CreateMaybeMessage<::viam::common::v1::GetKinematicsResponse>(Arena*); +template<> ::viam::common::v1::GetReadingsRequest* Arena::CreateMaybeMessage<::viam::common::v1::GetReadingsRequest>(Arena*); +template<> ::viam::common::v1::GetReadingsResponse* Arena::CreateMaybeMessage<::viam::common::v1::GetReadingsResponse>(Arena*); +template<> ::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::common::v1::GetReadingsResponse_ReadingsEntry_DoNotUse>(Arena*); template<> ::viam::common::v1::Orientation* Arena::CreateMaybeMessage<::viam::common::v1::Orientation>(Arena*); template<> ::viam::common::v1::PointCloudObject* Arena::CreateMaybeMessage<::viam::common::v1::PointCloudObject>(Arena*); template<> ::viam::common::v1::Pose* Arena::CreateMaybeMessage<::viam::common::v1::Pose>(Arena*); @@ -4618,6 +4630,358 @@ class GetGeometriesResponse final : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; }; +// ------------------------------------------------------------------- + +class GetReadingsRequest final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetReadingsRequest) */ { + public: + inline GetReadingsRequest() : GetReadingsRequest(nullptr) {} + ~GetReadingsRequest() override; + explicit PROTOBUF_CONSTEXPR GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetReadingsRequest(const GetReadingsRequest& from); + GetReadingsRequest(GetReadingsRequest&& from) noexcept + : GetReadingsRequest() { + *this = ::std::move(from); + } + + inline GetReadingsRequest& operator=(const GetReadingsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetReadingsRequest& operator=(GetReadingsRequest&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetReadingsRequest& default_instance() { + return *internal_default_instance(); + } + static inline const GetReadingsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetReadingsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 28; + + friend void swap(GetReadingsRequest& a, GetReadingsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetReadingsRequest* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetReadingsRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetReadingsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetReadingsRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetReadingsRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetReadingsRequest* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.GetReadingsRequest"; + } + protected: + explicit GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 1, + kExtraFieldNumber = 99, + }; + // string name = 1 [json_name = "name"]; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + 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: + + // .google.protobuf.Struct extra = 99 [json_name = "extra"]; + bool has_extra() const; + private: + bool _internal_has_extra() const; + public: + void clear_extra(); + const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); + ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); + void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); + private: + const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; + ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); + public: + void unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra); + ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.GetReadingsRequest) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::Struct* extra_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class GetReadingsResponse_ReadingsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + GetReadingsResponse_ReadingsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR GetReadingsResponse_ReadingsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit GetReadingsResponse_ReadingsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const GetReadingsResponse_ReadingsEntry_DoNotUse& other); + static const GetReadingsResponse_ReadingsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "viam.common.v1.GetReadingsResponse.ReadingsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; + +// ------------------------------------------------------------------- + +class GetReadingsResponse final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.common.v1.GetReadingsResponse) */ { + public: + inline GetReadingsResponse() : GetReadingsResponse(nullptr) {} + ~GetReadingsResponse() override; + explicit PROTOBUF_CONSTEXPR GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GetReadingsResponse(const GetReadingsResponse& from); + GetReadingsResponse(GetReadingsResponse&& from) noexcept + : GetReadingsResponse() { + *this = ::std::move(from); + } + + inline GetReadingsResponse& operator=(const GetReadingsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetReadingsResponse& operator=(GetReadingsResponse&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetReadingsResponse& default_instance() { + return *internal_default_instance(); + } + static inline const GetReadingsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetReadingsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 30; + + friend void swap(GetReadingsResponse& a, GetReadingsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetReadingsResponse* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetReadingsResponse* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetReadingsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const GetReadingsResponse& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const GetReadingsResponse& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetReadingsResponse* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.common.v1.GetReadingsResponse"; + } + protected: + explicit GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + enum : int { + kReadingsFieldNumber = 1, + }; + // map readings = 1 [json_name = "readings"]; + int readings_size() const; + private: + int _internal_readings_size() const; + public: + void clear_readings(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& + _internal_readings() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* + _internal_mutable_readings(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& + readings() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* + mutable_readings(); + + // @@protoc_insertion_point(class_scope:viam.common.v1.GetReadingsResponse) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + GetReadingsResponse_ReadingsEntry_DoNotUse, + std::string, ::PROTOBUF_NAMESPACE_ID::Value, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> readings_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_common_2fv1_2fcommon_2eproto; +}; // =================================================================== static const int kSafetyHeartbeatMonitoredFieldNumber = 84260; @@ -7393,6 +7757,177 @@ GetGeometriesResponse::geometries() const { return geometries_; } +// ------------------------------------------------------------------- + +// GetReadingsRequest + +// string name = 1 [json_name = "name"]; +inline void GetReadingsRequest::clear_name() { + name_.ClearToEmpty(); +} +inline const std::string& GetReadingsRequest::name() const { + // @@protoc_insertion_point(field_get:viam.common.v1.GetReadingsRequest.name) + return _internal_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void GetReadingsRequest::set_name(ArgT0&& arg0, ArgT... args) { + + name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:viam.common.v1.GetReadingsRequest.name) +} +inline std::string* GetReadingsRequest::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.GetReadingsRequest.name) + return _s; +} +inline const std::string& GetReadingsRequest::_internal_name() const { + return name_.Get(); +} +inline void GetReadingsRequest::_internal_set_name(const std::string& value) { + + name_.Set(value, GetArenaForAllocation()); +} +inline std::string* GetReadingsRequest::_internal_mutable_name() { + + return name_.Mutable(GetArenaForAllocation()); +} +inline std::string* GetReadingsRequest::release_name() { + // @@protoc_insertion_point(field_release:viam.common.v1.GetReadingsRequest.name) + return name_.Release(); +} +inline void GetReadingsRequest::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (name_.IsDefault()) { + name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.GetReadingsRequest.name) +} + +// .google.protobuf.Struct extra = 99 [json_name = "extra"]; +inline bool GetReadingsRequest::_internal_has_extra() const { + return this != internal_default_instance() && extra_ != nullptr; +} +inline bool GetReadingsRequest::has_extra() const { + return _internal_has_extra(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetReadingsRequest::_internal_extra() const { + const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetReadingsRequest::extra() const { + // @@protoc_insertion_point(field_get:viam.common.v1.GetReadingsRequest.extra) + return _internal_extra(); +} +inline void GetReadingsRequest::unsafe_arena_set_allocated_extra( + ::PROTOBUF_NAMESPACE_ID::Struct* extra) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); + } + extra_ = extra; + if (extra) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.common.v1.GetReadingsRequest.extra) +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetReadingsRequest::release_extra() { + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetReadingsRequest::unsafe_arena_release_extra() { + // @@protoc_insertion_point(field_release:viam.common.v1.GetReadingsRequest.extra) + + ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; + extra_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetReadingsRequest::_internal_mutable_extra() { + + if (extra_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); + extra_ = p; + } + return extra_; +} +inline ::PROTOBUF_NAMESPACE_ID::Struct* GetReadingsRequest::mutable_extra() { + ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); + // @@protoc_insertion_point(field_mutable:viam.common.v1.GetReadingsRequest.extra) + return _msg; +} +inline void GetReadingsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); + } + if (extra) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra)); + if (message_arena != submessage_arena) { + extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extra, submessage_arena); + } + + } else { + + } + extra_ = extra; + // @@protoc_insertion_point(field_set_allocated:viam.common.v1.GetReadingsRequest.extra) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// GetReadingsResponse + +// map readings = 1 [json_name = "readings"]; +inline int GetReadingsResponse::_internal_readings_size() const { + return readings_.size(); +} +inline int GetReadingsResponse::readings_size() const { + return _internal_readings_size(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& +GetReadingsResponse::_internal_readings() const { + return readings_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& +GetReadingsResponse::readings() const { + // @@protoc_insertion_point(field_map:viam.common.v1.GetReadingsResponse.readings) + return _internal_readings(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* +GetReadingsResponse::_internal_mutable_readings() { + return readings_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* +GetReadingsResponse::mutable_readings() { + // @@protoc_insertion_point(field_mutable_map:viam.common.v1.GetReadingsResponse.readings) + return _internal_mutable_readings(); +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -7450,6 +7985,12 @@ GetGeometriesResponse::geometries() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/component/movementsensor/v1/movementsensor.grpc.pb.cc b/src/viam/api/component/movementsensor/v1/movementsensor.grpc.pb.cc index 1a081b9cb..66b8d33c9 100644 --- a/src/viam/api/component/movementsensor/v1/movementsensor.grpc.pb.cc +++ b/src/viam/api/component/movementsensor/v1/movementsensor.grpc.pb.cc @@ -35,6 +35,7 @@ static const char* MovementSensorService_method_names[] = { "/viam.component.movementsensor.v1.MovementSensorService/GetLinearAcceleration", "/viam.component.movementsensor.v1.MovementSensorService/DoCommand", "/viam.component.movementsensor.v1.MovementSensorService/GetGeometries", + "/viam.component.movementsensor.v1.MovementSensorService/GetReadings", }; std::unique_ptr< MovementSensorService::Stub> MovementSensorService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -54,6 +55,7 @@ MovementSensorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterfac , rpcmethod_GetLinearAcceleration_(MovementSensorService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_DoCommand_(MovementSensorService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_GetGeometries_(MovementSensorService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetReadings_(MovementSensorService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status MovementSensorService::Stub::GetLinearVelocity(::grpc::ClientContext* context, const ::viam::component::movementsensor::v1::GetLinearVelocityRequest& request, ::viam::component::movementsensor::v1::GetLinearVelocityResponse* response) { @@ -286,6 +288,29 @@ ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* M return result; } +::grpc::Status MovementSensorService::Stub::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::viam::common::v1::GetReadingsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetReadings_, context, request, response); +} + +void MovementSensorService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, std::move(f)); +} + +void MovementSensorService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* MovementSensorService::Stub::PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetReadingsResponse, ::viam::common::v1::GetReadingsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetReadings_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* MovementSensorService::Stub::AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetReadingsRaw(context, request, cq); + result->StartCall(); + return result; +} + MovementSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MovementSensorService_method_names[0], @@ -387,6 +412,16 @@ MovementSensorService::Service::Service() { ::viam::common::v1::GetGeometriesResponse* resp) { return service->GetGeometries(ctx, req, resp); }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MovementSensorService_method_names[10], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MovementSensorService::Service, ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](MovementSensorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::common::v1::GetReadingsRequest* req, + ::viam::common::v1::GetReadingsResponse* resp) { + return service->GetReadings(ctx, req, resp); + }, this))); } MovementSensorService::Service::~Service() { @@ -462,6 +497,13 @@ ::grpc::Status MovementSensorService::Service::GetGeometries(::grpc::ServerConte return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status MovementSensorService::Service::GetReadings(::grpc::ServerContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + } // namespace viam } // namespace component diff --git a/src/viam/api/component/movementsensor/v1/movementsensor.grpc.pb.h b/src/viam/api/component/movementsensor/v1/movementsensor.grpc.pb.h index 334945697..1a63cbea0 100644 --- a/src/viam/api/component/movementsensor/v1/movementsensor.grpc.pb.h +++ b/src/viam/api/component/movementsensor/v1/movementsensor.grpc.pb.h @@ -109,6 +109,14 @@ class MovementSensorService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetGeometriesResponse>> PrepareAsyncGetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetGeometriesResponse>>(PrepareAsyncGetGeometriesRaw(context, request, cq)); } + // GetReadings returns the readings of a sensor of the underlying robot. + virtual ::grpc::Status GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::viam::common::v1::GetReadingsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>> AsyncGetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>>(AsyncGetReadingsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>> PrepareAsyncGetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>>(PrepareAsyncGetReadingsRaw(context, request, cq)); + } class async_interface { public: virtual ~async_interface() {} @@ -133,6 +141,9 @@ class MovementSensorService final { // GetGeometries returns the geometries of the component in their current configuration virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) = 0; virtual void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetReadings returns the readings of a sensor of the underlying robot. + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, std::function) = 0; + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; }; typedef class async_interface experimental_async_interface; virtual class async_interface* async() { return nullptr; } @@ -158,6 +169,8 @@ class MovementSensorService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetGeometriesResponse>* AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetGeometriesResponse>* PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>* PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -232,6 +245,13 @@ class MovementSensorService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>> PrepareAsyncGetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>>(PrepareAsyncGetGeometriesRaw(context, request, cq)); } + ::grpc::Status GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::viam::common::v1::GetReadingsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>> AsyncGetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>>(AsyncGetReadingsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>> PrepareAsyncGetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>>(PrepareAsyncGetReadingsRaw(context, request, cq)); + } class async final : public StubInterface::async_interface { public: @@ -255,6 +275,8 @@ class MovementSensorService final { void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, std::function) override; + void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit async(Stub* stub): stub_(stub) { } @@ -286,6 +308,8 @@ class MovementSensorService final { ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* PrepareAsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_GetLinearVelocity_; const ::grpc::internal::RpcMethod rpcmethod_GetAngularVelocity_; const ::grpc::internal::RpcMethod rpcmethod_GetCompassHeading_; @@ -296,6 +320,7 @@ class MovementSensorService final { const ::grpc::internal::RpcMethod rpcmethod_GetLinearAcceleration_; const ::grpc::internal::RpcMethod rpcmethod_DoCommand_; const ::grpc::internal::RpcMethod rpcmethod_GetGeometries_; + const ::grpc::internal::RpcMethod rpcmethod_GetReadings_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -314,6 +339,8 @@ class MovementSensorService final { virtual ::grpc::Status DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response); // GetGeometries returns the geometries of the component in their current configuration virtual ::grpc::Status GetGeometries(::grpc::ServerContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response); + // GetReadings returns the readings of a sensor of the underlying robot. + virtual ::grpc::Status GetReadings(::grpc::ServerContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response); }; template class WithAsyncMethod_GetLinearVelocity : public BaseClass { @@ -515,7 +542,27 @@ class MovementSensorService final { ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_GetLinearVelocity > > > > > > > > > AsyncService; + template + class WithAsyncMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetReadings() { + ::grpc::Service::MarkMethodAsync(10); + } + ~WithAsyncMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetReadings(::grpc::ServerContext* context, ::viam::common::v1::GetReadingsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::common::v1::GetReadingsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetLinearVelocity > > > > > > > > > > AsyncService; template class WithCallbackMethod_GetLinearVelocity : public BaseClass { private: @@ -786,7 +833,34 @@ class MovementSensorService final { virtual ::grpc::ServerUnaryReactor* GetGeometries( ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetGeometriesRequest* /*request*/, ::viam::common::v1::GetGeometriesResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_GetLinearVelocity > > > > > > > > > CallbackService; + template + class WithCallbackMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetReadings() { + ::grpc::Service::MarkMethodCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response) { return this->GetReadings(context, request, response); }));} + void SetMessageAllocatorFor_GetReadings( + ::grpc::MessageAllocator< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetReadings( + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_GetLinearVelocity > > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_GetLinearVelocity : public BaseClass { @@ -959,6 +1033,23 @@ class MovementSensorService final { } }; template + class WithGenericMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetReadings() { + ::grpc::Service::MarkMethodGeneric(10); + } + ~WithGenericMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithRawMethod_GetLinearVelocity : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1159,6 +1250,26 @@ class MovementSensorService final { } }; template + class WithRawMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetReadings() { + ::grpc::Service::MarkMethodRaw(10); + } + ~WithRawMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetReadings(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawCallbackMethod_GetLinearVelocity : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1379,6 +1490,28 @@ class MovementSensorService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetReadings() { + ::grpc::Service::MarkMethodRawCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetReadings(context, request, response); })); + } + ~WithRawCallbackMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetReadings( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithStreamedUnaryMethod_GetLinearVelocity : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} @@ -1648,9 +1781,36 @@ class MovementSensorService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedGetGeometries(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::common::v1::GetGeometriesRequest,::viam::common::v1::GetGeometriesResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_GetLinearVelocity > > > > > > > > > StreamedUnaryService; + template + class WithStreamedUnaryMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetReadings() { + ::grpc::Service::MarkMethodStreamed(10, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>* streamer) { + return this->StreamedGetReadings(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetReadings(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::common::v1::GetReadingsRequest,::viam::common::v1::GetReadingsResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetLinearVelocity > > > > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_GetLinearVelocity > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_GetLinearVelocity > > > > > > > > > > StreamedService; }; } // namespace v1 diff --git a/src/viam/api/component/movementsensor/v1/movementsensor.pb.cc b/src/viam/api/component/movementsensor/v1/movementsensor.pb.cc index 738dc80ae..57ef68369 100644 --- a/src/viam/api/component/movementsensor/v1/movementsensor.pb.cc +++ b/src/viam/api/component/movementsensor/v1/movementsensor.pb.cc @@ -478,7 +478,7 @@ const char descriptor_table_protodef_component_2fmovementsensor_2fv1_2fmovements "c \001(\0132\027.google.protobuf.StructR\005extra\"i\n" "\035GetLinearAccelerationResponse\022H\n\023linear" "_acceleration\030\001 \001(\0132\027.viam.common.v1.Vec" - "tor3R\022linearAcceleration2\267\017\n\025MovementSen" + "tor3R\022linearAcceleration2\317\020\n\025MovementSen" "sorService\022\322\001\n\021GetLinearVelocity\022:.viam." "component.movementsensor.v1.GetLinearVel" "ocityRequest\032;.viam.component.movementse" @@ -528,9 +528,13 @@ const char descriptor_table_protodef_component_2fmovementsensor_2fv1_2fmovements "tGeometriesRequest\032%.viam.common.v1.GetG" "eometriesResponse\"\?\202\323\344\223\0029\0227/viam/api/v1/" "component/movementsensor/{name}/geometri" - "esBS\n$com.viam.component.movementsensor." - "v1Z+go.viam.com/api/component/movementse" - "nsor/v1b\006proto3" + "es\022\225\001\n\013GetReadings\022\".viam.common.v1.GetR" + "eadingsRequest\032#.viam.common.v1.GetReadi" + "ngsResponse\"=\202\323\344\223\0027\0225/viam/api/v1/compon" + "ent/movementsensor/{name}/readingsBS\n$co" + "m.viam.component.movementsensor.v1Z+go.v" + "iam.com/api/component/movementsensor/v1b" + "\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_deps[3] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -539,7 +543,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_component_2fmovemen }; static ::_pbi::once_flag descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto = { - false, false, 4095, descriptor_table_protodef_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto, + false, false, 4247, descriptor_table_protodef_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto, "component/movementsensor/v1/movementsensor.proto", &descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_once, descriptor_table_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto_deps, 3, 17, schemas, file_default_instances, TableStruct_component_2fmovementsensor_2fv1_2fmovementsensor_2eproto::offsets, diff --git a/src/viam/api/component/powersensor/v1/powersensor.grpc.pb.cc b/src/viam/api/component/powersensor/v1/powersensor.grpc.pb.cc index 7e0059751..c8dca9554 100644 --- a/src/viam/api/component/powersensor/v1/powersensor.grpc.pb.cc +++ b/src/viam/api/component/powersensor/v1/powersensor.grpc.pb.cc @@ -28,6 +28,7 @@ static const char* PowerSensorService_method_names[] = { "/viam.component.powersensor.v1.PowerSensorService/GetVoltage", "/viam.component.powersensor.v1.PowerSensorService/GetCurrent", "/viam.component.powersensor.v1.PowerSensorService/GetPower", + "/viam.component.powersensor.v1.PowerSensorService/GetReadings", "/viam.component.powersensor.v1.PowerSensorService/DoCommand", }; @@ -41,7 +42,8 @@ PowerSensorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& : channel_(channel), rpcmethod_GetVoltage_(PowerSensorService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_GetCurrent_(PowerSensorService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_GetPower_(PowerSensorService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DoCommand_(PowerSensorService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetReadings_(PowerSensorService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DoCommand_(PowerSensorService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status PowerSensorService::Stub::GetVoltage(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetVoltageRequest& request, ::viam::component::powersensor::v1::GetVoltageResponse* response) { @@ -113,6 +115,29 @@ ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetPowerR return result; } +::grpc::Status PowerSensorService::Stub::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::viam::common::v1::GetReadingsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetReadings_, context, request, response); +} + +void PowerSensorService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, std::move(f)); +} + +void PowerSensorService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* PowerSensorService::Stub::PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetReadingsResponse, ::viam::common::v1::GetReadingsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetReadings_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* PowerSensorService::Stub::AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncGetReadingsRaw(context, request, cq); + result->StartCall(); + return result; +} + ::grpc::Status PowerSensorService::Stub::DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) { return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_DoCommand_, context, request, response); } @@ -170,6 +195,16 @@ PowerSensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( PowerSensorService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< PowerSensorService::Service, ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](PowerSensorService::Service* service, + ::grpc::ServerContext* ctx, + const ::viam::common::v1::GetReadingsRequest* req, + ::viam::common::v1::GetReadingsResponse* resp) { + return service->GetReadings(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + PowerSensorService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< PowerSensorService::Service, ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](PowerSensorService::Service* service, ::grpc::ServerContext* ctx, @@ -203,6 +238,13 @@ ::grpc::Status PowerSensorService::Service::GetPower(::grpc::ServerContext* cont return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } +::grpc::Status PowerSensorService::Service::GetReadings(::grpc::ServerContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + ::grpc::Status PowerSensorService::Service::DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response) { (void) context; (void) request; diff --git a/src/viam/api/component/powersensor/v1/powersensor.grpc.pb.h b/src/viam/api/component/powersensor/v1/powersensor.grpc.pb.h index 1b23a4f07..1a5d861be 100644 --- a/src/viam/api/component/powersensor/v1/powersensor.grpc.pb.h +++ b/src/viam/api/component/powersensor/v1/powersensor.grpc.pb.h @@ -63,6 +63,14 @@ class PowerSensorService final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::powersensor::v1::GetPowerResponse>> PrepareAsyncGetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::powersensor::v1::GetPowerResponse>>(PrepareAsyncGetPowerRaw(context, request, cq)); } + // GetReadings returns the readings of a sensor of the underlying robot. + virtual ::grpc::Status GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::viam::common::v1::GetReadingsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>> AsyncGetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>>(AsyncGetReadingsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>> PrepareAsyncGetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>>(PrepareAsyncGetReadingsRaw(context, request, cq)); + } // DoCommand sends/receives arbitrary commands virtual ::grpc::Status DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>> AsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { @@ -83,6 +91,9 @@ class PowerSensorService final { // GetPower returns the power reading of a power sensor in watts virtual void GetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response, std::function) = 0; virtual void GetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + // GetReadings returns the readings of a sensor of the underlying robot. + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, std::function) = 0; + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // DoCommand sends/receives arbitrary commands virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; @@ -97,6 +108,8 @@ class PowerSensorService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::powersensor::v1::GetCurrentResponse>* PrepareAsyncGetCurrentRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::powersensor::v1::GetPowerResponse>* AsyncGetPowerRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::powersensor::v1::GetPowerResponse>* PrepareAsyncGetPowerRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>* PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>* AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) = 0; }; @@ -124,6 +137,13 @@ class PowerSensorService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetPowerResponse>> PrepareAsyncGetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetPowerResponse>>(PrepareAsyncGetPowerRaw(context, request, cq)); } + ::grpc::Status GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::viam::common::v1::GetReadingsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>> AsyncGetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>>(AsyncGetReadingsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>> PrepareAsyncGetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>>(PrepareAsyncGetReadingsRaw(context, request, cq)); + } ::grpc::Status DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> AsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>>(AsyncDoCommandRaw(context, request, cq)); @@ -140,6 +160,8 @@ class PowerSensorService final { void GetCurrent(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response, std::function) override; void GetPower(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, std::function) override; + void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; private: @@ -159,11 +181,14 @@ class PowerSensorService final { ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetCurrentResponse>* PrepareAsyncGetCurrentRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetPowerResponse>* AsyncGetPowerRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::component::powersensor::v1::GetPowerResponse>* PrepareAsyncGetPowerRaw(::grpc::ClientContext* context, const ::viam::component::powersensor::v1::GetPowerRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_GetVoltage_; const ::grpc::internal::RpcMethod rpcmethod_GetCurrent_; const ::grpc::internal::RpcMethod rpcmethod_GetPower_; + const ::grpc::internal::RpcMethod rpcmethod_GetReadings_; const ::grpc::internal::RpcMethod rpcmethod_DoCommand_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -178,6 +203,8 @@ class PowerSensorService final { virtual ::grpc::Status GetCurrent(::grpc::ServerContext* context, const ::viam::component::powersensor::v1::GetCurrentRequest* request, ::viam::component::powersensor::v1::GetCurrentResponse* response); // GetPower returns the power reading of a power sensor in watts virtual ::grpc::Status GetPower(::grpc::ServerContext* context, const ::viam::component::powersensor::v1::GetPowerRequest* request, ::viam::component::powersensor::v1::GetPowerResponse* response); + // GetReadings returns the readings of a sensor of the underlying robot. + virtual ::grpc::Status GetReadings(::grpc::ServerContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response); // DoCommand sends/receives arbitrary commands virtual ::grpc::Status DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response); }; @@ -242,12 +269,32 @@ class PowerSensorService final { } }; template + class WithAsyncMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_GetReadings() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetReadings(::grpc::ServerContext* context, ::viam::common::v1::GetReadingsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::common::v1::GetReadingsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithAsyncMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DoCommand() { - ::grpc::Service::MarkMethodAsync(3); + ::grpc::Service::MarkMethodAsync(4); } ~WithAsyncMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); @@ -258,10 +305,10 @@ class PowerSensorService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDoCommand(::grpc::ServerContext* context, ::viam::common::v1::DoCommandRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::common::v1::DoCommandResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_GetVoltage > > > AsyncService; + typedef WithAsyncMethod_GetVoltage > > > > AsyncService; template class WithCallbackMethod_GetVoltage : public BaseClass { private: @@ -344,18 +391,45 @@ class PowerSensorService final { ::grpc::CallbackServerContext* /*context*/, const ::viam::component::powersensor::v1::GetPowerRequest* /*request*/, ::viam::component::powersensor::v1::GetPowerResponse* /*response*/) { return nullptr; } }; template + class WithCallbackMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_GetReadings() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>( + [this]( + ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response) { return this->GetReadings(context, request, response); }));} + void SetMessageAllocatorFor_GetReadings( + ::grpc::MessageAllocator< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetReadings( + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) { return nullptr; } + }; + template class WithCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodCallback(3, + ::grpc::Service::MarkMethodCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [this]( ::grpc::CallbackServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response) { return this->DoCommand(context, request, response); }));} void SetMessageAllocatorFor_DoCommand( ::grpc::MessageAllocator< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -370,7 +444,7 @@ class PowerSensorService final { virtual ::grpc::ServerUnaryReactor* DoCommand( ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::DoCommandRequest* /*request*/, ::viam::common::v1::DoCommandResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_GetVoltage > > > CallbackService; + typedef WithCallbackMethod_GetVoltage > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_GetVoltage : public BaseClass { @@ -424,12 +498,29 @@ class PowerSensorService final { } }; template + class WithGenericMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_GetReadings() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template class WithGenericMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DoCommand() { - ::grpc::Service::MarkMethodGeneric(3); + ::grpc::Service::MarkMethodGeneric(4); } ~WithGenericMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); @@ -501,12 +592,32 @@ class PowerSensorService final { } }; template + class WithRawMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_GetReadings() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetReadings(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class WithRawMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DoCommand() { - ::grpc::Service::MarkMethodRaw(3); + ::grpc::Service::MarkMethodRaw(4); } ~WithRawMethod_DoCommand() override { BaseClassMustBeDerivedFromService(this); @@ -517,7 +628,7 @@ class PowerSensorService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDoCommand(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -587,12 +698,34 @@ class PowerSensorService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template + class WithRawCallbackMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_GetReadings() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetReadings(context, request, response); })); + } + ~WithRawCallbackMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* GetReadings( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template class WithRawCallbackMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_DoCommand() { - ::grpc::Service::MarkMethodRawCallback(3, + ::grpc::Service::MarkMethodRawCallback(4, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->DoCommand(context, request, response); })); @@ -690,12 +823,39 @@ class PowerSensorService final { virtual ::grpc::Status StreamedGetPower(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::powersensor::v1::GetPowerRequest,::viam::component::powersensor::v1::GetPowerResponse>* server_unary_streamer) = 0; }; template + class WithStreamedUnaryMethod_GetReadings : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_GetReadings() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>* streamer) { + return this->StreamedGetReadings(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_GetReadings() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetReadings(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::common::v1::GetReadingsRequest,::viam::common::v1::GetReadingsResponse>* server_unary_streamer) = 0; + }; + template class WithStreamedUnaryMethod_DoCommand : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DoCommand() { - ::grpc::Service::MarkMethodStreamed(3, + ::grpc::Service::MarkMethodStreamed(4, new ::grpc::internal::StreamedUnaryHandler< ::viam::common::v1::DoCommandRequest, ::viam::common::v1::DoCommandResponse>( [this](::grpc::ServerContext* context, @@ -716,9 +876,9 @@ class PowerSensorService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedDoCommand(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::common::v1::DoCommandRequest,::viam::common::v1::DoCommandResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_GetVoltage > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_GetVoltage > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_GetVoltage > > > StreamedService; + typedef WithStreamedUnaryMethod_GetVoltage > > > > StreamedService; }; } // namespace v1 diff --git a/src/viam/api/component/powersensor/v1/powersensor.pb.cc b/src/viam/api/component/powersensor/v1/powersensor.pb.cc index 785a2625a..27678a84b 100644 --- a/src/viam/api/component/powersensor/v1/powersensor.pb.cc +++ b/src/viam/api/component/powersensor/v1/powersensor.pb.cc @@ -191,7 +191,7 @@ const char descriptor_table_protodef_component_2fpowersensor_2fv1_2fpowersensor_ "\007amperes\022\023\n\005is_ac\030\002 \001(\010R\004isAc\"T\n\017GetPowe" "rRequest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c " "\001(\0132\027.google.protobuf.StructR\005extra\"(\n\020G" - "etPowerResponse\022\024\n\005watts\030\001 \001(\001R\005watts2\256\005" + "etPowerResponse\022\024\n\005watts\030\001 \001(\001R\005watts2\304\006" "\n\022PowerSensorService\022\255\001\n\nGetVoltage\0220.vi" "am.component.powersensor.v1.GetVoltageRe" "quest\0321.viam.component.powersensor.v1.Ge" @@ -205,13 +205,17 @@ const char descriptor_table_protodef_component_2fpowersensor_2fv1_2fpowersensor_ "nt.powersensor.v1.GetPowerRequest\032/.viam" ".component.powersensor.v1.GetPowerRespon" "se\"8\202\323\344\223\0022\0220/viam/api/v1/component/power" - "_sensor/{name}/power\022\217\001\n\tDoCommand\022 .via" - "m.common.v1.DoCommandRequest\032!.viam.comm" - "on.v1.DoCommandResponse\"=\202\323\344\223\0027\"5/viam/a" - "pi/v1/component/power_sensor/{name}/do_c" - "ommandBM\n!com.viam.component.powersensor" - ".v1Z(go.viam.com/api/component/powersens" - "or/v1b\006proto3" + "_sensor/{name}/power\022\223\001\n\013GetReadings\022\".v" + "iam.common.v1.GetReadingsRequest\032#.viam." + "common.v1.GetReadingsResponse\";\202\323\344\223\0025\0223/" + "viam/api/v1/component/power_sensor/{name" + "}/readings\022\217\001\n\tDoCommand\022 .viam.common.v" + "1.DoCommandRequest\032!.viam.common.v1.DoCo" + "mmandResponse\"=\202\323\344\223\0027\"5/viam/api/v1/comp" + "onent/power_sensor/{name}/do_commandBM\n!" + "com.viam.component.powersensor.v1Z(go.vi" + "am.com/api/component/powersensor/v1b\006pro" + "to3" ; static const ::_pbi::DescriptorTable* const descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_deps[3] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -220,7 +224,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_component_2fpowerse }; static ::_pbi::once_flag descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto = { - false, false, 1373, descriptor_table_protodef_component_2fpowersensor_2fv1_2fpowersensor_2eproto, + false, false, 1523, descriptor_table_protodef_component_2fpowersensor_2fv1_2fpowersensor_2eproto, "component/powersensor/v1/powersensor.proto", &descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_once, descriptor_table_component_2fpowersensor_2fv1_2fpowersensor_2eproto_deps, 3, 6, schemas, file_default_instances, TableStruct_component_2fpowersensor_2fv1_2fpowersensor_2eproto::offsets, diff --git a/src/viam/api/component/sensor/v1/sensor.grpc.pb.cc b/src/viam/api/component/sensor/v1/sensor.grpc.pb.cc index 31e331638..dcc3896b4 100644 --- a/src/viam/api/component/sensor/v1/sensor.grpc.pb.cc +++ b/src/viam/api/component/sensor/v1/sensor.grpc.pb.cc @@ -42,23 +42,23 @@ SensorService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& chan , rpcmethod_GetGeometries_(SensorService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} -::grpc::Status SensorService::Stub::GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::viam::component::sensor::v1::GetReadingsResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetReadings_, context, request, response); +::grpc::Status SensorService::Stub::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::viam::common::v1::GetReadingsResponse* response) { + return ::grpc::internal::BlockingUnaryCall< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetReadings_, context, request, response); } -void SensorService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, std::move(f)); +void SensorService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, std::move(f)); } -void SensorService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) { +void SensorService::Stub::async::GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) { ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetReadings_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>* SensorService::Stub::PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::component::sensor::v1::GetReadingsResponse, ::viam::component::sensor::v1::GetReadingsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetReadings_, context, request); +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* SensorService::Stub::PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::viam::common::v1::GetReadingsResponse, ::viam::common::v1::GetReadingsRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetReadings_, context, request); } -::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>* SensorService::Stub::AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* SensorService::Stub::AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { auto* result = this->PrepareAsyncGetReadingsRaw(context, request, cq); result->StartCall(); @@ -115,11 +115,11 @@ SensorService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( SensorService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SensorService::Service, ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + new ::grpc::internal::RpcMethodHandler< SensorService::Service, ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](SensorService::Service* service, ::grpc::ServerContext* ctx, - const ::viam::component::sensor::v1::GetReadingsRequest* req, - ::viam::component::sensor::v1::GetReadingsResponse* resp) { + const ::viam::common::v1::GetReadingsRequest* req, + ::viam::common::v1::GetReadingsResponse* resp) { return service->GetReadings(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( @@ -147,7 +147,7 @@ SensorService::Service::Service() { SensorService::Service::~Service() { } -::grpc::Status SensorService::Service::GetReadings(::grpc::ServerContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response) { +::grpc::Status SensorService::Service::GetReadings(::grpc::ServerContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response) { (void) context; (void) request; (void) response; diff --git a/src/viam/api/component/sensor/v1/sensor.grpc.pb.h b/src/viam/api/component/sensor/v1/sensor.grpc.pb.h index d7a888e4d..d629a4564 100644 --- a/src/viam/api/component/sensor/v1/sensor.grpc.pb.h +++ b/src/viam/api/component/sensor/v1/sensor.grpc.pb.h @@ -40,12 +40,12 @@ class SensorService final { public: virtual ~StubInterface() {} // GetReadings returns the readings of a sensor of the underlying robot. - virtual ::grpc::Status GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::viam::component::sensor::v1::GetReadingsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::sensor::v1::GetReadingsResponse>> AsyncGetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::sensor::v1::GetReadingsResponse>>(AsyncGetReadingsRaw(context, request, cq)); + virtual ::grpc::Status GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::viam::common::v1::GetReadingsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>> AsyncGetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>>(AsyncGetReadingsRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::sensor::v1::GetReadingsResponse>> PrepareAsyncGetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::sensor::v1::GetReadingsResponse>>(PrepareAsyncGetReadingsRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>> PrepareAsyncGetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>>(PrepareAsyncGetReadingsRaw(context, request, cq)); } // DoCommand sends/receives arbitrary commands virtual ::grpc::Status DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) = 0; @@ -67,8 +67,8 @@ class SensorService final { public: virtual ~async_interface() {} // GetReadings returns the readings of a sensor of the underlying robot. - virtual void GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response, std::function) = 0; - virtual void GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, std::function) = 0; + virtual void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // DoCommand sends/receives arbitrary commands virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function) = 0; virtual void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; @@ -80,8 +80,8 @@ class SensorService final { virtual class async_interface* async() { return nullptr; } class async_interface* experimental_async() { return async(); } private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::sensor::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::component::sensor::v1::GetReadingsResponse>* PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetReadingsResponse>* PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>* AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::viam::common::v1::GetGeometriesResponse>* AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -90,12 +90,12 @@ class SensorService final { class Stub final : public StubInterface { public: Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - ::grpc::Status GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::viam::component::sensor::v1::GetReadingsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>> AsyncGetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>>(AsyncGetReadingsRaw(context, request, cq)); + ::grpc::Status GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::viam::common::v1::GetReadingsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>> AsyncGetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>>(AsyncGetReadingsRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>> PrepareAsyncGetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>>(PrepareAsyncGetReadingsRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>> PrepareAsyncGetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>>(PrepareAsyncGetReadingsRaw(context, request, cq)); } ::grpc::Status DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::viam::common::v1::DoCommandResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>> AsyncDoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) { @@ -114,8 +114,8 @@ class SensorService final { class async final : public StubInterface::async_interface { public: - void GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response, std::function) override; - void GetReadings(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; + void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, std::function) override; + void GetReadings(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, std::function) override; void DoCommand(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetGeometries(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest* request, ::viam::common::v1::GetGeometriesResponse* response, std::function) override; @@ -131,8 +131,8 @@ class SensorService final { private: std::shared_ptr< ::grpc::ChannelInterface> channel_; class async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::viam::component::sensor::v1::GetReadingsResponse>* PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::component::sensor::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* AsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetReadingsResponse>* PrepareAsyncGetReadingsRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetReadingsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* AsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::DoCommandResponse>* PrepareAsyncDoCommandRaw(::grpc::ClientContext* context, const ::viam::common::v1::DoCommandRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::viam::common::v1::GetGeometriesResponse>* AsyncGetGeometriesRaw(::grpc::ClientContext* context, const ::viam::common::v1::GetGeometriesRequest& request, ::grpc::CompletionQueue* cq) override; @@ -148,7 +148,7 @@ class SensorService final { Service(); virtual ~Service(); // GetReadings returns the readings of a sensor of the underlying robot. - virtual ::grpc::Status GetReadings(::grpc::ServerContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response); + virtual ::grpc::Status GetReadings(::grpc::ServerContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response); // DoCommand sends/receives arbitrary commands virtual ::grpc::Status DoCommand(::grpc::ServerContext* context, const ::viam::common::v1::DoCommandRequest* request, ::viam::common::v1::DoCommandResponse* response); // GetGeometries returns the geometries of the component in their current configuration @@ -166,11 +166,11 @@ class SensorService final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) override { + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetReadings(::grpc::ServerContext* context, ::viam::component::sensor::v1::GetReadingsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::component::sensor::v1::GetReadingsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestGetReadings(::grpc::ServerContext* context, ::viam::common::v1::GetReadingsRequest* request, ::grpc::ServerAsyncResponseWriter< ::viam::common::v1::GetReadingsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -222,25 +222,25 @@ class SensorService final { public: WithCallbackMethod_GetReadings() { ::grpc::Service::MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse>( + new ::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>( [this]( - ::grpc::CallbackServerContext* context, const ::viam::component::sensor::v1::GetReadingsRequest* request, ::viam::component::sensor::v1::GetReadingsResponse* response) { return this->GetReadings(context, request, response); }));} + ::grpc::CallbackServerContext* context, const ::viam::common::v1::GetReadingsRequest* request, ::viam::common::v1::GetReadingsResponse* response) { return this->GetReadings(context, request, response); }));} void SetMessageAllocatorFor_GetReadings( - ::grpc::MessageAllocator< ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse>* allocator) { + ::grpc::MessageAllocator< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>* allocator) { ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0); - static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse>*>(handler) + static_cast<::grpc::internal::CallbackUnaryHandler< ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>*>(handler) ->SetMessageAllocator(allocator); } ~WithCallbackMethod_GetReadings() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) override { + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::ServerUnaryReactor* GetReadings( - ::grpc::CallbackServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) { return nullptr; } + ::grpc::CallbackServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) { return nullptr; } }; template class WithCallbackMethod_DoCommand : public BaseClass { @@ -310,7 +310,7 @@ class SensorService final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) override { + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -361,7 +361,7 @@ class SensorService final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) override { + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -424,7 +424,7 @@ class SensorService final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) override { + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -483,10 +483,10 @@ class SensorService final { WithStreamedUnaryMethod_GetReadings() { ::grpc::Service::MarkMethodStreamed(0, new ::grpc::internal::StreamedUnaryHandler< - ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse>( + ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>( [this](::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< - ::viam::component::sensor::v1::GetReadingsRequest, ::viam::component::sensor::v1::GetReadingsResponse>* streamer) { + ::viam::common::v1::GetReadingsRequest, ::viam::common::v1::GetReadingsResponse>* streamer) { return this->StreamedGetReadings(context, streamer); })); @@ -495,12 +495,12 @@ class SensorService final { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::component::sensor::v1::GetReadingsRequest* /*request*/, ::viam::component::sensor::v1::GetReadingsResponse* /*response*/) override { + ::grpc::Status GetReadings(::grpc::ServerContext* /*context*/, const ::viam::common::v1::GetReadingsRequest* /*request*/, ::viam::common::v1::GetReadingsResponse* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetReadings(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::component::sensor::v1::GetReadingsRequest,::viam::component::sensor::v1::GetReadingsResponse>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedGetReadings(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::viam::common::v1::GetReadingsRequest,::viam::common::v1::GetReadingsResponse>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_DoCommand : public BaseClass { diff --git a/src/viam/api/component/sensor/v1/sensor.pb.cc b/src/viam/api/component/sensor/v1/sensor.pb.cc index a50af457f..809284cb0 100644 --- a/src/viam/api/component/sensor/v1/sensor.pb.cc +++ b/src/viam/api/component/sensor/v1/sensor.pb.cc @@ -24,128 +24,46 @@ namespace viam { namespace component { namespace sensor { namespace v1 { -PROTOBUF_CONSTEXPR GetReadingsRequest::GetReadingsRequest( - ::_pbi::ConstantInitialized) - : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}) - , extra_(nullptr){} -struct GetReadingsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetReadingsRequestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~GetReadingsRequestDefaultTypeInternal() {} - union { - GetReadingsRequest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsRequestDefaultTypeInternal _GetReadingsRequest_default_instance_; -PROTOBUF_CONSTEXPR GetReadingsResponse_ReadingsEntry_DoNotUse::GetReadingsResponse_ReadingsEntry_DoNotUse( - ::_pbi::ConstantInitialized){} -struct GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal() {} - union { - GetReadingsResponse_ReadingsEntry_DoNotUse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal _GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR GetReadingsResponse::GetReadingsResponse( - ::_pbi::ConstantInitialized) - : readings_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}){} -struct GetReadingsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetReadingsResponseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~GetReadingsResponseDefaultTypeInternal() {} - union { - GetReadingsResponse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_instance_; } // namespace v1 } // namespace sensor } // namespace component } // namespace viam -static ::_pb::Metadata file_level_metadata_component_2fsensor_2fv1_2fsensor_2eproto[3]; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2fsensor_2fv1_2fsensor_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2fsensor_2fv1_2fsensor_2eproto = nullptr; - -const uint32_t TableStruct_component_2fsensor_2fv1_2fsensor_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsRequest, name_), - PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsRequest, extra_), - PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::viam::component::sensor::v1::GetReadingsResponse, readings_), -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::viam::component::sensor::v1::GetReadingsRequest)}, - { 8, 16, -1, sizeof(::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse)}, - { 18, -1, -1, sizeof(::viam::component::sensor::v1::GetReadingsResponse)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::viam::component::sensor::v1::_GetReadingsRequest_default_instance_._instance, - &::viam::component::sensor::v1::_GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_._instance, - &::viam::component::sensor::v1::_GetReadingsResponse_default_instance_._instance, -}; +const uint32_t TableStruct_component_2fsensor_2fv1_2fsensor_2eproto::offsets[1] = {}; +static constexpr ::_pbi::MigrationSchema* schemas = nullptr; +static constexpr ::_pb::Message* const* file_default_instances = nullptr; const char descriptor_table_protodef_component_2fsensor_2fv1_2fsensor_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n component/sensor/v1/sensor.proto\022\030viam" ".component.sensor.v1\032\026common/v1/common.p" - "roto\032\034google/api/annotations.proto\032\034goog" - "le/protobuf/struct.proto\"W\n\022GetReadingsR" - "equest\022\022\n\004name\030\001 \001(\tR\004name\022-\n\005extra\030c \001(" - "\0132\027.google.protobuf.StructR\005extra\"\303\001\n\023Ge" - "tReadingsResponse\022W\n\010readings\030\001 \003(\0132;.vi" - "am.component.sensor.v1.GetReadingsRespon" - "se.ReadingsEntryR\010readings\032S\n\rReadingsEn" - "try\022\020\n\003key\030\001 \001(\tR\003key\022,\n\005value\030\002 \001(\0132\026.g" - "oogle.protobuf.ValueR\005value:\0028\0012\327\003\n\rSens" - "orService\022\241\001\n\013GetReadings\022,.viam.compone" - "nt.sensor.v1.GetReadingsRequest\032-.viam.c" - "omponent.sensor.v1.GetReadingsResponse\"5" - "\202\323\344\223\002/\022-/viam/api/v1/component/sensor/{n" - "ame}/readings\022\211\001\n\tDoCommand\022 .viam.commo" - "n.v1.DoCommandRequest\032!.viam.common.v1.D" - "oCommandResponse\"7\202\323\344\223\0021\"//viam/api/v1/c" - "omponent/sensor/{name}/do_command\022\225\001\n\rGe" - "tGeometries\022$.viam.common.v1.GetGeometri" - "esRequest\032%.viam.common.v1.GetGeometries" - "Response\"7\202\323\344\223\0021\022//viam/api/v1/component" - "/sensor/{name}/geometriesBC\n\034com.viam.co" - "mponent.sensor.v1Z#go.viam.com/api/compo" - "nent/sensor/v1b\006proto3" + "roto\032\034google/api/annotations.proto2\303\003\n\rS" + "ensorService\022\215\001\n\013GetReadings\022\".viam.comm" + "on.v1.GetReadingsRequest\032#.viam.common.v" + "1.GetReadingsResponse\"5\202\323\344\223\002/\022-/viam/api" + "/v1/component/sensor/{name}/readings\022\211\001\n" + "\tDoCommand\022 .viam.common.v1.DoCommandReq" + "uest\032!.viam.common.v1.DoCommandResponse\"" + "7\202\323\344\223\0021\"//viam/api/v1/component/sensor/{" + "name}/do_command\022\225\001\n\rGetGeometries\022$.via" + "m.common.v1.GetGeometriesRequest\032%.viam." + "common.v1.GetGeometriesResponse\"7\202\323\344\223\0021\022" + "//viam/api/v1/component/sensor/{name}/ge" + "ometriesBC\n\034com.viam.component.sensor.v1" + "Z#go.viam.com/api/component/sensor/v1b\006p" + "roto3" ; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_deps[3] = { +static const ::_pbi::DescriptorTable* const descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_deps[2] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, &::descriptor_table_google_2fapi_2fannotations_2eproto, - &::descriptor_table_google_2fprotobuf_2fstruct_2eproto, }; static ::_pbi::once_flag descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto = { - false, false, 982, descriptor_table_protodef_component_2fsensor_2fv1_2fsensor_2eproto, + false, false, 645, descriptor_table_protodef_component_2fsensor_2fv1_2fsensor_2eproto, "component/sensor/v1/sensor.proto", - &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_once, descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_deps, 3, 3, + &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_once, descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_deps, 2, 0, schemas, file_default_instances, TableStruct_component_2fsensor_2fv1_2fsensor_2eproto::offsets, - file_level_metadata_component_2fsensor_2fv1_2fsensor_2eproto, file_level_enum_descriptors_component_2fsensor_2fv1_2fsensor_2eproto, + nullptr, file_level_enum_descriptors_component_2fsensor_2fv1_2fsensor_2eproto, file_level_service_descriptors_component_2fsensor_2fv1_2fsensor_2eproto, }; PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_getter() { @@ -159,491 +77,12 @@ namespace component { namespace sensor { namespace v1 { -// =================================================================== - -class GetReadingsRequest::_Internal { - public: - static const ::PROTOBUF_NAMESPACE_ID::Struct& extra(const GetReadingsRequest* msg); -}; - -const ::PROTOBUF_NAMESPACE_ID::Struct& -GetReadingsRequest::_Internal::extra(const GetReadingsRequest* msg) { - return *msg->extra_; -} -void GetReadingsRequest::clear_extra() { - if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { - delete extra_; - } - extra_ = nullptr; -} -GetReadingsRequest::GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - // @@protoc_insertion_point(arena_constructor:viam.component.sensor.v1.GetReadingsRequest) -} -GetReadingsRequest::GetReadingsRequest(const GetReadingsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - name_.Set(from._internal_name(), - GetArenaForAllocation()); - } - if (from._internal_has_extra()) { - extra_ = new ::PROTOBUF_NAMESPACE_ID::Struct(*from.extra_); - } else { - extra_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:viam.component.sensor.v1.GetReadingsRequest) -} - -inline void GetReadingsRequest::SharedCtor() { -name_.InitDefault(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - name_.Set("", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -extra_ = nullptr; -} - -GetReadingsRequest::~GetReadingsRequest() { - // @@protoc_insertion_point(destructor:viam.component.sensor.v1.GetReadingsRequest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void GetReadingsRequest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - name_.Destroy(); - if (this != internal_default_instance()) delete extra_; -} - -void GetReadingsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void GetReadingsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.component.sensor.v1.GetReadingsRequest) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && extra_ != nullptr) { - delete extra_; - } - extra_ = nullptr; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetReadingsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string name = 1 [json_name = "name"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "viam.component.sensor.v1.GetReadingsRequest.name")); - } else - goto handle_unusual; - continue; - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - case 99: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_extra(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* GetReadingsRequest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.component.sensor.v1.GetReadingsRequest) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1 [json_name = "name"]; - if (!this->_internal_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.component.sensor.v1.GetReadingsRequest.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (this->_internal_has_extra()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(99, _Internal::extra(this), - _Internal::extra(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:viam.component.sensor.v1.GetReadingsRequest) - return target; -} - -size_t GetReadingsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.component.sensor.v1.GetReadingsRequest) - 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 [json_name = "name"]; - if (!this->_internal_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - if (this->_internal_has_extra()) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *extra_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReadingsRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - GetReadingsRequest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetReadingsRequest::GetClassData() const { return &_class_data_; } - -void GetReadingsRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void GetReadingsRequest::MergeFrom(const GetReadingsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.sensor.v1.GetReadingsRequest) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_name().empty()) { - _internal_set_name(from._internal_name()); - } - if (from._internal_has_extra()) { - _internal_mutable_extra()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_extra()); - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void GetReadingsRequest::CopyFrom(const GetReadingsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.sensor.v1.GetReadingsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetReadingsRequest::IsInitialized() const { - return true; -} - -void GetReadingsRequest::InternalSwap(GetReadingsRequest* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &name_, lhs_arena, - &other->name_, rhs_arena - ); - swap(extra_, other->extra_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_getter, &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_once, - file_level_metadata_component_2fsensor_2fv1_2fsensor_2eproto[0]); -} - -// =================================================================== - -GetReadingsResponse_ReadingsEntry_DoNotUse::GetReadingsResponse_ReadingsEntry_DoNotUse() {} -GetReadingsResponse_ReadingsEntry_DoNotUse::GetReadingsResponse_ReadingsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void GetReadingsResponse_ReadingsEntry_DoNotUse::MergeFrom(const GetReadingsResponse_ReadingsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsResponse_ReadingsEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_getter, &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_once, - file_level_metadata_component_2fsensor_2fv1_2fsensor_2eproto[1]); -} - -// =================================================================== - -class GetReadingsResponse::_Internal { - public: -}; - -void GetReadingsResponse::clear_readings() { - readings_.Clear(); -} -GetReadingsResponse::GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - readings_(arena) { - SharedCtor(); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &GetReadingsResponse::ArenaDtor); - } - // @@protoc_insertion_point(arena_constructor:viam.component.sensor.v1.GetReadingsResponse) -} -GetReadingsResponse::GetReadingsResponse(const GetReadingsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - readings_.MergeFrom(from.readings_); - // @@protoc_insertion_point(copy_constructor:viam.component.sensor.v1.GetReadingsResponse) -} - -inline void GetReadingsResponse::SharedCtor() { -} - -GetReadingsResponse::~GetReadingsResponse() { - // @@protoc_insertion_point(destructor:viam.component.sensor.v1.GetReadingsResponse) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); -} - -inline void GetReadingsResponse::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - readings_.Destruct(); -} - -void GetReadingsResponse::ArenaDtor(void* object) { - GetReadingsResponse* _this = reinterpret_cast< GetReadingsResponse* >(object); - _this->readings_.Destruct(); -} -void GetReadingsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void GetReadingsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:viam.component.sensor.v1.GetReadingsResponse) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - readings_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GetReadingsResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // map readings = 1 [json_name = "readings"]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&readings_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* GetReadingsResponse::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:viam.component.sensor.v1.GetReadingsResponse) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // map readings = 1 [json_name = "readings"]; - if (!this->_internal_readings().empty()) { - using MapType = ::_pb::Map; - using WireHelper = GetReadingsResponse_ReadingsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_readings(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "viam.component.sensor.v1.GetReadingsResponse.ReadingsEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:viam.component.sensor.v1.GetReadingsResponse) - return target; -} - -size_t GetReadingsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:viam.component.sensor.v1.GetReadingsResponse) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // map readings = 1 [json_name = "readings"]; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_readings_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >::const_iterator - it = this->_internal_readings().begin(); - it != this->_internal_readings().end(); ++it) { - total_size += GetReadingsResponse_ReadingsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GetReadingsResponse::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - GetReadingsResponse::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetReadingsResponse::GetClassData() const { return &_class_data_; } - -void GetReadingsResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void GetReadingsResponse::MergeFrom(const GetReadingsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:viam.component.sensor.v1.GetReadingsResponse) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - readings_.MergeFrom(from.readings_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void GetReadingsResponse::CopyFrom(const GetReadingsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:viam.component.sensor.v1.GetReadingsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetReadingsResponse::IsInitialized() const { - return true; -} - -void GetReadingsResponse::InternalSwap(GetReadingsResponse* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - readings_.InternalSwap(&other->readings_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata GetReadingsResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_getter, &descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto_once, - file_level_metadata_component_2fsensor_2fv1_2fsensor_2eproto[2]); -} - // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace sensor } // namespace component } // namespace viam PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::viam::component::sensor::v1::GetReadingsRequest* -Arena::CreateMaybeMessage< ::viam::component::sensor::v1::GetReadingsRequest >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::component::sensor::v1::GetReadingsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::viam::component::sensor::v1::GetReadingsResponse* -Arena::CreateMaybeMessage< ::viam::component::sensor::v1::GetReadingsResponse >(Arena* arena) { - return Arena::CreateMessageInternal< ::viam::component::sensor::v1::GetReadingsResponse >(arena); -} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/src/viam/api/component/sensor/v1/sensor.pb.h b/src/viam/api/component/sensor/v1/sensor.pb.h index 4b86fb655..a9365e8af 100644 --- a/src/viam/api/component/sensor/v1/sensor.pb.h +++ b/src/viam/api/component/sensor/v1/sensor.pb.h @@ -26,16 +26,10 @@ #include #include #include -#include #include // IWYU pragma: export #include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include #include "common/v1/common.pb.h" #include "google/api/annotations.pb.h" -#include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_component_2fsensor_2fv1_2fsensor_2eproto @@ -50,27 +44,7 @@ struct TableStruct_component_2fsensor_2fv1_2fsensor_2eproto { static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2fsensor_2fv1_2fsensor_2eproto; -namespace viam { -namespace component { -namespace sensor { -namespace v1 { -class GetReadingsRequest; -struct GetReadingsRequestDefaultTypeInternal; -extern GetReadingsRequestDefaultTypeInternal _GetReadingsRequest_default_instance_; -class GetReadingsResponse; -struct GetReadingsResponseDefaultTypeInternal; -extern GetReadingsResponseDefaultTypeInternal _GetReadingsResponse_default_instance_; -class GetReadingsResponse_ReadingsEntry_DoNotUse; -struct GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal; -extern GetReadingsResponse_ReadingsEntry_DoNotUseDefaultTypeInternal _GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_; -} // namespace v1 -} // namespace sensor -} // namespace component -} // namespace viam PROTOBUF_NAMESPACE_OPEN -template<> ::viam::component::sensor::v1::GetReadingsRequest* Arena::CreateMaybeMessage<::viam::component::sensor::v1::GetReadingsRequest>(Arena*); -template<> ::viam::component::sensor::v1::GetReadingsResponse* Arena::CreateMaybeMessage<::viam::component::sensor::v1::GetReadingsResponse>(Arena*); -template<> ::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse* Arena::CreateMaybeMessage<::viam::component::sensor::v1::GetReadingsResponse_ReadingsEntry_DoNotUse>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace viam { namespace component { @@ -79,356 +53,7 @@ namespace v1 { // =================================================================== -class GetReadingsRequest final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.sensor.v1.GetReadingsRequest) */ { - public: - inline GetReadingsRequest() : GetReadingsRequest(nullptr) {} - ~GetReadingsRequest() override; - explicit PROTOBUF_CONSTEXPR GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GetReadingsRequest(const GetReadingsRequest& from); - GetReadingsRequest(GetReadingsRequest&& from) noexcept - : GetReadingsRequest() { - *this = ::std::move(from); - } - - inline GetReadingsRequest& operator=(const GetReadingsRequest& from) { - CopyFrom(from); - return *this; - } - inline GetReadingsRequest& operator=(GetReadingsRequest&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetReadingsRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetReadingsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetReadingsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(GetReadingsRequest& a, GetReadingsRequest& b) { - a.Swap(&b); - } - inline void Swap(GetReadingsRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetReadingsRequest* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetReadingsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GetReadingsRequest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GetReadingsRequest& from); - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetReadingsRequest* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.component.sensor.v1.GetReadingsRequest"; - } - protected: - explicit GetReadingsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 1, - kExtraFieldNumber = 99, - }; - // string name = 1 [json_name = "name"]; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - 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: - - // .google.protobuf.Struct extra = 99 [json_name = "extra"]; - bool has_extra() const; - private: - bool _internal_has_extra() const; - public: - void clear_extra(); - const ::PROTOBUF_NAMESPACE_ID::Struct& extra() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Struct* release_extra(); - ::PROTOBUF_NAMESPACE_ID::Struct* mutable_extra(); - void set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra); - private: - const ::PROTOBUF_NAMESPACE_ID::Struct& _internal_extra() const; - ::PROTOBUF_NAMESPACE_ID::Struct* _internal_mutable_extra(); - public: - void unsafe_arena_set_allocated_extra( - ::PROTOBUF_NAMESPACE_ID::Struct* extra); - ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_extra(); - - // @@protoc_insertion_point(class_scope:viam.component.sensor.v1.GetReadingsRequest) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::Struct* extra_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_component_2fsensor_2fv1_2fsensor_2eproto; -}; -// ------------------------------------------------------------------- - -class GetReadingsResponse_ReadingsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - GetReadingsResponse_ReadingsEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR GetReadingsResponse_ReadingsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit GetReadingsResponse_ReadingsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const GetReadingsResponse_ReadingsEntry_DoNotUse& other); - static const GetReadingsResponse_ReadingsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GetReadingsResponse_ReadingsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "viam.component.sensor.v1.GetReadingsResponse.ReadingsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_component_2fsensor_2fv1_2fsensor_2eproto; -}; - -// ------------------------------------------------------------------- - -class GetReadingsResponse final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.component.sensor.v1.GetReadingsResponse) */ { - public: - inline GetReadingsResponse() : GetReadingsResponse(nullptr) {} - ~GetReadingsResponse() override; - explicit PROTOBUF_CONSTEXPR GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GetReadingsResponse(const GetReadingsResponse& from); - GetReadingsResponse(GetReadingsResponse&& from) noexcept - : GetReadingsResponse() { - *this = ::std::move(from); - } - - inline GetReadingsResponse& operator=(const GetReadingsResponse& from) { - CopyFrom(from); - return *this; - } - inline GetReadingsResponse& operator=(GetReadingsResponse&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetReadingsResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetReadingsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetReadingsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(GetReadingsResponse& a, GetReadingsResponse& b) { - a.Swap(&b); - } - inline void Swap(GetReadingsResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetReadingsResponse* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetReadingsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GetReadingsResponse& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const GetReadingsResponse& from); - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetReadingsResponse* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "viam.component.sensor.v1.GetReadingsResponse"; - } - protected: - explicit GetReadingsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kReadingsFieldNumber = 1, - }; - // map readings = 1 [json_name = "readings"]; - int readings_size() const; - private: - int _internal_readings_size() const; - public: - void clear_readings(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - _internal_readings() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - _internal_mutable_readings(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - readings() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - mutable_readings(); - - // @@protoc_insertion_point(class_scope:viam.component.sensor.v1.GetReadingsResponse) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - GetReadingsResponse_ReadingsEntry_DoNotUse, - std::string, ::PROTOBUF_NAMESPACE_ID::Value, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> readings_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_component_2fsensor_2fv1_2fsensor_2eproto; -}; // =================================================================== @@ -438,182 +63,9 @@ class GetReadingsResponse final : #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ -// GetReadingsRequest - -// string name = 1 [json_name = "name"]; -inline void GetReadingsRequest::clear_name() { - name_.ClearToEmpty(); -} -inline const std::string& GetReadingsRequest::name() const { - // @@protoc_insertion_point(field_get:viam.component.sensor.v1.GetReadingsRequest.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void GetReadingsRequest::set_name(ArgT0&& arg0, ArgT... args) { - - name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:viam.component.sensor.v1.GetReadingsRequest.name) -} -inline std::string* GetReadingsRequest::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:viam.component.sensor.v1.GetReadingsRequest.name) - return _s; -} -inline const std::string& GetReadingsRequest::_internal_name() const { - return name_.Get(); -} -inline void GetReadingsRequest::_internal_set_name(const std::string& value) { - - name_.Set(value, GetArenaForAllocation()); -} -inline std::string* GetReadingsRequest::_internal_mutable_name() { - - return name_.Mutable(GetArenaForAllocation()); -} -inline std::string* GetReadingsRequest::release_name() { - // @@protoc_insertion_point(field_release:viam.component.sensor.v1.GetReadingsRequest.name) - return name_.Release(); -} -inline void GetReadingsRequest::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (name_.IsDefault()) { - name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:viam.component.sensor.v1.GetReadingsRequest.name) -} - -// .google.protobuf.Struct extra = 99 [json_name = "extra"]; -inline bool GetReadingsRequest::_internal_has_extra() const { - return this != internal_default_instance() && extra_ != nullptr; -} -inline bool GetReadingsRequest::has_extra() const { - return _internal_has_extra(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetReadingsRequest::_internal_extra() const { - const ::PROTOBUF_NAMESPACE_ID::Struct* p = extra_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_Struct_default_instance_); -} -inline const ::PROTOBUF_NAMESPACE_ID::Struct& GetReadingsRequest::extra() const { - // @@protoc_insertion_point(field_get:viam.component.sensor.v1.GetReadingsRequest.extra) - return _internal_extra(); -} -inline void GetReadingsRequest::unsafe_arena_set_allocated_extra( - ::PROTOBUF_NAMESPACE_ID::Struct* extra) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); - } - extra_ = extra; - if (extra) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.component.sensor.v1.GetReadingsRequest.extra) -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* GetReadingsRequest::release_extra() { - - ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; - extra_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* GetReadingsRequest::unsafe_arena_release_extra() { - // @@protoc_insertion_point(field_release:viam.component.sensor.v1.GetReadingsRequest.extra) - - ::PROTOBUF_NAMESPACE_ID::Struct* temp = extra_; - extra_ = nullptr; - return temp; -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* GetReadingsRequest::_internal_mutable_extra() { - - if (extra_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Struct>(GetArenaForAllocation()); - extra_ = p; - } - return extra_; -} -inline ::PROTOBUF_NAMESPACE_ID::Struct* GetReadingsRequest::mutable_extra() { - ::PROTOBUF_NAMESPACE_ID::Struct* _msg = _internal_mutable_extra(); - // @@protoc_insertion_point(field_mutable:viam.component.sensor.v1.GetReadingsRequest.extra) - return _msg; -} -inline void GetReadingsRequest::set_allocated_extra(::PROTOBUF_NAMESPACE_ID::Struct* extra) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra_); - } - if (extra) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extra)); - if (message_arena != submessage_arena) { - extra = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, extra, submessage_arena); - } - - } else { - - } - extra_ = extra; - // @@protoc_insertion_point(field_set_allocated:viam.component.sensor.v1.GetReadingsRequest.extra) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// GetReadingsResponse - -// map readings = 1 [json_name = "readings"]; -inline int GetReadingsResponse::_internal_readings_size() const { - return readings_.size(); -} -inline int GetReadingsResponse::readings_size() const { - return _internal_readings_size(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -GetReadingsResponse::_internal_readings() const { - return readings_.GetMap(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -GetReadingsResponse::readings() const { - // @@protoc_insertion_point(field_map:viam.component.sensor.v1.GetReadingsResponse.readings) - return _internal_readings(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -GetReadingsResponse::_internal_mutable_readings() { - return readings_.MutableMap(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -GetReadingsResponse::mutable_readings() { - // @@protoc_insertion_point(field_mutable_map:viam.component.sensor.v1.GetReadingsResponse.readings) - return _internal_mutable_readings(); -} - #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/src/viam/api/robot/v1/robot.pb.cc b/src/viam/api/robot/v1/robot.pb.cc index 85acf82eb..9cdce02d3 100644 --- a/src/viam/api/robot/v1/robot.pb.cc +++ b/src/viam/api/robot/v1/robot.pb.cc @@ -360,7 +360,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT PROTOBUF_CONSTEXPR Status::Status( ::_pbi::ConstantInitialized) : name_(nullptr) - , status_(nullptr){} + , status_(nullptr) + , last_reconfigured_(nullptr){} struct StatusDefaultTypeInternal { PROTOBUF_CONSTEXPR StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -727,6 +728,7 @@ const uint32_t TableStruct_robot_2fv1_2frobot_2eproto::offsets[] PROTOBUF_SECTIO ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Status, name_), PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Status, status_), + PROTOBUF_FIELD_OFFSET(::viam::robot::v1::Status, last_reconfigured_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::viam::robot::v1::GetStatusRequest, _internal_metadata_), ~0u, // no _extensions_ @@ -835,17 +837,17 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 194, -1, -1, sizeof(::viam::robot::v1::DiscoverComponentsRequest)}, { 201, -1, -1, sizeof(::viam::robot::v1::DiscoverComponentsResponse)}, { 208, -1, -1, sizeof(::viam::robot::v1::Status)}, - { 216, -1, -1, sizeof(::viam::robot::v1::GetStatusRequest)}, - { 223, -1, -1, sizeof(::viam::robot::v1::GetStatusResponse)}, - { 230, -1, -1, sizeof(::viam::robot::v1::StreamStatusRequest)}, - { 238, -1, -1, sizeof(::viam::robot::v1::StreamStatusResponse)}, - { 245, -1, -1, sizeof(::viam::robot::v1::StopExtraParameters)}, - { 253, -1, -1, sizeof(::viam::robot::v1::StopAllRequest)}, - { 260, -1, -1, sizeof(::viam::robot::v1::StopAllResponse)}, - { 266, -1, -1, sizeof(::viam::robot::v1::StartSessionRequest)}, - { 273, -1, -1, sizeof(::viam::robot::v1::StartSessionResponse)}, - { 281, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatRequest)}, - { 288, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatResponse)}, + { 217, -1, -1, sizeof(::viam::robot::v1::GetStatusRequest)}, + { 224, -1, -1, sizeof(::viam::robot::v1::GetStatusResponse)}, + { 231, -1, -1, sizeof(::viam::robot::v1::StreamStatusRequest)}, + { 239, -1, -1, sizeof(::viam::robot::v1::StreamStatusResponse)}, + { 246, -1, -1, sizeof(::viam::robot::v1::StopExtraParameters)}, + { 254, -1, -1, sizeof(::viam::robot::v1::StopAllRequest)}, + { 261, -1, -1, sizeof(::viam::robot::v1::StopAllResponse)}, + { 267, -1, -1, sizeof(::viam::robot::v1::StartSessionRequest)}, + { 274, -1, -1, sizeof(::viam::robot::v1::StartSessionResponse)}, + { 282, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatRequest)}, + { 289, -1, -1, sizeof(::viam::robot::v1::SendSessionHeartbeatResponse)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -956,86 +958,88 @@ const char descriptor_table_protodef_robot_2fv1_2frobot_2eproto[] PROTOBUF_SECTI "t\0227\n\007queries\030\001 \003(\0132\035.viam.robot.v1.Disco" "veryQueryR\007queries\"T\n\032DiscoverComponents" "Response\0226\n\tdiscovery\030\001 \003(\0132\030.viam.robot" - ".v1.DiscoveryR\tdiscovery\"k\n\006Status\0220\n\004na" - "me\030\001 \001(\0132\034.viam.common.v1.ResourceNameR\004" - "name\022/\n\006status\030\002 \001(\0132\027.google.protobuf.S" - "tructR\006status\"W\n\020GetStatusRequest\022C\n\016res" - "ource_names\030\001 \003(\0132\034.viam.common.v1.Resou" - "rceNameR\rresourceNames\"B\n\021GetStatusRespo" - "nse\022-\n\006status\030\001 \003(\0132\025.viam.robot.v1.Stat" - "usR\006status\"\213\001\n\023StreamStatusRequest\022C\n\016re" - "source_names\030\001 \003(\0132\034.viam.common.v1.Reso" - "urceNameR\rresourceNames\022/\n\005every\030\002 \001(\0132\031" - ".google.protobuf.DurationR\005every\"E\n\024Stre" - "amStatusResponse\022-\n\006status\030\001 \003(\0132\025.viam." - "robot.v1.StatusR\006status\"x\n\023StopExtraPara" - "meters\0220\n\004name\030\001 \001(\0132\034.viam.common.v1.Re" - "sourceNameR\004name\022/\n\006params\030\002 \001(\0132\027.googl" - "e.protobuf.StructR\006params\"J\n\016StopAllRequ" - "est\0228\n\005extra\030c \003(\0132\".viam.robot.v1.StopE" - "xtraParametersR\005extra\"\021\n\017StopAllResponse" - "\"-\n\023StartSessionRequest\022\026\n\006resume\030\001 \001(\tR" - "\006resume\"l\n\024StartSessionResponse\022\016\n\002id\030\001 " - "\001(\tR\002id\022D\n\020heartbeat_window\030\002 \001(\0132\031.goog" - "le.protobuf.DurationR\017heartbeatWindow\"-\n" - "\033SendSessionHeartbeatRequest\022\016\n\002id\030\001 \001(\t" - "R\002id\"\036\n\034SendSessionHeartbeatResponse*z\n\022" - "PeerConnectionType\022$\n PEER_CONNECTION_TY" - "PE_UNSPECIFIED\020\000\022\035\n\031PEER_CONNECTION_TYPE" - "_GRPC\020\001\022\037\n\033PEER_CONNECTION_TYPE_WEBRTC\020\002" - "2\370\017\n\014RobotService\022\200\001\n\rGetOperations\022#.vi" - "am.robot.v1.GetOperationsRequest\032$.viam." - "robot.v1.GetOperationsResponse\"$\202\323\344\223\002\036\022\034" - "/viam/api/v1/operations/list\022x\n\013GetSessi" - "ons\022!.viam.robot.v1.GetSessionsRequest\032\"" - ".viam.robot.v1.GetSessionsResponse\"\"\202\323\344\223" - "\002\034\022\032/viam/api/v1/sessions/list\022\177\n\rResour" - "ceNames\022#.viam.robot.v1.ResourceNamesReq" - "uest\032$.viam.robot.v1.ResourceNamesRespon" - "se\"#\202\323\344\223\002\035\022\033/viam/api/v1/resources/list\022" - "\235\001\n\023ResourceRPCSubtypes\022).viam.robot.v1." - "ResourceRPCSubtypesRequest\032*.viam.robot." - "v1.ResourceRPCSubtypesResponse\"/\202\323\344\223\002)\022\'" - "/viam/api/v1/resource_rpc_subtypes/list\022" - "\210\001\n\017CancelOperation\022%.viam.robot.v1.Canc" - "elOperationRequest\032&.viam.robot.v1.Cance" - "lOperationResponse\"&\202\323\344\223\002 \"\036/viam/api/v1" - "/operations/cancel\022\215\001\n\021BlockForOperation" - "\022\'.viam.robot.v1.BlockForOperationReques" - "t\032(.viam.robot.v1.BlockForOperationRespo" - "nse\"%\202\323\344\223\002\037\"\035/viam/api/v1/operations/blo" - "ck\022\224\001\n\022DiscoverComponents\022(.viam.robot.v" - "1.DiscoverComponentsRequest\032).viam.robot" - ".v1.DiscoverComponentsResponse\")\202\323\344\223\002#\022!" - "/viam/api/v1/discovery/components\022\220\001\n\021Fr" - "ameSystemConfig\022\'.viam.robot.v1.FrameSys" - "temConfigRequest\032(.viam.robot.v1.FrameSy" - "stemConfigResponse\"(\202\323\344\223\002\"\022 /viam/api/v1" - "/frame_system/config\022\214\001\n\rTransformPose\022#" - ".viam.robot.v1.TransformPoseRequest\032$.vi" - "am.robot.v1.TransformPoseResponse\"0\202\323\344\223\002" - "*\022(/viam/api/v1/frame_system/transform_p" - "ose\022\210\001\n\014TransformPCD\022\".viam.robot.v1.Tra" - "nsformPCDRequest\032#.viam.robot.v1.Transfo" - "rmPCDResponse\"/\202\323\344\223\002)\022\'/viam/api/v1/fram" - "e_system/transform_pcd\022k\n\tGetStatus\022\037.vi" - "am.robot.v1.GetStatusRequest\032 .viam.robo" - "t.v1.GetStatusResponse\"\033\202\323\344\223\002\025\022\023/viam/ap" - "i/v1/status\022}\n\014StreamStatus\022\".viam.robot" - ".v1.StreamStatusRequest\032#.viam.robot.v1." - "StreamStatusResponse\"\"\202\323\344\223\002\034\022\032/viam/api/" - "v1/status/stream0\001\022g\n\007StopAll\022\035.viam.rob" - "ot.v1.StopAllRequest\032\036.viam.robot.v1.Sto" - "pAllResponse\"\035\202\323\344\223\002\027\022\025/viam/api/v1/stop_" - "all\022v\n\014StartSession\022\".viam.robot.v1.Star" - "tSessionRequest\032#.viam.robot.v1.StartSes" - "sionResponse\"\035\202\323\344\223\002\027\"\025/viam/api/v1/sessi" - "ons\022\235\001\n\024SendSessionHeartbeat\022*.viam.robo" - "t.v1.SendSessionHeartbeatRequest\032+.viam." - "robot.v1.SendSessionHeartbeatResponse\",\202" - "\323\344\223\002&\"$/viam/api/v1/sessions/{id}/heartb" - "eatB-\n\021com.viam.robot.v1Z\030go.viam.com/ap" - "i/robot/v1b\006proto3" + ".v1.DiscoveryR\tdiscovery\"\264\001\n\006Status\0220\n\004n" + "ame\030\001 \001(\0132\034.viam.common.v1.ResourceNameR" + "\004name\022/\n\006status\030\002 \001(\0132\027.google.protobuf." + "StructR\006status\022G\n\021last_reconfigured\030\003 \001(" + "\0132\032.google.protobuf.TimestampR\020lastRecon" + "figured\"W\n\020GetStatusRequest\022C\n\016resource_" + "names\030\001 \003(\0132\034.viam.common.v1.ResourceNam" + "eR\rresourceNames\"B\n\021GetStatusResponse\022-\n" + "\006status\030\001 \003(\0132\025.viam.robot.v1.StatusR\006st" + "atus\"\213\001\n\023StreamStatusRequest\022C\n\016resource" + "_names\030\001 \003(\0132\034.viam.common.v1.ResourceNa" + "meR\rresourceNames\022/\n\005every\030\002 \001(\0132\031.googl" + "e.protobuf.DurationR\005every\"E\n\024StreamStat" + "usResponse\022-\n\006status\030\001 \003(\0132\025.viam.robot." + "v1.StatusR\006status\"x\n\023StopExtraParameters" + "\0220\n\004name\030\001 \001(\0132\034.viam.common.v1.Resource" + "NameR\004name\022/\n\006params\030\002 \001(\0132\027.google.prot" + "obuf.StructR\006params\"J\n\016StopAllRequest\0228\n" + "\005extra\030c \003(\0132\".viam.robot.v1.StopExtraPa" + "rametersR\005extra\"\021\n\017StopAllResponse\"-\n\023St" + "artSessionRequest\022\026\n\006resume\030\001 \001(\tR\006resum" + "e\"l\n\024StartSessionResponse\022\016\n\002id\030\001 \001(\tR\002i" + "d\022D\n\020heartbeat_window\030\002 \001(\0132\031.google.pro" + "tobuf.DurationR\017heartbeatWindow\"-\n\033SendS" + "essionHeartbeatRequest\022\016\n\002id\030\001 \001(\tR\002id\"\036" + "\n\034SendSessionHeartbeatResponse*z\n\022PeerCo" + "nnectionType\022$\n PEER_CONNECTION_TYPE_UNS" + "PECIFIED\020\000\022\035\n\031PEER_CONNECTION_TYPE_GRPC\020" + "\001\022\037\n\033PEER_CONNECTION_TYPE_WEBRTC\020\0022\370\017\n\014R" + "obotService\022\200\001\n\rGetOperations\022#.viam.rob" + "ot.v1.GetOperationsRequest\032$.viam.robot." + "v1.GetOperationsResponse\"$\202\323\344\223\002\036\022\034/viam/" + "api/v1/operations/list\022x\n\013GetSessions\022!." + "viam.robot.v1.GetSessionsRequest\032\".viam." + "robot.v1.GetSessionsResponse\"\"\202\323\344\223\002\034\022\032/v" + "iam/api/v1/sessions/list\022\177\n\rResourceName" + "s\022#.viam.robot.v1.ResourceNamesRequest\032$" + ".viam.robot.v1.ResourceNamesResponse\"#\202\323" + "\344\223\002\035\022\033/viam/api/v1/resources/list\022\235\001\n\023Re" + "sourceRPCSubtypes\022).viam.robot.v1.Resour" + "ceRPCSubtypesRequest\032*.viam.robot.v1.Res" + "ourceRPCSubtypesResponse\"/\202\323\344\223\002)\022\'/viam/" + "api/v1/resource_rpc_subtypes/list\022\210\001\n\017Ca" + "ncelOperation\022%.viam.robot.v1.CancelOper" + "ationRequest\032&.viam.robot.v1.CancelOpera" + "tionResponse\"&\202\323\344\223\002 \"\036/viam/api/v1/opera" + "tions/cancel\022\215\001\n\021BlockForOperation\022\'.via" + "m.robot.v1.BlockForOperationRequest\032(.vi" + "am.robot.v1.BlockForOperationResponse\"%\202" + "\323\344\223\002\037\"\035/viam/api/v1/operations/block\022\224\001\n" + "\022DiscoverComponents\022(.viam.robot.v1.Disc" + "overComponentsRequest\032).viam.robot.v1.Di" + "scoverComponentsResponse\")\202\323\344\223\002#\022!/viam/" + "api/v1/discovery/components\022\220\001\n\021FrameSys" + "temConfig\022\'.viam.robot.v1.FrameSystemCon" + "figRequest\032(.viam.robot.v1.FrameSystemCo" + "nfigResponse\"(\202\323\344\223\002\"\022 /viam/api/v1/frame" + "_system/config\022\214\001\n\rTransformPose\022#.viam." + "robot.v1.TransformPoseRequest\032$.viam.rob" + "ot.v1.TransformPoseResponse\"0\202\323\344\223\002*\022(/vi" + "am/api/v1/frame_system/transform_pose\022\210\001" + "\n\014TransformPCD\022\".viam.robot.v1.Transform" + "PCDRequest\032#.viam.robot.v1.TransformPCDR" + "esponse\"/\202\323\344\223\002)\022\'/viam/api/v1/frame_syst" + "em/transform_pcd\022k\n\tGetStatus\022\037.viam.rob" + "ot.v1.GetStatusRequest\032 .viam.robot.v1.G" + "etStatusResponse\"\033\202\323\344\223\002\025\022\023/viam/api/v1/s" + "tatus\022}\n\014StreamStatus\022\".viam.robot.v1.St" + "reamStatusRequest\032#.viam.robot.v1.Stream" + "StatusResponse\"\"\202\323\344\223\002\034\022\032/viam/api/v1/sta" + "tus/stream0\001\022g\n\007StopAll\022\035.viam.robot.v1." + "StopAllRequest\032\036.viam.robot.v1.StopAllRe" + "sponse\"\035\202\323\344\223\002\027\022\025/viam/api/v1/stop_all\022v\n" + "\014StartSession\022\".viam.robot.v1.StartSessi" + "onRequest\032#.viam.robot.v1.StartSessionRe" + "sponse\"\035\202\323\344\223\002\027\"\025/viam/api/v1/sessions\022\235\001" + "\n\024SendSessionHeartbeat\022*.viam.robot.v1.S" + "endSessionHeartbeatRequest\032+.viam.robot." + "v1.SendSessionHeartbeatResponse\",\202\323\344\223\002&\"" + "$/viam/api/v1/sessions/{id}/heartbeatB-\n" + "\021com.viam.robot.v1Z\030go.viam.com/api/robo" + "t/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_robot_2fv1_2frobot_2eproto_deps[5] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -1046,7 +1050,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_robot_2fv1_2frobot_ }; static ::_pbi::once_flag descriptor_table_robot_2fv1_2frobot_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_robot_2fv1_2frobot_2eproto = { - false, false, 5778, descriptor_table_protodef_robot_2fv1_2frobot_2eproto, + false, false, 5852, descriptor_table_protodef_robot_2fv1_2frobot_2eproto, "robot/v1/robot.proto", &descriptor_table_robot_2fv1_2frobot_2eproto_once, descriptor_table_robot_2fv1_2frobot_2eproto_deps, 5, 39, schemas, file_default_instances, TableStruct_robot_2fv1_2frobot_2eproto::offsets, @@ -6011,6 +6015,7 @@ class Status::_Internal { public: static const ::viam::common::v1::ResourceName& name(const Status* msg); static const ::PROTOBUF_NAMESPACE_ID::Struct& status(const Status* msg); + static const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_reconfigured(const Status* msg); }; const ::viam::common::v1::ResourceName& @@ -6021,6 +6026,10 @@ const ::PROTOBUF_NAMESPACE_ID::Struct& Status::_Internal::status(const Status* msg) { return *msg->status_; } +const ::PROTOBUF_NAMESPACE_ID::Timestamp& +Status::_Internal::last_reconfigured(const Status* msg) { + return *msg->last_reconfigured_; +} void Status::clear_name() { if (GetArenaForAllocation() == nullptr && name_ != nullptr) { delete name_; @@ -6033,6 +6042,12 @@ void Status::clear_status() { } status_ = nullptr; } +void Status::clear_last_reconfigured() { + if (GetArenaForAllocation() == nullptr && last_reconfigured_ != nullptr) { + delete last_reconfigured_; + } + last_reconfigured_ = nullptr; +} Status::Status(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -6052,14 +6067,19 @@ Status::Status(const Status& from) } else { status_ = nullptr; } + if (from._internal_has_last_reconfigured()) { + last_reconfigured_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_reconfigured_); + } else { + last_reconfigured_ = nullptr; + } // @@protoc_insertion_point(copy_constructor:viam.robot.v1.Status) } inline void Status::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&name_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&status_) - - reinterpret_cast(&name_)) + sizeof(status_)); + 0, static_cast(reinterpret_cast(&last_reconfigured_) - + reinterpret_cast(&name_)) + sizeof(last_reconfigured_)); } Status::~Status() { @@ -6075,6 +6095,7 @@ inline void Status::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete name_; if (this != internal_default_instance()) delete status_; + if (this != internal_default_instance()) delete last_reconfigured_; } void Status::SetCachedSize(int size) const { @@ -6095,6 +6116,10 @@ void Status::Clear() { delete status_; } status_ = nullptr; + if (GetArenaForAllocation() == nullptr && last_reconfigured_ != nullptr) { + delete last_reconfigured_; + } + last_reconfigured_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -6120,6 +6145,14 @@ const char* Status::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { } else goto handle_unusual; continue; + // .google.protobuf.Timestamp last_reconfigured = 3 [json_name = "lastReconfigured"]; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_last_reconfigured(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -6163,6 +6196,13 @@ uint8_t* Status::_InternalSerialize( _Internal::status(this).GetCachedSize(), target, stream); } + // .google.protobuf.Timestamp last_reconfigured = 3 [json_name = "lastReconfigured"]; + if (this->_internal_has_last_reconfigured()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::last_reconfigured(this), + _Internal::last_reconfigured(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -6193,6 +6233,13 @@ size_t Status::ByteSizeLong() const { *status_); } + // .google.protobuf.Timestamp last_reconfigured = 3 [json_name = "lastReconfigured"]; + if (this->_internal_has_last_reconfigured()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *last_reconfigured_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); } @@ -6221,6 +6268,9 @@ void Status::MergeFrom(const Status& from) { if (from._internal_has_status()) { _internal_mutable_status()->::PROTOBUF_NAMESPACE_ID::Struct::MergeFrom(from._internal_status()); } + if (from._internal_has_last_reconfigured()) { + _internal_mutable_last_reconfigured()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_last_reconfigured()); + } _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -6239,8 +6289,8 @@ void Status::InternalSwap(Status* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Status, status_) - + sizeof(Status::status_) + PROTOBUF_FIELD_OFFSET(Status, last_reconfigured_) + + sizeof(Status::last_reconfigured_) - PROTOBUF_FIELD_OFFSET(Status, name_)>( reinterpret_cast(&name_), reinterpret_cast(&other->name_)); diff --git a/src/viam/api/robot/v1/robot.pb.h b/src/viam/api/robot/v1/robot.pb.h index 65d10aac5..bc1ec3201 100644 --- a/src/viam/api/robot/v1/robot.pb.h +++ b/src/viam/api/robot/v1/robot.pb.h @@ -4498,6 +4498,7 @@ class Status final : enum : int { kNameFieldNumber = 1, kStatusFieldNumber = 2, + kLastReconfiguredFieldNumber = 3, }; // .viam.common.v1.ResourceName name = 1 [json_name = "name"]; bool has_name() const; @@ -4535,6 +4536,24 @@ class Status final : ::PROTOBUF_NAMESPACE_ID::Struct* status); ::PROTOBUF_NAMESPACE_ID::Struct* unsafe_arena_release_status(); + // .google.protobuf.Timestamp last_reconfigured = 3 [json_name = "lastReconfigured"]; + bool has_last_reconfigured() const; + private: + bool _internal_has_last_reconfigured() const; + public: + void clear_last_reconfigured(); + const ::PROTOBUF_NAMESPACE_ID::Timestamp& last_reconfigured() const; + PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_last_reconfigured(); + ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_reconfigured(); + void set_allocated_last_reconfigured(::PROTOBUF_NAMESPACE_ID::Timestamp* last_reconfigured); + private: + const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_reconfigured() const; + ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_reconfigured(); + public: + void unsafe_arena_set_allocated_last_reconfigured( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_reconfigured); + ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_last_reconfigured(); + // @@protoc_insertion_point(class_scope:viam.robot.v1.Status) private: class _Internal; @@ -4544,6 +4563,7 @@ class Status final : typedef void DestructorSkippable_; ::viam::common::v1::ResourceName* name_; ::PROTOBUF_NAMESPACE_ID::Struct* status_; + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_reconfigured_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_robot_2fv1_2frobot_2eproto; }; @@ -8569,6 +8589,91 @@ inline void Status::set_allocated_status(::PROTOBUF_NAMESPACE_ID::Struct* status // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Status.status) } +// .google.protobuf.Timestamp last_reconfigured = 3 [json_name = "lastReconfigured"]; +inline bool Status::_internal_has_last_reconfigured() const { + return this != internal_default_instance() && last_reconfigured_ != nullptr; +} +inline bool Status::has_last_reconfigured() const { + return _internal_has_last_reconfigured(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Status::_internal_last_reconfigured() const { + const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = last_reconfigured_; + return p != nullptr ? *p : reinterpret_cast( + ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +} +inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& Status::last_reconfigured() const { + // @@protoc_insertion_point(field_get:viam.robot.v1.Status.last_reconfigured) + return _internal_last_reconfigured(); +} +inline void Status::unsafe_arena_set_allocated_last_reconfigured( + ::PROTOBUF_NAMESPACE_ID::Timestamp* last_reconfigured) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_reconfigured_); + } + last_reconfigured_ = last_reconfigured; + if (last_reconfigured) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.robot.v1.Status.last_reconfigured) +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Status::release_last_reconfigured() { + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_reconfigured_; + last_reconfigured_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Status::unsafe_arena_release_last_reconfigured() { + // @@protoc_insertion_point(field_release:viam.robot.v1.Status.last_reconfigured) + + ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_reconfigured_; + last_reconfigured_ = nullptr; + return temp; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Status::_internal_mutable_last_reconfigured() { + + if (last_reconfigured_ == nullptr) { + auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); + last_reconfigured_ = p; + } + return last_reconfigured_; +} +inline ::PROTOBUF_NAMESPACE_ID::Timestamp* Status::mutable_last_reconfigured() { + ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_last_reconfigured(); + // @@protoc_insertion_point(field_mutable:viam.robot.v1.Status.last_reconfigured) + return _msg; +} +inline void Status::set_allocated_last_reconfigured(::PROTOBUF_NAMESPACE_ID::Timestamp* last_reconfigured) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_reconfigured_); + } + if (last_reconfigured) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_reconfigured)); + if (message_arena != submessage_arena) { + last_reconfigured = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, last_reconfigured, submessage_arena); + } + + } else { + + } + last_reconfigured_ = last_reconfigured; + // @@protoc_insertion_point(field_set_allocated:viam.robot.v1.Status.last_reconfigured) +} + // ------------------------------------------------------------------- // GetStatusRequest diff --git a/src/viam/api/service/motion/v1/motion.pb.cc b/src/viam/api/service/motion/v1/motion.pb.cc index da952a9cb..94549692d 100644 --- a/src/viam/api/service/motion/v1/motion.pb.cc +++ b/src/viam/api/service/motion/v1/motion.pb.cc @@ -81,9 +81,22 @@ struct MoveOnMapResponseDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MoveOnMapResponseDefaultTypeInternal _MoveOnMapResponse_default_instance_; +PROTOBUF_CONSTEXPR ObstacleDetector::ObstacleDetector( + ::_pbi::ConstantInitialized) + : vision_service_(nullptr) + , camera_(nullptr){} +struct ObstacleDetectorDefaultTypeInternal { + PROTOBUF_CONSTEXPR ObstacleDetectorDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ObstacleDetectorDefaultTypeInternal() {} + union { + ObstacleDetector _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ObstacleDetectorDefaultTypeInternal _ObstacleDetector_default_instance_; PROTOBUF_CONSTEXPR MotionConfiguration::MotionConfiguration( ::_pbi::ConstantInitialized) - : vision_services_() + : obstacle_detectors_() , position_polling_frequency_hz_(0) , obstacle_polling_frequency_hz_(0) , plan_deviation_m_(0) @@ -430,7 +443,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace motion } // namespace service } // namespace viam -static ::_pb::Metadata file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[29]; +static ::_pb::Metadata file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[30]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_service_2fmotion_2fv1_2fmotion_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_service_2fmotion_2fv1_2fmotion_2eproto = nullptr; @@ -478,13 +491,21 @@ const uint32_t TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets[] PRO ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MoveOnMapResponse, success_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ObstacleDetector, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ObstacleDetector, vision_service_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::ObstacleDetector, camera_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, _has_bits_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, vision_services_), + PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, obstacle_detectors_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, position_polling_frequency_hz_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, obstacle_polling_frequency_hz_), PROTOBUF_FIELD_OFFSET(::viam::service::motion::v1::MotionConfiguration, plan_deviation_m_), @@ -740,31 +761,32 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 18, -1, -1, sizeof(::viam::service::motion::v1::MoveResponse)}, { 25, -1, -1, sizeof(::viam::service::motion::v1::MoveOnMapRequest)}, { 36, -1, -1, sizeof(::viam::service::motion::v1::MoveOnMapResponse)}, - { 43, 55, -1, sizeof(::viam::service::motion::v1::MotionConfiguration)}, - { 61, 75, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeRequest)}, - { 83, -1, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeResponse)}, - { 90, 104, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeNewRequest)}, - { 112, -1, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeNewResponse)}, - { 119, -1, -1, sizeof(::viam::service::motion::v1::GetPoseRequest)}, - { 130, -1, -1, sizeof(::viam::service::motion::v1::GetPoseResponse)}, - { 137, -1, -1, sizeof(::viam::service::motion::v1::StopPlanRequest)}, - { 146, -1, -1, sizeof(::viam::service::motion::v1::StopPlanResponse)}, - { 152, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesRequest)}, - { 161, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesResponse)}, - { 168, 179, -1, sizeof(::viam::service::motion::v1::GetPlanRequest)}, - { 184, -1, -1, sizeof(::viam::service::motion::v1::GetPlanResponse)}, - { 192, -1, -1, sizeof(::viam::service::motion::v1::Constraints)}, - { 201, 209, -1, sizeof(::viam::service::motion::v1::LinearConstraint)}, - { 211, 218, -1, sizeof(::viam::service::motion::v1::OrientationConstraint)}, - { 219, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions)}, - { 227, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification)}, - { 234, -1, -1, sizeof(::viam::service::motion::v1::PlanWithStatus)}, - { 243, -1, -1, sizeof(::viam::service::motion::v1::PlanStatusWithID)}, - { 253, 262, -1, sizeof(::viam::service::motion::v1::PlanStatus)}, - { 265, -1, -1, sizeof(::viam::service::motion::v1::Plan)}, - { 275, 283, -1, sizeof(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse)}, - { 285, -1, -1, sizeof(::viam::service::motion::v1::PlanStep)}, - { 292, -1, -1, sizeof(::viam::service::motion::v1::ComponentState)}, + { 43, -1, -1, sizeof(::viam::service::motion::v1::ObstacleDetector)}, + { 51, 63, -1, sizeof(::viam::service::motion::v1::MotionConfiguration)}, + { 69, 83, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeRequest)}, + { 91, -1, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeResponse)}, + { 98, 112, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeNewRequest)}, + { 120, -1, -1, sizeof(::viam::service::motion::v1::MoveOnGlobeNewResponse)}, + { 127, -1, -1, sizeof(::viam::service::motion::v1::GetPoseRequest)}, + { 138, -1, -1, sizeof(::viam::service::motion::v1::GetPoseResponse)}, + { 145, -1, -1, sizeof(::viam::service::motion::v1::StopPlanRequest)}, + { 154, -1, -1, sizeof(::viam::service::motion::v1::StopPlanResponse)}, + { 160, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesRequest)}, + { 169, -1, -1, sizeof(::viam::service::motion::v1::ListPlanStatusesResponse)}, + { 176, 187, -1, sizeof(::viam::service::motion::v1::GetPlanRequest)}, + { 192, -1, -1, sizeof(::viam::service::motion::v1::GetPlanResponse)}, + { 200, -1, -1, sizeof(::viam::service::motion::v1::Constraints)}, + { 209, 217, -1, sizeof(::viam::service::motion::v1::LinearConstraint)}, + { 219, 226, -1, sizeof(::viam::service::motion::v1::OrientationConstraint)}, + { 227, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification_AllowedFrameCollisions)}, + { 235, -1, -1, sizeof(::viam::service::motion::v1::CollisionSpecification)}, + { 242, -1, -1, sizeof(::viam::service::motion::v1::PlanWithStatus)}, + { 251, -1, -1, sizeof(::viam::service::motion::v1::PlanStatusWithID)}, + { 261, 270, -1, sizeof(::viam::service::motion::v1::PlanStatus)}, + { 273, -1, -1, sizeof(::viam::service::motion::v1::Plan)}, + { 283, 291, -1, sizeof(::viam::service::motion::v1::PlanStep_StepEntry_DoNotUse)}, + { 293, -1, -1, sizeof(::viam::service::motion::v1::PlanStep)}, + { 300, -1, -1, sizeof(::viam::service::motion::v1::ComponentState)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -772,6 +794,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::viam::service::motion::v1::_MoveResponse_default_instance_._instance, &::viam::service::motion::v1::_MoveOnMapRequest_default_instance_._instance, &::viam::service::motion::v1::_MoveOnMapResponse_default_instance_._instance, + &::viam::service::motion::v1::_ObstacleDetector_default_instance_._instance, &::viam::service::motion::v1::_MotionConfiguration_default_instance_._instance, &::viam::service::motion::v1::_MoveOnGlobeRequest_default_instance_._instance, &::viam::service::motion::v1::_MoveOnGlobeResponse_default_instance_._instance, @@ -823,166 +846,170 @@ const char descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto[] PR "viam.common.v1.ResourceNameR\017slamService" "Name\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" "ructR\005extra\"-\n\021MoveOnMapResponse\022\030\n\007succ" - "ess\030\001 \001(\010R\007success\"\206\004\n\023MotionConfigurati" - "on\022E\n\017vision_services\030\001 \003(\0132\034.viam.commo" - "n.v1.ResourceNameR\016visionServices\022F\n\035pos" - "ition_polling_frequency_hz\030\002 \001(\001H\000R\032posi" - "tionPollingFrequencyHz\210\001\001\022F\n\035obstacle_po" - "lling_frequency_hz\030\003 \001(\001H\001R\032obstaclePoll" - "ingFrequencyHz\210\001\001\022-\n\020plan_deviation_m\030\004 " - "\001(\001H\002R\016planDeviationM\210\001\001\022,\n\020linear_m_per" - "_sec\030\005 \001(\001H\003R\rlinearMPerSec\210\001\001\0224\n\024angula" - "r_degs_per_sec\030\006 \001(\001H\004R\021angularDegsPerSe" - "c\210\001\001B \n\036_position_polling_frequency_hzB " - "\n\036_obstacle_polling_frequency_hzB\023\n\021_pla" - "n_deviation_mB\023\n\021_linear_m_per_secB\027\n\025_a" - "ngular_degs_per_sec\"\214\004\n\022MoveOnGlobeReque" - "st\022\022\n\004name\030\001 \001(\tR\004name\022:\n\013destination\030\002 " - "\001(\0132\030.viam.common.v1.GeoPointR\013destinati" - "on\022\035\n\007heading\030\003 \001(\001H\000R\007heading\210\001\001\022C\n\016com" - "ponent_name\030\004 \001(\0132\034.viam.common.v1.Resou" - "rceNameR\rcomponentName\022N\n\024movement_senso" - "r_name\030\005 \001(\0132\034.viam.common.v1.ResourceNa" - "meR\022movementSensorName\0229\n\tobstacles\030\006 \003(" - "\0132\033.viam.common.v1.GeoObstacleR\tobstacle" - "s\022c\n\024motion_configuration\030\007 \001(\0132+.viam.s" - "ervice.motion.v1.MotionConfigurationH\001R\023" - "motionConfiguration\210\001\001\022-\n\005extra\030c \001(\0132\027." - "google.protobuf.StructR\005extraB\n\n\010_headin" - "gB\027\n\025_motion_configuration\"/\n\023MoveOnGlob" - "eResponse\022\030\n\007success\030\001 \001(\010R\007success\"\217\004\n\025" - "MoveOnGlobeNewRequest\022\022\n\004name\030\001 \001(\tR\004nam" - "e\022:\n\013destination\030\002 \001(\0132\030.viam.common.v1." - "GeoPointR\013destination\022\035\n\007heading\030\003 \001(\001H\000" - "R\007heading\210\001\001\022C\n\016component_name\030\004 \001(\0132\034.v" + "ess\030\001 \001(\010R\007success\"\215\001\n\020ObstacleDetector\022" + "C\n\016vision_service\030\001 \001(\0132\034.viam.common.v1" + ".ResourceNameR\rvisionService\0224\n\006camera\030\002" + " \001(\0132\034.viam.common.v1.ResourceNameR\006came" + "ra\"\230\004\n\023MotionConfiguration\022W\n\022obstacle_d" + "etectors\030\001 \003(\0132(.viam.service.motion.v1." + "ObstacleDetectorR\021obstacleDetectors\022F\n\035p" + "osition_polling_frequency_hz\030\002 \001(\001H\000R\032po" + "sitionPollingFrequencyHz\210\001\001\022F\n\035obstacle_" + "polling_frequency_hz\030\003 \001(\001H\001R\032obstaclePo" + "llingFrequencyHz\210\001\001\022-\n\020plan_deviation_m\030" + "\004 \001(\001H\002R\016planDeviationM\210\001\001\022,\n\020linear_m_p" + "er_sec\030\005 \001(\001H\003R\rlinearMPerSec\210\001\001\0224\n\024angu" + "lar_degs_per_sec\030\006 \001(\001H\004R\021angularDegsPer" + "Sec\210\001\001B \n\036_position_polling_frequency_hz" + "B \n\036_obstacle_polling_frequency_hzB\023\n\021_p" + "lan_deviation_mB\023\n\021_linear_m_per_secB\027\n\025" + "_angular_degs_per_sec\"\214\004\n\022MoveOnGlobeReq" + "uest\022\022\n\004name\030\001 \001(\tR\004name\022:\n\013destination\030" + "\002 \001(\0132\030.viam.common.v1.GeoPointR\013destina" + "tion\022\035\n\007heading\030\003 \001(\001H\000R\007heading\210\001\001\022C\n\016c" + "omponent_name\030\004 \001(\0132\034.viam.common.v1.Res" + "ourceNameR\rcomponentName\022N\n\024movement_sen" + "sor_name\030\005 \001(\0132\034.viam.common.v1.Resource" + "NameR\022movementSensorName\0229\n\tobstacles\030\006 " + "\003(\0132\033.viam.common.v1.GeoObstacleR\tobstac" + "les\022c\n\024motion_configuration\030\007 \001(\0132+.viam" + ".service.motion.v1.MotionConfigurationH\001" + "R\023motionConfiguration\210\001\001\022-\n\005extra\030c \001(\0132" + "\027.google.protobuf.StructR\005extraB\n\n\010_head" + "ingB\027\n\025_motion_configuration\"/\n\023MoveOnGl" + "obeResponse\022\030\n\007success\030\001 \001(\010R\007success\"\217\004" + "\n\025MoveOnGlobeNewRequest\022\022\n\004name\030\001 \001(\tR\004n" + "ame\022:\n\013destination\030\002 \001(\0132\030.viam.common.v" + "1.GeoPointR\013destination\022\035\n\007heading\030\003 \001(\001" + "H\000R\007heading\210\001\001\022C\n\016component_name\030\004 \001(\0132\034" + ".viam.common.v1.ResourceNameR\rcomponentN" + "ame\022N\n\024movement_sensor_name\030\005 \001(\0132\034.viam" + ".common.v1.ResourceNameR\022movementSensorN" + "ame\0229\n\tobstacles\030\006 \003(\0132\033.viam.common.v1." + "GeoObstacleR\tobstacles\022c\n\024motion_configu" + "ration\030\007 \001(\0132+.viam.service.motion.v1.Mo" + "tionConfigurationH\001R\023motionConfiguration" + "\210\001\001\022-\n\005extra\030c \001(\0132\027.google.protobuf.Str" + "uctR\005extraB\n\n\010_headingB\027\n\025_motion_config" + "uration\";\n\026MoveOnGlobeNewResponse\022!\n\014exe" + "cution_id\030\001 \001(\tR\013executionId\"\231\002\n\016GetPose" + "Request\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016component" + "_name\030\002 \001(\0132\034.viam.common.v1.ResourceNam" + "eR\rcomponentName\022+\n\021destination_frame\030\003 " + "\001(\tR\020destinationFrame\022R\n\027supplemental_tr" + "ansforms\030\004 \003(\0132\031.viam.common.v1.Transfor" + "mR\026supplementalTransforms\022-\n\005extra\030c \001(\013" + "2\027.google.protobuf.StructR\005extra\"B\n\017GetP" + "oseResponse\022/\n\004pose\030\001 \001(\0132\033.viam.common." + "v1.PoseInFrameR\004pose\"\231\001\n\017StopPlanRequest" + "\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016component_name\030\002" + " \001(\0132\034.viam.common.v1.ResourceNameR\rcomp" + "onentName\022-\n\005extra\030c \001(\0132\027.google.protob" + "uf.StructR\005extra\"\022\n\020StopPlanResponse\"\210\001\n" + "\027ListPlanStatusesRequest\022\022\n\004name\030\001 \001(\tR\004" + "name\022*\n\021only_active_plans\030\002 \001(\010R\017onlyAct" + "ivePlans\022-\n\005extra\030c \001(\0132\027.google.protobu" + "f.StructR\005extra\"y\n\030ListPlanStatusesRespo" + "nse\022]\n\026plan_statuses_with_ids\030\001 \003(\0132(.vi" + "am.service.motion.v1.PlanStatusWithIDR\023p" + "lanStatusesWithIds\"\367\001\n\016GetPlanRequest\022\022\n" + "\004name\030\001 \001(\tR\004name\022C\n\016component_name\030\002 \001(" + "\0132\034.viam.common.v1.ResourceNameR\rcompone" + "ntName\022$\n\016last_plan_only\030\003 \001(\010R\014lastPlan" + "Only\022&\n\014execution_id\030\004 \001(\tH\000R\013executionI" + "d\210\001\001\022-\n\005extra\030c \001(\0132\027.google.protobuf.St" + "ructR\005extraB\017\n\r_execution_id\"\301\001\n\017GetPlan" + "Response\022_\n\030current_plan_with_status\030\001 \001" + "(\0132&.viam.service.motion.v1.PlanWithStat" + "usR\025currentPlanWithStatus\022M\n\016replan_hist" + "ory\030\002 \003(\0132&.viam.service.motion.v1.PlanW" + "ithStatusR\rreplanHistory\"\263\002\n\013Constraints" + "\022U\n\021linear_constraint\030\001 \003(\0132(.viam.servi" + "ce.motion.v1.LinearConstraintR\020linearCon" + "straint\022d\n\026orientation_constraint\030\002 \003(\0132" + "-.viam.service.motion.v1.OrientationCons" + "traintR\025orientationConstraint\022g\n\027collisi" + "on_specification\030\003 \003(\0132..viam.service.mo" + "tion.v1.CollisionSpecificationR\026collisio" + "nSpecification\"\273\001\n\020LinearConstraint\022/\n\021l" + "ine_tolerance_mm\030\001 \001(\002H\000R\017lineToleranceM" + "m\210\001\001\022A\n\032orientation_tolerance_degs\030\002 \001(\002" + "H\001R\030orientationToleranceDegs\210\001\001B\024\n\022_line" + "_tolerance_mmB\035\n\033_orientation_tolerance_" + "degs\"y\n\025OrientationConstraint\022A\n\032orienta" + "tion_tolerance_degs\030\001 \001(\002H\000R\030orientation" + "ToleranceDegs\210\001\001B\035\n\033_orientation_toleran" + "ce_degs\"\301\001\n\026CollisionSpecification\022]\n\006al" + "lows\030\001 \003(\0132E.viam.service.motion.v1.Coll" + "isionSpecification.AllowedFrameCollision" + "sR\006allows\032H\n\026AllowedFrameCollisions\022\026\n\006f" + "rame1\030\001 \001(\tR\006frame1\022\026\n\006frame2\030\002 \001(\tR\006fra" + "me2\"\311\001\n\016PlanWithStatus\0220\n\004plan\030\001 \001(\0132\034.v" + "iam.service.motion.v1.PlanR\004plan\022:\n\006stat" + "us\030\002 \001(\0132\".viam.service.motion.v1.PlanSt" + "atusR\006status\022I\n\016status_history\030\003 \003(\0132\".v" + "iam.service.motion.v1.PlanStatusR\rstatus" + "History\"\317\001\n\020PlanStatusWithID\022\027\n\007plan_id\030" + "\001 \001(\tR\006planId\022C\n\016component_name\030\002 \001(\0132\034." + "viam.common.v1.ResourceNameR\rcomponentNa" + "me\022!\n\014execution_id\030\003 \001(\tR\013executionId\022:\n" + "\006status\030\004 \001(\0132\".viam.service.motion.v1.P" + "lanStatusR\006status\"\247\001\n\nPlanStatus\0227\n\005stat" + "e\030\001 \001(\0162!.viam.service.motion.v1.PlanSta" + "teR\005state\0228\n\ttimestamp\030\002 \001(\0132\032.google.pr" + "otobuf.TimestampR\ttimestamp\022\033\n\006reason\030\003 " + "\001(\tH\000R\006reason\210\001\001B\t\n\007_reason\"\266\001\n\004Plan\022\016\n\002" + "id\030\001 \001(\tR\002id\022C\n\016component_name\030\002 \001(\0132\034.v" "iam.common.v1.ResourceNameR\rcomponentNam" - "e\022N\n\024movement_sensor_name\030\005 \001(\0132\034.viam.c" - "ommon.v1.ResourceNameR\022movementSensorNam" - "e\0229\n\tobstacles\030\006 \003(\0132\033.viam.common.v1.Ge" - "oObstacleR\tobstacles\022c\n\024motion_configura" - "tion\030\007 \001(\0132+.viam.service.motion.v1.Moti" - "onConfigurationH\001R\023motionConfiguration\210\001" - "\001\022-\n\005extra\030c \001(\0132\027.google.protobuf.Struc" - "tR\005extraB\n\n\010_headingB\027\n\025_motion_configur" - "ation\";\n\026MoveOnGlobeNewResponse\022!\n\014execu" - "tion_id\030\001 \001(\tR\013executionId\"\231\002\n\016GetPoseRe" - "quest\022\022\n\004name\030\001 \001(\tR\004name\022C\n\016component_n" - "ame\030\002 \001(\0132\034.viam.common.v1.ResourceNameR" - "\rcomponentName\022+\n\021destination_frame\030\003 \001(" - "\tR\020destinationFrame\022R\n\027supplemental_tran" - "sforms\030\004 \003(\0132\031.viam.common.v1.TransformR" - "\026supplementalTransforms\022-\n\005extra\030c \001(\0132\027" - ".google.protobuf.StructR\005extra\"B\n\017GetPos" - "eResponse\022/\n\004pose\030\001 \001(\0132\033.viam.common.v1" - ".PoseInFrameR\004pose\"\231\001\n\017StopPlanRequest\022\022" - "\n\004name\030\001 \001(\tR\004name\022C\n\016component_name\030\002 \001" - "(\0132\034.viam.common.v1.ResourceNameR\rcompon" - "entName\022-\n\005extra\030c \001(\0132\027.google.protobuf" - ".StructR\005extra\"\022\n\020StopPlanResponse\"\210\001\n\027L" - "istPlanStatusesRequest\022\022\n\004name\030\001 \001(\tR\004na" - "me\022*\n\021only_active_plans\030\002 \001(\010R\017onlyActiv" - "ePlans\022-\n\005extra\030c \001(\0132\027.google.protobuf." - "StructR\005extra\"y\n\030ListPlanStatusesRespons" - "e\022]\n\026plan_statuses_with_ids\030\001 \003(\0132(.viam" - ".service.motion.v1.PlanStatusWithIDR\023pla" - "nStatusesWithIds\"\367\001\n\016GetPlanRequest\022\022\n\004n" - "ame\030\001 \001(\tR\004name\022C\n\016component_name\030\002 \001(\0132" - "\034.viam.common.v1.ResourceNameR\rcomponent" - "Name\022$\n\016last_plan_only\030\003 \001(\010R\014lastPlanOn" - "ly\022&\n\014execution_id\030\004 \001(\tH\000R\013executionId\210" - "\001\001\022-\n\005extra\030c \001(\0132\027.google.protobuf.Stru" - "ctR\005extraB\017\n\r_execution_id\"\301\001\n\017GetPlanRe" - "sponse\022_\n\030current_plan_with_status\030\001 \001(\013" - "2&.viam.service.motion.v1.PlanWithStatus" - "R\025currentPlanWithStatus\022M\n\016replan_histor" - "y\030\002 \003(\0132&.viam.service.motion.v1.PlanWit" - "hStatusR\rreplanHistory\"\263\002\n\013Constraints\022U" - "\n\021linear_constraint\030\001 \003(\0132(.viam.service" - ".motion.v1.LinearConstraintR\020linearConst" - "raint\022d\n\026orientation_constraint\030\002 \003(\0132-." - "viam.service.motion.v1.OrientationConstr" - "aintR\025orientationConstraint\022g\n\027collision" - "_specification\030\003 \003(\0132..viam.service.moti" - "on.v1.CollisionSpecificationR\026collisionS" - "pecification\"\273\001\n\020LinearConstraint\022/\n\021lin" - "e_tolerance_mm\030\001 \001(\002H\000R\017lineToleranceMm\210" - "\001\001\022A\n\032orientation_tolerance_degs\030\002 \001(\002H\001" - "R\030orientationToleranceDegs\210\001\001B\024\n\022_line_t" - "olerance_mmB\035\n\033_orientation_tolerance_de" - "gs\"y\n\025OrientationConstraint\022A\n\032orientati" - "on_tolerance_degs\030\001 \001(\002H\000R\030orientationTo" - "leranceDegs\210\001\001B\035\n\033_orientation_tolerance" - "_degs\"\301\001\n\026CollisionSpecification\022]\n\006allo" - "ws\030\001 \003(\0132E.viam.service.motion.v1.Collis" - "ionSpecification.AllowedFrameCollisionsR" - "\006allows\032H\n\026AllowedFrameCollisions\022\026\n\006fra" - "me1\030\001 \001(\tR\006frame1\022\026\n\006frame2\030\002 \001(\tR\006frame" - "2\"\311\001\n\016PlanWithStatus\0220\n\004plan\030\001 \001(\0132\034.via" - "m.service.motion.v1.PlanR\004plan\022:\n\006status" - "\030\002 \001(\0132\".viam.service.motion.v1.PlanStat" - "usR\006status\022I\n\016status_history\030\003 \003(\0132\".via" - "m.service.motion.v1.PlanStatusR\rstatusHi" - "story\"\317\001\n\020PlanStatusWithID\022\027\n\007plan_id\030\001 " - "\001(\tR\006planId\022C\n\016component_name\030\002 \001(\0132\034.vi" - "am.common.v1.ResourceNameR\rcomponentName" - "\022!\n\014execution_id\030\003 \001(\tR\013executionId\022:\n\006s" - "tatus\030\004 \001(\0132\".viam.service.motion.v1.Pla" - "nStatusR\006status\"\247\001\n\nPlanStatus\0227\n\005state\030" - "\001 \001(\0162!.viam.service.motion.v1.PlanState" - "R\005state\0228\n\ttimestamp\030\002 \001(\0132\032.google.prot" - "obuf.TimestampR\ttimestamp\022\033\n\006reason\030\003 \001(" - "\tH\000R\006reason\210\001\001B\t\n\007_reason\"\266\001\n\004Plan\022\016\n\002id" - "\030\001 \001(\tR\002id\022C\n\016component_name\030\002 \001(\0132\034.via" - "m.common.v1.ResourceNameR\rcomponentName\022" - "!\n\014execution_id\030\003 \001(\tR\013executionId\0226\n\005st" - "eps\030\004 \003(\0132 .viam.service.motion.v1.PlanS" - "tepR\005steps\"\253\001\n\010PlanStep\022>\n\004step\030\001 \003(\0132*." - "viam.service.motion.v1.PlanStep.StepEntr" - "yR\004step\032_\n\tStepEntry\022\020\n\003key\030\001 \001(\tR\003key\022<" - "\n\005value\030\002 \001(\0132&.viam.service.motion.v1.C" - "omponentStateR\005value:\0028\001\":\n\016ComponentSta" - "te\022(\n\004pose\030\001 \001(\0132\024.viam.common.v1.PoseR\004" - "pose*\214\001\n\tPlanState\022\032\n\026PLAN_STATE_UNSPECI" - "FIED\020\000\022\032\n\026PLAN_STATE_IN_PROGRESS\020\001\022\026\n\022PL" - "AN_STATE_STOPPED\020\002\022\030\n\024PLAN_STATE_SUCCEED" - "ED\020\003\022\025\n\021PLAN_STATE_FAILED\020\0042\371\n\n\rMotionSe" - "rvice\022\202\001\n\004Move\022#.viam.service.motion.v1." - "MoveRequest\032$.viam.service.motion.v1.Mov" - "eResponse\"/\202\323\344\223\002)\"\'/viam/api/v1/service/" - "motion/{name}/move\022\230\001\n\tMoveOnMap\022(.viam." - "service.motion.v1.MoveOnMapRequest\032).via" - "m.service.motion.v1.MoveOnMapResponse\"6\202" - "\323\344\223\0020\"./viam/api/v1/service/motion/{name" - "}/move_on_map\022\240\001\n\013MoveOnGlobe\022*.viam.ser" - "vice.motion.v1.MoveOnGlobeRequest\032+.viam" - ".service.motion.v1.MoveOnGlobeResponse\"8" - "\202\323\344\223\0022\"0/viam/api/v1/service/motion/{nam" - "e}/move_on_globe\022\255\001\n\016MoveOnGlobeNew\022-.vi" - "am.service.motion.v1.MoveOnGlobeNewReque" - "st\032..viam.service.motion.v1.MoveOnGlobeN" - "ewResponse\"<\202\323\344\223\0026\0224/viam/api/v1/service" - "/motion/{name}/move_on_globe_new\022\213\001\n\007Get" - "Pose\022&.viam.service.motion.v1.GetPoseReq" - "uest\032\'.viam.service.motion.v1.GetPoseRes" - "ponse\"/\202\323\344\223\002)\022\'/viam/api/v1/service/moti" - "on/{name}/pose\022\223\001\n\010StopPlan\022\'.viam.servi" - "ce.motion.v1.StopPlanRequest\032(.viam.serv" - "ice.motion.v1.StopPlanResponse\"4\202\323\344\223\002.\022," - "/viam/api/v1/service/motion/{name}/stop_" - "plan\022\264\001\n\020ListPlanStatuses\022/.viam.service" - ".motion.v1.ListPlanStatusesRequest\0320.via" - "m.service.motion.v1.ListPlanStatusesResp" - "onse\"=\202\323\344\223\0027\0225/viam/api/v1/service/motio" - "n/{name}/list_plan_statuses\022\217\001\n\007GetPlan\022" - "&.viam.service.motion.v1.GetPlanRequest\032" - "\'.viam.service.motion.v1.GetPlanResponse" - "\"3\202\323\344\223\002-\022+/viam/api/v1/service/motion/{n" - "ame}/get_plan\022\207\001\n\tDoCommand\022 .viam.commo" - "n.v1.DoCommandRequest\032!.viam.common.v1.D" - "oCommandResponse\"5\202\323\344\223\002/\"-/viam/api/v1/s" - "ervice/motion/{name}/do_commandB\?\n\032com.v" - "iam.service.motion.v1Z!go.viam.com/api/s" - "ervice/motion/v1b\006proto3" + "e\022!\n\014execution_id\030\003 \001(\tR\013executionId\0226\n\005" + "steps\030\004 \003(\0132 .viam.service.motion.v1.Pla" + "nStepR\005steps\"\253\001\n\010PlanStep\022>\n\004step\030\001 \003(\0132" + "*.viam.service.motion.v1.PlanStep.StepEn" + "tryR\004step\032_\n\tStepEntry\022\020\n\003key\030\001 \001(\tR\003key" + "\022<\n\005value\030\002 \001(\0132&.viam.service.motion.v1" + ".ComponentStateR\005value:\0028\001\":\n\016ComponentS" + "tate\022(\n\004pose\030\001 \001(\0132\024.viam.common.v1.Pose" + "R\004pose*\214\001\n\tPlanState\022\032\n\026PLAN_STATE_UNSPE" + "CIFIED\020\000\022\032\n\026PLAN_STATE_IN_PROGRESS\020\001\022\026\n\022" + "PLAN_STATE_STOPPED\020\002\022\030\n\024PLAN_STATE_SUCCE" + "EDED\020\003\022\025\n\021PLAN_STATE_FAILED\020\0042\371\n\n\rMotion" + "Service\022\202\001\n\004Move\022#.viam.service.motion.v" + "1.MoveRequest\032$.viam.service.motion.v1.M" + "oveResponse\"/\202\323\344\223\002)\"\'/viam/api/v1/servic" + "e/motion/{name}/move\022\230\001\n\tMoveOnMap\022(.via" + "m.service.motion.v1.MoveOnMapRequest\032).v" + "iam.service.motion.v1.MoveOnMapResponse\"" + "6\202\323\344\223\0020\"./viam/api/v1/service/motion/{na" + "me}/move_on_map\022\240\001\n\013MoveOnGlobe\022*.viam.s" + "ervice.motion.v1.MoveOnGlobeRequest\032+.vi" + "am.service.motion.v1.MoveOnGlobeResponse" + "\"8\202\323\344\223\0022\"0/viam/api/v1/service/motion/{n" + "ame}/move_on_globe\022\255\001\n\016MoveOnGlobeNew\022-." + "viam.service.motion.v1.MoveOnGlobeNewReq" + "uest\032..viam.service.motion.v1.MoveOnGlob" + "eNewResponse\"<\202\323\344\223\0026\0224/viam/api/v1/servi" + "ce/motion/{name}/move_on_globe_new\022\213\001\n\007G" + "etPose\022&.viam.service.motion.v1.GetPoseR" + "equest\032\'.viam.service.motion.v1.GetPoseR" + "esponse\"/\202\323\344\223\002)\022\'/viam/api/v1/service/mo" + "tion/{name}/pose\022\223\001\n\010StopPlan\022\'.viam.ser" + "vice.motion.v1.StopPlanRequest\032(.viam.se" + "rvice.motion.v1.StopPlanResponse\"4\202\323\344\223\002." + "\022,/viam/api/v1/service/motion/{name}/sto" + "p_plan\022\264\001\n\020ListPlanStatuses\022/.viam.servi" + "ce.motion.v1.ListPlanStatusesRequest\0320.v" + "iam.service.motion.v1.ListPlanStatusesRe" + "sponse\"=\202\323\344\223\0027\0225/viam/api/v1/service/mot" + "ion/{name}/list_plan_statuses\022\217\001\n\007GetPla" + "n\022&.viam.service.motion.v1.GetPlanReques" + "t\032\'.viam.service.motion.v1.GetPlanRespon" + "se\"3\202\323\344\223\002-\022+/viam/api/v1/service/motion/" + "{name}/get_plan\022\207\001\n\tDoCommand\022 .viam.com" + "mon.v1.DoCommandRequest\032!.viam.common.v1" + ".DoCommandResponse\"5\202\323\344\223\002/\"-/viam/api/v1" + "/service/motion/{name}/do_commandB\?\n\032com" + ".viam.service.motion.v1Z!go.viam.com/api" + "/service/motion/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_deps[4] = { &::descriptor_table_common_2fv1_2fcommon_2eproto, @@ -992,9 +1019,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_service_2fmotion_2f }; static ::_pbi::once_flag descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto = { - false, false, 7304, descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto, + false, false, 7466, descriptor_table_protodef_service_2fmotion_2fv1_2fmotion_2eproto, "service/motion/v1/motion.proto", - &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_deps, 4, 29, + &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_deps, 4, 30, schemas, file_default_instances, TableStruct_service_2fmotion_2fv1_2fmotion_2eproto::offsets, file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto, file_level_enum_descriptors_service_2fmotion_2fv1_2fmotion_2eproto, file_level_service_descriptors_service_2fmotion_2fv1_2fmotion_2eproto, @@ -2208,6 +2235,253 @@ ::PROTOBUF_NAMESPACE_ID::Metadata MoveOnMapResponse::GetMetadata() const { // =================================================================== +class ObstacleDetector::_Internal { + public: + static const ::viam::common::v1::ResourceName& vision_service(const ObstacleDetector* msg); + static const ::viam::common::v1::ResourceName& camera(const ObstacleDetector* msg); +}; + +const ::viam::common::v1::ResourceName& +ObstacleDetector::_Internal::vision_service(const ObstacleDetector* msg) { + return *msg->vision_service_; +} +const ::viam::common::v1::ResourceName& +ObstacleDetector::_Internal::camera(const ObstacleDetector* msg) { + return *msg->camera_; +} +void ObstacleDetector::clear_vision_service() { + if (GetArenaForAllocation() == nullptr && vision_service_ != nullptr) { + delete vision_service_; + } + vision_service_ = nullptr; +} +void ObstacleDetector::clear_camera() { + if (GetArenaForAllocation() == nullptr && camera_ != nullptr) { + delete camera_; + } + camera_ = nullptr; +} +ObstacleDetector::ObstacleDetector(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.ObstacleDetector) +} +ObstacleDetector::ObstacleDetector(const ObstacleDetector& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_vision_service()) { + vision_service_ = new ::viam::common::v1::ResourceName(*from.vision_service_); + } else { + vision_service_ = nullptr; + } + if (from._internal_has_camera()) { + camera_ = new ::viam::common::v1::ResourceName(*from.camera_); + } else { + camera_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:viam.service.motion.v1.ObstacleDetector) +} + +inline void ObstacleDetector::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&vision_service_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&camera_) - + reinterpret_cast(&vision_service_)) + sizeof(camera_)); +} + +ObstacleDetector::~ObstacleDetector() { + // @@protoc_insertion_point(destructor:viam.service.motion.v1.ObstacleDetector) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ObstacleDetector::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete vision_service_; + if (this != internal_default_instance()) delete camera_; +} + +void ObstacleDetector::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ObstacleDetector::Clear() { +// @@protoc_insertion_point(message_clear_start:viam.service.motion.v1.ObstacleDetector) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && vision_service_ != nullptr) { + delete vision_service_; + } + vision_service_ = nullptr; + if (GetArenaForAllocation() == nullptr && camera_ != nullptr) { + delete camera_; + } + camera_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ObstacleDetector::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_vision_service(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_camera(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ObstacleDetector::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:viam.service.motion.v1.ObstacleDetector) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; + if (this->_internal_has_vision_service()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::vision_service(this), + _Internal::vision_service(this).GetCachedSize(), target, stream); + } + + // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; + if (this->_internal_has_camera()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::camera(this), + _Internal::camera(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:viam.service.motion.v1.ObstacleDetector) + return target; +} + +size_t ObstacleDetector::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:viam.service.motion.v1.ObstacleDetector) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; + if (this->_internal_has_vision_service()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *vision_service_); + } + + // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; + if (this->_internal_has_camera()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *camera_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ObstacleDetector::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ObstacleDetector::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ObstacleDetector::GetClassData() const { return &_class_data_; } + +void ObstacleDetector::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void ObstacleDetector::MergeFrom(const ObstacleDetector& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:viam.service.motion.v1.ObstacleDetector) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_vision_service()) { + _internal_mutable_vision_service()->::viam::common::v1::ResourceName::MergeFrom(from._internal_vision_service()); + } + if (from._internal_has_camera()) { + _internal_mutable_camera()->::viam::common::v1::ResourceName::MergeFrom(from._internal_camera()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ObstacleDetector::CopyFrom(const ObstacleDetector& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:viam.service.motion.v1.ObstacleDetector) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ObstacleDetector::IsInitialized() const { + return true; +} + +void ObstacleDetector::InternalSwap(ObstacleDetector* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ObstacleDetector, camera_) + + sizeof(ObstacleDetector::camera_) + - PROTOBUF_FIELD_OFFSET(ObstacleDetector, vision_service_)>( + reinterpret_cast(&vision_service_), + reinterpret_cast(&other->vision_service_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ObstacleDetector::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[4]); +} + +// =================================================================== + class MotionConfiguration::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); @@ -2228,20 +2502,17 @@ class MotionConfiguration::_Internal { } }; -void MotionConfiguration::clear_vision_services() { - vision_services_.Clear(); -} MotionConfiguration::MotionConfiguration(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - vision_services_(arena) { + obstacle_detectors_(arena) { SharedCtor(); // @@protoc_insertion_point(arena_constructor:viam.service.motion.v1.MotionConfiguration) } MotionConfiguration::MotionConfiguration(const MotionConfiguration& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_), - vision_services_(from.vision_services_) { + obstacle_detectors_(from.obstacle_detectors_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&position_polling_frequency_hz_, &from.position_polling_frequency_hz_, static_cast(reinterpret_cast(&angular_degs_per_sec_) - @@ -2279,7 +2550,7 @@ void MotionConfiguration::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - vision_services_.Clear(); + obstacle_detectors_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000001fu) { ::memset(&position_polling_frequency_hz_, 0, static_cast( @@ -2297,13 +2568,13 @@ const char* MotionConfiguration::_InternalParse(const char* ptr, ::_pbi::ParseCo uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // repeated .viam.common.v1.ResourceName vision_services = 1 [json_name = "visionServices"]; + // repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"]; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; - ptr = ctx->ParseMessage(_internal_add_vision_services(), ptr); + ptr = ctx->ParseMessage(_internal_add_obstacle_detectors(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); @@ -2385,10 +2656,10 @@ uint8_t* MotionConfiguration::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated .viam.common.v1.ResourceName vision_services = 1 [json_name = "visionServices"]; + // repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"]; for (unsigned i = 0, - n = static_cast(this->_internal_vision_services_size()); i < n; i++) { - const auto& repfield = this->_internal_vision_services(i); + n = static_cast(this->_internal_obstacle_detectors_size()); i < n; i++) { + const auto& repfield = this->_internal_obstacle_detectors(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } @@ -2439,9 +2710,9 @@ size_t MotionConfiguration::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .viam.common.v1.ResourceName vision_services = 1 [json_name = "visionServices"]; - total_size += 1UL * this->_internal_vision_services_size(); - for (const auto& msg : this->vision_services_) { + // repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"]; + total_size += 1UL * this->_internal_obstacle_detectors_size(); + for (const auto& msg : this->obstacle_detectors_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } @@ -2496,7 +2767,7 @@ void MotionConfiguration::MergeFrom(const MotionConfiguration& from) { uint32_t cached_has_bits = 0; (void) cached_has_bits; - vision_services_.MergeFrom(from.vision_services_); + obstacle_detectors_.MergeFrom(from.obstacle_detectors_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { @@ -2534,7 +2805,7 @@ void MotionConfiguration::InternalSwap(MotionConfiguration* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); - vision_services_.InternalSwap(&other->vision_services_); + obstacle_detectors_.InternalSwap(&other->obstacle_detectors_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(MotionConfiguration, angular_degs_per_sec_) + sizeof(MotionConfiguration::angular_degs_per_sec_) @@ -2546,7 +2817,7 @@ void MotionConfiguration::InternalSwap(MotionConfiguration* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MotionConfiguration::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[4]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[5]); } // =================================================================== @@ -3050,7 +3321,7 @@ void MoveOnGlobeRequest::InternalSwap(MoveOnGlobeRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MoveOnGlobeRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[5]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[6]); } // =================================================================== @@ -3221,7 +3492,7 @@ void MoveOnGlobeResponse::InternalSwap(MoveOnGlobeResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MoveOnGlobeResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[6]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[7]); } // =================================================================== @@ -3725,7 +3996,7 @@ void MoveOnGlobeNewRequest::InternalSwap(MoveOnGlobeNewRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MoveOnGlobeNewRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[7]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[8]); } // =================================================================== @@ -3920,7 +4191,7 @@ void MoveOnGlobeNewResponse::InternalSwap(MoveOnGlobeNewResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MoveOnGlobeNewResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[8]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[9]); } // =================================================================== @@ -4301,7 +4572,7 @@ void GetPoseRequest::InternalSwap(GetPoseRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetPoseRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[9]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[10]); } // =================================================================== @@ -4494,7 +4765,7 @@ void GetPoseResponse::InternalSwap(GetPoseResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetPoseResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[10]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[11]); } // =================================================================== @@ -4791,7 +5062,7 @@ void StopPlanRequest::InternalSwap(StopPlanRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata StopPlanRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[11]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[12]); } // =================================================================== @@ -4830,7 +5101,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StopPlanResponse::GetClassData ::PROTOBUF_NAMESPACE_ID::Metadata StopPlanResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[12]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[13]); } // =================================================================== @@ -5105,7 +5376,7 @@ void ListPlanStatusesRequest::InternalSwap(ListPlanStatusesRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListPlanStatusesRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[13]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[14]); } // =================================================================== @@ -5283,7 +5554,7 @@ void ListPlanStatusesResponse::InternalSwap(ListPlanStatusesResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListPlanStatusesResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[14]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[15]); } // =================================================================== @@ -5665,7 +5936,7 @@ void GetPlanRequest::InternalSwap(GetPlanRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetPlanRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[15]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[16]); } // =================================================================== @@ -5885,7 +6156,7 @@ void GetPlanResponse::InternalSwap(GetPlanResponse* other) { ::PROTOBUF_NAMESPACE_ID::Metadata GetPlanResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[16]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[17]); } // =================================================================== @@ -6129,7 +6400,7 @@ void Constraints::InternalSwap(Constraints* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Constraints::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[17]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[18]); } // =================================================================== @@ -6358,7 +6629,7 @@ void LinearConstraint::InternalSwap(LinearConstraint* other) { ::PROTOBUF_NAMESPACE_ID::Metadata LinearConstraint::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[18]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[19]); } // =================================================================== @@ -6540,7 +6811,7 @@ void OrientationConstraint::InternalSwap(OrientationConstraint* other) { ::PROTOBUF_NAMESPACE_ID::Metadata OrientationConstraint::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[19]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[20]); } // =================================================================== @@ -6783,7 +7054,7 @@ void CollisionSpecification_AllowedFrameCollisions::InternalSwap(CollisionSpecif ::PROTOBUF_NAMESPACE_ID::Metadata CollisionSpecification_AllowedFrameCollisions::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[20]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[21]); } // =================================================================== @@ -6961,7 +7232,7 @@ void CollisionSpecification::InternalSwap(CollisionSpecification* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CollisionSpecification::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[21]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[22]); } // =================================================================== @@ -7229,7 +7500,7 @@ void PlanWithStatus::InternalSwap(PlanWithStatus* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PlanWithStatus::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[22]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[23]); } // =================================================================== @@ -7568,7 +7839,7 @@ void PlanStatusWithID::InternalSwap(PlanStatusWithID* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PlanStatusWithID::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[23]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[24]); } // =================================================================== @@ -7859,7 +8130,7 @@ void PlanStatus::InternalSwap(PlanStatus* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PlanStatus::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[24]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[25]); } // =================================================================== @@ -8183,7 +8454,7 @@ void Plan::InternalSwap(Plan* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Plan::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[25]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[26]); } // =================================================================== @@ -8197,7 +8468,7 @@ void PlanStep_StepEntry_DoNotUse::MergeFrom(const PlanStep_StepEntry_DoNotUse& o ::PROTOBUF_NAMESPACE_ID::Metadata PlanStep_StepEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[26]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[27]); } // =================================================================== @@ -8404,7 +8675,7 @@ void PlanStep::InternalSwap(PlanStep* other) { ::PROTOBUF_NAMESPACE_ID::Metadata PlanStep::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[27]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[28]); } // =================================================================== @@ -8597,7 +8868,7 @@ void ComponentState::InternalSwap(ComponentState* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ComponentState::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_getter, &descriptor_table_service_2fmotion_2fv1_2fmotion_2eproto_once, - file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[28]); + file_level_metadata_service_2fmotion_2fv1_2fmotion_2eproto[29]); } // @@protoc_insertion_point(namespace_scope) @@ -8622,6 +8893,10 @@ template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MoveOnMapResponse* Arena::CreateMaybeMessage< ::viam::service::motion::v1::MoveOnMapResponse >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::service::motion::v1::MoveOnMapResponse >(arena); } +template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::ObstacleDetector* +Arena::CreateMaybeMessage< ::viam::service::motion::v1::ObstacleDetector >(Arena* arena) { + return Arena::CreateMessageInternal< ::viam::service::motion::v1::ObstacleDetector >(arena); +} template<> PROTOBUF_NOINLINE ::viam::service::motion::v1::MotionConfiguration* Arena::CreateMaybeMessage< ::viam::service::motion::v1::MotionConfiguration >(Arena* arena) { return Arena::CreateMessageInternal< ::viam::service::motion::v1::MotionConfiguration >(arena); diff --git a/src/viam/api/service/motion/v1/motion.pb.h b/src/viam/api/service/motion/v1/motion.pb.h index 5ee5bf795..4b8e4c765 100644 --- a/src/viam/api/service/motion/v1/motion.pb.h +++ b/src/viam/api/service/motion/v1/motion.pb.h @@ -117,6 +117,9 @@ extern MoveRequestDefaultTypeInternal _MoveRequest_default_instance_; class MoveResponse; struct MoveResponseDefaultTypeInternal; extern MoveResponseDefaultTypeInternal _MoveResponse_default_instance_; +class ObstacleDetector; +struct ObstacleDetectorDefaultTypeInternal; +extern ObstacleDetectorDefaultTypeInternal _ObstacleDetector_default_instance_; class OrientationConstraint; struct OrientationConstraintDefaultTypeInternal; extern OrientationConstraintDefaultTypeInternal _OrientationConstraint_default_instance_; @@ -169,6 +172,7 @@ template<> ::viam::service::motion::v1::MoveOnMapRequest* Arena::CreateMaybeMess template<> ::viam::service::motion::v1::MoveOnMapResponse* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveOnMapResponse>(Arena*); template<> ::viam::service::motion::v1::MoveRequest* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveRequest>(Arena*); template<> ::viam::service::motion::v1::MoveResponse* Arena::CreateMaybeMessage<::viam::service::motion::v1::MoveResponse>(Arena*); +template<> ::viam::service::motion::v1::ObstacleDetector* Arena::CreateMaybeMessage<::viam::service::motion::v1::ObstacleDetector>(Arena*); template<> ::viam::service::motion::v1::OrientationConstraint* Arena::CreateMaybeMessage<::viam::service::motion::v1::OrientationConstraint>(Arena*); template<> ::viam::service::motion::v1::Plan* Arena::CreateMaybeMessage<::viam::service::motion::v1::Plan>(Arena*); template<> ::viam::service::motion::v1::PlanStatus* Arena::CreateMaybeMessage<::viam::service::motion::v1::PlanStatus>(Arena*); @@ -977,6 +981,178 @@ class MoveOnMapResponse final : }; // ------------------------------------------------------------------- +class ObstacleDetector final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.ObstacleDetector) */ { + public: + inline ObstacleDetector() : ObstacleDetector(nullptr) {} + ~ObstacleDetector() override; + explicit PROTOBUF_CONSTEXPR ObstacleDetector(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ObstacleDetector(const ObstacleDetector& from); + ObstacleDetector(ObstacleDetector&& from) noexcept + : ObstacleDetector() { + *this = ::std::move(from); + } + + inline ObstacleDetector& operator=(const ObstacleDetector& from) { + CopyFrom(from); + return *this; + } + inline ObstacleDetector& operator=(ObstacleDetector&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ObstacleDetector& default_instance() { + return *internal_default_instance(); + } + static inline const ObstacleDetector* internal_default_instance() { + return reinterpret_cast( + &_ObstacleDetector_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(ObstacleDetector& a, ObstacleDetector& b) { + a.Swap(&b); + } + inline void Swap(ObstacleDetector* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ObstacleDetector* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ObstacleDetector* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ObstacleDetector& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ObstacleDetector& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ObstacleDetector* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "viam.service.motion.v1.ObstacleDetector"; + } + protected: + explicit ObstacleDetector(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kVisionServiceFieldNumber = 1, + kCameraFieldNumber = 2, + }; + // .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; + bool has_vision_service() const; + private: + bool _internal_has_vision_service() const; + public: + void clear_vision_service(); + const ::viam::common::v1::ResourceName& vision_service() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_vision_service(); + ::viam::common::v1::ResourceName* mutable_vision_service(); + void set_allocated_vision_service(::viam::common::v1::ResourceName* vision_service); + private: + const ::viam::common::v1::ResourceName& _internal_vision_service() const; + ::viam::common::v1::ResourceName* _internal_mutable_vision_service(); + public: + void unsafe_arena_set_allocated_vision_service( + ::viam::common::v1::ResourceName* vision_service); + ::viam::common::v1::ResourceName* unsafe_arena_release_vision_service(); + + // .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; + bool has_camera() const; + private: + bool _internal_has_camera() const; + public: + void clear_camera(); + const ::viam::common::v1::ResourceName& camera() const; + PROTOBUF_NODISCARD ::viam::common::v1::ResourceName* release_camera(); + ::viam::common::v1::ResourceName* mutable_camera(); + void set_allocated_camera(::viam::common::v1::ResourceName* camera); + private: + const ::viam::common::v1::ResourceName& _internal_camera() const; + ::viam::common::v1::ResourceName* _internal_mutable_camera(); + public: + void unsafe_arena_set_allocated_camera( + ::viam::common::v1::ResourceName* camera); + ::viam::common::v1::ResourceName* unsafe_arena_release_camera(); + + // @@protoc_insertion_point(class_scope:viam.service.motion.v1.ObstacleDetector) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::viam::common::v1::ResourceName* vision_service_; + ::viam::common::v1::ResourceName* camera_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_service_2fmotion_2fv1_2fmotion_2eproto; +}; +// ------------------------------------------------------------------- + class MotionConfiguration final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:viam.service.motion.v1.MotionConfiguration) */ { public: @@ -1025,7 +1201,7 @@ class MotionConfiguration final : &_MotionConfiguration_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 5; friend void swap(MotionConfiguration& a, MotionConfiguration& b) { a.Swap(&b); @@ -1096,30 +1272,30 @@ class MotionConfiguration final : // accessors ------------------------------------------------------- enum : int { - kVisionServicesFieldNumber = 1, + kObstacleDetectorsFieldNumber = 1, kPositionPollingFrequencyHzFieldNumber = 2, kObstaclePollingFrequencyHzFieldNumber = 3, kPlanDeviationMFieldNumber = 4, kLinearMPerSecFieldNumber = 5, kAngularDegsPerSecFieldNumber = 6, }; - // repeated .viam.common.v1.ResourceName vision_services = 1 [json_name = "visionServices"]; - int vision_services_size() const; + // repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"]; + int obstacle_detectors_size() const; private: - int _internal_vision_services_size() const; + int _internal_obstacle_detectors_size() const; public: - void clear_vision_services(); - ::viam::common::v1::ResourceName* mutable_vision_services(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* - mutable_vision_services(); + void clear_obstacle_detectors(); + ::viam::service::motion::v1::ObstacleDetector* mutable_obstacle_detectors(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::ObstacleDetector >* + mutable_obstacle_detectors(); private: - const ::viam::common::v1::ResourceName& _internal_vision_services(int index) const; - ::viam::common::v1::ResourceName* _internal_add_vision_services(); + const ::viam::service::motion::v1::ObstacleDetector& _internal_obstacle_detectors(int index) const; + ::viam::service::motion::v1::ObstacleDetector* _internal_add_obstacle_detectors(); public: - const ::viam::common::v1::ResourceName& vision_services(int index) const; - ::viam::common::v1::ResourceName* add_vision_services(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& - vision_services() const; + const ::viam::service::motion::v1::ObstacleDetector& obstacle_detectors(int index) const; + ::viam::service::motion::v1::ObstacleDetector* add_obstacle_detectors(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::ObstacleDetector >& + obstacle_detectors() const; // optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"]; bool has_position_polling_frequency_hz() const; @@ -1195,7 +1371,7 @@ class MotionConfiguration final : typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName > vision_services_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::ObstacleDetector > obstacle_detectors_; double position_polling_frequency_hz_; double obstacle_polling_frequency_hz_; double plan_deviation_m_; @@ -1253,7 +1429,7 @@ class MoveOnGlobeRequest final : &_MoveOnGlobeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 6; friend void swap(MoveOnGlobeRequest& a, MoveOnGlobeRequest& b) { a.Swap(&b); @@ -1537,7 +1713,7 @@ class MoveOnGlobeResponse final : &_MoveOnGlobeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 7; friend void swap(MoveOnGlobeResponse& a, MoveOnGlobeResponse& b) { a.Swap(&b); @@ -1680,7 +1856,7 @@ class MoveOnGlobeNewRequest final : &_MoveOnGlobeNewRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; friend void swap(MoveOnGlobeNewRequest& a, MoveOnGlobeNewRequest& b) { a.Swap(&b); @@ -1964,7 +2140,7 @@ class MoveOnGlobeNewResponse final : &_MoveOnGlobeNewResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 9; friend void swap(MoveOnGlobeNewResponse& a, MoveOnGlobeNewResponse& b) { a.Swap(&b); @@ -2112,7 +2288,7 @@ class GetPoseRequest final : &_GetPoseRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 10; friend void swap(GetPoseRequest& a, GetPoseRequest& b) { a.Swap(&b); @@ -2336,7 +2512,7 @@ class GetPoseResponse final : &_GetPoseResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; friend void swap(GetPoseResponse& a, GetPoseResponse& b) { a.Swap(&b); @@ -2488,7 +2664,7 @@ class StopPlanRequest final : &_StopPlanRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; friend void swap(StopPlanRequest& a, StopPlanRequest& b) { a.Swap(&b); @@ -2675,7 +2851,7 @@ class StopPlanResponse final : &_StopPlanResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; friend void swap(StopPlanResponse& a, StopPlanResponse& b) { a.Swap(&b); @@ -2792,7 +2968,7 @@ class ListPlanStatusesRequest final : &_ListPlanStatusesRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(ListPlanStatusesRequest& a, ListPlanStatusesRequest& b) { a.Swap(&b); @@ -2971,7 +3147,7 @@ class ListPlanStatusesResponse final : &_ListPlanStatusesResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(ListPlanStatusesResponse& a, ListPlanStatusesResponse& b) { a.Swap(&b); @@ -3123,7 +3299,7 @@ class GetPlanRequest final : &_GetPlanRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; friend void swap(GetPlanRequest& a, GetPlanRequest& b) { a.Swap(&b); @@ -3343,7 +3519,7 @@ class GetPlanResponse final : &_GetPlanResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 17; friend void swap(GetPlanResponse& a, GetPlanResponse& b) { a.Swap(&b); @@ -3515,7 +3691,7 @@ class Constraints final : &_Constraints_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(Constraints& a, Constraints& b) { a.Swap(&b); @@ -3707,7 +3883,7 @@ class LinearConstraint final : &_LinearConstraint_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(LinearConstraint& a, LinearConstraint& b) { a.Swap(&b); @@ -3870,7 +4046,7 @@ class OrientationConstraint final : &_OrientationConstraint_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; friend void swap(OrientationConstraint& a, OrientationConstraint& b) { a.Swap(&b); @@ -4018,7 +4194,7 @@ class CollisionSpecification_AllowedFrameCollisions final : &_CollisionSpecification_AllowedFrameCollisions_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 21; friend void swap(CollisionSpecification_AllowedFrameCollisions& a, CollisionSpecification_AllowedFrameCollisions& b) { a.Swap(&b); @@ -4182,7 +4358,7 @@ class CollisionSpecification final : &_CollisionSpecification_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 22; friend void swap(CollisionSpecification& a, CollisionSpecification& b) { a.Swap(&b); @@ -4336,7 +4512,7 @@ class PlanWithStatus final : &_PlanWithStatus_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 23; friend void swap(PlanWithStatus& a, PlanWithStatus& b) { a.Swap(&b); @@ -4528,7 +4704,7 @@ class PlanStatusWithID final : &_PlanStatusWithID_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 24; friend void swap(PlanStatusWithID& a, PlanStatusWithID& b) { a.Swap(&b); @@ -4732,7 +4908,7 @@ class PlanStatus final : &_PlanStatus_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 25; friend void swap(PlanStatus& a, PlanStatus& b) { a.Swap(&b); @@ -4916,7 +5092,7 @@ class Plan final : &_Plan_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 26; friend void swap(Plan& a, Plan& b) { a.Swap(&b); @@ -5146,7 +5322,7 @@ class PlanStep final : &_PlanStep_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 28; friend void swap(PlanStep& a, PlanStep& b) { a.Swap(&b); @@ -5304,7 +5480,7 @@ class ComponentState final : &_ComponentState_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 29; friend void swap(ComponentState& a, ComponentState& b) { a.Swap(&b); @@ -6343,43 +6519,220 @@ inline void MoveOnMapResponse::set_success(bool value) { // ------------------------------------------------------------------- +// ObstacleDetector + +// .viam.common.v1.ResourceName vision_service = 1 [json_name = "visionService"]; +inline bool ObstacleDetector::_internal_has_vision_service() const { + return this != internal_default_instance() && vision_service_ != nullptr; +} +inline bool ObstacleDetector::has_vision_service() const { + return _internal_has_vision_service(); +} +inline const ::viam::common::v1::ResourceName& ObstacleDetector::_internal_vision_service() const { + const ::viam::common::v1::ResourceName* p = vision_service_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); +} +inline const ::viam::common::v1::ResourceName& ObstacleDetector::vision_service() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.ObstacleDetector.vision_service) + return _internal_vision_service(); +} +inline void ObstacleDetector::unsafe_arena_set_allocated_vision_service( + ::viam::common::v1::ResourceName* vision_service) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vision_service_); + } + vision_service_ = vision_service; + if (vision_service) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.ObstacleDetector.vision_service) +} +inline ::viam::common::v1::ResourceName* ObstacleDetector::release_vision_service() { + + ::viam::common::v1::ResourceName* temp = vision_service_; + vision_service_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::ResourceName* ObstacleDetector::unsafe_arena_release_vision_service() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.ObstacleDetector.vision_service) + + ::viam::common::v1::ResourceName* temp = vision_service_; + vision_service_ = nullptr; + return temp; +} +inline ::viam::common::v1::ResourceName* ObstacleDetector::_internal_mutable_vision_service() { + + if (vision_service_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + vision_service_ = p; + } + return vision_service_; +} +inline ::viam::common::v1::ResourceName* ObstacleDetector::mutable_vision_service() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_vision_service(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.ObstacleDetector.vision_service) + return _msg; +} +inline void ObstacleDetector::set_allocated_vision_service(::viam::common::v1::ResourceName* vision_service) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(vision_service_); + } + if (vision_service) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(vision_service)); + if (message_arena != submessage_arena) { + vision_service = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, vision_service, submessage_arena); + } + + } else { + + } + vision_service_ = vision_service; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.ObstacleDetector.vision_service) +} + +// .viam.common.v1.ResourceName camera = 2 [json_name = "camera"]; +inline bool ObstacleDetector::_internal_has_camera() const { + return this != internal_default_instance() && camera_ != nullptr; +} +inline bool ObstacleDetector::has_camera() const { + return _internal_has_camera(); +} +inline const ::viam::common::v1::ResourceName& ObstacleDetector::_internal_camera() const { + const ::viam::common::v1::ResourceName* p = camera_; + return p != nullptr ? *p : reinterpret_cast( + ::viam::common::v1::_ResourceName_default_instance_); +} +inline const ::viam::common::v1::ResourceName& ObstacleDetector::camera() const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.ObstacleDetector.camera) + return _internal_camera(); +} +inline void ObstacleDetector::unsafe_arena_set_allocated_camera( + ::viam::common::v1::ResourceName* camera) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(camera_); + } + camera_ = camera; + if (camera) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:viam.service.motion.v1.ObstacleDetector.camera) +} +inline ::viam::common::v1::ResourceName* ObstacleDetector::release_camera() { + + ::viam::common::v1::ResourceName* temp = camera_; + camera_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::viam::common::v1::ResourceName* ObstacleDetector::unsafe_arena_release_camera() { + // @@protoc_insertion_point(field_release:viam.service.motion.v1.ObstacleDetector.camera) + + ::viam::common::v1::ResourceName* temp = camera_; + camera_ = nullptr; + return temp; +} +inline ::viam::common::v1::ResourceName* ObstacleDetector::_internal_mutable_camera() { + + if (camera_ == nullptr) { + auto* p = CreateMaybeMessage<::viam::common::v1::ResourceName>(GetArenaForAllocation()); + camera_ = p; + } + return camera_; +} +inline ::viam::common::v1::ResourceName* ObstacleDetector::mutable_camera() { + ::viam::common::v1::ResourceName* _msg = _internal_mutable_camera(); + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.ObstacleDetector.camera) + return _msg; +} +inline void ObstacleDetector::set_allocated_camera(::viam::common::v1::ResourceName* camera) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(camera_); + } + if (camera) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(camera)); + if (message_arena != submessage_arena) { + camera = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, camera, submessage_arena); + } + + } else { + + } + camera_ = camera; + // @@protoc_insertion_point(field_set_allocated:viam.service.motion.v1.ObstacleDetector.camera) +} + +// ------------------------------------------------------------------- + // MotionConfiguration -// repeated .viam.common.v1.ResourceName vision_services = 1 [json_name = "visionServices"]; -inline int MotionConfiguration::_internal_vision_services_size() const { - return vision_services_.size(); +// repeated .viam.service.motion.v1.ObstacleDetector obstacle_detectors = 1 [json_name = "obstacleDetectors"]; +inline int MotionConfiguration::_internal_obstacle_detectors_size() const { + return obstacle_detectors_.size(); +} +inline int MotionConfiguration::obstacle_detectors_size() const { + return _internal_obstacle_detectors_size(); } -inline int MotionConfiguration::vision_services_size() const { - return _internal_vision_services_size(); +inline void MotionConfiguration::clear_obstacle_detectors() { + obstacle_detectors_.Clear(); } -inline ::viam::common::v1::ResourceName* MotionConfiguration::mutable_vision_services(int index) { - // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MotionConfiguration.vision_services) - return vision_services_.Mutable(index); +inline ::viam::service::motion::v1::ObstacleDetector* MotionConfiguration::mutable_obstacle_detectors(int index) { + // @@protoc_insertion_point(field_mutable:viam.service.motion.v1.MotionConfiguration.obstacle_detectors) + return obstacle_detectors_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >* -MotionConfiguration::mutable_vision_services() { - // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.MotionConfiguration.vision_services) - return &vision_services_; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::ObstacleDetector >* +MotionConfiguration::mutable_obstacle_detectors() { + // @@protoc_insertion_point(field_mutable_list:viam.service.motion.v1.MotionConfiguration.obstacle_detectors) + return &obstacle_detectors_; } -inline const ::viam::common::v1::ResourceName& MotionConfiguration::_internal_vision_services(int index) const { - return vision_services_.Get(index); +inline const ::viam::service::motion::v1::ObstacleDetector& MotionConfiguration::_internal_obstacle_detectors(int index) const { + return obstacle_detectors_.Get(index); } -inline const ::viam::common::v1::ResourceName& MotionConfiguration::vision_services(int index) const { - // @@protoc_insertion_point(field_get:viam.service.motion.v1.MotionConfiguration.vision_services) - return _internal_vision_services(index); +inline const ::viam::service::motion::v1::ObstacleDetector& MotionConfiguration::obstacle_detectors(int index) const { + // @@protoc_insertion_point(field_get:viam.service.motion.v1.MotionConfiguration.obstacle_detectors) + return _internal_obstacle_detectors(index); } -inline ::viam::common::v1::ResourceName* MotionConfiguration::_internal_add_vision_services() { - return vision_services_.Add(); +inline ::viam::service::motion::v1::ObstacleDetector* MotionConfiguration::_internal_add_obstacle_detectors() { + return obstacle_detectors_.Add(); } -inline ::viam::common::v1::ResourceName* MotionConfiguration::add_vision_services() { - ::viam::common::v1::ResourceName* _add = _internal_add_vision_services(); - // @@protoc_insertion_point(field_add:viam.service.motion.v1.MotionConfiguration.vision_services) +inline ::viam::service::motion::v1::ObstacleDetector* MotionConfiguration::add_obstacle_detectors() { + ::viam::service::motion::v1::ObstacleDetector* _add = _internal_add_obstacle_detectors(); + // @@protoc_insertion_point(field_add:viam.service.motion.v1.MotionConfiguration.obstacle_detectors) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::common::v1::ResourceName >& -MotionConfiguration::vision_services() const { - // @@protoc_insertion_point(field_list:viam.service.motion.v1.MotionConfiguration.vision_services) - return vision_services_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::viam::service::motion::v1::ObstacleDetector >& +MotionConfiguration::obstacle_detectors() const { + // @@protoc_insertion_point(field_list:viam.service.motion.v1.MotionConfiguration.obstacle_detectors) + return obstacle_detectors_; } // optional double position_polling_frequency_hz = 2 [json_name = "positionPollingFrequencyHz"]; @@ -10431,6 +10784,8 @@ inline void ComponentState::set_allocated_pose(::viam::common::v1::Pose* pose) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope)